Преглед изворни кода

修复不同意隐私状态

cc12458 пре 5 месеци
родитељ
комит
1e0d282c45

+ 3 - 0
miniprogram/module/user/pages/user-certification/user-certification.ts

@@ -82,6 +82,9 @@ Component({
     onAgree() {
     onAgree() {
       this.setData({ "privacyContract.agree": true });
       this.setData({ "privacyContract.agree": true });
     },
     },
+    onDisagree() {
+      this.setData({ "privacyContract.agree": false });
+    },
     async verifyCardno(event: WechatMiniprogram.InputConfirm) {
     async verifyCardno(event: WechatMiniprogram.InputConfirm) {
       const value = event.detail.value;
       const value = event.detail.value;
       if (value.length !== 18) {
       if (value.length !== 18) {

+ 1 - 1
miniprogram/module/user/pages/user-certification/user-certification.wxml

@@ -37,4 +37,4 @@
 </scroll-view>
 </scroll-view>
 
 
 <t-message id="{{$messageId}}" />
 <t-message id="{{$messageId}}" />
-<popup-privacy show="{{privacyContract.show}}" bind:setting="onPrivacySetting" bind:agree="onAgree"></popup-privacy>
+<popup-privacy show="{{privacyContract.show}}" bind:setting="onPrivacySetting" bind:agree="onAgree" bind:disagree="onDisagree"></popup-privacy>