Commit 0b317108 by chenwq

请求标识

1 parent f054a4db
......@@ -44,7 +44,11 @@ Component({
},
busiObj: {},
busiTotalList: [],
crowdOrderObj: {}
crowdOrderObj: {},
isAsk: {
client: false,
business: false
}
},
lifetimes: {
attached() {
......@@ -136,6 +140,11 @@ Component({
},
getBusiStatistics(isReset = false, isBusiTab = false) {
let { isAsk: { business } } = this.data
let _this = this
if (business) {
return true
}
let totalTabModule = this.selectComponent('#totalTab')
let busiSearchData = totalTabModule ? totalTabModule.dealParams() : {}
let sortTabModule = this.selectComponent('#sortTab')
......@@ -153,6 +162,9 @@ Component({
...sortSearchData,
serviceMerchantId: userInfo.subLoginUser.merchantId
}
this.setData({
['isAsk.business']: true
})
outputApi.getBusiStatistics(params).then(res => {
this.resetBusiData()
if (isReset) {
......@@ -215,6 +227,10 @@ Component({
busiTotalList: _list
})
}
}).finally(function () {
_this.setData({
['isAsk.business']: false
})
})
},
......@@ -260,7 +276,14 @@ Component({
})
},
getList() {
let { sceneCodeList } = this.data
let { sceneCodeList, isAsk: { client } } = this.data
let _this = this
if (client) {
return true
}
this.setData({
['isAsk.client']: true
})
outputApi.getCustomerPageList({ merchantId: this.data.pMerchantId, ...this.data.pageObj }).then(res => {
var list = this.data.list
list = list.concat(res.list)
......@@ -279,6 +302,10 @@ Component({
list: list,
totalPages: res.pages
})
}).finally(function () {
_this.setData({
['isAsk.client']: false
})
})
},
onReachBottom() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!