diff --git a/pages/order/index.vue b/pages/order/index.vue index a5a3c10..a7fadc1 100644 --- a/pages/order/index.vue +++ b/pages/order/index.vue @@ -9,8 +9,9 @@ - + @@ -163,6 +164,9 @@ // tab栏数据 const tabs = [{ + name: `全部`, + value: 'all' + }, { name: `待付款`, value: 'pay' }, { @@ -174,6 +178,12 @@ }, { name: `已完成`, value: 'complete' + }, { + name: `已取消`, + value: 'cancel' + }, { + name: `退货/售后`, + value: 'refund' }, ] export default { @@ -332,8 +342,15 @@ const app = this // 设置当前选中的标签 app.curTab = index - // 刷新订单列表 - app.getOrderList() + if (index == 6) { + uni.navigateTo({ + url: '/pages/refund/index' + }) + } else { + // 刷新订单列表 + app.getOrderList() + } + }, // 刷新订单列表 @@ -492,6 +509,11 @@ padding: 100rpx 0; } + ::v-deep .u-tab-bar { + bottom: 12rpx !important; + background-color: rgb(255, 98, 87) !important; + } + .order { .receive { width: 100%; @@ -824,7 +846,7 @@ font-family: PingFang SC, PingFang SC; font-weight: 400; color: #727272; - line-height: 33rpx; + line-height: 38rpx; margin-left: 48rpx; margin-top: 28rpx; } diff --git a/pages/order/refund/freight.vue b/pages/order/refund/freight.vue index d44e683..9e3345c 100644 --- a/pages/order/refund/freight.vue +++ b/pages/order/refund/freight.vue @@ -18,17 +18,17 @@ - + + @@ -73,8 +73,8 @@ &-hd { padding: 40rpx; box-sizing: border-box; - margin-top: 20rpx; - background: linear-gradient(180deg, #FFE0E0 0%, #FFFFFF 100%); + margin-top: 12rpx; + background: linear-gradient(180deg, #FFE0E0 0%, #FFFFFF 30%); border-radius: 0px 0px 0px 0px; .a { diff --git a/pages/order/refund/refund.vue b/pages/order/refund/refund.vue index ee3f72f..a3f32a9 100644 --- a/pages/order/refund/refund.vue +++ b/pages/order/refund/refund.vue @@ -195,7 +195,6 @@ }, // 获取当前订单信息 toDetail(canReset = false) { - this.uploadFile() const app = this if (app.logisticsIndex == -1) { uni.showToast({ diff --git a/pages/order/refund/refundDetail1.vue b/pages/order/refund/refundDetail1.vue index 5ba72c3..4b83aaa 100644 --- a/pages/order/refund/refundDetail1.vue +++ b/pages/order/refund/refundDetail1.vue @@ -1,46 +1,63 @@