From a2386e559babca48004d45bf885032f470e37f4f Mon Sep 17 00:00:00 2001 From: peng <peng.com> Date: 星期一, 08 九月 2025 15:31:30 +0800 Subject: [PATCH] 移除取消订单按钮 --- pages/mine/help/tips.vue | 20 +++++++++++++++++--- 1 files changed, 17 insertions(+), 3 deletions(-) diff --git a/pages/mine/help/tips.vue b/pages/mine/help/tips.vue index e31092e..369e170 100644 --- a/pages/mine/help/tips.vue +++ b/pages/mine/help/tips.vue @@ -1,18 +1,19 @@ <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()" v-if="privacyAgreement">鍚屾剰鍗忚</button> </div> </template> <script> -import UParse from '@/uview-components/uview-ui/components/u-parse/u-parse.vue'; +import '@/components/uview-components/uview-ui'; import { getArticleDetailByType } from "@/api/article"; export default { - components: {UParse}, + data() { return { res: "", + privacyAgreement:false, way: { USER_AGREEMENT: { title: "鏈嶅姟鍗忚", @@ -39,14 +40,22 @@ }, mounted() {}, onLoad(option) { + if(option.type === 'STORE_REGISTER'){ + this.privacyAgreement = true; + } console.log(this.way) uni.setNavigationBarTitle({ title: this.way[option.type].title, }); this.init(option); + }, methods: { + agreed(){ + uni.setStorageSync('agreed', true); // 瀛樺偍鍚屾剰鐘舵�� + uni.navigateBack(); // 杩斿洖鍘熼〉闈� + }, init(option) { getArticleDetailByType(this.way[option.type].type).then((res) => { if (res.data.success) { @@ -59,6 +68,11 @@ }; </script> <style lang="scss" scoped> + .submit { + color: #fff; + margin-top: 120rpx; + background: rgba($light-color, 0.8); + } .wrapper { padding: 16rpx; } -- Gitblit v1.8.0