Showing
3 changed files
with
12 additions
and
6 deletions
| @@ -27,7 +27,7 @@ export default class AllProduct extends Component { | @@ -27,7 +27,7 @@ export default class AllProduct extends Component { | ||
| 27 | title: "泰康在线“住院宝”必备版(0-49周岁)", | 27 | title: "泰康在线“住院宝”必备版(0-49周岁)", |
| 28 | time: "刚刚", | 28 | time: "刚刚", |
| 29 | url: "http://hankschan.legendh5.com/h5/f782ab69-6515-3e70-025a-5da78f1f745f.html", | 29 | url: "http://hankschan.legendh5.com/h5/f782ab69-6515-3e70-025a-5da78f1f745f.html", |
| 30 | - imgurl: require("../../assets/home/product_1.png") | 30 | + imgurl: require("../../assets/home/product_2.png") |
| 31 | }, | 31 | }, |
| 32 | ] | 32 | ] |
| 33 | }; | 33 | }; |
| @@ -67,10 +67,10 @@ export default class Home extends Component { | @@ -67,10 +67,10 @@ export default class Home extends Component { | ||
| 67 | } | 67 | } |
| 68 | ], | 68 | ], |
| 69 | swiperImgList: [ | 69 | swiperImgList: [ |
| 70 | - { | 70 | + // { |
| 71 | - img: require("../../assets/home/slider_1.jpeg") | 71 | + // img: require("../../assets/home/slider_1.jpeg") |
| 72 | - // url: "https://www.baidu.com/" | 72 | + // // url: "https://www.baidu.com/" |
| 73 | - }, | 73 | + // }, |
| 74 | { | 74 | { |
| 75 | img: require("../../assets/home/slider_2.jpeg") | 75 | img: require("../../assets/home/slider_2.jpeg") |
| 76 | // url: "https://www.baidu.com/" | 76 | // url: "https://www.baidu.com/" |
| @@ -11,7 +11,8 @@ import { | @@ -11,7 +11,8 @@ import { | ||
| 11 | Alert, | 11 | Alert, |
| 12 | KeyboardAvoidingView, | 12 | KeyboardAvoidingView, |
| 13 | AsyncStorage, | 13 | AsyncStorage, |
| 14 | - Dimensions | 14 | + Dimensions, |
| 15 | + Keyboard | ||
| 15 | } from "react-native"; | 16 | } from "react-native"; |
| 16 | import WebView from "../../Components/CommonWebView"; | 17 | import WebView from "../../Components/CommonWebView"; |
| 17 | 18 | ||
| @@ -133,6 +134,10 @@ export default class Details extends Component { | @@ -133,6 +134,10 @@ export default class Details extends Component { | ||
| 133 | keyboardType="default" | 134 | keyboardType="default" |
| 134 | enablesReturnKeyAutomatically={true} | 135 | enablesReturnKeyAutomatically={true} |
| 135 | returnKeyType="send" | 136 | returnKeyType="send" |
| 137 | + onSubmitEditing={() => { | ||
| 138 | + this.sendMsg(); | ||
| 139 | + Keyboard.dismiss() | ||
| 140 | + }} | ||
| 136 | /> | 141 | /> |
| 137 | <TouchableOpacity | 142 | <TouchableOpacity |
| 138 | style={styles.sendButtonContaier} | 143 | style={styles.sendButtonContaier} |
| @@ -220,6 +225,7 @@ export default class Details extends Component { | @@ -220,6 +225,7 @@ export default class Details extends Component { | ||
| 220 | return false; | 225 | return false; |
| 221 | } else { | 226 | } else { |
| 222 | this.addComment(); | 227 | this.addComment(); |
| 228 | + | ||
| 223 | } | 229 | } |
| 224 | } | 230 | } |
| 225 | } | 231 | } |
-
Please register or login to post a comment