优化页面
This commit is contained in:
parent
f436b097e0
commit
c8151c3af5
|
@ -115,7 +115,7 @@ export default {
|
|||
},
|
||||
onLoad() {},
|
||||
onShow() {
|
||||
if (this.currentOrderTabIndex) {
|
||||
if (this.currentOrderTabIndex != this.tabIndex) {
|
||||
this.tabIndex = this.currentOrderTabIndex;
|
||||
}
|
||||
if (this.refreshOrder) {
|
||||
|
@ -123,10 +123,7 @@ export default {
|
|||
}
|
||||
},
|
||||
onReady() {},
|
||||
onHide() {
|
||||
this.$store.commit("system/currentOrderTabIndex", 0);
|
||||
this.$store.commit("system/refreshOrder", false);
|
||||
},
|
||||
onHide() {},
|
||||
onReachBottom() {
|
||||
this.loadData();
|
||||
},
|
||||
|
@ -139,6 +136,7 @@ export default {
|
|||
* 切换tab页
|
||||
*/
|
||||
switchTab(index) {
|
||||
this.$store.commit("system/currentOrderTabIndex", index);
|
||||
this.tabIndex = index;
|
||||
let currentTab = this.tabList[index];
|
||||
currentTab.page = 1;
|
||||
|
@ -197,6 +195,7 @@ export default {
|
|||
* 跳转详情
|
||||
*/
|
||||
toDetail(id, state, listType, orderType) {
|
||||
this.$store.commit("system/refreshOrder", false);
|
||||
let tab = "detail";
|
||||
// 报价订单未选择师傅 跳转后切换到师傅列表
|
||||
if (listType == "t2" && orderType == 2 && state == 0) {
|
||||
|
|
Loading…
Reference in New Issue