|
@@ -1,7 +1,7 @@
|
|
|
// let api = "https://passport.lrlz.com/mobile/index.php";
|
|
|
// let api = "http://www.xyzshops.cn/mobile/index.php";
|
|
|
-let api = "http://192.168.1.200/mobile/index.php";
|
|
|
-// let api = "https://www.xyzshops.cn/mobile/index.php";
|
|
|
+// let api = "http://192.168.1.200/mobile/index.php";
|
|
|
+let api = "https://www.xyzshops.cn/mobile/index.php";
|
|
|
|
|
|
function getReq(app,data, callback, method)
|
|
|
{
|
|
@@ -49,7 +49,6 @@ function getReq(app,data, callback, method)
|
|
|
header,
|
|
|
success(res)
|
|
|
{
|
|
|
- console.log(res)
|
|
|
if (res.data.code == 10014) { //ErrUnLogin = 10014;
|
|
|
wx.removeStorage('session_id');
|
|
|
wx.navigateTo({
|
|
@@ -95,7 +94,10 @@ function buyVGoods(app,goods_id,goods_num, other, successCallback, failCallback)
|
|
|
...other
|
|
|
}
|
|
|
console.table(params)
|
|
|
-
|
|
|
+ wx.showLoading({
|
|
|
+ title: '加载中',
|
|
|
+ mask: true
|
|
|
+ });
|
|
|
params = Object.assign({}, params);
|
|
|
getReq(app,params, function (res) {
|
|
|
wx.hideLoading()
|
|
@@ -109,6 +111,7 @@ function buyVGoods(app,goods_id,goods_num, other, successCallback, failCallback)
|
|
|
signType: param.signType, //微信签名方式:
|
|
|
paySign: param.paySign, //微信签名
|
|
|
success: function (res) {
|
|
|
+ wx.hideLoading()
|
|
|
successCallback && successCallback(res)
|
|
|
},
|
|
|
fail: function (res) {
|