diff --git a/pages.json b/pages.json index edfb787..d0d8e3d 100644 --- a/pages.json +++ b/pages.json @@ -232,6 +232,13 @@ "notice-item": "view" } } + }, + { + "path" : "points/points", + "style" : + { + "navigationBarTitleText" : "" + } } ] }], diff --git a/pages/mine/mine-index.vue b/pages/mine/mine-index.vue index 858ef63..3e1fdbc 100644 --- a/pages/mine/mine-index.vue +++ b/pages/mine/mine-index.vue @@ -59,7 +59,7 @@ - + 积分{{userInfo.pointsBalance||'0'}} 赚积分{{item.unicode}} @@ -78,13 +78,13 @@ 发布通告额度剩余{{userInfo.coupon}}条 - - + + - - - - + + + + @@ -170,7 +170,9 @@ import tabBarVue from '@/components/tabbar/tabBar.vue' import storage from '@/utils/storage' import constant from '@/utils/constant'; - import {changeUserType} from '@/utils/common.js' + import { + changeUserType + } from '@/utils/common.js' import config from '@/config' import { getJSONData, @@ -201,8 +203,8 @@ //是否已开通会员 ifHasCard: false, userInfo: { - coupon:0 - }, + coupon: 0 + }, imageUrl: config.baseUrl, //公众号二维码 wechat_img: constant.wechat_img, @@ -267,7 +269,7 @@ * 跳转建议列表 */ goSuggest() { - this.$tab.navigateTo('/pages/mine/set/suggest?userType='+this.localUserType) + this.$tab.navigateTo('/pages/mine/set/suggest?userType=' + this.localUserType) }, /** * 跳转地址列表 @@ -279,7 +281,8 @@ this.$tab.navigateTo('/pages/mine/auth/auth-choose') }, goCoupon() { - this.$tab.navigateTo('/pages/mine/coupon/coupon-list?userId='+this.userInfo.userId + '&coupon='+this.userInfo.coupon) + this.$tab.navigateTo('/pages/mine/coupon/coupon-list?userId=' + this.userInfo.userId + '&coupon=' + this + .userInfo.coupon) }, goHistory() { this.$tab.navigateTo('/pages/mine/history/history') @@ -287,6 +290,12 @@ goMemberCard() { this.$tab.navigateTo('/pages/mine/member/member-card?userType=' + this.localUserType) }, + /** + * 去积分列表 + */ + goPoints() { + this.$tab.navigateTo('/pages/mine/points/points') + }, /** * 跳转编辑页 */ @@ -506,6 +515,8 @@ } .dl-right { + padding-right: 20rpx; + .dl-go-view { font-size: 28rpx; display: flex; diff --git a/pages/mine/points/points.vue b/pages/mine/points/points.vue new file mode 100644 index 0000000..f4db874 --- /dev/null +++ b/pages/mine/points/points.vue @@ -0,0 +1,424 @@ + + + + + \ No newline at end of file diff --git a/static/mine/points.png b/static/mine/points.png new file mode 100644 index 0000000..3eb214b Binary files /dev/null and b/static/mine/points.png differ diff --git a/utils/common.js b/utils/common.js index 55f200e..5c8c344 100644 --- a/utils/common.js +++ b/utils/common.js @@ -213,3 +213,11 @@ export function getTextByIdentityType(key) { return "电商" } } + +/** + * 格式化数字 + * @param {Object} number + */ +export function formatNumberWithCommas(number) { + return new Intl.NumberFormat().format(number); +} \ No newline at end of file