shish vor 6 Monaten
Ursprung
Commit
688e9a8484

+ 4 - 4
ghsApp/src/pagesClient/official/apply.vue

@@ -69,9 +69,9 @@
         </div>
       </view>
       <view style="color:#999999;font-size:28upx;margin-top:30upx;">
-        <radio-group @change="agreeItem">
+        <checkbox-group @change="agreeItem">
           <label style="display:flex;align-items:center;justify-content:center;">
-            <radio value="1" style="width:6upx;transform:scale(0.8)" />
+            <checkbox value="1" style="width:6upx;transform:scale(0.8)" :checked="agree == 1" />
             <text style="margin-left:38upx;">
               我已阅读并同意
               <text style="font-weight:bold;color:#666666;" @click.stop="goToService()">《服务协议》</text>
@@ -79,7 +79,7 @@
               <text style="font-weight:bold;color:#666666;" @click.stop="goToPrivacy()">《隐私政策》</text>
             </text>
           </label>
-        </radio-group>
+        </checkbox-group>
       </view>
       <div class="btn-wrap">
         <button class="admin-button-com blue big" formType="submit" >确认</button>
@@ -185,7 +185,7 @@ export default {
 			this.$util.pageTo({ url: "/admin/home/privacy"})
 		},
 		agreeItem(e){
-			this.agree = e.target.value
+			this.agree = e.detail.value && e.detail.value.length > 0 ? 1 : 0
 		},
     requestAuthCode(){
       let that = this

+ 4 - 4
hdApp/src/pagesClient/official/apply.vue

@@ -90,9 +90,9 @@
         </div>
       </view>
       <view style="color:#999999;font-size:25upx;margin-top:30upx;">
-        <radio-group @change="agreeItem">
+        <checkbox-group @change="agreeItem">
           <label style="display:flex;align-items:center;justify-content:center;">
-            <radio value="1" style="width:6upx;transform:scale(0.8)" />
+            <checkbox value="1" style="width:6upx;transform:scale(0.8)" :checked="agree == 1" />
             <text style="margin-left:42upx;font-size:30upx;">
               我已阅读并同意
               <text style="font-weight:bold;color:#666666;" @click.stop="goToService()">《服务协议》</text>
@@ -100,7 +100,7 @@
               <text style="font-weight:bold;color:#666666;" @click.stop="goToPrivacy()">《隐私政策》</text>
             </text>
           </label>
-        </radio-group>
+        </checkbox-group>
       </view>
       <div class="btn-wrap">
         <button class="admin-button-com blue big" formType="submit" >确认</button>
@@ -250,7 +250,7 @@ export default {
 			this.$util.pageTo({ url: "/admin/home/privacy"})
 		},
 		agreeItem(e){
-			this.agree = e.target.value
+			this.agree = e.detail.value && e.detail.value.length > 0 ? 1 : 0
 		},
     requestAuthCode(){
       let that = this