Commit d30030f4 by 姜雷

修改充值弹窗控制

parent 2ab422d4
...@@ -33,6 +33,7 @@ Component({ ...@@ -33,6 +33,7 @@ Component({
showDialog: false, showDialog: false,
type: 1, // 1 支付 2 扫码 type: 1, // 1 支付 2 扫码
isSkip: 0, isSkip: 0,
isOnlyShowPrompt: 0,
rechargeBalance: 0, rechargeBalance: 0,
payTimeLimit: 0, payTimeLimit: 0,
billType: '0', billType: '0',
...@@ -57,12 +58,18 @@ Component({ ...@@ -57,12 +58,18 @@ Component({
}, },
}) })
.then(res => { .then(res => {
const { isSkip, rechargeBalance, payTimeLimit } = res; const {
isSkip,
rechargeBalance,
payTimeLimit,
isOnlyShowPrompt,
} = res;
this.setData({ this.setData({
isSkip, isSkip,
rechargeBalance, rechargeBalance,
payTimeLimit, payTimeLimit,
showDialog: rechargeBalance > 0 ? true : false, showDialog: rechargeBalance > 0 ? true : false,
isOnlyShowPrompt,
}); });
fetchedPlatform = true; fetchedPlatform = true;
}) })
......
...@@ -9,7 +9,10 @@ ...@@ -9,7 +9,10 @@
您好!您的平台服务费已生成,为不影响设备正常使用,请在{{payTimeLimit}}个工作日内及时缴费,谢谢 您好!您的平台服务费已生成,为不影响设备正常使用,请在{{payTimeLimit}}个工作日内及时缴费,谢谢
</view> </view>
</view> </view>
<view class="PlatformFeeDialog-priceInfo"> <button wx:if="{{isOnlyShowPrompt}}" class="PlatformFeeDialog-btn big" bind:tap="cancelShow">
确定
</button>
<view wx:else class="PlatformFeeDialog-priceInfo">
<view class="PlatformFeeDialog-priceItem"> <view class="PlatformFeeDialog-priceItem">
<view class="PlatformFeeDialog-priceItemLabel">服务费</view> <view class="PlatformFeeDialog-priceItemLabel">服务费</view>
<view class="PlatformFeeDialog-priceItemPrice">{{rechargeBalance}}元</view> <view class="PlatformFeeDialog-priceItemPrice">{{rechargeBalance}}元</view>
...@@ -32,8 +35,12 @@ ...@@ -32,8 +35,12 @@
</view> </view>
</view> </view>
<view class="PlatformFeeDialog-btnbox"> <view class="PlatformFeeDialog-btnbox">
<button class="PlatformFeeDialog-btn cancel" wx:if="{{isSkip}}" bind:tap="cancelShow">取消</button> <button class="PlatformFeeDialog-btn cancel" wx:if="{{isSkip}}" bind:tap="cancelShow">
<button class="PlatformFeeDialog-btn {{isSkip?'':'big'}}" bind:tap="fetchRechargeInfo">确认支付</button> 取消
</button>
<button class="PlatformFeeDialog-btn {{isSkip?'':'big'}}" bind:tap="fetchRechargeInfo">
确认支付
</button>
</view> </view>
<view class="PlatformFeeDialog-links"> <view class="PlatformFeeDialog-links">
<view bind:tap="goRecordsPage">查看服务费明细</view> <view bind:tap="goRecordsPage">查看服务费明细</view>
......
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