From ca619c5f5ab7f6ab97346f6b1754bbcc7af6bcfa Mon Sep 17 00:00:00 2001 From: Vinjor Date: Mon, 7 Apr 2025 16:46:35 +0800 Subject: [PATCH] 1 --- config.js | 5 +- pages/common/richview/index.vue | 122 ++++++++++++++++++-------------- pages/mine/mine-index.vue | 49 ++++++++----- static/mine/erweima.jpg | Bin 0 -> 27551 bytes 4 files changed, 104 insertions(+), 72 deletions(-) create mode 100644 static/mine/erweima.jpg diff --git a/config.js b/config.js index b9e4484..844b6c6 100644 --- a/config.js +++ b/config.js @@ -21,7 +21,10 @@ module.exports = { }, { title: "会员协议", code: "member_agreement" - }, + }, { + title: "新人手册", + code: "new_people_text" + } ] } } \ No newline at end of file diff --git a/pages/common/richview/index.vue b/pages/common/richview/index.vue index f2aa81c..93a5489 100644 --- a/pages/common/richview/index.vue +++ b/pages/common/richview/index.vue @@ -1,62 +1,74 @@ + .container { + padding-top: calc(90rpx + var(--status-bar-height)); + height: 100%; + padding-left: 20rpx; + padding-right: 20rpx; + background: white; + display: flex; + flex-direction: column; + + .body { + height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 95rpx); + overflow-y: scroll; + overflow: auto; + } + } + \ No newline at end of file diff --git a/pages/mine/mine-index.vue b/pages/mine/mine-index.vue index 1e6dd44..ad335bf 100644 --- a/pages/mine/mine-index.vue +++ b/pages/mine/mine-index.vue @@ -122,12 +122,6 @@ 名片 - - - - 名片 - - @@ -135,22 +129,22 @@ 其他信息 - + 新人手册 - + 联系客服 - + 公众号 - + 加入社区 @@ -163,6 +157,12 @@ + + + + + + @@ -200,6 +200,7 @@ data() { return { localUserType: this.nowUserType, + globalConfig: getApp().globalData.config, //是否已开通会员 ifHasCard: false, userInfo: {} @@ -224,6 +225,11 @@ } }, methods: { + toggle(type) { + this.type = type + // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性 + this.$refs.popup.open(type) + }, getBloggerDetail() { bloggerDetail(this.userInfo.userId).then(res => { this.userInfo.tfansNum = res.data.tfansNum.toString() @@ -249,12 +255,6 @@ goMyCard() { this.$tab.navigateTo('/pages/mine/card/my-card') }, - /** - * 跳转黑名单列表 - */ - goBlackList() { - this.$tab.navigateTo('/pages/mine/set/black-list') - }, /** * 跳转建议列表 */ @@ -275,12 +275,29 @@ */ goEdit() { this.$tab.navigateTo('/pages/mine/set/my-info') + }, + viewNewPeople() { + this.$tab.navigateTo( + `/pages/common/richview/index?title=${this.globalConfig.appInfo.agreements[3].title}&code=${this.globalConfig.appInfo.agreements[3].code}` + ) } } }