Commit 0b317108 by chenwq

请求标识

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