diff --git a/pages_promotion/futures/my_shop.vue b/pages_promotion/futures/my_shop.vue index 10df25a..6b563f9 100644 --- a/pages_promotion/futures/my_shop.vue +++ b/pages_promotion/futures/my_shop.vue @@ -12,6 +12,21 @@ + + + + 违规次数 + {{ user.violation_num }} + + + 违规总次数 + {{ user.total_violation_num }} + + + 惩罚结束时间 + {{ $util.timeStampTurnTime(user.punish_time) }} + + 小店订单 @@ -64,7 +79,8 @@ export default { } ], // 用户信息 - info: {} + info: {}, + user: {}, }; }, components: {}, @@ -75,6 +91,7 @@ export default { // 判断是否登录 if (!uni.getStorageSync('token')) this.$refs.login.open('/pages_promotion/futures/seckill'); this.getMemberInfo(); + this.getPunish(); }, methods: { // 获取个人信息 @@ -94,6 +111,23 @@ export default { } }); }, + // 惩罚信息 + getPunish() { + this.$api.sendRequest({ + url: '/futures/api/user/info', + success: res => { + if(parseInt(res.code) === 0){ + this.user = res.data; + } + }, + fail: res => {} + }); + }, + + + + + }, onBackPress(options) { if (options.from === 'navigateBack') return false; @@ -253,5 +287,19 @@ export default { } } } + .punish{ + display: inline-flex; + width: 100%; + flex-direction: row; + flex-wrap: nowrap; + align-items: center; + justify-content: space-evenly; + margin: 20rpx 0; + background-color: #FFFFFF; + .punish-title{} + .punish-num{ + text-align: center; + } + } } diff --git a/pages_promotion/futures/order_details.vue b/pages_promotion/futures/order_details.vue index a47c9dd..cf4e4d3 100644 --- a/pages_promotion/futures/order_details.vue +++ b/pages_promotion/futures/order_details.vue @@ -1,19 +1,85 @@