Commit c83e98f3 authored by 李智书's avatar 李智书

1.渤海银行充值提现;

parent 9be89681
...@@ -11,15 +11,18 @@ ...@@ -11,15 +11,18 @@
<view class="cardNum"> <view class="cardNum">
<view class="cardNumleft"><span>账户:</span> **** **** **** <view class="cardNumleft"><span>账户:</span> **** **** ****
{{bankInfo_.accountNo.slice(bankInfo_.accountNo.length-4)}} {{bankInfo_.accountNo.slice(bankInfo_.accountNo.length-4)}}
<span>({{accountEnum[bankInfo_.accountType+'']}}III类户)</span> <span>({{accountEnum[bankInfo_.accountType+'']}})</span>
</view> </view>
<view class="cardNumright" id="cardNumright" @click="CopyCardNumber">复制</view> <view class="cardNumright" id="cardNumright" @click="CopyCardNumber">复制</view>
</view> </view>
<view class="HidenText"> <view class="HidenText">
<view class="userName" style="text-overflow: ellipsis;overflow: hidden; white-space: nowrap;">姓名:<span>{{PersonalInfo.name}}</span></view> <view class="userName" style="text-overflow: ellipsis;overflow: hidden; white-space: nowrap;">
<view class="StudentCls" style="text-overflow: ellipsis;overflow: hidden; white-space: nowrap;" v-if="PersonalInfo.usertype=='1'"> 姓名:<span>{{PersonalInfo.name}}</span></view>
<view class="StudentCls" style="text-overflow: ellipsis;overflow: hidden; white-space: nowrap;"
v-if="PersonalInfo.usertype=='1'">
班级:{{PersonalInfo.gradename}}({{PersonalInfo.classname}})</view> 班级:{{PersonalInfo.gradename}}({{PersonalInfo.classname}})</view>
<view class='TeacherCls' style="text-overflow: ellipsis;overflow: hidden; white-space: nowrap;" v-else>教职工</view> <view class='TeacherCls' style="text-overflow: ellipsis;overflow: hidden; white-space: nowrap;"
v-else>教职工</view>
</view> </view>
<view class="Balance"> <view class="Balance">
<view class="cardBalanceTx">余额:¥<span>{{cardBalanceTx}}</span></view> <view class="cardBalanceTx">余额:¥<span>{{cardBalanceTx}}</span></view>
...@@ -117,7 +120,7 @@ ...@@ -117,7 +120,7 @@
<view style="width: 520rpx;height: 1rpx;background: #EEEEEE;"></view> <view style="width: 520rpx;height: 1rpx;background: #EEEEEE;"></view>
<van-field v-model="openCardPhonSms" label-class="openCardPhonSmsTxt" maxlength="6" label="验证码:" <van-field v-model="openCardPhonSms" label-class="openCardPhonSmsTxt" maxlength="6" label="验证码:"
placeholder="输入短信验证码" center clearable :border="false"> placeholder="输入短信验证码" center clearable :border="false">
<van-button slot="button" size="small" type="primary" @click="SendSms" > <van-button slot="button" size="small" type="primary" @click="SendSms">
<div style="font-size:28rpx;">{{CodeMsg}}</div> <div style="font-size:28rpx;">{{CodeMsg}}</div>
</van-button> </van-button>
</van-field> </van-field>
...@@ -259,9 +262,10 @@ ...@@ -259,9 +262,10 @@
accountType: '2', accountType: '2',
// 银行账户类型名称枚举 // 银行账户类型名称枚举
accountEnum: { accountEnum: {
'1': "平安银行", '1': "平安银行III类户",
'2': "工商银行", '2': "工商银行III类户",
'3': "交通银行", '3': "交通银行III类户",
'4': "渤海银行II类户",
}, },
/** /**
* 20211129新增 * 20211129新增
...@@ -423,8 +427,25 @@ ...@@ -423,8 +427,25 @@
loadingType: 'spinner', loadingType: 'spinner',
duration: 0 duration: 0
}); });
// 20211230
let exchangeUrl = gHost;
switch (bankInfo.accountType) {
case 3:
exchangeUrl = exchangeUrl + '/bank-wechat/bocom/exchange/rechargeSms';
break;
case 4:
exchangeUrl = exchangeUrl + '/bank-wechat/bohai/comprehensive/otpSms';
break;
default:
Dialog({
title: '系统提示',
message: '银行账号类型错误!'
});
throw ("银行账号类型错误!")
break;
}
$.ajax({ $.ajax({
url: gHost + '/bank-wechat/bocom/exchange/rechargeSms', url: exchangeUrl,
type: "POST", type: "POST",
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
data: { data: {
...@@ -433,6 +454,9 @@ ...@@ -433,6 +454,9 @@
userId: userID, //用户id userId: userID, //用户id
sessionid: sessionID, sessionid: sessionID,
wechattype: 1, wechattype: 1,
// 20211230渤海
mobilePhone: this.openCardPhon,
msg: "充值"
}, },
headers: { headers: {
'sessionid': sessionID, 'sessionid': sessionID,
...@@ -507,8 +531,25 @@ ...@@ -507,8 +531,25 @@
mask: true, mask: true,
title: "处理中......" title: "处理中......"
}) })
// 20211230
let exchangeUrl = gHost;
switch (bankInfo.accountType) {
case 3:
exchangeUrl = exchangeUrl + '/bank-wechat/bocom/exchange/recharge';
break;
case 4:
exchangeUrl = exchangeUrl + '/bank-wechat/bohai/exchange/recharge';
break;
default:
Dialog({
title: '系统提示',
message: '银行账号类型错误!'
});
throw ("银行账号类型错误!")
break;
}
$.ajax({ $.ajax({
url: gHost + '/bank-wechat/bocom/exchange/recharge', url: exchangeUrl,
type: "POST", type: "POST",
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
data: { data: {
...@@ -519,6 +560,9 @@ ...@@ -519,6 +560,9 @@
userId: userID, //用户id userId: userID, //用户id
sessionid: sessionID, sessionid: sessionID,
wechattype: 1, wechattype: 1,
// 21211230渤海银行
transAmount: (amount * 1).toFixed(2),
verifyNo: this.openCardPhonSms
}, },
headers: { headers: {
'sessionid': sessionID, 'sessionid': sessionID,
...@@ -738,9 +782,26 @@ ...@@ -738,9 +782,26 @@
//获取银行余额 //获取银行余额
queryBankInfo() { queryBankInfo() {
let this_ = this; let this_ = this;
let queryBankInfoUrl = gHost;
// 20211230
switch (bankInfo.accountType) {
case 3:
queryBankInfoUrl = queryBankInfoUrl + '/bank-wechat/bocom/balance/getBankBlanceAndSyncLocal';
break;
case 4:
queryBankInfoUrl = queryBankInfoUrl + '/bank-wechat/bohai/exchange/balanceQuery';
break;
default:
Dialog({
title: '系统提示',
message: '银行账号类型错误!'
});
throw ("银行账号类型错误!")
break;
}
// let loading = weui.loading('请稍后'); // let loading = weui.loading('请稍后');
$.ajax({ $.ajax({
url: gHost + '/bank-wechat/bocom/balance/getBankBlanceAndSyncLocal', url: queryBankInfoUrl,
type: "POST", type: "POST",
timeout: 8000, timeout: 8000,
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
......
<template> <template>
<view class="container"> <view class="container">
<view class="ReflectBox"> <view class="ReflectBox" v-if="bankInfo_.accountType==3">
<view class="left_">提现金额 </view> <view class="left_">提现金额 </view>
<view class="right_">每日可提现一次</view> <view class="right_">每日可提现一次</view>
</view> </view>
<!-- 20211230渤海银行 -->
<view class="BankBohai" v-if="bankInfo_.accountType==4">
<view class="BankBHL">提现至</view>
<view class="BankBHR">
<view class="">{{bankInfo_.accountName}}
({{'**** '+bankInfo_.accountNo.slice(bankInfo_.accountNo.length-4)}})</view>
<view class="">预计2小时内到账</view>
</view>
</view>
<view class="OtherMoney" v-if="true"> <view class="OtherMoney" v-if="true">
<span></span> <span></span>
<input class="TxClsTx" v-model="inputOtherM" @input="inputControl" @blur="ReturnToTop" <input class="TxClsTx" v-model="inputOtherM" @input="inputControl" @blur="ReturnToTop"
:placeholder="placeholder" placeholder-class="placeholderinputOtherM" type="text" maxlength="6" /> :placeholder="placeholder" placeholder-class="placeholderinputOtherM" type="text" maxlength="6" />
<span class="ALL" @click="TxAllFun" v-if="bankInfo_.accountType==3">全部</span>
</view>
<!-- 20211230渤海银行 -->
<view class="BankBHBalance">
<span>当前卡包余额{{cardBalanceTx}}元,</span>
<span class="ALL" @click="TxAllFun">全部</span> <span class="ALL" @click="TxAllFun">全部</span>
</view> </view>
<!-- 提现账户 --> <!-- 提现账户 -->
<view class="payType" @click="queryBindCardList"> <view class="payType" @click="queryBindCardList" v-if="bankInfo_.accountType==3">
<view>提现账户</view> <view>提现账户</view>
<view>{{bankInfo_.accountName}}({{bankInfo_.accountNo.slice(bankInfo_.accountNo.length-4)}}) <span <view>{{bankInfo_.accountName}}({{bankInfo_.accountNo.slice(bankInfo_.accountNo.length-4)}}) <span
class="arrow"></span></view> class="arrow"></span></view>
</view> </view>
<view class="OtherMoney" v-if="false" style="color: #BFBFBF;font-weight: 500;"> <view class="OtherMoney" v-if="false" style="color: #BFBFBF;font-weight: 500;">
每日仅可提现一次,请明日再来。 小提示:每天仅可提现一次
</view> </view>
<view class="bottomdiv"> <view class="bottomdiv">
<view v-if="bankInfo_.accountType==4"
style="font-weight: 500;text-align: center;height: 27px;line-height: 27px;">
小提示:每天仅可提现一次
</view>
<view class="DepositID" @click="toDeposit(0)" v-bind:style="inputOtherM>0?'':'opacity: 0.5 !important;'"> <view class="DepositID" @click="toDeposit(0)" v-bind:style="inputOtherM>0?'':'opacity: 0.5 !important;'">
<span>提现</span> <span>提现</span>
</view> </view>
...@@ -102,7 +120,7 @@ ...@@ -102,7 +120,7 @@
inputOtherM: '', inputOtherM: '',
ImgUrl: this.$ImgUrl, ImgUrl: this.$ImgUrl,
ReflectMoney: 3, ReflectMoney: 3,
cardBalanceTx: '', cardBalanceTx: '0',
placeholder: "可提现金额0.00元", placeholder: "可提现金额0.00元",
bankInfo_: { bankInfo_: {
accountNo: '**** **** **** 1234' accountNo: '**** **** **** 1234'
...@@ -154,8 +172,25 @@ ...@@ -154,8 +172,25 @@
loadingType: 'spinner', loadingType: 'spinner',
duration: 0 duration: 0
}); });
// 20211230
let withdrawSmsUrl = gHost;
switch (bankInfo.accountType) {
case 3:
withdrawSmsUrl = withdrawSmsUrl + '/bank-wechat/bocom/exchange/withdrawSms';
break;
case 4:
withdrawSmsUrl = withdrawSmsUrl + '/bank-wechat/bohai/comprehensive/otpSms';
break;
default:
Dialog({
title: '系统提示',
message: '银行账号类型错误!'
});
throw ("银行账号类型错误!")
break;
}
$.ajax({ $.ajax({
url: gHost + '/bank-wechat/bocom/exchange/withdrawSms', url: withdrawSmsUrl,
type: "POST", type: "POST",
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
data: { data: {
...@@ -164,6 +199,9 @@ ...@@ -164,6 +199,9 @@
userId: userID, //用户id userId: userID, //用户id
sessionid: sessionID, sessionid: sessionID,
wechattype: 1, wechattype: 1,
// 21211230渤海银行
mobilePhone: this.openCardPhon,
msg: "提现"
}, },
headers: { headers: {
'sessionid': sessionID, 'sessionid': sessionID,
...@@ -266,9 +304,40 @@ ...@@ -266,9 +304,40 @@
// 提现 // 提现
async ExchangeWithdraw() { async ExchangeWithdraw() {
let this_ = this; let this_ = this;
if (!this.RechargeSmsorderNoInfo.orderNo) {
Dialog({
title: '系统提示',
message: '请获取验证码!'
});
return
}
if (!this.openCardPhonSms) {
Dialog({
title: '系统提示',
message: '请收入验证码!'
});
return
}
let loading = weui.loading('请稍后'); let loading = weui.loading('请稍后');
// 20211230
let withdrawUrl = gHost;
switch (bankInfo.accountType) {
case 3:
withdrawUrl = withdrawUrl + '/bank-wechat/bocom/exchange/withdraw';
break;
case 4:
withdrawUrl = withdrawUrl + '/bank-wechat/bohai/exchange/withdraw';
break;
default:
Dialog({
title: '系统提示',
message: '银行账号类型错误!'
});
throw ("银行账号类型错误!")
break;
}
$.ajax({ $.ajax({
url: gHost + '/bank-wechat/bocom/exchange/withdraw', url: withdrawUrl,
type: "POST", type: "POST",
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
data: { data: {
...@@ -280,6 +349,9 @@ ...@@ -280,6 +349,9 @@
userId: userID, userId: userID,
sessionid: sessionID, sessionid: sessionID,
wechattype: 1, wechattype: 1,
// 21211230渤海银行
transAmount: (this.inputOtherM * 1).toFixed(2),
verifyNo: this_.openCardPhonSms,
}, },
headers: { headers: {
'sessionid': sessionID, 'sessionid': sessionID,
...@@ -466,8 +538,25 @@ ...@@ -466,8 +538,25 @@
queryBankInfo() { queryBankInfo() {
let this_ = this; let this_ = this;
let loading = weui.loading('请稍后'); let loading = weui.loading('请稍后');
let queryBankInfoUrl = gHost;
// 20211230
switch (bankInfo.accountType) {
case 3:
queryBankInfoUrl = queryBankInfoUrl + '/bank-wechat/bocom/balance/getBankBlanceAndSyncLocal';
break;
case 4:
queryBankInfoUrl = queryBankInfoUrl + '/bank-wechat/bohai/exchange/balanceQuery';
break;
default:
Dialog({
title: '系统提示',
message: '银行账号类型错误!'
});
throw ("银行账号类型错误!")
break;
}
$.ajax({ $.ajax({
url: gHost + '/bank-wechat/bocom/balance/getBankBlanceAndSyncLocal', url: queryBankInfoUrl,
type: "POST", type: "POST",
timeout: 8000, timeout: 8000,
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
...@@ -590,6 +679,38 @@ ...@@ -590,6 +679,38 @@
background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%); background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
} }
.BankBohai {
display: flex;
justify-content: space-between;
width: 680rpx;
margin: 0 auto;
padding-top: 30rpx;
.BankBHR view:nth-child(2) {
font-size: 30rpx;
font-family: PingFang SC;
font-weight: 500;
color: #888888;
}
}
.BankBHBalance {
display: flex;
width: 680rpx;
margin: 0 auto;
padding-top: 30rpx;
align-items: center;
.ALL {
font-size: 14px;
font-family: PingFang SC;
font-weight: bold;
color: #129A5E;
margin-left: 20rpx;
}
}
.OtherMoney { .OtherMoney {
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
...@@ -639,6 +760,7 @@ ...@@ -639,6 +760,7 @@
height: 100rpx; height: 100rpx;
line-height: 100rpx; line-height: 100rpx;
.left_ { .left_ {
font-size: 36rpx; font-size: 36rpx;
font-family: PingFang SC; font-family: PingFang SC;
......
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
</view> </view>
<view class="average-daily-consumption-chart"> <view class="average-daily-consumption-chart">
<view class="average-daily-consumption-chart-item-box"> <view class="average-daily-consumption-chart-item-box">
<view v-for="(item,index) in dailyConsumptionData" <view v-for="(item,index) in dailyConsumptionData" :key="index"
class="average-daily-consumption-chart-item"> class="average-daily-consumption-chart-item">
<view class="average-daily-consumption-chart-item-data" @click="click"> <view class="average-daily-consumption-chart-item-data" @click="click">
{{item.value}} {{item.value}}
......
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