|
@@ -76,6 +76,40 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <!--大额转账弹窗 -->
|
|
|
+ <tui-modal :show="modal" :padding="'30rpx 30rpx'" @cancel="hideMobel(0)" :custom="true" fadeIn >
|
|
|
+ <view class="tui-modal-custom">
|
|
|
+ <view class="tui-prompt-title">大额银联转账信息</view>
|
|
|
+ <view class="tui-prompt-text">
|
|
|
+ <view class="tui-prompt-tips">请使用银行手机app或者网银输入以下信息进行转账。每次发起支付请求,收款账号都会变化,请使用最新的收款账号进行转账。</view>
|
|
|
+ <view class="tui-prompt-item">
|
|
|
+ <text class="text">户名:</text>
|
|
|
+ {{ bigPayInfo.receiveName }}
|
|
|
+ </view>
|
|
|
+ <view class="tui-prompt-item">
|
|
|
+ <text class="text">收款账号:</text>
|
|
|
+ {{ bigPayInfo.receiveAccountNo }}
|
|
|
+ <view class="clipboard" @click.stop="copyClipboard(bigPayInfo)">复制</view>
|
|
|
+ </view>
|
|
|
+ <view class="tui-prompt-item">
|
|
|
+ <text class="text">银行:</text>
|
|
|
+ {{ bigPayInfo.accountName }}
|
|
|
+ </view>
|
|
|
+ <view class="tui-prompt-item">
|
|
|
+ <text class="text">收款方开户地:</text>
|
|
|
+ {{ bigPayInfo.areaInfo }}
|
|
|
+ </view>
|
|
|
+ <view class="tui-prompt-item">
|
|
|
+ <text class="text">收款网点:</text>
|
|
|
+ {{ bigPayInfo.accountName }}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="tui-prompt-flex">
|
|
|
+ <view class="btn btn-confirm" @click="handleClick">已完成转账,请点击</view>
|
|
|
+ <view class="btn btn-cancel" @click="hideMobel">关闭</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </tui-modal>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -113,7 +147,10 @@
|
|
|
btnColor:'#09BB07',
|
|
|
discernReceipt:[],
|
|
|
showDigitKeyboard:false,
|
|
|
- payHttpUrl:''
|
|
|
+ payHttpUrl:'',
|
|
|
+ bigPayInfo:{},// 大额网银转账
|
|
|
+ mbOrderId:0, // 支付记录订单Id
|
|
|
+ modal:false,
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
@@ -206,13 +243,29 @@
|
|
|
return
|
|
|
}
|
|
|
if(this.payAmount <=10){
|
|
|
- this.$util.msg('网银支付的金额必须大于¥10.00',2000)
|
|
|
+ this.$util.msg('网银支付的金额必须大于¥12.00',2000)
|
|
|
return
|
|
|
}
|
|
|
- this.PayService.PayOrderPayLink({unpaidAmount:this.payAmount,orderId:this.orderId,payType:this.payType}).then(response =>{
|
|
|
-
|
|
|
+ this.PayService.PayOrderTransferUnion({payAmount:this.accMul(this.payAmount,100),orderId:this.orderId}).then(response =>{
|
|
|
+ this.bigPayInfo = JSON.parse(response.data.data.payInfo)
|
|
|
+ this.mbOrderId = response.data.data.mbOrderId;
|
|
|
+ this.modal = true
|
|
|
+ console.log('PayInfo',this.bigPayInfo)
|
|
|
})
|
|
|
},
|
|
|
+ handleClick(){// 查询是否支付成功
|
|
|
+ this.PayService.PayOrderFindOrderStatus({mbOrderId:this.mbOrderId}).then(response =>{
|
|
|
+ let data = {
|
|
|
+ payAmount:this.payAmount,
|
|
|
+ orderId:this.orderId,
|
|
|
+ type:response.data.data === '1' ? 'success' : 'error'
|
|
|
+ }
|
|
|
+ this.$api.navigateTo(`/pages/user/order/order-success?data=${JSON.stringify({ data: data })}`)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ hideMobel(){
|
|
|
+ this.modal = false
|
|
|
+ },
|
|
|
BuildCatenate(){// 企业网银 个人网银
|
|
|
if(this.payAmount == 0){
|
|
|
this.$util.msg('请输入本次支付的金额',2000)
|
|
@@ -353,7 +406,19 @@
|
|
|
toFixedFn(text){//处理小数点后两位数
|
|
|
return Number(text).toFixed(2)
|
|
|
},
|
|
|
+ copyClipboard(data){
|
|
|
+ //复制账号
|
|
|
+ let thoruiData = data.receiveName + '' + data.receiveAccountNo
|
|
|
+ thorui.getClipboardData(thoruiData, (res) => {
|
|
|
+ if (res) {
|
|
|
+ this.$util.msg('复制成功',2000,true,'success')
|
|
|
+ } else {
|
|
|
+ this.$util.msg('复制失败',2000,true,'none')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
clipboard(data) {//复制链接
|
|
|
+ console.log('data',data)
|
|
|
thorui.getClipboardData(data, (res) => {
|
|
|
if (res) {
|
|
|
this.isShowTip = false
|
|
@@ -672,4 +737,72 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ .tui-prompt-title{
|
|
|
+ width: 100%;
|
|
|
+ height: 44rpx;
|
|
|
+ line-height: 44rpx;
|
|
|
+ padding: 20rpx 0;
|
|
|
+ text-align: center;
|
|
|
+ color: #333333;
|
|
|
+ border-bottom: 1px solid #E2E7EF;
|
|
|
+ }
|
|
|
+ .tui-prompt-text{
|
|
|
+ padding-top: 20rpx;
|
|
|
+ .tui-prompt-tips{
|
|
|
+ width: 100%;
|
|
|
+ line-height: 36rpx;
|
|
|
+ font-size: $font-size-22;
|
|
|
+ color: #E15616;
|
|
|
+ text-align: justify;
|
|
|
+ margin-bottom: 24rpx;
|
|
|
+ }
|
|
|
+ .tui-prompt-item{
|
|
|
+ width: 100%;
|
|
|
+ line-height: 60rpx;
|
|
|
+ color: #333333;
|
|
|
+ font-size: $font-size-26;
|
|
|
+ .text{
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ .clipboard{
|
|
|
+ height: 38rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0 24rpx;
|
|
|
+ background:#FFE6DC;
|
|
|
+ text-align: center;
|
|
|
+ font-size: $font-size-22;
|
|
|
+ color: #E15616;
|
|
|
+ border-radius: 18rpx;
|
|
|
+ line-height: 36rpx;
|
|
|
+ display: inline-block;
|
|
|
+ margin-left: 20rpx;
|
|
|
+ border: 1px solid #E15616;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .tui-prompt-flex{
|
|
|
+ width: 100%;
|
|
|
+ height: auto;
|
|
|
+ margin-top: 20rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0 35rpx;
|
|
|
+ .btn{
|
|
|
+ width: 100%;
|
|
|
+ line-height: 84rpx;
|
|
|
+ font-size: $font-size-26;
|
|
|
+ text-align: center;
|
|
|
+ color: #FFFFFF;
|
|
|
+ border-radius: 44rpx;
|
|
|
+ margin: 20rpx 0;
|
|
|
+ &.btn-cancel{
|
|
|
+ background: #FFFFFF;
|
|
|
+ color: #333333;
|
|
|
+ border: 1px solid #979797;
|
|
|
+ }
|
|
|
+ &.btn-confirm{
|
|
|
+ background: $btn-confirm;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
</style>
|