Commit ca5e901e by chenwq

技师

1 parent 57731243
...@@ -72,8 +72,8 @@ Page({ ...@@ -72,8 +72,8 @@ Page({
} }
let params = { let params = {
...formData, ...formData,
merchantId: customerInfo.merchantId, merchantId: customerInfo.serviceCenterMerchantId,
merchantName: customerInfo.merchantName merchantName: customerInfo.serviceCenterMerchantName
} }
let validObj = wx.$util.checkRule(formData, constantData.formRule) let validObj = wx.$util.checkRule(formData, constantData.formRule)
if (validObj) { if (validObj) {
...@@ -176,12 +176,12 @@ Page({ ...@@ -176,12 +176,12 @@ Page({
roleName: '技师' roleName: '技师'
} }
mineServiceApi.getTechnicianList(params).then(res => { mineServiceApi.getTechnicianList(params).then(res => {
let { data, total } = res let { data, count } = res
this.setData({ this.setData({
technicianList: pageCof.pageNum == 1 ? (data || []) : technicianList.concat(data), technicianList: pageCof.pageNum == 1 ? (data || []) : technicianList.concat(data),
['pageCof.pageNum']: pageCof.pageNum + 1, ['pageCof.pageNum']: pageCof.pageNum + 1,
triggered: false, triggered: false,
total total: count
}) })
if (isReset) { if (isReset) {
this.setData({ this.setData({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!