Commit 555634a6 authored by 袁玲利's avatar 袁玲利

日常交费加全局mask

parent 315e1357
...@@ -107,6 +107,7 @@ ...@@ -107,6 +107,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="masking" v-if="mask"></view>
</view> </view>
</template> </template>
...@@ -151,7 +152,8 @@ ...@@ -151,7 +152,8 @@
remarks: "", remarks: "",
remarksType: ["备注", "邮箱", "手机号码", "身份证"], remarksType: ["备注", "邮箱", "手机号码", "身份证"],
// 费用id // 费用id
chargeItemIds: [] chargeItemIds: [],
mask: false
} }
}, },
onLoad: function(options) { onLoad: function(options) {
...@@ -358,6 +360,7 @@ ...@@ -358,6 +360,7 @@
return return
} }
} }
this.mask = true;
uni.showLoading({ uni.showLoading({
title: '加载中', title: '加载中',
mask: true mask: true
...@@ -394,6 +397,7 @@ ...@@ -394,6 +397,7 @@
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
console.log(e); console.log(e);
this.mask = false;
uni.hideLoading() uni.hideLoading()
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
...@@ -408,6 +412,7 @@ ...@@ -408,6 +412,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)
this.mask = false;
uni.hideLoading(); uni.hideLoading();
if (data.code != 200 || !data.data) { if (data.code != 200 || !data.data) {
uni.showToast({ uni.showToast({
...@@ -425,6 +430,7 @@ ...@@ -425,6 +430,7 @@
}); });
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
this.mask = false;
uni.hideLoading(); uni.hideLoading();
console.log(e); console.log(e);
uni.showToast({ uni.showToast({
...@@ -473,7 +479,15 @@ ...@@ -473,7 +479,15 @@
page { page {
background: #F3F5F6; background: #F3F5F6;
} }
.masking {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.4);
z-index: 10;
}
.PaymentRsults { .PaymentRsults {
width: 580rpx; width: 580rpx;
height: 480rpx; height: 480rpx;
......
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