diff --git a/api/message.js b/api/message.js index bd949b9..c6e7dd8 100644 --- a/api/message.js +++ b/api/message.js @@ -73,7 +73,7 @@ export function getLogisticsMessages(params) { */ export function getAppVersion(appType) { return http.request({ - url: `/appVersion/${appType}`, + url: `/other/appVersion/${appType}`, method: Method.GET, type:"manager" }); @@ -86,7 +86,7 @@ export function getLogisticsMessages(params) { */ export function getAppVersionList(type,data) { return http.request({ - url: `/appVersion/appVersion/${type}`, + url: `/other/appVersion/appVersion/${type}`, method: Method.GET, type:"manager", data diff --git a/pages/order/myOrder.vue b/pages/order/myOrder.vue index 0f996f1..103595a 100644 --- a/pages/order/myOrder.vue +++ b/pages/order/myOrder.vue @@ -1,15 +1,43 @@ @@ -203,10 +318,21 @@ export default { } }, onPullDownRefresh() { + if (this.tabCurrentIndex) { + this.initData(this.tabCurrentIndex); + } else { + this.initData(0); + } + this.loadData(this.status); + }, + onShow() { + if (this.tabCurrentIndex) { + this.initData(this.tabCurrentIndex); + } else { + this.initData(0); + } this.loadData(this.status); }, - - onLoad(options) { /** @@ -219,7 +345,6 @@ export default { if (status == 0) { this.loadData(status); } - }, watch: { @@ -236,16 +361,11 @@ export default { }, }, methods: { - - // 售后 - applyService(order){ - - + applyService(order) { uni.navigateTo({ - url: `/pages/order/afterSales/afterSales?orderSn=${order.sn}` + url: `/pages/order/afterSales/afterSales?orderSn=${order.sn}`, }); - }, // 店铺详情