|
|
|
@ -16,8 +16,6 @@ function previousRequestLoading(method, params, successaction) { |
|
|
|
'params': params |
|
|
|
}; |
|
|
|
var baseUrl = app.globalData.BaseUrl; |
|
|
|
console.log("params == " + params); |
|
|
|
console.log("method == " + method); |
|
|
|
wx.request({ |
|
|
|
url: baseUrl, |
|
|
|
data: data, |
|
|
|
@ -38,7 +36,6 @@ function previousRequestLoading(method, params, successaction) { |
|
|
|
} |
|
|
|
}, |
|
|
|
fail: function(res) { |
|
|
|
console.log(res) |
|
|
|
wx.showModal({ |
|
|
|
title: '执行出错', |
|
|
|
content: res, |
|
|
|
@ -55,20 +52,13 @@ function requestLoading(method, params, successaction) { |
|
|
|
wx.showLoading({ |
|
|
|
title: "加载中", |
|
|
|
}) |
|
|
|
//{"DecryptCookie":"","CustomerId":1,"Method":"/MainSystem/MainSystem/Auth/Login","Data":["栾慧",""]}
|
|
|
|
var newData = { |
|
|
|
// 客户和司机不添加cookie请求
|
|
|
|
"DecryptCookie": "",//EasyAuth=72335493ecb14015be2db57fc364dc84
|
|
|
|
// 小程序所在客户ID(仙坛,万福,和美)
|
|
|
|
"DecryptCookie": "", |
|
|
|
"CustomerId": app.globalData.CustomerId, |
|
|
|
// 代替url原来后边拼接的方式,提取到data内
|
|
|
|
"AppendUrlString": "?appid=" + app.globalData.AppId + "&phone=" + app.globalData.Phone, |
|
|
|
// 请求路径
|
|
|
|
"Method": method, |
|
|
|
// 请求数据
|
|
|
|
"Data": params, |
|
|
|
}; |
|
|
|
// 中转服务器地址
|
|
|
|
var baseUrl = app.globalData.TranferBaseUrl; |
|
|
|
wx.request({ |
|
|
|
url: baseUrl, |
|
|
|
@ -90,7 +80,6 @@ function requestLoading(method, params, successaction) { |
|
|
|
} |
|
|
|
}, |
|
|
|
fail: function(res) { |
|
|
|
console.log(res) |
|
|
|
wx.showModal({ |
|
|
|
title: '执行出错', |
|
|
|
content: res, |
|
|
|
|