Commit 0b395ef5 by chenwq

员工翻页

1 parent ba703fd3
......@@ -22,7 +22,8 @@ Page({
formItems: constantData.formItems,
targetIdx: '-1',
target: {},
targetIdx: {}
targetIdx: {},
isAsk: false
},
handleInput(e) {
......@@ -168,13 +169,20 @@ Page({
},
getList(isReset = false) {
let { technicianList, pageCof, total, customerInfo } = this.data
let { technicianList, pageCof, total, customerInfo, isAsk } = this.data
if (total == customerList.length || isAsk) {
return true
}
let params = {
...pageCof,
status: 0,
merchantNoList: [customerInfo.serviceCenterMerchantId],
roleName: '技师'
// roleName: '技师'
staffBusinessType: 1
}
this.setData({
isAsk: true
})
mineServiceApi.getTechnicianList(params).then(res => {
let { data, count } = res
this.setData({
......@@ -188,6 +196,10 @@ Page({
scrollTop: 0
})
}
}).finally(function () {
_this.setData({
isAsk: false
})
})
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!