|
@@ -51,39 +51,41 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="pay-checked">
|
|
<view class="pay-checked">
|
|
- <view class="pay-card-main" v-if="cardsList.length > 0">
|
|
|
|
- <view class="pay-item-cell" @click="tabClick(3)">
|
|
|
|
- <view class="item-icon">
|
|
|
|
- <image
|
|
|
|
- :src="
|
|
|
|
- 'https://static.caimei365.com/app/img/pay/icon_' +
|
|
|
|
- defaultCards.bankCode +
|
|
|
|
- '_@2x.png'
|
|
|
|
- "
|
|
|
|
- ></image>
|
|
|
|
|
|
+ <template v-if="showQuickpayMode">
|
|
|
|
+ <view class="pay-card-main" v-if="cardsList.length > 0">
|
|
|
|
+ <view class="pay-item-cell" @click="tabClick(3)">
|
|
|
|
+ <view class="item-icon">
|
|
|
|
+ <image
|
|
|
|
+ :src="
|
|
|
|
+ 'https://static.caimei365.com/app/img/pay/icon_' +
|
|
|
|
+ defaultCards.bankCode +
|
|
|
|
+ '_@2x.png'
|
|
|
|
+ "
|
|
|
|
+ ></image>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="item-texts"
|
|
|
|
+ >{{ defaultCards.bankName }}(
|
|
|
|
+ {{ defaultCards.quickPayBankNumber | bankNumeberFilter }} )</view
|
|
|
|
+ >
|
|
|
|
+ <view class="item-checked">
|
|
|
|
+ <text
|
|
|
|
+ class="iconfont"
|
|
|
|
+ :class="[tabCurrentIndex === 3 ? 'icon-yixuanze3' : 'icon-weixuanze']"
|
|
|
|
+ ></text>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- <view class="item-texts"
|
|
|
|
- >{{ defaultCards.bankName }}(
|
|
|
|
- {{ defaultCards.quickPayBankNumber | bankNumeberFilter }} )</view
|
|
|
|
- >
|
|
|
|
- <view class="item-checked">
|
|
|
|
- <text
|
|
|
|
- class="iconfont"
|
|
|
|
- :class="[tabCurrentIndex === 3 ? 'icon-yixuanze3' : 'icon-weixuanze']"
|
|
|
|
- ></text>
|
|
|
|
|
|
+ <view class="pay-item-cell add" @click="hanldeShowPopup(1)">
|
|
|
|
+ <view class="item-texts add"><text>查看全部银行卡 / 添加新卡支付</text></view>
|
|
|
|
+ <view class="item-checked"> <text class="iconfont icon-xiayibu"></text> </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="pay-item-cell add" @click="hanldeShowPopup(1)">
|
|
|
|
- <view class="item-texts add"><text>查看全部银行卡 / 添加新卡支付</text></view>
|
|
|
|
- <view class="item-checked"> <text class="iconfont icon-xiayibu"></text> </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="pay-item" @click="handleAddCard(2)" v-else>
|
|
|
|
- <view class="pay-item-cell">
|
|
|
|
- <view class="item-texts add"><text>添加银行卡快捷付款</text></view>
|
|
|
|
- <view class="item-checked"> <text class="iconfont icon-xiayibu"></text> </view>
|
|
|
|
|
|
+ <view class="pay-item" @click="handleAddCard(2)" v-else>
|
|
|
|
+ <view class="pay-item-cell">
|
|
|
|
+ <view class="item-texts add"><text>添加银行卡快捷付款</text></view>
|
|
|
|
+ <view class="item-checked"> <text class="iconfont icon-xiayibu"></text> </view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
|
|
+ </template>
|
|
<view class="pay-item" @click="tabClick(0)" v-if="showWeChatPayMode">
|
|
<view class="pay-item" @click="tabClick(0)" v-if="showWeChatPayMode">
|
|
<view class="pay-item-cell">
|
|
<view class="pay-item-cell">
|
|
<view class="item-icon"><text class="iconfont icon-weixinzhifu"></text></view>
|
|
<view class="item-icon"><text class="iconfont icon-weixinzhifu"></text></view>
|
|
@@ -133,7 +135,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="pay-button" :style="{ paddingBottom: isIphoneX ? '68rpx' : '24rpx' }">
|
|
<view class="pay-button" :style="{ paddingBottom: isIphoneX ? '68rpx' : '24rpx' }">
|
|
- <view class="btn" @click.stop="buttonSubMit" :style="{ background: btnColor }">{{
|
|
|
|
|
|
+ <view class="btn" @click.stop="buttonSubMit" :class="isSubLoding ? 'disabled' : ''" :style="{ background: btnColor }">{{
|
|
buttonText
|
|
buttonText
|
|
}}</view>
|
|
}}</view>
|
|
</view>
|
|
</view>
|
|
@@ -248,6 +250,7 @@ export default {
|
|
payAmount: 0,
|
|
payAmount: 0,
|
|
shopOrderId: 0
|
|
shopOrderId: 0
|
|
},
|
|
},
|
|
|
|
+ isSubLoding:false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
@@ -315,7 +318,6 @@ export default {
|
|
this.cardsList = res.data
|
|
this.cardsList = res.data
|
|
this.defaultCards = this.cardsList[0]
|
|
this.defaultCards = this.cardsList[0]
|
|
this.quickParams.userId = user.userId
|
|
this.quickParams.userId = user.userId
|
|
- this.quickParams.payAmount = this.payAmount
|
|
|
|
this.quickParams.shopOrderId = Number(this.shopOrderId)
|
|
this.quickParams.shopOrderId = Number(this.shopOrderId)
|
|
this.quickParams.quickPayBankNumber = this.defaultCards.quickPayBankNumber
|
|
this.quickParams.quickPayBankNumber = this.defaultCards.quickPayBankNumber
|
|
this.quickParams.quickPayMobile = this.defaultCards.quickPayMobile
|
|
this.quickParams.quickPayMobile = this.defaultCards.quickPayMobile
|
|
@@ -341,6 +343,7 @@ export default {
|
|
this.$api.navigateTo(`/pages/user/pay/card-comfirm?type=${index}&data=${JSON.stringify(data)}`)
|
|
this.$api.navigateTo(`/pages/user/pay/card-comfirm?type=${index}&data=${JSON.stringify(data)}`)
|
|
},
|
|
},
|
|
buttonSubMit() {
|
|
buttonSubMit() {
|
|
|
|
+ if(this.isSubLoding){ return }
|
|
switch (this.tabCurrentIndex) {
|
|
switch (this.tabCurrentIndex) {
|
|
case 0: // 微信支付
|
|
case 0: // 微信支付
|
|
this.handleUmTrackEvent('Um_Event_ConfirmWechatPay', '微信支付')
|
|
this.handleUmTrackEvent('Um_Event_ConfirmWechatPay', '微信支付')
|
|
@@ -361,6 +364,7 @@ export default {
|
|
this.orderPayQuickPay()
|
|
this.orderPayQuickPay()
|
|
break
|
|
break
|
|
}
|
|
}
|
|
|
|
+ this.isSubLoding = true
|
|
},
|
|
},
|
|
handleUmTrackEvent(UmName, UmPageName) {
|
|
handleUmTrackEvent(UmName, UmPageName) {
|
|
// 友盟埋点收集
|
|
// 友盟埋点收集
|
|
@@ -376,7 +380,8 @@ export default {
|
|
async orderPayQuickPay() {
|
|
async orderPayQuickPay() {
|
|
//快捷支付
|
|
//快捷支付
|
|
try {
|
|
try {
|
|
-
|
|
|
|
|
|
+ this.quickParams.payAmount = this.payAmount
|
|
|
|
+ console.log('payAmount',this.quickParams.payAmount)
|
|
const res = await this.PayService.orderPayQuickPay(this.quickParams)
|
|
const res = await this.PayService.orderPayQuickPay(this.quickParams)
|
|
const data = {
|
|
const data = {
|
|
params: this.quickParams,
|
|
params: this.quickParams,
|
|
@@ -384,11 +389,13 @@ export default {
|
|
orderId: this.orderId,
|
|
orderId: this.orderId,
|
|
payAmount: this.payAmount
|
|
payAmount: this.payAmount
|
|
}
|
|
}
|
|
|
|
+ this.isSubLoding = false
|
|
this.$api.navigateTo(
|
|
this.$api.navigateTo(
|
|
`/pages/user/pay/card-comfirm-sub?type=3&data=${JSON.stringify(data)}`
|
|
`/pages/user/pay/card-comfirm-sub?type=3&data=${JSON.stringify(data)}`
|
|
)
|
|
)
|
|
} catch (error) {
|
|
} catch (error) {
|
|
this.$util.msg(error.msg, 2000)
|
|
this.$util.msg(error.msg, 2000)
|
|
|
|
+ this.isSubLoding = false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async handlePayOrderPayLink() {
|
|
async handlePayOrderPayLink() {
|
|
@@ -402,7 +409,7 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (this.payType == '1') {
|
|
if (this.payType == '1') {
|
|
- if (this.payAmount != this.payableAmount) {
|
|
|
|
|
|
+ if (this.payAmount != this.obligation) {
|
|
this.contentModalText = '企业网银支付每次收取的手续费较高,建议一次性全额付款。'
|
|
this.contentModalText = '企业网银支付每次收取的手续费较高,建议一次性全额付款。'
|
|
this.modal = true
|
|
this.modal = true
|
|
return
|
|
return
|
|
@@ -416,10 +423,12 @@ export default {
|
|
}
|
|
}
|
|
const res = await this.PayService.PayOrderPayLink(linkParams)
|
|
const res = await this.PayService.PayOrderPayLink(linkParams)
|
|
this.payHttpUrl = res.data
|
|
this.payHttpUrl = res.data
|
|
|
|
+ this.isSubLoding = false
|
|
this.isShowTip = true
|
|
this.isShowTip = true
|
|
console.log('isShowTip',this.isShowTip)
|
|
console.log('isShowTip',this.isShowTip)
|
|
} catch (error) {
|
|
} catch (error) {
|
|
console.log(error)
|
|
console.log(error)
|
|
|
|
+ this.isSubLoding = false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async MiniWxPayFor() {
|
|
async MiniWxPayFor() {
|
|
@@ -445,9 +454,11 @@ export default {
|
|
shopOrderId: this.shopOrderId
|
|
shopOrderId: this.shopOrderId
|
|
}
|
|
}
|
|
this.weChatMiniOrderWxPay(params)
|
|
this.weChatMiniOrderWxPay(params)
|
|
|
|
+ this.isSubLoding = false
|
|
},
|
|
},
|
|
handleClick() {
|
|
handleClick() {
|
|
this.modal = false
|
|
this.modal = false
|
|
|
|
+ this.isSubLoding = false
|
|
},
|
|
},
|
|
confirmEvent(value) {
|
|
confirmEvent(value) {
|
|
//点击自定义键盘完成的回调函数
|
|
//点击自定义键盘完成的回调函数
|
|
@@ -853,6 +864,9 @@ page {
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
text-align: center;
|
|
background: $btn-confirm;
|
|
background: $btn-confirm;
|
|
|
|
+ &.disabled{
|
|
|
|
+ background: #e1e1e1 !important;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|