From 6f14e821c77023f568ad7a4f2026b9a84898ab08 Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Fri, 3 Mar 2023 17:48:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=9D=E8=A7=84=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=EF=BC=8C=20=E5=AF=B9=E6=8E=A5=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E8=AF=A6=E6=83=85=EF=BC=8C=E8=AE=A2=E5=8D=95=E5=8F=91=E5=B8=83?= =?UTF-8?q?=EF=BC=8C=E4=B8=8B=E6=9E=B6=EF=BC=8C=E6=94=B6=E8=B4=A7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages_promotion/futures/my_shop.vue | 50 ++- pages_promotion/futures/order_details.vue | 458 ++++++++++++++++++++-- 2 files changed, 476 insertions(+), 32 deletions(-) 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 @@