Commit f5ad626e by chenwq

新增员工,页面卡死

1 parent b3f08088
...@@ -113,7 +113,15 @@ Page({ ...@@ -113,7 +113,15 @@ Page({
getSelectList() { getSelectList() {
// 获取服务中心 // 获取服务中心
mineApi.getServiceCenterListAPI({}).then(res => { mineApi.getServiceCenterListAPI({}).then(res => {
let data = res || [] let data = []
if(res.length) {
data = res.map(item => {
return {
yqMerchantId: item.yqMerchantId,
yqMerchantName: item.yqMerchantName
}
})
}
this.setData({ this.setData({
serviceList: data serviceList: data
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!