diff --git a/assets/css/v12-style.less b/assets/css/v12-style.less index 35fcb97..3ee16cd 100644 --- a/assets/css/v12-style.less +++ b/assets/css/v12-style.less @@ -142,6 +142,15 @@ each(@colors, { text-align: right; } +.v12-btn{ + width: 136rpx; + height: 50rpx; + text-align: center; + line-height: 50rpx; + border-radius: 50rpx; + color: #fff; + font-size: 27rpx; +} diff --git a/pages/order/MyOrder/index.vue b/pages/order/MyOrder/index.vue index 858595a..073f1df 100644 --- a/pages/order/MyOrder/index.vue +++ b/pages/order/MyOrder/index.vue @@ -33,11 +33,10 @@ - 拼团 - 秒杀 - 砍价 - 门店 + 拼团 + 秒杀 + 砍价 + 门店 订单号:{{ order.orderId }} @@ -85,7 +84,7 @@ v-if="cart.productInfo.attrInfo" class="attr v12-secondary-dark-text v12-font-24 " > - 规格:{{ cart.productInfo.attrInfo.sku }} + {{ cart.productInfo.attrInfo.sku }} x{{ cart.cartNum }} @@ -111,14 +110,20 @@ 更多 联系客服 + v-if="order.merName">联系商家 申请退款 @@ -200,6 +205,7 @@ export default { {name: '待付款'}, {name: '待发货'}, {name: '待收货/待核销'}, + {name: '退款/售后'}, {name: '待评价'}, {name: '已完成'}], offlinePayStatus: 2, @@ -252,7 +258,7 @@ export default { // 打开售后的目的就是开启已完成/待评价订单的退款功能,确认打开售后之后,小程序用户再点击申请退款,就可以进入退款申请填写页面,正常走退款流程,提交退款申请以后,订单状态变为退款中 if (order.refundSystemStatus === 0) { uni.showToast({ - title: '订单已收货,如需退款请联系客服', + title: '订单已收货,如需退款请联系商家', mask: false, icon: 'none', duration: 3000 @@ -345,7 +351,9 @@ export default { this.changeType(this.type); }, tabChange(item) { - this.type = item.index; + + + this.type = item.index this.changeType(); }, changeType() { @@ -358,10 +366,19 @@ export default { getOrderListReq() { if (this.loading || this.loaded) return; this.loading = true; + const types = { + 0: 0, + 1: 1, + 2: 2, + 3: 3, + 4: -3, + 5: 4, + 6: 5, + } + const type = types[this.type] const { page, limit, - type } = this; getOrderList({ page, @@ -406,10 +423,10 @@ export default { status = "退款中"; break; case -2: - status = "已退款"; + status = "退款成功"; break; case -3: - status = "已驳回"; + status = "退款失败"; break; case 9: status = "已取消";