diff --git a/pages.json b/pages.json index b6878d0..882d1e6 100644 --- a/pages.json +++ b/pages.json @@ -173,6 +173,15 @@ "style": { "navigationBarTitleText": "" } + }, + { + "path": "history/history", + "style": { + "navigationBarTitleText": "", + "componentPlaceholder": { + "notice-item": "view" + } + } } ] }], diff --git a/pages/components/my-notice.vue b/pages/components/my-notice.vue index d9957d9..7bdfab1 100644 --- a/pages/components/my-notice.vue +++ b/pages/components/my-notice.vue @@ -15,12 +15,9 @@ - - - - + diff --git a/pages/mine/history/history.vue b/pages/mine/history/history.vue new file mode 100644 index 0000000..af5b72c --- /dev/null +++ b/pages/mine/history/history.vue @@ -0,0 +1,127 @@ + + + + + \ No newline at end of file diff --git a/pages/mine/mine-index.vue b/pages/mine/mine-index.vue index bd8fd5b..69d4b94 100644 --- a/pages/mine/mine-index.vue +++ b/pages/mine/mine-index.vue @@ -104,7 +104,7 @@ 通告券 - + 足迹 @@ -182,7 +182,7 @@ getStrData } from '@/utils/auth.js' import { - queryDetail + queryDetail } from '@/api/business/member.js' export default { props: { @@ -239,12 +239,15 @@ // open 方法传入参数 等同在 uni-popup 组件上绑定 type属性 this.$refs.popup.open(type) }, - getDetail() { - queryDetail({userId:this.userInfo.userId,userType:this.localUserType}).then(res => { + getDetail() { + queryDetail({ + userId: this.userInfo.userId, + userType: this.localUserType + }).then(res => { this.userInfo.tfansNum = res.data.tfansNum.toString() this.userInfo.pointsBalance = res.data.pointsBalance.toString() this.userInfo.report = res.data.report.toString() - this.userInfo.avatar = this.imageUrl+res.data.avatar + this.userInfo.avatar = this.imageUrl + res.data.avatar }) }, /** @@ -254,7 +257,7 @@ changeUserType(type) this.localUserType = type this.$emit('update:nowUserType', this.localUserType) - this.getDetail() + this.getDetail() this.$forceUpdate() }, handleToInfo() { @@ -284,6 +287,9 @@ goCoupon() { this.$tab.navigateTo('/pages/mine/coupon/coupon-list') }, + goHistory() { + this.$tab.navigateTo('/pages/mine/history/history') + }, goMemberCard() { this.$tab.navigateTo('/pages/mine/member/member-card?userType=' + this.localUserType) }, @@ -291,7 +297,8 @@ * 跳转编辑页 */ goEdit() { - this.$tab.navigateTo('/pages/mine/set/my-info?userType='+this.localUserType+'&userId='+this.userInfo.userId) + this.$tab.navigateTo('/pages/mine/set/my-info?userType=' + this.localUserType + '&userId=' + this.userInfo + .userId) }, viewNewPeople() { this.$tab.navigateTo(