feat: 新增拼团
This commit is contained in:
@@ -143,7 +143,7 @@
|
||||
|
||||
<script>
|
||||
import { RETURN_REASON_LIST } from "@/pages/mine_package/mine_order/emun/index.js";
|
||||
import { getDetail, afterSaleApply } from "@/api/order.js";
|
||||
import { getDetail, afterSaleApply, cancelTeam } from "@/api/order.js";
|
||||
import { BASE_URL, Authorization } from '@/utils/config.js';
|
||||
import { getStorageFun, TOKEN_NAME } from '@/utils/auth.js';
|
||||
import { uploadImg } from '@/api/common.js';
|
||||
@@ -279,6 +279,7 @@ export default {
|
||||
this.tempSelectedReason = item;
|
||||
},
|
||||
confirmReason() {
|
||||
console.log("---1122", this.orderInfo)
|
||||
if (!this.tempSelectedReason) {
|
||||
uni.showToast({ title: '请选择退款原因', icon: 'none' });
|
||||
return;
|
||||
@@ -377,8 +378,13 @@ export default {
|
||||
imgUrls: this.fileList.join(','),
|
||||
type: this.orderInfo?.status === 2 ? 1 : (this.orderInfo?.status === 3 || this.orderInfo?.status === 4) ? 2 : 1
|
||||
};
|
||||
if (this.orderInfo.teamId) {
|
||||
await cancelTeam({ teamId: this.orderInfo.teamId })
|
||||
}
|
||||
|
||||
try {
|
||||
uni.showLoading({ title: '提交中...' });
|
||||
|
||||
const res = await afterSaleApply(params);
|
||||
uni.hideLoading();
|
||||
if (res && res.bizcode === 100) {
|
||||
|
||||
Reference in New Issue
Block a user