Commit 6f054bb6 authored by 李智书's avatar 李智书

1.提交更新;

parent c8a6d5a1
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
<!-- 卡号显示 --> <!-- 卡号显示 -->
<view class="cardNum"> <view class="cardNum">
<view class="cardNumleft"><span>账户:</span> **** **** **** <view class="cardNumleft"><span>账户:</span> **** **** ****
{{bankInfo_.accountNo.slice(bankInfo_.accountNo.length-4)}} <span>(工商III类户)</span> {{bankInfo_.accountNo.slice(bankInfo_.accountNo.length-4)}}
<span>({{accountEnum[bankInfo_.accountType+'']}}III类户)</span>
</view> </view>
<view class="cardNumright" id="cardNumright" @click="CopyCardNumber">复制</view> <view class="cardNumright" id="cardNumright" @click="CopyCardNumber">复制</view>
</view> </view>
...@@ -43,7 +44,6 @@ ...@@ -43,7 +44,6 @@
<view class="depotMoney" @click="depotMoney(item.value,index)" <view class="depotMoney" @click="depotMoney(item.value,index)"
v-bind:class="(MoneyIndex==index)?'choiceClass':''" :data-money="item.value||0" v-bind:class="(MoneyIndex==index)?'choiceClass':''" :data-money="item.value||0"
v-for="(item,index) in MoneyList" :key="index"> v-for="(item,index) in MoneyList" :key="index">
<span class="value"> <span class="value">
{{item.value}} {{item.value}}
</span> </span>
...@@ -110,28 +110,22 @@ ...@@ -110,28 +110,22 @@
<image src="../../../static/img/close.png" mode="aspectFit"></image> <image src="../../../static/img/close.png" mode="aspectFit"></image>
</view> </view>
<view class="RechargeInfo1"> <view class="RechargeInfo1">
充值生活费 验证校园卡开卡手机号
</view> </view>
<van-field label-class="openCardPhonTxt" label="手机号:" maxlength="11" v-model="openCardPhon"
placeholder="校园卡开卡手机号" center :border="false" />
<view style="width: 520rpx;height: 1rpx;background: #EEEEEE;"></view> <view style="width: 520rpx;height: 1rpx;background: #EEEEEE;"></view>
<view class="ContenInfo"> <van-field v-model="openCardPhonSms" label-class="openCardPhonSmsTxt" maxlength="6" label="验证码:"
<view class="" v-if="isOtherMoney"> placeholder="输入短信验证码" center clearable :border="false">
充值金额:{{inputOtherM}} <van-button slot="button" size="small" type="primary" @click="SendSms">
</view> {{CodeMsg}}
<view class="" v-else> </van-button>
充值金额:{{Money}} </van-field>
</view>
<view class="">
付款账户:{{bankInfo_.bindCardName}}({{bankInfo_.bindCardNo && bankInfo_.bindCardNo.slice(bankInfo_.accountNo.length-4)}})
</view>
</view>
<view style="width: 520rpx;height: 1rpx;background: #EEEEEE;"></view> <view style="width: 520rpx;height: 1rpx;background: #EEEEEE;"></view>
<!-- 取消 确认充值按钮 --> <!-- 取消 确认充值按钮 -->
<view class="BtngGoup"> <view class="BtngGoup">
<view class="" @click="close()">
取消
</view>
<view class="" @click="ExchangeRecharge"> <view class="" @click="ExchangeRecharge">
确认充值 充值
</view> </view>
</view> </view>
</view> </view>
...@@ -179,7 +173,6 @@ ...@@ -179,7 +173,6 @@
var businessNo = '', var businessNo = '',
otpOrderNo = '', otpOrderNo = '',
mobileNo = ''; mobileNo = '';
var msCount = 60; //定时器
var MyTimer = null; var MyTimer = null;
var fromType = 0; //0转账 1提现 var fromType = 0; //0转账 1提现
var opeType = 0; //0充值 1提现 手机号验证 var opeType = 0; //0充值 1提现 手机号验证
...@@ -244,7 +237,7 @@ ...@@ -244,7 +237,7 @@
MoneyList: Array(5).fill(1).map((v, index) => { MoneyList: Array(5).fill(1).map((v, index) => {
return { return {
lable: index == 4 ? '其他金额' : '', lable: index == 4 ? '其他金额' : '',
value: index == 4 ? '' : 50 * (index + 1) +50, value: index == 4 ? '' : 50 * (index + 1) + 50,
tips: index == 1 ? "推荐充值" : null tips: index == 1 ? "推荐充值" : null
} }
}), }),
...@@ -252,7 +245,23 @@ ...@@ -252,7 +245,23 @@
tempFiles1: '../../static/img/idCardBg1.png', //上传身份证临时选择文件 tempFiles1: '../../static/img/idCardBg1.png', //上传身份证临时选择文件
tempFiles2: '../../static/img/idCardBg0.png', tempFiles2: '../../static/img/idCardBg0.png',
//绑定的一类卡列表 //绑定的一类卡列表
bindcardList: [] bindcardList: [],
// 20211126 银行账户类型
accountType: '2',
// 银行账户类型名称枚举
accountEnum: {
'1': "平安银行",
'2': "工商银行",
'3': "交通银行",
},
/**
* 20211129新增
*/
// 充值手机号码
openCardPhon: "",
openCardPhonSms: "",
msCount: 60, //定时器
RechargeSmsorderNoInfo: {} //第三方合作交易标识
} }
}, },
onLoad: function(options) { onLoad: function(options) {
...@@ -271,55 +280,13 @@ ...@@ -271,55 +280,13 @@
}, },
methods: { methods: {
async ChangeBankPay(){ // 更换银行卡
uni.showLoading({ mask:true }); async ChangeBankPay() {
let status = await this.accountCloseacceptStatusQuery(); uni.showLoading({
uni.hideLoading(); mask: true,
if( status !== 0 ) return false; title: "请稍后...."
this.BackToMini('AssignAddCard')
},
accountCloseacceptStatusQuery(){
return new Promise(( resolve,reject) => {
$.ajax({ //查询是否提交销户
url:gHost + "/bank-wechat/icbc/account/manager/accountCloseacceptStatusQuery",
type:'post',
data:{
schoolId:this.PersonalInfo.schoolid,
userId:this.PersonalInfo.id,
wechattype: 1,
'sessionid': sessionID,
},
contentType: "application/x-www-form-urlencoded",
headers: {
'sessionid': sessionID,
},
success:( { code , message , results } ) => {
let status = results && results.status ; // 0表示未申请,1申请中,2已销户,3销户申请失败
if(code === '10000' && status == '0'){
}else if(code === '10000' && status == '1'){
uni.showToast({
title: "您已提交销户申请,银行正在审核中。",
icon:'none',
})
}else{
uni.showToast({
title: message,
icon:'none',
})
}
resolve(status)
},
error: function(err) {
uni.showToast({
title: err.message || '请求失败',
icon:'none',
});
reject(-1)
},
}); });
}) this.BackToMini('AssignAddCard')
}, },
// 验证码弹出框开启 // 验证码弹出框开启
toDeposit() { toDeposit() {
...@@ -348,6 +315,12 @@ ...@@ -348,6 +315,12 @@
return return
} }
} }
if (MyTimer) {
window.clearInterval(MyTimer); //停止计时器
MyTimer = null
this.CodeMsg = "获取验证码"
this.msCount = 60;
}
this.$refs.popup.open('top') this.$refs.popup.open('top')
}, },
// 验证码弹出框关闭 // 验证码弹出框关闭
...@@ -398,6 +371,72 @@ ...@@ -398,6 +371,72 @@
document.scrollingElement.scrollTo(0, this.scrollTop); document.scrollingElement.scrollTo(0, this.scrollTop);
}) })
}, },
//定时器
IntervalFun() {
if (this.msCount == 1) {
window.clearInterval(MyTimer); //停止计时器
MyTimer = null
this.CodeMsg = "获取验证码"
this.msCount = 60;
} else {
this.msCount--;
this.CodeMsg = this.msCount + "s后获取"
}
},
// 充值验证获取验证码
async SendSms() {
if (MyTimer) {
return
}
if (!this.openCardPhon || this.openCardPhon.length !== 11) {
Dialog({
title: '系统提示',
message: '请收入正确的手机号码!'
});
return
}
let this_ = this;
let loading = Toast.loading({
message: '加载中...',
forbidClick: true,
loadingType: 'spinner',
duration: 0
});
$.ajax({
url: gHost + '/bank-wechat/bocom/exchange/rechargeSms',
type: "POST",
contentType: "application/x-www-form-urlencoded",
data: {
amount: (this.Money * 1).toFixed(2), //充值金额,单位元
schoolId: bankInfo.schoolId, //学校id
userId: userID, //用户id
sessionid: sessionID,
wechattype: 1,
},
headers: {
'sessionid': sessionID,
},
success: function(res5) {
loading.clear();
if (res5.code == "10000") {
this_.IntervalFun();
MyTimer = window.setInterval(this_.IntervalFun, 1000);
this_.RechargeSmsorderNoInfo = res5.results ? res5.results : {}
} else {
weui.topTips(res5.message)
uni.showModal({
title: "系统提示",
content: res5.message
})
}
},
error: function(err) {
loading.clear();
},
});
},
// 充值 // 充值
async ExchangeRecharge() { async ExchangeRecharge() {
let amount, let amount,
...@@ -423,31 +462,43 @@ ...@@ -423,31 +462,43 @@
amount = this.Money * 1 amount = this.Money * 1
} }
let this_ = this; let this_ = this;
if (!this.openCardPhon || this.openCardPhon.length !== 11) {
Dialog({
title: '系统提示',
message: '请收入正确的手机号码!'
});
return
}
if (!this.RechargeSmsorderNoInfo.orderNo) {
Dialog({
title: '系统提示',
message: '请获取验证码!'
});
return
}
if (!this.openCardPhonSms) {
Dialog({
title: '系统提示',
message: '请收入验证码!'
});
return
}
uni.showLoading({ uni.showLoading({
mask: true, mask: true,
title: "处理中......" title: "处理中......"
}) })
try{
let status = await this.accountCloseacceptStatusQuery();
if(status !== 0) { uni.hideLoading(); return false };
}catch(e){
uni.hideLoading();
return false
}
$.ajax({ $.ajax({
url: gHost + '/bank-wechat/icbc/account/exchange/recharge', url: gHost + '/bank-wechat/bocom/exchange/recharge',
type: "POST", type: "POST",
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
data: { data: {
schoolId: bankInfo.schoolId, amount: (amount * 1).toFixed(2), //充值金额,单位元
userId: userID, mobileCode: this.openCardPhonSms, //短信验证码
orderNo: this_.RechargeSmsorderNoInfo.orderNo, //第三方合作交易标识,取充值短信返回的orderNo值
schoolId: bankInfo.schoolId, //学校id
userId: userID, //用户id
sessionid: sessionID, sessionid: sessionID,
wechattype: 1, wechattype: 1,
amount: amount,
bindMedium: this.bankInfo_.bindCardNo,
summary: "充值",
}, },
headers: { headers: {
'sessionid': sessionID, 'sessionid': sessionID,
...@@ -458,12 +509,14 @@ ...@@ -458,12 +509,14 @@
this_.close(); this_.close();
setTimeout(() => { setTimeout(() => {
this_.queryBankInfo(); this_.queryBankInfo();
},3000); }, 3000);
wx.showModal({ wx.showModal({
title:'充值申请已提交', title: '充值申请已提交',
content:'银行处理需要1-5分钟时间,充值结果以余额查询为准。', content: '银行处理需要1-5分钟时间,充值结果以余额查询为准。',
showCancel:false showCancel: false
}) })
// 20211129
this_.RechargeSmsorderNoInfo = {}
} else { } else {
weui.topTips(res5.message) weui.topTips(res5.message)
} }
...@@ -649,7 +702,7 @@ ...@@ -649,7 +702,7 @@
let this_ = this; let this_ = this;
// let loading = weui.loading('请稍后'); // let loading = weui.loading('请稍后');
$.ajax({ $.ajax({
url: gHost + '/bank-wechat/icbc/account/balance/balanceQuery', url: gHost + '/bank-wechat/bocom/balance/getBankBlanceAndSyncLocal',
type: "POST", type: "POST",
timeout: 8000, timeout: 8000,
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
...@@ -713,7 +766,8 @@ ...@@ -713,7 +766,8 @@
bankInfo.sessionid = sessionID; bankInfo.sessionid = sessionID;
this_.queryBankInfo(); //查余额 this_.queryBankInfo(); //查余额
this_.bankInfo_ = bankInfo; this_.bankInfo_ = bankInfo;
// this_.getBindingList(bankInfo.accountNo,bankInfo.schoolId,bankInfo.id); // 20211129
this_.openCardPhon = bankInfo.mobileNo
} else { } else {
weui.topTips(res2.message) weui.topTips(res2.message)
} }
...@@ -779,6 +833,7 @@ ...@@ -779,6 +833,7 @@
background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%); background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
} }
.showBindCardList { .showBindCardList {
.choiceBox { .choiceBox {
text-align: center; text-align: center;
...@@ -931,7 +986,7 @@ ...@@ -931,7 +986,7 @@
} }
.headview .schoolname { .headview .schoolname {
width: 252rpx; // width: 252rpx;
height: 50rpx; height: 50rpx;
font-size: 36rpx; font-size: 36rpx;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
...@@ -1134,20 +1189,47 @@ ...@@ -1134,20 +1189,47 @@
right: 0; right: 0;
top: 400rpx; top: 400rpx;
width: 618rpx; width: 618rpx;
height: 478rpx; height: 520rpx;
background: #FFFFFF; background: #FFFFFF;
border-radius: 8rpx; border-radius: 8rpx;
margin: 0 auto; margin: 0 auto;
.RechargeInfo { .RechargeInfo {
width: 520rpx; width: 560rpx;
height: 100%; height: 100%;
margin: 0 auto; margin: 0 auto;
/deep/ .openCardPhonTxt {
font-weight: bold;
color: #000000;
width: auto;
}
/deep/ .openCardPhonSmsTxt {
font-weight: bold;
color: #000000;
width: auto;
}
/deep/ .van-cell {
padding-left: 0;
padding-right: 0;
height: 100rpx;
}
/deep/ .van-button {
background: #1CC48B;
border-radius: 8rpx;
font-size: 10rpx;
}
.RechargeInfo1 { .RechargeInfo1 {
height: 124rpx; height: 120rpx;
line-height: 124rpx; line-height: 88rpx;
font-size: 36rpx; font-size: 30rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: bold; font-weight: bold;
color: #000000; color: #000000;
...@@ -1175,19 +1257,19 @@ ...@@ -1175,19 +1257,19 @@
margin-top: 40rpx; margin-top: 40rpx;
view { view {
width: 250rpx; width: 100%;
height: 88rpx; height: 68rpx;
border-radius: 8rpx; border-radius: 8rpx;
text-align: center; text-align: center;
line-height: 88rpx; line-height: 68rpx;
} }
view:nth-child(1) { view:nth-child(1) {
background: #EBEBEB; background: #1CC48B;
font-size: 36rpx; font-size: 30rpx;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
color: #1CC48B; color: #EBEBEB;
} }
view:nth-child(2) { view:nth-child(2) {
...@@ -1212,9 +1294,10 @@ ...@@ -1212,9 +1294,10 @@
text-align: right; text-align: right;
image { image {
width: 40rpx; width: 35rpx;
height: 40rpx; height: 35rpx;
position: relative; position: relative;
right: 10rpx;
} }
} }
......
...@@ -179,9 +179,9 @@ ...@@ -179,9 +179,9 @@
if (res5.code == "10000") { if (res5.code == "10000") {
// this_.ExchangeWithdrawQuery(res5.results.flowId, res5.results.corpSerno); // this_.ExchangeWithdrawQuery(res5.results.flowId, res5.results.corpSerno);
wx.showModal({ wx.showModal({
title:'提现申请已提交', title: '提现申请已提交',
content:'银行处理需要1-5分钟时间,充值结果以余额查询为准。', content: '银行处理需要1-5分钟时间,充值结果以余额查询为准。',
showCancel:false showCancel: false
}) })
} else { } else {
weui.topTips(res5.message) weui.topTips(res5.message)
...@@ -356,7 +356,7 @@ ...@@ -356,7 +356,7 @@
let this_ = this; let this_ = this;
let loading = weui.loading('请稍后'); let loading = weui.loading('请稍后');
$.ajax({ $.ajax({
url: gHost + '/bank-wechat/icbc/account/balance/balanceQuery', url: gHost + '/bank-wechat/bocom/balance/getBankBlanceAndSyncLocal',
type: "POST", type: "POST",
timeout: 8000, timeout: 8000,
contentType: "application/x-www-form-urlencoded", contentType: "application/x-www-form-urlencoded",
......
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