diff --git a/pages/login/login.js b/pages/login/login.js index 60a7390..ed4fd8d 100644 --- a/pages/login/login.js +++ b/pages/login/login.js @@ -10,7 +10,7 @@ var isBindWeixinPath = '/MainSystem/B3WeChatMiniProgram/Rpcs/CommonRpc/IsBindWei var getOpenIdByCode = '/MainSystem/B3WeChatMiniProgram/Rpcs/CommonRpc/GetMiniOpenIdByCode'; var bindPath = "/MainSystem/B3WeChatMiniProgram/Rpcs/CommonRpc/Bind"; var getBindCustomer = '/MainSystem/B3WeChatMiniProgram/Rpcs/CommonRpc/GetBindCustomer'; -var getCookie = '/MainSystem/MainSystem/Auth/WeixinLogin'; +var getCookie = '/MainSystem/MainSystem/Auth/WeixinLogin' var getCustomerList = '/MainSystem/B3WeChatMiniProgram/Rpcs/CustomerRpc/GetList'; /** * 获取绑定客户ID及用户电话 参数1、appID 2、openID @@ -142,8 +142,9 @@ Page({ let params = []; network.requestLoading(method, params, function(res) { if (res.result.length > 0) { + var lastArr = that.data.customerArray.concat(res.result) that.setData({ - customerArray: res.result, + customerArray: lastArr, }) } })