gdpaoup
This commit is contained in:
@@ -181,9 +181,6 @@ export default {
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
let pages = getCurrentPages();
|
||||
let prePage = pages[pages.length - 2];
|
||||
console.log(prePage);
|
||||
this.type = option.type;
|
||||
console.log(this.type)
|
||||
this.orderid = option.id;
|
||||
@@ -269,11 +266,18 @@ export default {
|
||||
//
|
||||
confirm() {
|
||||
this.showRefunds = false;
|
||||
if (!this.refundid) {
|
||||
this.$refs.uToast.show({
|
||||
title: "请选择商品",
|
||||
type: "warning"
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (this.cur == 0) {
|
||||
// 确定退款
|
||||
this.$u.api.refund({
|
||||
refund_id: this.refundid,
|
||||
seller_state: 2,
|
||||
seller_state: 3,
|
||||
seller_message: ""
|
||||
}).then(res => {
|
||||
if (res.errCode != 0) {
|
||||
@@ -286,18 +290,21 @@ export default {
|
||||
title: res.message,
|
||||
type: 'success'
|
||||
});
|
||||
let pages = getCurrentPages();
|
||||
let prePage = pages[pages.length - 2];
|
||||
console.log(prePage.$vm);
|
||||
prePage.$vm.del_id = this.orderid;
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
console.log(res);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
// 不进行退款
|
||||
this.$u.api.refund({
|
||||
refund_id: this.refundid,
|
||||
seller_state:3,
|
||||
seller_message:""
|
||||
seller_state: 2,
|
||||
seller_message: ""
|
||||
}).then(res => {
|
||||
if (res.errCode != 0) {
|
||||
this.$refs.uToast.show({
|
||||
|
||||
@@ -135,6 +135,7 @@ export default {
|
||||
carlist: [], //可投诉订单列表
|
||||
reportinfo: null, //投诉信息
|
||||
reportcontent: '', //投诉内容
|
||||
del_id: 0, // 删除id
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
@@ -152,6 +153,7 @@ export default {
|
||||
},
|
||||
onShow() {
|
||||
this.publishstate = false;
|
||||
this.getallorder(1);
|
||||
},
|
||||
onReachBottom() {
|
||||
this.num++;
|
||||
|
||||
Reference in New Issue
Block a user