From 6a20878b9b1e3460531b055d72d5d671f761abc3 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期四, 16 十月 2025 15:36:20 +0800
Subject: [PATCH] 定制商品
---
pages/mine/help/tips.vue | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/pages/mine/help/tips.vue b/pages/mine/help/tips.vue
index 75f266a..369e170 100644
--- a/pages/mine/help/tips.vue
+++ b/pages/mine/help/tips.vue
@@ -1,15 +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 '@/components/uview-components/uview-ui';
+
import { getArticleDetailByType } from "@/api/article";
export default {
+
data() {
return {
res: "",
+ privacyAgreement:false,
way: {
USER_AGREEMENT: {
title: "鏈嶅姟鍗忚",
@@ -36,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) {
@@ -56,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