|
@@ -64,29 +64,11 @@
|
|
|
|
|
|
|
|
<view class="btn-wrap">
|
|
<view class="btn-wrap">
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
|
- <button class="button-com green" @click="showPayConfirm">微信支付</button>
|
|
|
|
|
|
|
+ <button class="button-com green" @click="handleConfirmRecharge">微信支付</button>
|
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <!-- 支付确认弹框 -->
|
|
|
|
|
- <ModalModule :show="payConfirmShow" title="支付提示" :custom="true" :button="[]" width="95%" @click="handlePayConfirm" >
|
|
|
|
|
- <view class="pay-confirm-content">
|
|
|
|
|
- <view class="confirm-icon">
|
|
|
|
|
- <view class="info-icon">i</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="confirm-text">
|
|
|
|
|
- <view class="text-title">充值金额由门店收取和管理</view>
|
|
|
|
|
- <view class="text-desc">保证资金安全是门店责任,与小程序无关,本小程序只是门店收款和登记工具</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="confirm-btn-wrap">
|
|
|
|
|
- <button class="confirm-btn" @click="handleConfirmRecharge">知道了,继续充值</button>
|
|
|
|
|
- <button class="cancel-btn" @click="handleCancelRecharge">取消充值</button>
|
|
|
|
|
- <view class="tech-support">花掌柜小程序提供技术支持</view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- </ModalModule>
|
|
|
|
|
-
|
|
|
|
|
<!-- 福利选择弹框 -->
|
|
<!-- 福利选择弹框 -->
|
|
|
<ModalModule :show="welfareModalShow" title="充值福利" :custom="true" :button="[]" width="95%" @click="handleWelfareModal" >
|
|
<ModalModule :show="welfareModalShow" title="充值福利" :custom="true" :button="[]" width="95%" @click="handleWelfareModal" >
|
|
|
<view class="welfare-modal-content">
|
|
<view class="welfare-modal-content">
|
|
@@ -159,8 +141,6 @@ export default {
|
|
|
rechargeWeal:0,
|
|
rechargeWeal:0,
|
|
|
weal:[],
|
|
weal:[],
|
|
|
hint:'请输入充值金额',
|
|
hint:'请输入充值金额',
|
|
|
- // 支付确认弹框相关
|
|
|
|
|
- payConfirmShow: false,
|
|
|
|
|
// 福利选择弹框相关
|
|
// 福利选择弹框相关
|
|
|
welfareModalShow: false,
|
|
welfareModalShow: false,
|
|
|
// 防重复请求相关
|
|
// 防重复请求相关
|
|
@@ -347,23 +327,9 @@ export default {
|
|
|
viewChange() {
|
|
viewChange() {
|
|
|
this.pageTo({ url:'/pages/balance/changeList?id='+this.hdId+'&account='+this.account})
|
|
this.pageTo({ url:'/pages/balance/changeList?id='+this.hdId+'&account='+this.account})
|
|
|
},
|
|
},
|
|
|
- // 显示支付确认弹框
|
|
|
|
|
- showPayConfirm() {
|
|
|
|
|
- this.payConfirmShow = true
|
|
|
|
|
- },
|
|
|
|
|
- // 处理支付确认弹框点击
|
|
|
|
|
- handlePayConfirm(e) {
|
|
|
|
|
- // 点击遮罩层关闭弹框
|
|
|
|
|
- this.payConfirmShow = false
|
|
|
|
|
- },
|
|
|
|
|
- // 确认充值
|
|
|
|
|
handleConfirmRecharge() {
|
|
handleConfirmRecharge() {
|
|
|
this.wexinPayFn()
|
|
this.wexinPayFn()
|
|
|
},
|
|
},
|
|
|
- // 取消充值
|
|
|
|
|
- handleCancelRecharge() {
|
|
|
|
|
- this.payConfirmShow = false
|
|
|
|
|
- },
|
|
|
|
|
// 显示福利选择弹框
|
|
// 显示福利选择弹框
|
|
|
showWelfareModal() {
|
|
showWelfareModal() {
|
|
|
this.welfareModalShow = true
|
|
this.welfareModalShow = true
|
|
@@ -377,7 +343,7 @@ export default {
|
|
|
selectWelfare(info) {
|
|
selectWelfare(info) {
|
|
|
this.amount = info.recharge.toString()
|
|
this.amount = info.recharge.toString()
|
|
|
this.handleWelfareModal()
|
|
this.handleWelfareModal()
|
|
|
- this.showPayConfirm()
|
|
|
|
|
|
|
+ this.wexinPayFn()
|
|
|
},
|
|
},
|
|
|
// 关闭福利弹框
|
|
// 关闭福利弹框
|
|
|
closeWelfareModal() {
|
|
closeWelfareModal() {
|