清理冗余代码
This commit is contained in:
@@ -68,14 +68,12 @@
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
console.log(this.$Route.query.id);
|
||||
this.id = this.$Route.query.id;
|
||||
this.getBaseInfo();
|
||||
},
|
||||
methods: {
|
||||
getBaseInfo(){
|
||||
refundpre(this.id).then(res=>{
|
||||
console.log(res)
|
||||
this.goodsInfo = res.order.items[0].sku;
|
||||
this.goodsInfo.shop =res.order.shop;
|
||||
this.refundTime = res.refundTime;
|
||||
|
||||
@@ -59,10 +59,12 @@
|
||||
},
|
||||
onLoad() {
|
||||
deliverpre().then(res=>{
|
||||
console.log(res)
|
||||
this.state.array = res.expresses
|
||||
}).catch(err=>{
|
||||
console.log(err);
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -120,7 +120,6 @@
|
||||
methods: {
|
||||
refund() {
|
||||
refundsInfo(this.$Route.query.id).then(res => {
|
||||
console.log(res);
|
||||
this.goodsInfo = res.items[0];
|
||||
this.refundInfo = res;
|
||||
this.type = res.type.state;
|
||||
|
||||
@@ -78,7 +78,6 @@
|
||||
this.getOrder()
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
console.log('onPullDownRefresh.....')
|
||||
this.page = 1;
|
||||
this.getOrder();
|
||||
},
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
},
|
||||
onLoad() {
|
||||
refundsLogs(this.$Route.query.id).then(res => {
|
||||
console.log(res)
|
||||
this.logs = res.logs
|
||||
this.goodsInfo = res.refund.items[0]
|
||||
this.refund_total = res.refund.refund_total
|
||||
|
||||
@@ -71,7 +71,6 @@
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
console.log(this.$Route.query.id)
|
||||
this.id = this.$Route.query.id;
|
||||
this.refund(this.id, 'get');
|
||||
},
|
||||
@@ -131,9 +130,6 @@
|
||||
itemList: this.title,
|
||||
success: (res) => {
|
||||
this.ttext = this.title[res.tapIndex]
|
||||
},
|
||||
fail: (res) => {
|
||||
console.log(res.errMsg);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -154,9 +154,6 @@
|
||||
itemList: this.title,
|
||||
success: (res) => {
|
||||
this.ttext = this.title[res.tapIndex]
|
||||
},
|
||||
fail: (res) => {
|
||||
console.log(res.errMsg);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user