清理冗余代码

This commit is contained in:
唐明明
2022-06-15 16:31:57 +08:00
parent 7d8b0994f5
commit 5357b0fde6
26 changed files with 32 additions and 684 deletions

View File

@@ -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;

View File

@@ -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: {

View File

@@ -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;

View File

@@ -78,7 +78,6 @@
this.getOrder()
},
onPullDownRefresh() {
console.log('onPullDownRefresh.....')
this.page = 1;
this.getOrder();
},

View File

@@ -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

View File

@@ -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);
}
});
}

View File

@@ -154,9 +154,6 @@
itemList: this.title,
success: (res) => {
this.ttext = this.title[res.tapIndex]
},
fail: (res) => {
console.log(res.errMsg);
}
});
},