feat: 完善商品计奖隔离、积分商城兑换券抵扣与下线售后退款入口
这个提交包含在:
@@ -146,21 +146,11 @@ const rules = reactive({});
|
||||
|
||||
// 提交表单
|
||||
async function submit() {
|
||||
// #ifdef MP
|
||||
sheep.$platform.useProvider('wechat').subscribeMessage('order_aftersale_change');
|
||||
// #endif
|
||||
let data = {
|
||||
...formData,
|
||||
order_id: state.goodsItem.order_id,
|
||||
order_item_id: state.goodsItem.id,
|
||||
};
|
||||
const res = await sheep.$api.order.aftersale.apply(data);
|
||||
if (res.code === 1) {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
});
|
||||
sheep.$router.go('/pages/order/aftersale/list');
|
||||
}
|
||||
uni.showToast({
|
||||
title: '退款与售后功能暂未开放',
|
||||
icon: 'none',
|
||||
});
|
||||
return;
|
||||
}
|
||||
//选择售后类型
|
||||
function onRefundChange(e) {
|
||||
@@ -182,7 +172,16 @@ function onReason() {
|
||||
state.showModal = false;
|
||||
}
|
||||
onLoad((options) => {
|
||||
state.goodsItem = JSON.parse(options.item);
|
||||
uni.showToast({
|
||||
title: '退款与售后功能暂未开放',
|
||||
icon: 'none',
|
||||
});
|
||||
setTimeout(() => {
|
||||
sheep.$router.back();
|
||||
}, 1200);
|
||||
if (options?.item) {
|
||||
state.goodsItem = JSON.parse(options.item);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -196,8 +196,13 @@
|
||||
state.loading = false;
|
||||
}
|
||||
onLoad((options) => {
|
||||
state.aftersaleId = options.id;
|
||||
getDetail(options.id);
|
||||
uni.showToast({
|
||||
title: '退款与售后功能暂未开放',
|
||||
icon: 'none',
|
||||
});
|
||||
setTimeout(() => {
|
||||
sheep.$router.back();
|
||||
}, 1200);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -178,10 +178,13 @@
|
||||
}
|
||||
|
||||
onLoad(async (options) => {
|
||||
if (options.type) {
|
||||
state.currentTab = options.type;
|
||||
}
|
||||
getOrderList();
|
||||
uni.showToast({
|
||||
title: '退款与售后功能暂未开放',
|
||||
icon: 'none',
|
||||
});
|
||||
setTimeout(() => {
|
||||
sheep.$router.back();
|
||||
}, 1200);
|
||||
});
|
||||
|
||||
// 加载更多
|
||||
|
||||
@@ -91,8 +91,13 @@ async function onConfirm() {
|
||||
}
|
||||
|
||||
onLoad((options) => {
|
||||
state.aftersaleId = options.id;
|
||||
getDetail(options.id);
|
||||
uni.showToast({
|
||||
title: '退款与售后功能暂未开放',
|
||||
icon: 'none',
|
||||
});
|
||||
setTimeout(() => {
|
||||
sheep.$router.back();
|
||||
}, 1200);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户