Commit 39754511 authored by 袁玲利's avatar 袁玲利

交费避免重复点击加loading

parent 97489894
...@@ -378,7 +378,7 @@ ...@@ -378,7 +378,7 @@
schoolId: this.allData.schoolId, schoolId: this.allData.schoolId,
userId: this.allData.userId userId: this.allData.userId
}) })
uni.hideLoading();
if (data.code != 200) { if (data.code != 200) {
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
...@@ -407,6 +407,7 @@ ...@@ -407,6 +407,7 @@
let data = await this.$http.post({ let data = await this.$http.post({
url: orderApi + '/order-charge/app/charge/project/getPayParams' url: orderApi + '/order-charge/app/charge/project/getPayParams'
}, prepayId) }, prepayId)
uni.hideLoading();
if (data.code != 200 || !data.data) { if (data.code != 200 || !data.data) {
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
...@@ -423,6 +424,7 @@ ...@@ -423,6 +424,7 @@
}); });
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
uni.hideLoading();
console.log(e); console.log(e);
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
......
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