From c3c27262a6e722d2a6153ff3de6d2f870adc1d45 Mon Sep 17 00:00:00 2001
From: yfx <1249361928@.com>
Date: Tue, 17 Mar 2026 14:20:10 +0800
Subject: [PATCH] 传接口参数

---
 pages/quanyi/add.vue |   33 ++++++++++-----------------------
 1 files changed, 10 insertions(+), 23 deletions(-)

diff --git a/pages/quanyi/add.vue b/pages/quanyi/add.vue
index 22ca064..a0b5ca4 100644
--- a/pages/quanyi/add.vue
+++ b/pages/quanyi/add.vue
@@ -11,6 +11,7 @@
   },
   data() {
     return {
+      loginAct: false,
       $webHost:'https://rbb98765.zrgy-bbg.com',
       protocolChecked: [1],
       offIcon,leftIcon,kkIcon,
@@ -137,16 +138,6 @@
 
 
   },
-  mounted(){
-    this.windowHeight = uni.getSystemInfoSync().windowHeight;
-    this.interval = setInterval(() => {
-      let newHeight = window.innerHeight;
-      if (this.windowHeight !== newHeight) {
-        this.windowHeight = newHeight;
-        this.handleResize();
-      }
-    }, 200);
-  },
   methods: {
     kk(){
 
@@ -221,7 +212,7 @@
     },
     submit() {
       const _this = this;
-      if(!this.protocolChecked[0]){uni.showToast({title: '请阅读并同意相关协议', icon: 'none'});return;}
+      if(!this.loginAct){uni.showToast({title: '请阅读并同意相关协议', icon: 'none'});return;}
       if(!_this.cardName){
         uni.showToast({
           title: "请填写您的姓名",
@@ -352,6 +343,9 @@
       })
 
 
+    },
+    agreeClick () {
+      this.loginAct = !this.loginAct
     },
     getSmsCode(){
       const that = this;
@@ -850,23 +844,16 @@
 
     <view style=" padding: 0 30rpx;margin-left: 20rpx;">
       <view style="display: flex;">
-        <uv-checkbox-group
-            activeColor="#FF1472"
-            shape="circle"
-            v-model="protocolChecked">
-          <uv-checkbox size="14" :name="1" >
-
-          </uv-checkbox>
-          <text class="protocol-text" >
-            我已阅读并同意<text style="font-size: 24rpx;color: #4766FE" class="link-text"  @click="$refs.agreement.open()">《相关协议》</text>
-          </text>
-        </uv-checkbox-group>
+        <image @click="agreeClick" style="width: 50rpx;height: 50rpx;" :src="!loginAct ? '/static/imgs/check.png' : '/static/imgs/checked.png'" ></image>
+        <text class="protocol-text" style="line-height: 50rpx" >
+          我已阅读并同意<text style="font-size: 24rpx;color: #4766FE" class="link-text"  @click="$refs.agreement.open()">《相关协议》</text>
+        </text>
 
       </view>
 
     </view>
     <view class="sub" v-if="show">
-      <button  :class="protocolChecked[0]?'':'nots'" class="sub_btn" @click="submit">提交</button>
+      <button  :class="loginAct?'':'nots'" class="sub_btn" @click="submit">提交</button>
     </view>
 
     <agreement ref="agreement"></agreement>

--
Gitblit v1.9.3