From f562cf22e554e7e89017ef98d60ccaf5fbfc0208 Mon Sep 17 00:00:00 2001 From: peng <peng.com> Date: 星期二, 05 八月 2025 09:27:28 +0800 Subject: [PATCH] 修改首页不兼容问题 --- pages/mine/help/tips.vue | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/pages/mine/help/tips.vue b/pages/mine/help/tips.vue index e31092e..7f9c911 100644 --- a/pages/mine/help/tips.vue +++ b/pages/mine/help/tips.vue @@ -1,15 +1,15 @@ <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> </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: "", @@ -44,9 +44,14 @@ 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 +64,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