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

交费避免重复点击加loading

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