From 2ac4aaad7abcda3ee1e9b562a0c8e0fd2f126f45 Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期二, 05 八月 2025 09:42:37 +0800 Subject: [PATCH] 协议页面复用问题 --- pages/mine/help/tips.vue | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/pages/mine/help/tips.vue b/pages/mine/help/tips.vue index 7f9c911..369e170 100644 --- a/pages/mine/help/tips.vue +++ b/pages/mine/help/tips.vue @@ -1,7 +1,7 @@ <template> <div class="wrapper"> <u-parse :show-with-animation="true" :lazy-load="true" :selectable="true" :html="res.content" v-if="res"></u-parse> - <button class="submit" @click="agreed()">鍚屾剰鍗忚</button> + <button class="submit" @click="agreed()" v-if="privacyAgreement">鍚屾剰鍗忚</button> </div> </template> <script> @@ -13,6 +13,7 @@ data() { return { res: "", + privacyAgreement:false, way: { USER_AGREEMENT: { title: "鏈嶅姟鍗忚", @@ -39,6 +40,9 @@ }, mounted() {}, onLoad(option) { + if(option.type === 'STORE_REGISTER'){ + this.privacyAgreement = true; + } console.log(this.way) uni.setNavigationBarTitle({ title: this.way[option.type].title, -- Gitblit v1.8.0