feat:0820需求

This commit is contained in:
2026-08-21 14:10:43 +08:00
parent 619c0cacc5
commit e8d4fd6cd4
31 changed files with 9112 additions and 3658 deletions
+22 -12
View File
@@ -99,7 +99,7 @@
<view>共{{ item.buyNum }}件,合计¥{{ item.sumAmount }}</view>
</view> -->
<view class="collect_msg" v-if="item.buyDeductionValue">共{{ item.buyNum }}件,合计数字积分{{ item.buyDeductionValue
}}
}}
+¥{{ item.sumAmount }}</view>
<view class="collect_msg" v-if="!item.buyDeductionValue">运费:¥{{ item.postage }},商品总价:¥{{ item.sumAmount }}
</view>
@@ -135,8 +135,8 @@
<!-- 修改地址按钮 (待发货/待收货状态) -->
<view class="operate_comm operate_but_3" v-if="
([MINE_ORDER_TYPE.UNSHIPPED, MINE_ORDER_TYPE.NOT_RECEIVE].includes(form.type) ||
[ORDER_TYPE.UNSHIPPED, ORDER_TYPE.NOT_RECEIVE].includes(item.status)) && item.modifyShippingAddressStatus == 0
([MINE_ORDER_TYPE.UNSHIPPED].includes(form.type) ||
[ORDER_TYPE.UNSHIPPED].includes(item.status)) && item.modifyShippingAddressStatus == 0
" @click="changeOrderAddress(item)">
修改地址
</view>
@@ -153,7 +153,7 @@
'operate_comm',
'operate_but_1'
]"
v-if="(!item.isAfter && form.type !== MINE_ORDER_TYPE.UNPAID && form.type !== MINE_ORDER_TYPE.AFTER_SALE && item.status !== 5) || item.isAfterOpen"
v-if="!item.isAfter && form.type !== MINE_ORDER_TYPE.UNPAID && form.type !== MINE_ORDER_TYPE.AFTER_SALE && item.status !== 5"
@click="onSaleAfter(item)">
申请售后
</view>
@@ -223,7 +223,8 @@
联系售后
<text class="after-sales-tabs-text">荐</text>
</view>
<view :class="['after-sales-tabs-item', { active: activeIndex === 1 }]" @click="activeIndex = 1">退货退款</view>
<view :class="['after-sales-tabs-item', { active: activeIndex === 1 }]" @click="toApplyRefundPage">退货/退款
</view>
</view>
<view class="content_" v-if="activeIndex === 0">
@@ -417,6 +418,7 @@ export default {
flowId: null,
signUrl: null,
downShow: false,
tipsShow: false,
selectItem: null,
userInfo: null,
search: "",
@@ -574,18 +576,26 @@ export default {
this.form.type == MINE_ORDER_TYPE.UNSHIPPED ? 1 : 2;
}
},
toApplyRefundPage() {
this.activeIndex = 1;
this.afterShow = false;
const orderId = this.aftterSalesProduct ? this.aftterSalesProduct.id : '';
uni.navigateTo({
url: `/pages/mine_package/apply_refund/apply_refund?id=${orderId}&orderData=${encodeURIComponent(JSON.stringify(this.aftterSalesProduct || {}))}`
});
},
// 售后订单详情
async onAfterSaleDetail(item) {
// if (item.status === 8) {
// this.$refs.uToastRef.show({
// type: "success",
// message: "订单已作废",
// });
// return;
// }
const { bizcode, data } = await afterSaleDetail({ id: item.afterId });
if (bizcode == 100) {
this.aftterSalesProduct = { ...data, ...{ afterId: item.afterId, status: item.status } };
console.log("售后订单详情", this.aftterSalesProduct);
if (this.aftterSalesProduct.afterType == 2 && this.aftterSalesProduct.status == 1) {
uni.navigateTo({
url: `/pages/mine_package/fill_express/fill_express?afterData=${encodeURIComponent(JSON.stringify(this.aftterSalesProduct))}`
});
return;
}
this.salesServer = 2;
this.afterShow = true;
}