Commit f92ae35d authored by 符伟's avatar 符伟

充值loading修改

parent ebfd5ec1
{ {
"name" : "az-wechat-web", "name" : "az-wechat-web",
"appid" : "__UNI__6500A3F", "appid" : "__UNI__B1AC702",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.0",
"versionCode" : "100", "versionCode" : "100",
...@@ -85,18 +85,18 @@ ...@@ -85,18 +85,18 @@
}, },
"h5" : { "h5" : {
"devServer" : { "devServer" : {
"port": 80, "port" : 80,
"disableHostCheck": true, "disableHostCheck" : true,
"proxy": { "proxy" : {
"/api": { "/api" : {
"target": "https://uat.xiaopay.net", "target" : "https://uat.xiaopay.net",
"changeOrigin": true, "changeOrigin" : true,
"secure": false, "secure" : false,
"pathRewrite": { "pathRewrite" : {
"^/api": "/" "^/api" : "/"
} }
} }
} }
}, },
"router" : { "router" : {
"mode" : "hash", "mode" : "hash",
......
...@@ -422,24 +422,19 @@ ...@@ -422,24 +422,19 @@
amount = this.Money * 1 amount = this.Money * 1
} }
let this_ = this; let this_ = this;
let loading = Toast.loading({ uni.showLoading({
message: '加载中...', mask: true,
forbidClick: true, title: "处理中......"
loadingType: 'spinner', })
duration: 0
});
try{ try{
let status = await this.accountCloseacceptStatusQuery(); let status = await this.accountCloseacceptStatusQuery();
if(status !== 0) { loading.clear(); return false }; if(status !== 0) { uni.hideLoading(); return false };
}catch(e){ }catch(e){
loading.clear(); uni.hideLoading();
return false return false
} }
uni.showLoading({
mask: true,
title: "处理中......"
})
$.ajax({ $.ajax({
url: gHost + '/bank-wechat/icbc/account/exchange/recharge', url: gHost + '/bank-wechat/icbc/account/exchange/recharge',
type: "POST", type: "POST",
...@@ -459,7 +454,6 @@ ...@@ -459,7 +454,6 @@
success: function(res5) { success: function(res5) {
uni.hideLoading() uni.hideLoading()
if (res5.code == "10000") { if (res5.code == "10000") {
this_.close();
wx.showModal({ wx.showModal({
title:'充值申请已提交', title:'充值申请已提交',
content:'银行处理需要1-5分钟时间,充值结果以余额查询为准。', content:'银行处理需要1-5分钟时间,充值结果以余额查询为准。',
...@@ -468,9 +462,10 @@ ...@@ -468,9 +462,10 @@
} else { } else {
weui.topTips(res5.message) weui.topTips(res5.message)
} }
}, },
error: function(err) { error: function(err) {
uni.hideLoading() uni.hideLoading();
}, },
}); });
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment