From 85dcb0d64c08451b61ef3b03dcd6abfa090f4e5a Mon Sep 17 00:00:00 2001 From: chenxuhui Date: Wed, 5 Dec 2018 20:58:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=88=97=E8=A1=A8=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/login.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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, }) } })