Skip to content

Commit ca55952

Browse files
committed
完成会员中心页面
1 parent 768582a commit ca55952

12 files changed

Lines changed: 335 additions & 75 deletions

File tree

pages.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,18 @@
9696
"style": {
9797
"navigationBarTitleText": "订单详情"
9898
}
99+
},
100+
{
101+
"path" : "pages/my/index",
102+
"style": {
103+
"navigationBarTitleText": "会员中心"
104+
}
105+
},
106+
{
107+
"path" : "pages/about/about",
108+
"style": {
109+
"navigationBarTitleText": ""
110+
}
99111
}
100112
],
101113
"globalStyle": {
@@ -135,7 +147,7 @@
135147
"text": "购物车"
136148
},
137149
{
138-
"pagePath": "pages/cart/index",
150+
"pagePath": "pages/my/index",
139151
"iconPath": "static/images/nav/my-off.png",
140152
"selectedIconPath": "static/images/nav/my-on.png",
141153
"text": "我的"

pages/about/about.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<view v-if="resData" class="about">
33
<view class="content">
4-
<u-parse :html="resData.info.content"></u-parse>
4+
<u-parse :content="resData.info.content"></u-parse>
55
</view>
66
</view>
77
</template>
@@ -35,7 +35,8 @@
3535
},
3636
methods: {
3737
async _cmsPage() {
38-
const res = await this.$api.cmsPage(this.key)
38+
// https://www.yuque.com/apifm/nu0f75/utgp8i
39+
const res = await this.$wxapi.cmsPage(this.key)
3940
if (res.code != 0) {
4041
uni.showToast({
4142
title: res.msg,

0 commit comments

Comments
 (0)