From 5db399becd9406c504af2b9e5575d3e1a337e80f Mon Sep 17 00:00:00 2001 From: mike Date: Sun, 12 Jun 2022 22:22:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=AF=8F=E5=BC=A0=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E6=98=BE=E7=A4=BA=EF=BC=8C=E5=A6=82=E6=9E=9C=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=A1=AE=E8=AE=A4=E8=BF=87=E5=8D=8F=E8=AE=AE=EF=BC=8C?= =?UTF-8?q?=E4=BB=A5=E5=90=8E=E5=8D=8F=E8=AE=AE=E9=BB=98=E8=AE=A4=E5=8B=BE?= =?UTF-8?q?=E9=80=89=E4=B8=8A=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 12 ++++++++++-- pages/write/baseInfo.vue | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 8cb6532..3c219e1 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -112,7 +112,7 @@ - + @@ -120,7 +120,7 @@ 《服务协议》 - 45元/张 + 下一步 @@ -184,6 +184,11 @@ } }, async onLoad(query){ + //如果看过协议,默认协议勾选住 + if(uni.getStorageSync('AgreementChecked')){ + this.isConsentAgreement = true + } + this.getSysInfo(); if(query && query.q){ @@ -211,6 +216,9 @@ } }, methods: { + onAgreementCheck(e){ + this.isConsentAgreement = !this.isConsentAgreement + }, tipsDetail(index){ console.log("tipsDetail",index) console.log("tipsDetail id",this.tipsDatas[index].id) diff --git a/pages/write/baseInfo.vue b/pages/write/baseInfo.vue index 9787c23..625262f 100644 --- a/pages/write/baseInfo.vue +++ b/pages/write/baseInfo.vue @@ -103,7 +103,7 @@ - + {{columnsData[columnsIndex].desc}} @@ -175,6 +175,7 @@ // }, // }, onLoad(options){ + uni.setStorageSync('AgreementChecked',1); this.rateIndex = options.rate_index || 0; let d = uni.getStorageSync('qxk_sysinfo') if(d){