256a8622 by lttnew

须知

1 parent d9f71c2d
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
80 </view> 80 </view>
81 <view class="fixed-agreeline"> 81 <view class="fixed-agreeline">
82 <view class="agreeline"> 82 <view class="agreeline">
83 <checkbox-group @change="onAgreeChange"> 83 <checkbox-group @change="changeAgree">
84 <label class="agree-label"> 84 <label class="agree-label">
85 <checkbox :checked="agree" color="#C40F18" value="1" /> 85 <checkbox :checked="agree" color="#C40F18" value="1" />
86 <text class="agree-text">我已阅读并同意</text> 86 <text class="agree-text">我已阅读并同意</text>
...@@ -274,8 +274,8 @@ function onClickItem(e) { ...@@ -274,8 +274,8 @@ function onClickItem(e) {
274 } 274 }
275 275
276 276
277 function changeAgree(item) { 277 function changeAgree(e) {
278 agree.value = !item 278 agree.value = e.detail.value.length > 0
279 } 279 }
280 280
281 //身份证识别 281 //身份证识别
...@@ -502,7 +502,7 @@ function goSubmit() { ...@@ -502,7 +502,7 @@ function goSubmit() {
502 if (!agree.value) { 502 if (!agree.value) {
503 uni.showToast({ 503 uni.showToast({
504 icon: 'none', 504 icon: 'none',
505 title: '请阅入会须知', 505 title: '请阅入会须知',
506 duration: 2000 506 duration: 2000
507 }); 507 });
508 return 508 return
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!