Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
X
xzf_uniapp-wechat-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李智书
xzf_uniapp-wechat-web
Commits
992ebf28
Commit
992ebf28
authored
Apr 21, 2022
by
袁玲利
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/V1.6.8_feature' into develop
parents
72f30bb0
14dea9ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1864 additions
and
1767 deletions
+1864
-1767
src/pages/BankModule/Recharge/Recharge.vue
src/pages/BankModule/Recharge/Recharge.vue
+1864
-1767
No files found.
src/pages/BankModule/Recharge/Recharge.vue
View file @
992ebf28
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"contentBox"
v-if=
"!depotMoneyother"
>
<view
class=
"contentBox"
v-if=
"!depotMoneyother"
>
<!--
<image
mode=
'widthFix'
src=
"https://xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/images/xiaopaycard (31).png"
></image>
-->
<!--
<image
mode=
'widthFix'
src=
"https://xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/images/xiaopaycard (31).png"
></image>
-->
<view
class=
"contentDiv"
>
<view
class=
"contentDiv"
>
<view
class=
"headview"
>
<view
class=
"headview"
>
<view
class=
"schoolname"
>
{{
PersonalInfo
.
schoolname
}}
</view>
<view
class=
"schoolname"
>
{{
PersonalInfo
.
schoolname
}}
</view>
<view
class=
"IconCls"
>
电子校园卡
</view>
<view
class=
"IconCls"
>
电子校园卡
</view>
</view>
</view>
<!-- 卡号显示 -->
<!-- 卡号显示 -->
<view
class=
"cardNum"
>
<view
class=
"cardNum"
>
<view
class=
"cardNumleft"
><span>
账户:
</span>
**** **** ****
<view
class=
"cardNumleft"
{{
bankInfo_
.
accountNo
.
slice
(
bankInfo_
.
accountNo
.
length
-
4
)
}}
><span>
账户:
</span>
**** **** ****
<span>
(
{{
accountEnum
[
bankInfo_
.
accountType
+
""
]
}}
)
</span>
{{
bankInfo_
.
accountNo
.
slice
(
bankInfo_
.
accountNo
.
length
-
4
)
}}
</view>
<span>
(
{{
accountEnum
[
bankInfo_
.
accountType
+
""
]
}}
)
</span>
<view
class=
"cardNumright"
id=
"cardNumright"
@
click=
"CopyCardNumber"
>
复制
</view>
</view>
</view>
<view
class=
"cardNumright"
id=
"cardNumright"
@
click=
"CopyCardNumber"
<view
class=
"HidenText"
>
>
复制
</view
<view
class=
"userName"
style=
"
>
</view>
<view
class=
"HidenText"
>
<view
class=
"userName"
style=
"
text-overflow: ellipsis;
text-overflow: ellipsis;
overflow: hidden;
overflow: hidden;
white-space: nowrap;
white-space: nowrap;
"
>
"
姓名:
<span>
{{
PersonalInfo
.
name
}}
</span></view>
>
<view
class=
"StudentCls"
style=
"
姓名:
<span>
{{
PersonalInfo
.
name
}}
</span></view
>
<view
class=
"StudentCls"
style=
"
text-overflow: ellipsis;
text-overflow: ellipsis;
overflow: hidden;
overflow: hidden;
white-space: nowrap;
white-space: nowrap;
"
v-if=
"PersonalInfo.usertype == '1'"
>
"
班级:
{{
PersonalInfo
.
gradename
}}
(
{{
v-if=
"PersonalInfo.usertype == '1'"
>
班级:
{{
PersonalInfo
.
gradename
}}
(
{{
PersonalInfo
.
classname
PersonalInfo
.
classname
}}
)
</view>
}}
)
</view
<view
class=
"TeacherCls"
style=
"
>
<view
class=
"TeacherCls"
style=
"
text-overflow: ellipsis;
text-overflow: ellipsis;
overflow: hidden;
overflow: hidden;
white-space: nowrap;
white-space: nowrap;
"
v-else
>
教职工
</view>
"
</view>
v-else
<view
class=
"Balance"
>
>
教职工
</view
<view
class=
"cardBalanceTx"
>
余额:¥
<span>
{{
cardBalanceTx
}}
</span></view>
>
<view
@
click=
"ToWalletTx"
>
</view>
<span
style=
"display: inline-block; padding-right: 10rpx"
>
余额提现
</span>
<view
class=
"Balance"
>
<image
style=
"position: relative; width: 13rpx; height: 20rpx"
class=
"ImgIcon1"
mode=
"widthFix"
<view
class=
"cardBalanceTx"
:src=
"ImgUrl + 'images/xiaopaycard (17).png'"
alt=
""
></image>
>
余额:¥
<span>
{{
cardBalanceTx
}}
</span></view
</view>
>
</view>
<view
@
click=
"ToWalletTx"
>
</view>
<span
style=
"display: inline-block; padding-right: 10rpx"
<!-- 充值明细 -->
>
余额提现
</span
<view
class=
"RechargeDetailed"
@
click=
"BackToMini('purchaseDetail')"
>
>
账户明细
<image
</view>
style=
"position: relative; width: 13rpx; height: 20rpx"
<!-- 充值账户 -->
class=
"ImgIcon1"
<view
class=
"Recharge"
>
mode=
"widthFix"
<span></span>
:src=
"ImgUrl + 'images/xiaopaycard (17).png'"
<span>
账户充值
</span>
alt=
""
</view>
></image>
<!-- 充值的金额 -->
</view>
<view
class=
"MoneyBox"
>
</view>
<view
class=
"depotMoney"
@
click=
"depotMoney(item.value, index)"
</view>
v-bind:class=
"MoneyIndex == index ? 'choiceClass' : ''"
:data-money=
"item.value || 0"
<!-- 充值明细 -->
v-for=
"(item, index) in MoneyList"
:key=
"index"
>
<view
class=
"RechargeDetailed"
@
click=
"BackToMini('purchaseDetail')"
>
<span
class=
"value"
>
账户明细
{{
item
.
value
}}
</view>
</span>
<!-- 充值账户 -->
<span
style=
"font-size: 28rpx; font-weight: 600; margin-left: 7rpx"
>
{{
<view
class=
"Recharge"
>
<span></span>
<span>
账户充值
</span>
</view>
<!-- 充值的金额 -->
<view
class=
"MoneyBox"
>
<view
class=
"depotMoney"
@
click=
"depotMoney(item.value, index)"
v-bind:class=
"MoneyIndex == index ? 'choiceClass' : ''"
:data-money=
"item.value || 0"
v-for=
"(item, index) in MoneyList"
:key=
"index"
>
<span
class=
"value"
>
{{
item
.
value
}}
</span>
<span
style=
"font-size: 28rpx; font-weight: 600; margin-left: 7rpx"
>
{{
item
.
lable
item
.
lable
}}
</span>
}}
</span>
<!--
<span
class=
"tips"
v-show=
"item.tips"
>
<!--
<span
class=
"tips"
v-show=
"item.tips"
>
{{
item
.
tips
}}
{{
item
.
tips
}}
</span>
-->
</span>
-->
</view>
</view>
<!--
<view
class=
"depotMoney"
@
click=
"depotOtherMoney"
>
<!--
<view
class=
"depotMoney"
@
click=
"depotOtherMoney"
>
<span
class=
"value"
>
<span
class=
"value"
>
</span>
</span>
<span
style=
"font-size: 28rpx; font-weight: 600; margin-left: 7rpx"
>
其他金额
</span>
<span
style=
"font-size: 28rpx; font-weight: 600; margin-left: 7rpx"
>
其他金额
</span>
</view>
-->
</view>
-->
<!--
<view
class=
"depotMoney"
>
<!--
<view
class=
"depotMoney"
>
<input
v-model=
"inputOtherM"
class=
"otherMoneyInput"
@
input=
"inputControl"
@
blur=
"ReturnToTop"
<input
v-model=
"inputOtherM"
class=
"otherMoneyInput"
@
input=
"inputControl"
@
blur=
"ReturnToTop"
placeholder=
"最低3元"
type=
"text"
maxlength=
"6"
/>
placeholder=
"最低3元"
type=
"text"
maxlength=
"6"
/>
</view>
-->
</view>
-->
</view>
</view>
<!-- 充值其它金额 -->
<!-- 充值其它金额 -->
<!--
<view
class=
"OtherMoney"
v-if=
"isOtherMoney"
>
-->
<!--
<view
class=
"OtherMoney"
v-if=
"isOtherMoney"
>
-->
<view
class=
"OtherMoney"
>
<view
class=
"OtherMoney"
>
<span>
¥
</span>
<span>
¥
</span>
<input
v-model=
"inputOtherM"
@
input=
"inputControl"
@
blur=
"ReturnToTop"
placeholder=
"请输入其他金额,最低3元"
<input
placeholder-class=
"placeholderinputOtherM"
type=
"text"
maxlength=
"6"
/>
v-model=
"inputOtherM"
</view>
@
input=
"inputControl"
<!-- 充值限额提示 -->
@
blur=
"ReturnToTop"
<view
class=
"depositbox"
>
placeholder=
"请输入其他金额,最低3元"
<image
mode=
"widthFix"
class=
"depositImg"
src=
"../../../static/img/depositIcon.png"
></image>
placeholder-class=
"placeholderinputOtherM"
<span
style=
"
type=
"text"
vertical-align: middle;
maxlength=
"6"
font-size: 28rpx;
/>
color: #333333;
</view>
font-weight: 500;
<!-- 充值限额提示 -->
"
>
最大可充值金额:
<span
style=
"color: red"
>
¥
<span
class=
"canDepositTx"
>
{{
RechargeMax
}}
</span></span></span>
<view
class=
"depositbox"
>
</view>
<image
<!-- 支付方式 -->
mode=
"widthFix"
<view
class=
"payType"
@
click=
"queryBindCardList"
>
class=
"depositImg"
<view>
付款方式
</view>
src=
"../../../static/img/depositIcon.png"
<view>
></image>
{{
bankInfo_
.
bindCardName
}}
<span
{{
bankInfo_
.
bindCardNo
.
slice
(
bankInfo_
.
bindCardNo
.
length
-
4
)
style=
"
vertical-align: middle;
font-size: 28rpx;
color: #333333;
font-weight: 500;
"
>
最大可充值金额:
<span
style=
"color: red"
>
¥
<span
class=
"canDepositTx"
>
{{
RechargeMax
}}
</span></span
></span
>
</view>
<!-- 支付方式 -->
<view
class=
"payType"
@
click=
"queryBindCardList"
>
<view>
付款方式
</view>
<view>
{{
bankInfo_
.
bindCardName
}}
{{
bankInfo_
.
bindCardNo
.
slice
(
bankInfo_
.
bindCardNo
.
length
-
4
)
}}
<span
class=
"arrow"
></span>
}}
<span
class=
"arrow"
></span>
</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=
""
style=
"height: 1rpx;background-color: #DFDFDF;"
></view>
-->
<!--
<view
class=
""
style=
"height: 1rpx;background-color: #DFDFDF;"
></view>
-->
<!-- 充值生活费 -->
<!-- 充值生活费 -->
<view
class=
"bottomdiv"
>
<view
class=
"bottomdiv"
>
<view
class=
"DepositID"
@
click=
"toDeposit"
<view
v-bind:style=
"Money != '' ? '' : 'background: #e6e6e6 !important;'"
>
class=
"DepositID"
<span>
充值生活费
</span>
@
click=
"toDeposit"
</view>
v-bind:style=
"Money != '' ? '' : 'background: #e6e6e6 !important;'"
<!-- -->
>
<view
class=
"switchbankCard"
@
click=
"ChangeBankPay"
>
我要换银行卡支付
</view>
<span>
充值生活费
</span>
</view>
</view>
</view>
<!-- -->
<!-- 其他充值金额 -->
<view
class=
"switchbankCard"
@
click=
"ChangeBankPay"
<view
class=
"contentBox"
v-if=
"depotMoneyother"
>
>
我要换银行卡支付
</view
<view
class=
"OtherTitle"
>
充值金额
</view>
>
<view
class=
"inputOtherM"
>
</view>
<span>
¥
</span>
</view>
<input
v-model=
"inputOtherM"
@
input=
"inputControl"
placeholder-class=
"placeholderinputOtherM"
<!-- 其他充值金额 -->
type=
"text"
maxlength=
"6"
/>
<view
class=
"contentBox"
v-if=
"depotMoneyother"
>
</view>
<view
class=
"OtherTitle"
>
充值金额
</view>
<view
class=
"OtherLine"
></view>
<view
class=
"inputOtherM"
>
<!-- 充值范围 -->
<span>
¥
</span>
<view
class=
"Recharge_"
>
<input
<!--
<image
mode=
"widthFix"
class=
"depositImg"
src=
"../../static/img/depositIcon.png"
></image>
-->
v-model=
"inputOtherM"
<span>
最大可充值金额:
</span>
@
input=
"inputControl"
<span>
¥
<span>
3.00 ~
{{
RechargeMax
}}
</span></span>
placeholder-class=
"placeholderinputOtherM"
</view>
type=
"text"
</view>
maxlength=
"6"
<!-- 弹出层 -->
/>
<uni-popup
ref=
"popup"
:mask-click=
"false"
>
</view>
<!-- 充值确认 -->
<view
class=
"OtherLine"
></view>
<view
class=
"RechargeConfirmationBox"
>
<!-- 充值范围 -->
<view
class=
"RechargeInfo"
>
<view
class=
"Recharge_"
>
<view
class=
"closePhoneBox"
@
click=
"close()"
>
<!--
<image
mode=
"widthFix"
class=
"depositImg"
src=
"../../static/img/depositIcon.png"
></image>
-->
<image
src=
"../../../static/img/close.png"
mode=
"aspectFit"
></image>
<span>
最大可充值金额:
</span>
</view>
<span
<view
class=
"RechargeInfo1"
>
验证校园卡开卡手机号
</view>
>
¥
<span>
3.00 ~
{{
RechargeMax
}}
</span></span
<van-field
label-class=
"openCardPhonTxt"
label=
"手机号:"
maxlength=
"11"
v-model=
"openCardPhon"
>
placeholder=
"校园卡开卡手机号"
center
:border=
"false"
>
</view>
<view
slot=
"right-icon"
v-if=
"bankInfo_.accountType == 4"
>
</view>
<view
class=
"changPhone"
style=
"display: flex; justify-content: center"
<!-- 弹出层 -->
@
click=
"changePhone"
>
变更手机号
<uni-popup
ref=
"popup"
:mask-click=
"false"
>
<van-icon
name=
"arrow"
/>
<!-- 充值确认 -->
</view>
<view
class=
"RechargeConfirmationBox"
>
</view>
<view
class=
"RechargeInfo"
>
</van-field>
<view
class=
"closePhoneBox"
@
click=
"close()"
>
<view
style=
"width: 520rpx; height: 1rpx; background: #eeeeee"
></view>
<image
src=
"../../../static/img/close.png"
mode=
"aspectFit"
></image>
<van-field
v-model=
"openCardPhonSms"
label-class=
"openCardPhonSmsTxt"
maxlength=
"6"
label=
"验证码:"
</view>
placeholder=
"输入短信验证码"
center
clearable
:border=
"false"
>
<view
class=
"RechargeInfo1"
>
验证校园卡开卡手机号
</view>
<van-button
slot=
"button"
size=
"small"
type=
"primary"
@
click=
"SendSms"
>
<van-field
<div
style=
"font-size: 28rpx"
>
{{
CodeMsg
}}
</div>
label-class=
"openCardPhonTxt"
</van-button>
label=
"手机号:"
</van-field>
maxlength=
"11"
<view
style=
"width: 520rpx; height: 1rpx; background: #eeeeee"
></view>
v-model=
"openCardPhon"
<!-- 取消 确认充值按钮 -->
placeholder=
"校园卡开卡手机号"
<view
class=
"BtngGoup"
>
center
<view
class=
""
@
click=
"ExchangeRecharge"
>
充值
</view>
:border=
"false"
</view>
>
</view>
<view
slot=
"right-icon"
v-if=
"bankInfo_.accountType == 4"
>
</view>
<view
</uni-popup>
class=
"changPhone"
<!-- 选择银行卡 -->
style=
"display: flex; justify-content: center"
<view
class=
"selectCard"
>
@
click=
"changePhone"
<van-popup
v-model=
"popshow"
round
position=
"bottom"
:style=
"
{ height: '30%' }">
>
变更手机号
<!-- 银行卡列表 -->
<van-icon
name=
"arrow"
/>
<view
class=
"accountlist"
>
</view>
<!-- 切换绑定的一类卡列表 -->
</view>
<view
class=
"showBindCardList"
>
</van-field>
<view
class=
"choiceBox"
>
选择付款账户
</view>
<view
style=
"width: 520rpx; height: 1rpx; background: #eeeeee"
></view>
<view
class=
"ListItem"
@
click=
"ChangeCardPay(item)"
v-for=
"(item, index) in bindcardList"
<van-field
:key=
"index"
>
v-model=
"openCardPhonSms"
<span
style=
"padding-right: 10px"
>
{{
item
.
bindCardName
}}
</span>
label-class=
"openCardPhonSmsTxt"
<span>
尾号:
{{
maxlength=
"6"
label=
"验证码:"
placeholder=
"输入短信验证码"
center
clearable
:border=
"false"
>
<van-button
slot=
"button"
size=
"small"
type=
"primary"
@
click=
"SendSms"
>
<div
style=
"font-size: 28rpx"
>
{{
CodeMsg
}}
</div>
</van-button>
</van-field>
<view
style=
"width: 520rpx; height: 1rpx; background: #eeeeee"
></view>
<!-- 取消 确认充值按钮 -->
<view
class=
"BtngGoup"
>
<view
class=
""
@
click=
"ExchangeRecharge"
>
充值
</view>
</view>
</view>
</view>
</uni-popup>
<!-- 选择银行卡 -->
<view
class=
"selectCard"
>
<van-popup
v-model=
"popshow"
round
position=
"bottom"
:style=
"
{ height: '30%' }"
>
<!-- 银行卡列表 -->
<view
class=
"accountlist"
>
<!-- 切换绑定的一类卡列表 -->
<view
class=
"showBindCardList"
>
<view
class=
"choiceBox"
>
选择付款账户
</view>
<view
class=
"ListItem"
@
click=
"ChangeCardPay(item)"
v-for=
"(item, index) in bindcardList"
:key=
"index"
>
<span
style=
"padding-right: 10px"
>
{{
item
.
bindCardName
}}
</span>
<span
>
尾号:
{{
item
.
bindCardNo
.
slice
(
item
.
bindCardNo
.
length
-
4
)
item
.
bindCardNo
.
slice
(
item
.
bindCardNo
.
length
-
4
)
}}
</span>
}}
</span
<!--
<image
class=
'BankListImg'
src=
'../../../static/img/choiceBank.png'
></image>
-->
>
</view>
<!--
<image
class=
'BankListImg'
src=
'../../../static/img/choiceBank.png'
></image>
-->
</view>
</view>
</view>
</view>
</van-popup>
</view>
</view>
</van-popup>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
import
{
Dialog
,
Toast
}
from
"
vant
"
;
Dialog
,
import
keyboardPackage
from
"
@/components/keyboard-package/keyboard-package.vue
"
;
Toast
import
cityData
from
"
@/common/js/city.js
"
;
}
from
"
vant
"
;
var
gHost
=
"
https://
"
+
window
.
location
.
host
;
import
keyboardPackage
from
"
@/components/keyboard-package/keyboard-package.vue
"
;
if
(
window
.
location
.
protocol
!=
"
https:
"
)
{
import
cityData
from
"
@/common/js/city.js
"
;
gHost
=
"
https://fpdev.xiaopay.net
"
;
var
gHost
=
"
https://
"
+
window
.
location
.
host
;
// gHost = "/api";
if
(
window
.
location
.
protocol
!=
"
https:
"
)
{
}
gHost
=
"
https://fpdev.xiaopay.net
"
;
let
times
=
0
;
// gHost = "/api";
var
limitClick
=
false
;
//禁止重复点击
}
var
sessionID
=
""
,
let
times
=
0
;
userID
=
""
;
var
limitClick
=
false
;
//禁止重复点击
var
payCardNumber
=
""
;
//一类卡号
var
sessionID
=
""
,
var
orderSerialNo
=
""
;
//提现结果查询 指令号
userID
=
""
;
var
businessNo
=
""
,
var
payCardNumber
=
""
;
//一类卡号
otpOrderNo
=
""
,
var
orderSerialNo
=
""
;
//提现结果查询 指令号
mobileNo
=
""
;
var
businessNo
=
""
,
var
MyTimer
=
null
;
otpOrderNo
=
""
,
var
fromType
=
0
;
//0转账 1提现
mobileNo
=
""
;
var
opeType
=
0
;
//0充值 1提现 手机号验证
var
MyTimer
=
null
;
var
bankInfo
=
{
var
fromType
=
0
;
//0转账 1提现
acctNoArray
:
""
,
var
opeType
=
0
;
//0充值 1提现 手机号验证
idNo
:
""
,
var
bankInfo
=
{
schoolId
:
""
,
acctNoArray
:
""
,
trueName
:
""
,
idNo
:
""
,
userId
:
""
,
schoolId
:
""
,
sessionid
:
""
,
trueName
:
""
,
wechattype
:
1
,
userId
:
""
,
};
sessionid
:
""
,
var
accountType
=
""
;
wechattype
:
1
,
let
orderApi
=
window
.
location
.
origin
;
};
/**
let
orderApi
=
window
.
location
.
origin
;
* 对象转拼接字符串
/**
* @param {*} res Object 需要转换的数据对象
* 对象转拼接字符串
*/
* @param {*} res Object 需要转换的数据对象
function
OforS
(
res
)
{
*/
var
resL
=
0
;
function
OforS
(
res
)
{
var
outS
=
""
;
var
resL
=
0
;
for
(
var
i
in
res
)
{
var
outS
=
""
;
if
(
resL
==
0
)
{
for
(
var
i
in
res
)
{
outS
+=
""
+
i
+
"
=
"
+
res
[
i
];
if
(
resL
==
0
)
{
}
else
{
outS
+=
""
+
i
+
"
=
"
+
res
[
i
];
outS
+=
"
&
"
+
i
+
"
=
"
+
res
[
i
];
}
else
{
}
outS
+=
"
&
"
+
i
+
"
=
"
+
res
[
i
];
resL
++
;
}
}
resL
++
;
return
outS
;
}
}
return
outS
;
export
default
{
}
components
:
{
export
default
{
keyboardPackage
,
components
:
{
},
keyboardPackage
,
name
:
"
Recharge
"
,
},
data
()
{
name
:
"
Recharge
"
,
return
{
data
()
{
popshow
:
false
,
return
{
// 输入其它金额
popshow
:
false
,
isOtherMoney
:
false
,
// 输入其它金额
inputOtherM
:
""
,
isOtherMoney
:
false
,
RechargeException
:
false
,
inputOtherM
:
""
,
depotMoneyother
:
false
,
//其他充值
RechargeException
:
false
,
Money
:
""
,
//选择金额
depotMoneyother
:
false
,
//其他充值
MoneyIndex
:
-
1
,
Money
:
""
,
//选择金额
RechargeMax
:
"
2000
"
,
//最大充值限制
MoneyIndex
:
-
1
,
ReflectMoney
:
""
,
//提现金额
RechargeMax
:
"
2000
"
,
//最大充值限制
VerifyCode
:
""
,
//验证码
ReflectMoney
:
""
,
//提现金额
cardBalanceTx
:
"
0
"
,
//余额
VerifyCode
:
""
,
//验证码
CodeMsg
:
"
获取验证码
"
,
cardBalanceTx
:
"
0
"
,
//余额
type
:
"
number
"
,
CodeMsg
:
"
获取验证码
"
,
PersonalInfo
:
{
type
:
"
number
"
,
schoolname
:
""
,
PersonalInfo
:
{
name
:
""
,
schoolname
:
""
,
usertype
:
"
1
"
,
name
:
""
,
},
usertype
:
"
1
"
,
bankInfo_
:
{
},
accountNo
:
"
**** **** **** 1234
"
,
bankInfo_
:
{
bindCardName
:
""
,
accountNo
:
"
**** **** **** 1234
"
,
bindCardNo
:
""
,
bindCardName
:
""
,
},
bindCardNo
:
""
,
ImgUrl
:
this
.
$ImgUrl
,
},
MoneyList
:
[
ImgUrl
:
this
.
$ImgUrl
,
{
MoneyList
:
[{
lable
:
"
元
"
,
lable
:
"
元
"
,
value
:
100
,
value
:
100
,
},
},
{
{
lable
:
"
元
"
,
lable
:
"
元
"
,
value
:
200
,
value
:
200
,
},
},
{
{
lable
:
"
元
"
,
lable
:
"
元
"
,
value
:
500
,
value
:
500
,
},
},
{
{
lable
:
"
元
"
,
lable
:
"
元
"
,
value
:
1000
,
value
:
1000
,
},
},
// {
// {
// lable: "其他金额",
// lable: "其他金额",
// value: "",
// value: "",
// },
// },
],
],
numberList
:
[],
numberList
:
[],
tempFiles1
:
"
../../static/img/idCardBg1.png
"
,
//上传身份证临时选择文件
tempFiles1
:
"
../../static/img/idCardBg1.png
"
,
//上传身份证临时选择文件
tempFiles2
:
"
../../static/img/idCardBg0.png
"
,
tempFiles2
:
"
../../static/img/idCardBg0.png
"
,
//绑定的一类卡列表
//绑定的一类卡列表
bindcardList
:
[],
bindcardList
:
[],
// 20211126 银行账户类型
// 20211126 银行账户类型
accountType
:
"
2
"
,
accountType
:
"
2
"
,
// 银行账户类型名称枚举
// 银行账户类型名称枚举
accountEnum
:
{
accountEnum
:
{
1
:
"
平安银行III类户
"
,
1
:
"
平安银行III类户
"
,
2
:
"
工商银行III类户
"
,
2
:
"
工商银行III类户
"
,
3
:
"
交通银行III类户
"
,
3
:
"
交通银行III类户
"
,
4
:
"
渤海银行II类户
"
,
4
:
"
渤海银行II类户
"
,
},
},
/**
/**
* 20211129新增
* 20211129新增
*/
*/
// 充值手机号码
// 充值手机号码
openCardPhon
:
""
,
openCardPhon
:
""
,
openCardPhonSms
:
""
,
openCardPhonSms
:
""
,
msCount
:
60
,
//定时器
msCount
:
60
,
//定时器
RechargeSmsorderNoInfo
:
{},
//第三方合作交易标识
RechargeSmsorderNoInfo
:
{},
//第三方合作交易标识
};
};
},
},
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
console
.
log
(
options
);
console
.
log
(
options
);
// 初始化
// 初始化
userID
=
options
[
"
userID
"
]
||
""
;
userID
=
options
[
"
userID
"
]
||
""
;
sessionID
=
options
[
"
seesionID
"
]
||
""
;
sessionID
=
options
[
"
seesionID
"
]
||
""
;
fromType
=
options
[
"
fromType
"
]
||
""
;
fromType
=
options
[
"
fromType
"
]
||
""
;
bankInfo
.
sessionid
=
sessionID
||
""
;
bankInfo
.
sessionid
=
sessionID
||
""
;
accountType
=
options
[
"
accountType
"
]
||
""
;
this
.
QueryUserInfo
();
if
(
accountType
==
"
BOHAI
"
)
{
},
// 渤海银行要判断是否有代扣签约
created
:
function
()
{},
this
.
signStatusQuery
();
mounted
:
function
()
{},
}
onShow
:
function
()
{
this
.
QueryUserInfo
();
if
(
bankInfo
.
accountType
==
4
)
{
},
// 渤海银行要判断是否有代扣签约
created
:
function
()
{},
this
.
signStatusQuery
();
mounted
:
function
()
{},
}
onShow
:
function
()
{
if
(
bankInfo
.
userId
)
{
if
(
bankInfo
.
userId
)
{
this
.
queryBankInfo
();
this
.
queryBankInfo
();
}
}
},
},
methods
:
{
methods
:
{
// 更换银行卡
// 更换银行卡
async
ChangeBankPay
()
{
async
ChangeBankPay
()
{
// uni.showModal({
// uni.showModal({
// title: "系统提示",
// title: "系统提示",
// content: "功能开发中!"
// content: "功能开发中!"
// })
// })
// return
// return
uni
.
showLoading
({
uni
.
showLoading
({
mask
:
true
,
mask
:
true
,
title
:
"
请稍后....
"
,
title
:
"
请稍后....
"
,
});
});
if
(
bankInfo
.
accountType
==
4
)
{
if
(
bankInfo
.
accountType
==
4
)
{
jWeixin
.
miniProgram
.
navigateTo
({
jWeixin
.
miniProgram
.
navigateTo
({
url
:
`/pages_subpack/pages/changeBindCard/main`
,
url
:
`/pages_subpack/pages/changeBindCard/main`
,
});
});
uni
.
hideLoading
();
uni
.
hideLoading
();
return
;
return
;
}
}
this
.
BackToMini
(
"
AssignAddCard
"
);
this
.
BackToMini
(
"
AssignAddCard
"
);
uni
.
hideLoading
();
uni
.
hideLoading
();
},
},
// 验证码弹出框开启
// 验证码弹出框开启
toDeposit
()
{
toDeposit
()
{
console
.
log
(
this
.
isOtherMoney
,
'
isOtherMoney
'
)
console
.
log
(
this
.
isOtherMoney
,
"
isOtherMoney
"
);
if
(
this
.
isOtherMoney
)
{
if
(
this
.
isOtherMoney
)
{
if
(
this
.
inputOtherM
==
""
)
{
if
(
this
.
inputOtherM
==
""
)
{
uni
.
showModal
({
uni
.
showModal
({
title
:
"
系统提示
"
,
title
:
"
系统提示
"
,
content
:
"
请输入要充值的金额!
"
,
content
:
"
请输入要充值的金额!
"
,
});
});
return
;
return
;
}
}
if
(
parseFloat
(
this
.
inputOtherM
)
*
1
<
3
)
{
if
(
parseFloat
(
this
.
inputOtherM
)
*
1
<
3
)
{
weui
.
topTips
(
"
充值金额必须大于3元
"
);
weui
.
topTips
(
"
充值金额必须大于3元
"
);
return
;
return
;
}
}
}
else
{
}
else
{
if
(
this
.
Money
==
""
)
{
if
(
this
.
Money
==
""
)
{
uni
.
showModal
({
uni
.
showModal
({
title
:
"
系统提示
"
,
title
:
"
系统提示
"
,
content
:
"
请选择要充值的金额!
"
,
content
:
"
请选择要充值的金额!
"
,
});
});
return
;
return
;
}
}
if
(
parseFloat
(
this
.
inputOtherM
)
*
1
<
3
)
{
if
(
parseFloat
(
this
.
inputOtherM
)
*
1
<
3
)
{
weui
.
topTips
(
"
充值金额必须大于3元
"
);
weui
.
topTips
(
"
充值金额必须大于3元
"
);
return
;
return
;
}
}
}
}
if
(
MyTimer
)
{
if
(
MyTimer
)
{
window
.
clearInterval
(
MyTimer
);
//停止计时器
window
.
clearInterval
(
MyTimer
);
//停止计时器
MyTimer
=
null
;
MyTimer
=
null
;
this
.
CodeMsg
=
"
获取验证码
"
;
this
.
CodeMsg
=
"
获取验证码
"
;
this
.
msCount
=
60
;
this
.
msCount
=
60
;
this
.
openCardPhonSms
=
""
;
this
.
openCardPhonSms
=
""
;
}
}
this
.
$refs
.
popup
.
open
(
"
top
"
);
this
.
$refs
.
popup
.
open
(
"
top
"
);
},
},
// 验证码弹出框关闭
// 验证码弹出框关闭
close
()
{
close
()
{
this
.
$refs
.
popup
.
close
();
this
.
$refs
.
popup
.
close
();
},
},
//切换到提现
//切换到提现
ToWalletTx
()
{
ToWalletTx
()
{
$
(
"
#DepositBox
"
).
css
(
"
display
"
,
"
none
"
);
$
(
"
#DepositBox
"
).
css
(
"
display
"
,
"
none
"
);
$
(
"
#TxWalletBox
"
).
css
(
"
display
"
,
"
block
"
);
$
(
"
#TxWalletBox
"
).
css
(
"
display
"
,
"
block
"
);
// $('.TitleHeader').html('电子账户提现');
// $('.TitleHeader').html('电子账户提现');
$
(
"
.doBtnTx
"
).
html
(
"
提现
"
);
$
(
"
.doBtnTx
"
).
html
(
"
提现
"
);
opeType
=
1
;
opeType
=
1
;
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"
../Reflect/Reflect?
"
+
url
:
OforS
({
"
../Reflect/Reflect?
"
+
sessionID
:
sessionID
,
OforS
({
userID
:
userID
,
sessionID
:
sessionID
,
}),
userID
:
userID
,
});
}),
},
});
//全部提现
},
TxAllFun
()
{
//全部提现
this
.
ReflectMoney
=
this
.
cardBalanceTx
*
1
;
TxAllFun
()
{
// $('.TxClsTx').val($('.cardBalanceTx')[0].textContent * 1);
this
.
ReflectMoney
=
this
.
cardBalanceTx
*
1
;
},
// $('.TxClsTx').val($('.cardBalanceTx')[0].textContent * 1);
// 输入限制
},
inputControl
(
e
)
{
// 输入限制
let
this_
=
this
;
inputControl
(
e
)
{
this_
.
MoneyIndex
=
-
1
;
let
this_
=
this
;
this_
.
isOtherMoney
=
true
;
this_
.
MoneyIndex
=
-
1
;
let
obj
=
e
.
detail
;
this_
.
isOtherMoney
=
true
;
this
.
$nextTick
(
function
()
{
let
obj
=
e
.
detail
;
obj
.
value
=
obj
.
value
.
replace
(
/
[^\d
.
]
/g
,
""
);
//清除"数字"和"."以外的字符
this
.
$nextTick
(
function
()
{
obj
.
value
=
obj
.
value
.
replace
(
/^
\.
/g
,
""
);
//验证第一个字符是数字而不是.
obj
.
value
=
obj
.
value
.
replace
(
/
[^\d
.
]
/g
,
""
);
//清除"数字"和"."以外的字符
obj
.
value
=
obj
.
value
.
replace
(
/
\.{2,}
/g
,
"
.
"
);
//只保留第一个. 清除多余的.
obj
.
value
=
obj
.
value
.
replace
(
/^
\.
/g
,
""
);
//验证第一个字符是数字而不是.
obj
.
value
=
obj
.
value
obj
.
value
=
obj
.
value
.
replace
(
/
\.{2,}
/g
,
"
.
"
);
//只保留第一个. 清除多余的.
.
replace
(
"
.
"
,
"
$#$
"
)
obj
.
value
=
obj
.
value
.
replace
(
/
\.
/g
,
""
)
.
replace
(
"
.
"
,
"
$#$
"
)
.
replace
(
"
$#$
"
,
"
.
"
);
//只允许输入一个小数点
.
replace
(
/
\.
/g
,
""
)
obj
.
value
=
obj
.
value
.
replace
(
/^
(\-)
*
(\d
+
)\.(\d\d)
.*$/
,
"
$1$2.$3
"
);
//只能输入两个小数
.
replace
(
"
$#$
"
,
"
.
"
);
//只允许输入一个小数点
obj
.
value
=
obj
.
value
=
obj
.
value
.
replace
(
/^
(\-)
*
(\d
+
)\.(\d\d)
.*$/
,
"
$1$2.$3
"
);
//只能输入两个小数
obj
.
value
*
1
>
this_
.
RechargeMax
?
this_
.
RechargeMax
:
obj
.
value
;
obj
.
value
=
if
(
obj
.
value
==
""
||
obj
.
value
*
1
<
3
)
{
obj
.
value
*
1
>
this_
.
RechargeMax
?
this_
.
RechargeMax
:
obj
.
value
;
$
(
"
.DepositID
"
).
attr
(
if
(
obj
.
value
==
""
||
obj
.
value
*
1
<
3
)
{
"
style
"
,
$
(
"
.DepositID
"
).
attr
(
"
background: rgb(230, 230, 230) !important;
"
"
style
"
,
);
"
background: rgb(230, 230, 230) !important;
"
}
else
{
);
$
(
"
.DepositID
"
).
removeAttr
(
"
style
"
);
}
else
{
}
$
(
"
.DepositID
"
).
removeAttr
(
"
style
"
);
this_
.
inputOtherM
=
obj
.
value
;
}
});
this_
.
inputOtherM
=
obj
.
value
;
},
});
//input键盘弹起不会弹
},
ReturnToTop
()
{
//input键盘弹起不会弹
// 若最后一位为小数点则去掉
ReturnToTop
()
{
let
str
=
this
.
inputOtherM
+
""
;
// 若最后一位为小数点则去掉
if
(
str
.
lastIndexOf
(
"
.
"
)
==
str
.
length
-
1
)
{
let
str
=
this
.
inputOtherM
+
""
;
this
.
inputOtherM
=
str
.
substring
(
0
,
str
.
length
-
1
);
if
(
str
.
lastIndexOf
(
"
.
"
)
==
str
.
length
-
1
)
{
}
this
.
inputOtherM
=
str
.
substring
(
0
,
str
.
length
-
1
);
this
.
$nextTick
(
function
()
{
}
document
.
scrollingElement
.
scrollTo
(
0
,
this
.
scrollTop
);
this
.
$nextTick
(
function
()
{
});
document
.
scrollingElement
.
scrollTo
(
0
,
this
.
scrollTop
);
},
});
//定时器
},
IntervalFun
()
{
//定时器
if
(
this
.
msCount
==
1
)
{
IntervalFun
()
{
window
.
clearInterval
(
MyTimer
);
//停止计时器
if
(
this
.
msCount
==
1
)
{
MyTimer
=
null
;
window
.
clearInterval
(
MyTimer
);
//停止计时器
this
.
CodeMsg
=
"
获取验证码
"
;
MyTimer
=
null
;
this
.
msCount
=
60
;
this
.
CodeMsg
=
"
获取验证码
"
;
}
else
{
this
.
msCount
=
60
;
this
.
msCount
--
;
}
else
{
this
.
CodeMsg
=
this
.
msCount
+
"
s后获取
"
;
this
.
msCount
--
;
}
this
.
CodeMsg
=
this
.
msCount
+
"
s后获取
"
;
},
}
// 代扣状态查询
},
async
signStatusQuery
()
{
// 代扣状态查询
let
respes
=
await
this
.
$http
.
post
({
async
signStatusQuery
()
{
// url: "http://159.75.47.27:8091/bank-wechat/bohai/comprehensive/signStatusQuery",
let
respes
=
await
this
.
$http
.
post
({
url
:
orderApi
+
"
/bank-wechat/bohai/comprehensive/signStatusQuery
"
,
// url: "http://159.75.47.27:8091/bank-wechat/bohai/comprehensive/signStatusQuery",
data
:
{
url
:
orderApi
+
"
/bank-wechat/bohai/comprehensive/signStatusQuery
"
,
schoolId
:
bankInfo
.
schoolId
,
//学校id
data
:
{
userId
:
userID
,
//用户id
schoolId
:
bankInfo
.
schoolId
,
//学校id
},
userId
:
userID
,
//用户id
});
},
if
(
respes
.
code
==
"
10000
"
)
{
});
console
.
log
(
respes
,
"
respes
"
);
if
(
respes
.
code
==
"
10000
"
)
{
if
(
respes
.
results
.
dkstatus
!=
1
)
{
// 1已签约
console
.
log
(
respes
,
"
respes
"
);
Dialog
.
alert
({
if
(
respes
.
results
.
dkstatus
!=
1
)
{
title
:
'
使用说明
'
,
// 1已签约
message
:
'
您暂未进行银行代扣签约,将影响电子校园卡的正常使用,请尽快前往签约
'
,
Dialog
.
alert
({
theme
:
'
round-button
'
,
title
:
"
使用说明
"
,
confirmButtonText
:
'
确认签约
'
,
message
:
confirmButtonColor
:
'
#2ddbb6
'
,
"
您暂未进行银行代扣签约,将影响电子校园卡的正常使用,请尽快前往签约
"
,
className
:
'
signAlert
'
theme
:
"
round-button
"
,
}).
then
(()
=>
{
confirmButtonText
:
"
确认签约
"
,
// on confirm
confirmButtonColor
:
"
#2ddbb6
"
,
jWeixin
.
miniProgram
.
navigateTo
({
className
:
"
signAlert
"
,
url
:
`/pages/SignProxyPay/main`
,
})
});
.
then
(()
=>
{
})
// on confirm
.
catch
(()
=>
{
jWeixin
.
miniProgram
.
navigateTo
({
// on cancel
url
:
`/pages/SignProxyPay/main`
,
});
});
}
})
}
else
{
.
catch
(()
=>
{
Toast
(
respes
.
message
||
"
代扣状态查询,请重试!
"
);
// on cancel
throw
new
Error
(
"
代扣状态查询,请重试!
"
);
});
}
}
},
}
else
{
// 充值验证获取验证码
Toast
(
respes
.
message
||
"
代扣状态查询,请重试!
"
);
async
SendSms
()
{
throw
new
Error
(
"
代扣状态查询,请重试!
"
);
if
(
MyTimer
)
{
}
return
;
},
}
// 充值验证获取验证码
if
(
!
this
.
openCardPhon
||
this
.
openCardPhon
.
length
!==
11
)
{
async
SendSms
()
{
Dialog
({
if
(
MyTimer
)
{
title
:
"
系统提示
"
,
return
;
message
:
"
请收入正确的手机号码!
"
,
}
});
if
(
!
this
.
openCardPhon
||
this
.
openCardPhon
.
length
!==
11
)
{
return
;
Dialog
({
}
title
:
"
系统提示
"
,
message
:
"
请收入正确的手机号码!
"
,
let
this_
=
this
;
});
let
loading
=
Toast
.
loading
({
return
;
message
:
"
加载中...
"
,
}
forbidClick
:
true
,
loadingType
:
"
spinner
"
,
let
this_
=
this
;
duration
:
0
,
let
loading
=
Toast
.
loading
({
});
message
:
"
加载中...
"
,
// 20211230
forbidClick
:
true
,
let
exchangeUrl
=
gHost
;
loadingType
:
"
spinner
"
,
switch
(
bankInfo
.
accountType
)
{
duration
:
0
,
case
3
:
});
exchangeUrl
=
exchangeUrl
+
"
/bank-wechat/bocom/exchange/rechargeSms
"
;
// 20211230
break
;
let
exchangeUrl
=
gHost
;
case
4
:
switch
(
bankInfo
.
accountType
)
{
exchangeUrl
=
exchangeUrl
+
"
/bank-wechat/bohai/comprehensive/otpSms
"
;
case
3
:
break
;
exchangeUrl
=
exchangeUrl
+
"
/bank-wechat/bocom/exchange/rechargeSms
"
;
default
:
break
;
Dialog
({
case
4
:
title
:
"
系统提示
"
,
exchangeUrl
=
exchangeUrl
+
"
/bank-wechat/bohai/comprehensive/otpSms
"
;
message
:
"
银行账号类型错误!
"
,
break
;
});
default
:
throw
"
银行账号类型错误!
"
;
Dialog
({
break
;
title
:
"
系统提示
"
,
}
message
:
"
银行账号类型错误!
"
,
$
.
ajax
({
});
url
:
exchangeUrl
,
throw
"
银行账号类型错误!
"
;
type
:
"
POST
"
,
break
;
contentType
:
"
application/x-www-form-urlencoded
"
,
}
data
:
{
$
.
ajax
({
amount
:
((
this
.
Money
||
this
.
inputOtherM
)
*
1
).
toFixed
(
2
),
//充值金额,单位元
url
:
exchangeUrl
,
schoolId
:
bankInfo
.
schoolId
,
//学校id
type
:
"
POST
"
,
userId
:
userID
,
//用户id
contentType
:
"
application/x-www-form-urlencoded
"
,
sessionid
:
sessionID
,
data
:
{
wechattype
:
1
,
amount
:
((
this
.
Money
||
this
.
inputOtherM
)
*
1
).
toFixed
(
2
),
//充值金额,单位元
// 20211230渤海
schoolId
:
bankInfo
.
schoolId
,
//学校id
mobilePhone
:
this
.
openCardPhon
,
userId
:
userID
,
//用户id
msg
:
"
充值
"
,
sessionid
:
sessionID
,
},
wechattype
:
1
,
headers
:
{
// 20211230渤海
sessionid
:
sessionID
,
mobilePhone
:
this
.
openCardPhon
,
},
msg
:
"
充值
"
,
success
:
function
(
res5
)
{
},
loading
.
clear
();
headers
:
{
if
(
res5
.
code
==
"
10000
"
)
{
sessionid
:
sessionID
,
this_
.
IntervalFun
();
},
MyTimer
=
window
.
setInterval
(
this_
.
IntervalFun
,
1000
);
success
:
function
(
res5
)
{
this_
.
RechargeSmsorderNoInfo
=
res5
.
results
?
res5
.
results
:
{};
loading
.
clear
();
}
else
{
if
(
res5
.
code
==
"
10000
"
)
{
weui
.
topTips
(
res5
.
message
);
this_
.
IntervalFun
();
uni
.
showModal
({
MyTimer
=
window
.
setInterval
(
this_
.
IntervalFun
,
1000
);
title
:
"
系统提示
"
,
this_
.
RechargeSmsorderNoInfo
=
res5
.
results
?
res5
.
results
:
{};
content
:
res5
.
message
,
}
else
{
});
weui
.
topTips
(
res5
.
message
);
}
uni
.
showModal
({
},
title
:
"
系统提示
"
,
error
:
function
(
err
)
{
content
:
res5
.
message
,
loading
.
clear
();
});
},
}
});
},
},
error
:
function
(
err
)
{
// 充值
loading
.
clear
();
async
ExchangeRecharge
()
{
},
let
amount
,
bindMedium
,
summary
;
});
if
(
this
.
isOtherMoney
)
{
},
if
(
this
.
inputOtherM
==
""
)
{
// 充值
uni
.
showModal
({
async
ExchangeRecharge
()
{
title
:
"
系统提示
"
,
let
amount
,
bindMedium
,
summary
;
content
:
"
请输入要充值的金额!
"
,
if
(
this
.
isOtherMoney
)
{
});
if
(
this
.
inputOtherM
==
""
)
{
return
;
uni
.
showModal
({
}
title
:
"
系统提示
"
,
amount
=
this
.
inputOtherM
*
1
;
content
:
"
请输入要充值的金额!
"
,
}
else
{
});
if
(
this
.
Money
==
""
)
{
return
;
uni
.
showModal
({
}
title
:
"
系统提示
"
,
amount
=
this
.
inputOtherM
*
1
;
content
:
"
请选择要充值的金额!
"
,
}
else
{
});
if
(
this
.
Money
==
""
)
{
return
;
uni
.
showModal
({
}
title
:
"
系统提示
"
,
amount
=
this
.
Money
*
1
;
content
:
"
请选择要充值的金额!
"
,
}
});
let
this_
=
this
;
return
;
if
(
!
this
.
openCardPhon
||
this
.
openCardPhon
.
length
!==
11
)
{
}
Dialog
({
amount
=
this
.
Money
*
1
;
title
:
"
系统提示
"
,
}
message
:
"
请收入正确的手机号码!
"
,
let
this_
=
this
;
});
if
(
!
this
.
openCardPhon
||
this
.
openCardPhon
.
length
!==
11
)
{
return
;
Dialog
({
}
title
:
"
系统提示
"
,
if
(
bankInfo
.
accountType
!=
4
)
{
message
:
"
请收入正确的手机号码!
"
,
if
(
!
this
.
RechargeSmsorderNoInfo
.
orderNo
)
{
});
Dialog
({
return
;
title
:
"
系统提示
"
,
}
message
:
"
请获取验证码!
"
,
if
(
bankInfo
.
accountType
!=
4
)
{
});
if
(
!
this
.
RechargeSmsorderNoInfo
.
orderNo
)
{
return
;
Dialog
({
}
title
:
"
系统提示
"
,
}
message
:
"
请获取验证码!
"
,
if
(
!
this
.
openCardPhonSms
)
{
});
Dialog
({
return
;
title
:
"
系统提示
"
,
}
message
:
"
请收入验证码!
"
,
}
});
if
(
!
this
.
openCardPhonSms
)
{
return
;
Dialog
({
}
title
:
"
系统提示
"
,
uni
.
showLoading
({
message
:
"
请收入验证码!
"
,
mask
:
true
,
});
title
:
"
处理中......
"
,
return
;
});
}
// 20211230
uni
.
showLoading
({
let
exchangeUrl
=
gHost
;
mask
:
true
,
switch
(
bankInfo
.
accountType
)
{
title
:
"
处理中......
"
,
case
3
:
});
exchangeUrl
=
exchangeUrl
+
"
/bank-wechat/bocom/exchange/recharge
"
;
// 20211230
break
;
let
exchangeUrl
=
gHost
;
case
4
:
switch
(
bankInfo
.
accountType
)
{
exchangeUrl
=
exchangeUrl
+
"
/bank-wechat/bohai/exchange/recharge
"
;
case
3
:
break
;
exchangeUrl
=
exchangeUrl
+
"
/bank-wechat/bocom/exchange/recharge
"
;
default
:
break
;
Dialog
({
case
4
:
title
:
"
系统提示
"
,
exchangeUrl
=
exchangeUrl
+
"
/bank-wechat/bohai/exchange/recharge
"
;
message
:
"
银行账号类型错误!
"
,
break
;
});
default
:
throw
"
银行账号类型错误!
"
;
Dialog
({
break
;
title
:
"
系统提示
"
,
}
message
:
"
银行账号类型错误!
"
,
$
.
ajax
({
});
url
:
exchangeUrl
,
throw
"
银行账号类型错误!
"
;
type
:
"
POST
"
,
break
;
contentType
:
"
application/x-www-form-urlencoded
"
,
}
data
:
{
$
.
ajax
({
amount
:
(
amount
*
1
).
toFixed
(
2
),
//充值金额,单位元
url
:
exchangeUrl
,
mobileCode
:
this
.
openCardPhonSms
,
//短信验证码
type
:
"
POST
"
,
orderNo
:
this_
.
RechargeSmsorderNoInfo
.
orderNo
,
//第三方合作交易标识,取充值短信返回的orderNo值
contentType
:
"
application/x-www-form-urlencoded
"
,
schoolId
:
bankInfo
.
schoolId
,
//学校id
data
:
{
userId
:
userID
,
//用户id
amount
:
(
amount
*
1
).
toFixed
(
2
),
//充值金额,单位元
sessionid
:
sessionID
,
mobileCode
:
this
.
openCardPhonSms
,
//短信验证码
wechattype
:
1
,
orderNo
:
this_
.
RechargeSmsorderNoInfo
.
orderNo
,
//第三方合作交易标识,取充值短信返回的orderNo值
// 21211230渤海银行
schoolId
:
bankInfo
.
schoolId
,
//学校id
transAmount
:
(
amount
*
1
).
toFixed
(
2
),
userId
:
userID
,
//用户id
verifyNo
:
this
.
openCardPhonSms
,
sessionid
:
sessionID
,
},
wechattype
:
1
,
headers
:
{
// 21211230渤海银行
sessionid
:
sessionID
,
transAmount
:
(
amount
*
1
).
toFixed
(
2
),
},
verifyNo
:
this
.
openCardPhonSms
,
success
:
function
(
res5
)
{
},
uni
.
hideLoading
();
headers
:
{
if
(
res5
.
code
==
"
10000
"
)
{
sessionid
:
sessionID
,
this_
.
close
();
},
setTimeout
(()
=>
{
success
:
function
(
res5
)
{
this_
.
queryBankInfo
();
uni
.
hideLoading
();
},
3000
);
if
(
res5
.
code
==
"
10000
"
)
{
let
thiTime
=
new
Date
();
this_
.
close
();
let
str
=
""
;
setTimeout
(()
=>
{
let
accountNo
=
this_
.
bankInfo_
.
bindCardNo
;
this_
.
queryBankInfo
();
accountNo
=
accountNo
.
slice
(
accountNo
.
length
-
4
,
accountNo
.
length
);
},
3000
);
let
minutes_
=
let
thiTime
=
new
Date
();
thiTime
.
getMinutes
().
toString
().
length
<
2
?
let
str
=
""
;
thiTime
.
getMinutes
().
toString
().
padStart
(
2
,
"
0
"
)
:
let
accountNo
=
this_
.
bankInfo_
.
bindCardNo
;
thiTime
.
getMinutes
().
toString
();
accountNo
=
accountNo
.
slice
(
accountNo
.
length
-
4
,
accountNo
.
length
);
switch
(
bankInfo
.
accountType
)
{
let
minutes_
=
case
3
:
thiTime
.
getMinutes
().
toString
().
length
<
2
if
(
thiTime
.
getMinutes
()
+
20
>=
60
)
{
?
thiTime
.
getMinutes
().
toString
().
padStart
(
2
,
"
0
"
)
str
=
:
thiTime
.
getMinutes
().
toString
();
thiTime
.
getHours
()
+
1
+
"
:
"
+
(
60
-
thiTime
.
getMinutes
());
switch
(
bankInfo
.
accountType
)
{
}
else
{
case
3
:
str
=
thiTime
.
getHours
()
+
"
:
"
+
(
thiTime
.
getMinutes
()
+
20
);
if
(
thiTime
.
getMinutes
()
+
20
>=
60
)
{
}
str
=
wx
.
showModal
({
thiTime
.
getHours
()
+
1
+
"
:
"
+
(
60
-
thiTime
.
getMinutes
());
title
:
"
充值申请已提交
"
,
}
else
{
content
:
"
银行处理需要1-20分钟时间,充值结果以余额查询为准。
"
,
str
=
thiTime
.
getHours
()
+
"
:
"
+
(
thiTime
.
getMinutes
()
+
20
);
showCancel
:
false
,
}
success
:
function
()
{
wx
.
showModal
({
uni
.
navigateTo
({
title
:
"
充值申请已提交
"
,
url
:
`../../recharging/recharging?bankName=
${
content
:
"
银行处理需要1-20分钟时间,充值结果以余额查询为准。
"
,
showCancel
:
false
,
success
:
function
()
{
uni
.
navigateTo
({
url
:
`../../recharging/recharging?bankName=
${
this_
.
bankInfo_
.
bindCardName
this_
.
bankInfo_
.
bindCardName
}
&bankNumber=
${
accountNo
}
&time=
${
str
}
&money=
${(
}
&bankNumber=
${
accountNo
}
&time=
${
str
}
&money=
${(
amount
*
1
amount
*
1
).
toFixed
(
2
)}
`
,
).
toFixed
(
2
)}
`
,
});
});
},
},
});
});
break
;
break
;
case
4
:
case
4
:
str
=
thiTime
.
getHours
()
+
2
+
"
:
"
+
minutes_
;
str
=
thiTime
.
getHours
()
+
2
+
"
:
"
+
minutes_
;
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`../../recharging/recharging?bankName=
${
url
:
`../../recharging/recharging?bankName=
${
this_
.
bankInfo_
.
bindCardName
this_
.
bankInfo_
.
bindCardName
}
&bankNumber=
${
accountNo
}
&time=
${
str
}
&money=
${(
}
&bankNumber=
${
accountNo
}
&time=
${
str
}
&money=
${(
amount
*
1
amount
*
1
).
toFixed
(
2
)}
`
,
).
toFixed
(
2
)}
`
,
});
});
break
;
break
;
default
:
default
:
break
;
break
;
}
}
// 20211129
// 20211129
this_
.
RechargeSmsorderNoInfo
=
{};
this_
.
RechargeSmsorderNoInfo
=
{};
}
else
{
}
else
{
weui
.
topTips
(
res5
.
message
);
weui
.
topTips
(
res5
.
message
);
}
}
},
},
error
:
function
(
err
)
{
error
:
function
(
err
)
{
uni
.
hideLoading
();
uni
.
hideLoading
();
},
},
});
});
},
},
// 充值结果查询
// 充值结果查询
async
ExchangeRechargeQuery
(
flowId
,
oriCorpSerno
)
{
async
ExchangeRechargeQuery
(
flowId
,
oriCorpSerno
)
{
let
this_
=
this
;
let
this_
=
this
;
let
loading
=
Toast
.
loading
({
let
loading
=
Toast
.
loading
({
message
:
"
加载中...
"
,
message
:
"
加载中...
"
,
forbidClick
:
true
,
forbidClick
:
true
,
loadingType
:
"
spinner
"
,
loadingType
:
"
spinner
"
,
duration
:
0
,
duration
:
0
,
});
});
$
.
ajax
({
$
.
ajax
({
url
:
gHost
+
"
/bank-wechat/icbc/account/exchange/rechargeQuery
"
,
url
:
gHost
+
"
/bank-wechat/icbc/account/exchange/rechargeQuery
"
,
type
:
"
POST
"
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
data
:
{
schoolId
:
bankInfo
.
schoolId
,
schoolId
:
bankInfo
.
schoolId
,
userId
:
userID
,
userId
:
userID
,
sessionid
:
sessionID
,
sessionid
:
sessionID
,
wechattype
:
1
,
wechattype
:
1
,
flowId
:
flowId
,
flowId
:
flowId
,
oriCorpSerno
:
oriCorpSerno
,
oriCorpSerno
:
oriCorpSerno
,
},
},
headers
:
{
headers
:
{
sessionid
:
sessionID
,
sessionid
:
sessionID
,
},
},
success
:
function
(
res5
)
{
success
:
function
(
res5
)
{
loading
.
clear
();
loading
.
clear
();
if
(
res5
.
code
==
"
10000
"
)
{
if
(
res5
.
code
==
"
10000
"
)
{
let
appStatus
=
res5
.
results
.
appStatus
;
let
appStatus
=
res5
.
results
.
appStatus
;
if
(
appStatus
==
"
4
"
)
{
if
(
appStatus
==
"
4
"
)
{
uni
.
showModal
({
uni
.
showModal
({
title
:
"
系统提示
"
,
title
:
"
系统提示
"
,
content
:
"
充值成功!
"
,
content
:
"
充值成功!
"
,
});
});
this_
.
queryBankInfo
();
this_
.
queryBankInfo
();
}
else
{
}
else
{
uni
.
showModal
({
uni
.
showModal
({
title
:
"
系统提示
"
,
title
:
"
系统提示
"
,
content
:
appStatus
==
"
1
"
?
"
申请已受理
"
:
res5
.
message
,
content
:
appStatus
==
"
1
"
?
"
申请已受理
"
:
res5
.
message
,
});
});
}
}
}
else
{
}
else
{
weui
.
topTips
(
res5
.
message
);
weui
.
topTips
(
res5
.
message
);
uni
.
showModal
({
uni
.
showModal
({
title
:
"
系统提示
"
,
title
:
"
系统提示
"
,
content
:
res5
.
message
,
content
:
res5
.
message
,
});
});
}
}
},
},
error
:
function
(
err
)
{
error
:
function
(
err
)
{
loading
.
clear
();
loading
.
clear
();
},
},
});
});
},
},
// 复制我卡号
// 复制我卡号
async
CopyCardNumber
()
{
async
CopyCardNumber
()
{
let
value
=
this
.
bankInfo_
.
accountNo
;
let
value
=
this
.
bankInfo_
.
accountNo
;
Dialog
({
Dialog
({
title
:
"
系统提示
"
,
title
:
"
系统提示
"
,
message
:
"
复制成功!
"
,
message
:
"
复制成功!
"
,
});
});
this
.
$nextTick
(
function
()
{
this
.
$nextTick
(
function
()
{
let
clipboard
=
new
ClipboardJS
(
"
#cardNumright
"
,
{
let
clipboard
=
new
ClipboardJS
(
"
#cardNumright
"
,
{
text
:
function
()
{
text
:
function
()
{
return
value
;
return
value
;
},
},
});
});
});
});
},
},
//选择输入其他金额
//选择输入其他金额
OtherMoney
()
{
OtherMoney
()
{
this
.
depotMoneyother
=
true
;
this
.
depotMoneyother
=
true
;
},
},
// 选择其它金额
// 选择其它金额
async
depotOtherMoney
()
{
async
depotOtherMoney
()
{
console
.
log
(
'
其它金额
'
)
console
.
log
(
"
其它金额
"
);
},
},
// 快捷选择金额
// 快捷选择金额
async
depotMoney
(
value
,
MoneyIndex
)
{
async
depotMoney
(
value
,
MoneyIndex
)
{
this
.
isOtherMoney
=
false
;
this
.
isOtherMoney
=
false
;
this
.
inputOtherM
=
""
;
this
.
inputOtherM
=
""
;
this
.
Money
=
parseInt
(
value
);
this
.
Money
=
parseInt
(
value
);
this
.
MoneyIndex
=
MoneyIndex
;
this
.
MoneyIndex
=
MoneyIndex
;
},
},
//按钮操作
//按钮操作
HideHTML
(
dom
,
type
)
{
HideHTML
(
dom
,
type
)
{
this
.
$nextTick
(
function
()
{
this
.
$nextTick
(
function
()
{
if
(
type
==
0
)
{
if
(
type
==
0
)
{
$
(
"
.
"
+
dom
).
css
(
"
display
"
,
"
none
"
);
$
(
"
.
"
+
dom
).
css
(
"
display
"
,
"
none
"
);
}
else
{
}
else
{
$
(
"
.
"
+
dom
).
css
(
"
display
"
,
"
block
"
);
$
(
"
.
"
+
dom
).
css
(
"
display
"
,
"
block
"
);
}
}
});
});
},
},
// 更换手机号码
// 更换手机号码
changePhone
()
{
changePhone
()
{
uni
.
showLoading
({
uni
.
showLoading
({
mask
:
true
,
mask
:
true
,
title
:
"
请稍后....
"
,
title
:
"
请稍后....
"
,
});
});
jWeixin
.
miniProgram
.
navigateTo
({
jWeixin
.
miniProgram
.
navigateTo
({
url
:
`/pages_subpack/pages/changePhone/main`
,
url
:
`/pages_subpack/pages/changePhone/main`
,
});
});
uni
.
hideLoading
();
uni
.
hideLoading
();
},
},
//返回小程序 跳转指定页面
//返回小程序 跳转指定页面
BackToMini
(
page
)
{
BackToMini
(
page
)
{
if
(
page
==
"
UserMain
"
||
page
==
"
personalCenter
"
)
{
if
(
page
==
"
UserMain
"
||
page
==
"
personalCenter
"
)
{
jWeixin
.
miniProgram
.
switchTab
({
jWeixin
.
miniProgram
.
switchTab
({
url
:
`/pages/
${
page
}
/main`
,
url
:
`/pages/
${
page
}
/main`
,
});
});
}
else
{
}
else
{
jWeixin
.
miniProgram
.
redirectTo
({
jWeixin
.
miniProgram
.
redirectTo
({
url
:
`/pages/
${
page
}
/main`
,
url
:
`/pages/
${
page
}
/main`
,
});
});
}
}
},
},
//换绑卡
//换绑卡
ChangeCardPay
(
item
)
{
ChangeCardPay
(
item
)
{
let
this_
=
this
;
let
this_
=
this
;
if
(
bankInfo
.
bindCardNo
==
item
.
bindCardNo
)
{
if
(
bankInfo
.
bindCardNo
==
item
.
bindCardNo
)
{
return
;
return
;
}
}
var
loading
=
weui
.
loading
(
"
请稍后
"
);
var
loading
=
weui
.
loading
(
"
请稍后
"
);
$
.
ajax
({
$
.
ajax
({
url
:
gHost
+
"
/bank-wechat/icbc/account/bindcard/changeDefaultBinding
"
,
url
:
gHost
+
"
/bank-wechat/icbc/account/bindcard/changeDefaultBinding
"
,
type
:
"
POST
"
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
data
:
{
schoolId
:
bankInfo
.
schoolId
,
schoolId
:
bankInfo
.
schoolId
,
userId
:
userID
,
userId
:
userID
,
sessionid
:
sessionID
,
sessionid
:
sessionID
,
wechattype
:
1
,
wechattype
:
1
,
bindMedium
:
item
.
bindCardNo
,
bindMedium
:
item
.
bindCardNo
,
bindMediumName
:
item
.
bindCardName
,
bindMediumName
:
item
.
bindCardName
,
},
},
success
:
function
(
res5
)
{
success
:
function
(
res5
)
{
loading
.
hide
();
loading
.
hide
();
if
(
res5
.
code
==
"
10000
"
)
{
if
(
res5
.
code
==
"
10000
"
)
{
this_
.
queryUserBankInfo
();
this_
.
queryUserBankInfo
();
this_
.
close
();
this_
.
close
();
}
else
{
}
else
{
weui
.
topTips
(
res5
.
message
);
weui
.
topTips
(
res5
.
message
);
}
}
this_
.
popshow
=
false
;
this_
.
popshow
=
false
;
},
},
error
:
function
(
err
)
{
error
:
function
(
err
)
{
loading
.
hide
();
loading
.
hide
();
},
},
});
});
},
},
//查询一类卡绑定列表
//查询一类卡绑定列表
queryBindCardList
()
{
queryBindCardList
()
{
let
this_
=
this
;
let
this_
=
this
;
let
loading
=
weui
.
loading
(
"
请稍后
"
);
let
loading
=
weui
.
loading
(
"
请稍后
"
);
$
.
ajax
({
$
.
ajax
({
url
:
gHost
+
"
/bank-wechat/user/bank/bindingList
"
,
url
:
gHost
+
"
/bank-wechat/user/bank/bindingList
"
,
type
:
"
POST
"
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
data
:
{
cardNo
:
bankInfo
.
accountNo
,
cardNo
:
bankInfo
.
accountNo
,
schoolId
:
bankInfo
.
schoolId
,
schoolId
:
bankInfo
.
schoolId
,
userId
:
userID
,
userId
:
userID
,
sessionid
:
sessionID
,
sessionid
:
sessionID
,
wechattype
:
1
,
wechattype
:
1
,
},
},
success
:
function
(
res4
)
{
success
:
function
(
res4
)
{
loading
.
hide
();
loading
.
hide
();
if
(
res4
.
code
==
"
10000
"
)
{
if
(
res4
.
code
==
"
10000
"
)
{
this_
.
bindcardList
=
res4
.
results
;
this_
.
bindcardList
=
res4
.
results
;
this_
.
popshow
=
true
;
this_
.
popshow
=
true
;
}
else
{
}
else
{
weui
.
topTips
(
res4
.
message
);
weui
.
topTips
(
res4
.
message
);
}
}
},
},
error
:
function
(
err
)
{
error
:
function
(
err
)
{
loading
.
hide
();
loading
.
hide
();
},
},
});
});
},
},
//获取银行余额
//获取银行余额
queryBankInfo
()
{
queryBankInfo
()
{
let
this_
=
this
;
let
this_
=
this
;
let
queryBankInfoUrl
=
gHost
;
let
queryBankInfoUrl
=
gHost
;
// 20211230
// 20211230
switch
(
bankInfo
.
accountType
)
{
switch
(
bankInfo
.
accountType
)
{
case
3
:
case
3
:
queryBankInfoUrl
=
queryBankInfoUrl
=
queryBankInfoUrl
+
queryBankInfoUrl
+
"
/bank-wechat/bocom/balance/getBankBlanceAndSyncLocal
"
;
"
/bank-wechat/bocom/balance/getBankBlanceAndSyncLocal
"
;
break
;
break
;
case
4
:
case
4
:
queryBankInfoUrl
=
queryBankInfoUrl
=
queryBankInfoUrl
+
"
/bank-wechat/bohai/exchange/balanceQuery
"
;
queryBankInfoUrl
+
"
/bank-wechat/bohai/exchange/balanceQuery
"
;
break
;
break
;
default
:
default
:
Dialog
({
Dialog
({
title
:
"
系统提示
"
,
title
:
"
系统提示
"
,
message
:
"
银行账号类型错误!
"
,
message
:
"
银行账号类型错误!
"
,
});
});
throw
"
银行账号类型错误!
"
;
throw
"
银行账号类型错误!
"
;
break
;
break
;
}
}
// let loading = weui.loading('请稍后');
// let loading = weui.loading('请稍后');
$
.
ajax
({
$
.
ajax
({
url
:
queryBankInfoUrl
,
url
:
queryBankInfoUrl
,
type
:
"
POST
"
,
type
:
"
POST
"
,
timeout
:
8000
,
timeout
:
8000
,
contentType
:
"
application/x-www-form-urlencoded
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
data
:
{
mediumId
:
bankInfo
.
accountNo
||
""
,
mediumId
:
bankInfo
.
accountNo
||
""
,
schoolId
:
bankInfo
.
schoolId
||
""
,
schoolId
:
bankInfo
.
schoolId
||
""
,
userId
:
bankInfo
.
userId
||
""
,
userId
:
bankInfo
.
userId
||
""
,
sessionid
:
sessionID
,
sessionid
:
sessionID
,
wechattype
:
1
,
wechattype
:
1
,
},
},
success
:
function
(
res3
)
{
success
:
function
(
res3
)
{
// loading.hide();
// loading.hide();
if
(
res3
.
code
==
"
10000
"
)
{
if
(
res3
.
code
==
"
10000
"
)
{
if
(
bankInfo
.
accountType
==
4
)
{
if
(
bankInfo
.
accountType
==
4
)
{
if
(
res3
.
results
.
eacTotalAmt
==
null
)
{
if
(
res3
.
results
.
eacTotalAmt
==
null
)
{
weui
.
topTips
(
"
账户信息为空,余额查询失败
"
);
weui
.
topTips
(
"
账户信息为空,余额查询失败
"
);
}
else
{
}
else
{
this_
.
cardBalanceTx
=
(
res3
.
results
.
eacTotalAmt
*
1
).
toFixed
(
2
);
this_
.
cardBalanceTx
=
(
res3
.
results
.
eacTotalAmt
*
1
).
toFixed
(
2
);
$
(
"
.TxClsTx
"
).
attr
(
$
(
"
.TxClsTx
"
).
attr
(
"
placeholder
"
,
"
placeholder
"
,
`可提现金额
${(
res3
.
results
.
eacTotalAmt
*
1
).
toFixed
(
2
)}
元`
`可提现金额
${(
res3
.
results
.
eacTotalAmt
*
1
).
toFixed
(
2
)}
元`
);
);
this_
.
RechargeMax
=
(
this_
.
RechargeMax
=
(
2000
-
2000
-
(
res3
.
results
.
eacTotalAmt
*
1
).
toFixed
(
2
)
*
1
(
res3
.
results
.
eacTotalAmt
*
1
).
toFixed
(
2
)
*
1
).
toFixed
(
2
);
).
toFixed
(
2
);
}
}
return
;
return
;
}
}
if
(
res3
.
results
.
accountBalance
==
null
)
{
if
(
res3
.
results
.
accountBalance
==
null
)
{
weui
.
topTips
(
"
账户信息为空,余额查询失败
"
);
weui
.
topTips
(
"
账户信息为空,余额查询失败
"
);
}
else
{
}
else
{
this_
.
cardBalanceTx
=
(
res3
.
results
.
accountBalance
*
1
).
toFixed
(
this_
.
cardBalanceTx
=
(
res3
.
results
.
accountBalance
*
1
).
toFixed
(
2
2
);
);
$
(
"
.TxClsTx
"
).
attr
(
$
(
"
.TxClsTx
"
).
attr
(
"
placeholder
"
,
"
placeholder
"
,
`可提现金额
${(
res3
.
results
.
accountBalance
*
1
).
toFixed
(
2
)}
元`
`可提现金额
${(
res3
.
results
.
accountBalance
*
1
).
toFixed
(
2
)}
元`
);
);
this_
.
RechargeMax
=
(
this_
.
RechargeMax
=
(
2000
-
2000
-
(
res3
.
results
.
accountBalance
*
1
).
toFixed
(
2
)
*
1
(
res3
.
results
.
accountBalance
*
1
).
toFixed
(
2
)
*
1
).
toFixed
(
2
);
).
toFixed
(
2
);
}
}
}
else
{
}
else
{
weui
.
topTips
(
res3
.
message
);
weui
.
topTips
(
res3
.
message
);
}
}
},
},
error
:
function
(
err
)
{
error
:
function
(
err
)
{
// loading.hide();
// loading.hide();
},
},
complete
:
function
(
XMLHttpRequest
,
status
)
{
complete
:
function
(
XMLHttpRequest
,
status
)
{
// loading.hide();
// loading.hide();
if
(
status
==
"
timeout
"
)
{
if
(
status
==
"
timeout
"
)
{
weui
.
topTips
(
"
请求超时,余额查询失败
"
);
weui
.
topTips
(
"
请求超时,余额查询失败
"
);
}
}
},
},
});
});
},
},
//获取用户已填写银行信息
//获取用户已填写银行信息
queryUserBankInfo
()
{
queryUserBankInfo
()
{
let
this_
=
this
;
let
this_
=
this
;
// let loading = weui.loading('请稍后');
// let loading = weui.loading('请稍后');
$
.
ajax
({
$
.
ajax
({
url
:
gHost
+
"
/bank-wechat/user/bank/get
"
,
url
:
gHost
+
"
/bank-wechat/user/bank/get
"
,
type
:
"
POST
"
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
data
:
{
schoolId
:
bankInfo
.
schoolId
,
schoolId
:
bankInfo
.
schoolId
,
userId
:
userID
,
userId
:
userID
,
sessionid
:
sessionID
,
sessionid
:
sessionID
,
wechattype
:
1
,
wechattype
:
1
,
},
},
success
:
function
(
res2
)
{
success
:
function
(
res2
)
{
if
(
res2
.
code
==
"
10000
"
)
{
if
(
res2
.
code
==
"
10000
"
)
{
if
(
!
res2
.
results
)
{
if
(
!
res2
.
results
)
{
weui
.
topTips
(
"
获取用户银行信息失败!
"
);
weui
.
topTips
(
"
获取用户银行信息失败!
"
);
// loading.hide();
// loading.hide();
return
;
return
;
}
}
bankInfo
=
res2
.
results
;
bankInfo
=
res2
.
results
;
bankInfo
.
sessionid
=
sessionID
;
bankInfo
.
sessionid
=
sessionID
;
this_
.
queryBankInfo
();
//查余额
this_
.
queryBankInfo
();
//查余额
this_
.
bankInfo_
=
bankInfo
;
this_
.
bankInfo_
=
bankInfo
;
// 20211129
// 20211129
this_
.
openCardPhon
=
bankInfo
.
mobileNo
;
this_
.
openCardPhon
=
bankInfo
.
mobileNo
;
}
else
{
}
else
{
weui
.
topTips
(
res2
.
message
);
weui
.
topTips
(
res2
.
message
);
}
}
},
},
error
:
function
(
err
)
{
error
:
function
(
err
)
{
// loading.hide();
// loading.hide();
},
},
});
});
},
},
//查询用户信息
//查询用户信息
QueryUserInfo
()
{
QueryUserInfo
()
{
let
this_
=
this
;
let
this_
=
this
;
let
loading
=
Toast
.
loading
({
let
loading
=
Toast
.
loading
({
message
:
"
加载中...
"
,
message
:
"
加载中...
"
,
forbidClick
:
true
,
forbidClick
:
true
,
loadingType
:
"
spinner
"
,
loadingType
:
"
spinner
"
,
duration
:
0
,
duration
:
0
,
});
});
$
.
ajax
({
$
.
ajax
({
url
:
gHost
+
"
/wechat/svweapp/QueryPersonalInfo
"
,
url
:
gHost
+
"
/wechat/svweapp/QueryPersonalInfo
"
,
type
:
"
POST
"
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
data
:
{
userid
:
userID
,
userid
:
userID
,
sessionid
:
sessionID
,
sessionid
:
sessionID
,
wechattype
:
1
,
wechattype
:
1
,
},
},
success
:
function
(
res1
)
{
success
:
function
(
res1
)
{
loading
.
clear
();
loading
.
clear
();
if
(
res1
.
code
==
"
10000
"
)
{
if
(
res1
.
code
==
"
10000
"
)
{
bankInfo
.
schoolId
=
res1
.
results
.
schoolid
;
bankInfo
.
schoolId
=
res1
.
results
.
schoolid
;
bankInfo
.
userId
=
res1
.
results
.
id
;
bankInfo
.
userId
=
res1
.
results
.
id
;
this_
.
PersonalInfo
=
res1
.
results
;
this_
.
PersonalInfo
=
res1
.
results
;
if
(
res1
.
results
.
usertype
==
1
)
{
if
(
res1
.
results
.
usertype
==
1
)
{
$
(
"
.StudentCls
"
).
css
(
"
display
"
,
"
block
"
);
$
(
"
.StudentCls
"
).
css
(
"
display
"
,
"
block
"
);
$
(
"
.TeacherCls
"
).
css
(
"
display
"
,
"
none
"
);
$
(
"
.TeacherCls
"
).
css
(
"
display
"
,
"
none
"
);
}
else
{
}
else
{
$
(
"
.StudentCls
"
).
css
(
"
display
"
,
"
none
"
);
$
(
"
.StudentCls
"
).
css
(
"
display
"
,
"
none
"
);
$
(
"
.TeacherCls
"
).
css
(
"
display
"
,
"
block
"
);
$
(
"
.TeacherCls
"
).
css
(
"
display
"
,
"
block
"
);
}
}
this_
.
queryUserBankInfo
();
this_
.
queryUserBankInfo
();
}
else
{
}
else
{
weui
.
topTips
(
res1
.
message
);
weui
.
topTips
(
res1
.
message
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this_
.
BackToMini
(
"
UserMain
"
);
this_
.
BackToMini
(
"
UserMain
"
);
},
1500
);
},
1500
);
}
}
},
},
error
:
function
(
err
)
{
error
:
function
(
err
)
{
loading
.
clear
();
loading
.
clear
();
},
},
});
});
},
},
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
html
,
html
,
body
,
body
,
page
{
page
{
width
:
750rpx
;
width
:
750rpx
;
background
:
linear-gradient
(
180deg
,
#ffffff
0%
,
#fafafa
100%
);
background
:
linear-gradient
(
180deg
,
#ffffff
0%
,
#fafafa
100%
);
}
}
.changPhone
{
.changPhone
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#39f
;
color
:
#39f
;
text-align
:
right
;
text-align
:
right
;
}
}
.showBindCardList
{
.showBindCardList
{
.choiceBox
{
.choiceBox
{
text-align
:
center
;
text-align
:
center
;
font-weight
:
bold
;
font-weight
:
bold
;
height
:
50px
;
height
:
50px
;
line-height
:
50px
;
line-height
:
50px
;
padding
:
0
;
padding
:
0
;
border-bottom
:
0
.5px
solid
#e6e6e6
;
border-bottom
:
0
.5px
solid
#e6e6e6
;
}
}
.ListItem
{
.ListItem
{
border-bottom
:
1rpx
solid
#e6e6e6
;
border-bottom
:
1rpx
solid
#e6e6e6
;
font-size
:
30rpx
;
font-size
:
30rpx
;
padding
:
25rpx
0
;
padding
:
25rpx
0
;
background
:
#fff
;
background
:
#fff
;
position
:
relative
;
position
:
relative
;
text-align
:
center
;
text-align
:
center
;
}
}
}
}
.SubmittedSuccessfully
{
.SubmittedSuccessfully
{
width
:
400rpx
!
important
;
width
:
400rpx
!
important
;
height
:
200rpx
!
important
;
height
:
200rpx
!
important
;
margin
:
0
auto
!
important
;
margin
:
0
auto
!
important
;
background
:
#000000
;
background
:
#000000
;
opacity
:
0
.8
;
opacity
:
0
.8
;
border-radius
:
8rpx
;
border-radius
:
8rpx
;
}
}
.cardNum
{
.cardNum
{
width
:
574rpx
;
width
:
574rpx
;
margin
:
0
auto
;
margin
:
0
auto
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding-top
:
36rpx
;
padding-top
:
36rpx
;
font-size
:
24rpx
;
font-size
:
24rpx
;
.cardNumleft
{
.cardNumleft
{
font-family
:
PingFang
SC
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#ffffff
;
color
:
#ffffff
;
}
}
.cardNumright
{
.cardNumright
{
font-family
:
PingFang
SC
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
font-weight
:
500
;
text-decoration
:
underline
;
text-decoration
:
underline
;
color
:
#ffffff
;
color
:
#ffffff
;
}
}
}
}
.RechargeDetailed
{
.RechargeDetailed
{
text-align
:
center
;
text-align
:
center
;
// width: 118rpx;
// width: 118rpx;
height
:
32rpx
;
height
:
32rpx
;
margin
:
0
auto
;
margin
:
0
auto
;
font-size
:
30rpx
;
font-size
:
30rpx
;
font-family
:
PingFang
SC
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
font-weight
:
500
;
text-decoration
:
underline
;
text-decoration
:
underline
;
color
:
#36a8ff
;
color
:
#36a8ff
;
margin-top
:
50rpx
;
margin-top
:
50rpx
;
}
}
.contentBox
{
.contentBox
{
width
:
670rpx
;
width
:
670rpx
;
height
:
376rpx
;
height
:
376rpx
;
margin
:
0
auto
;
margin
:
0
auto
;
}
}
.contentDiv
{
.contentDiv
{
height
:
100%
;
height
:
100%
;
// margin-top: 36rpx;
// margin-top: 36rpx;
border-radius
:
15rpx
;
border-radius
:
15rpx
;
background-image
:
url("https://xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/images/xiaopaycard (31)
.
png
");
background-image
:
url("https://xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/images/xiaopaycard (31)
.
png
");
background-repeat: no-repeat;
background-repeat: no-repeat;
background-size: 100% 100%;
background-size: 100% 100%;
position: relative;
position: relative;
top: 36rpx;
top: 36rpx;
}
}
.HidenText {
.HidenText {
width: 574rpx;
width: 574rpx;
margin: 0 auto;
margin: 0 auto;
padding-top: 88rpx;
padding-top: 88rpx;
}
}
.HidenText,
.HidenText,
.Balance {
.Balance {
padding-left: 46rpx;
padding-left: 46rpx;
padding-right: 40rpx;
padding-right: 40rpx;
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
font-size: 28rpx;
font-size: 28rpx;
color: #ffffff;
color: #ffffff;
}
}
.Balance {
.Balance {
width: 574rpx;
width: 574rpx;
margin: 0 auto;
margin: 0 auto;
margin-top: 20rpx;
margin-top: 20rpx;
font-size: 30rpx;
font-size: 30rpx;
font-family: PingFang SC;
font-family: PingFang SC;
font-weight: bold;
font-weight: bold;
color: #ffffff;
color: #ffffff;
}
}
.Recharge {
.Recharge {
// height: 30rpx;
// height: 30rpx;
font-size: 32rpx;
font-size: 32rpx;
font-family: PingFang SC;
font-family: PingFang SC;
font-weight: bold;
font-weight: bold;
color: #333333;
color: #333333;
margin-top: 58rpx;
margin-top: 58rpx;
span:nth-child(1) {
span:nth-child(1) {
width: 4rpx;
width: 4rpx;
height: 30rpx;
height: 30rpx;
background: #23d6a3;
background: #23d6a3;
border-radius: 2rpx;
border-radius: 2rpx;
display: inline-block;
display: inline-block;
position: relative;
position: relative;
top: 5rpx;
top: 5rpx;
}
}
span:nth-child(2) {
span:nth-child(2) {
display: inline-block;
display: inline-block;
margin-left: 16rpx;
margin-left: 16rpx;
}
}
}
}
.headview {
.headview {
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
// padding-left: 40rpx;
// padding-left: 40rpx;
// padding-right: 40rpx;
// padding-right: 40rpx;
padding-top: 36rpx;
padding-top: 36rpx;
width: 574rpx;
width: 574rpx;
margin: 0 auto;
margin: 0 auto;
}
}
.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;
font-weight: 500;
font-weight: 500;
color: #ffffff;
color: #ffffff;
line-height: 50rpx;
line-height: 50rpx;
}
}
.headview .IconCls {
.headview .IconCls {
width: 170rpx;
width: 170rpx;
height: 48rpx;
height: 48rpx;
background: #20946d;
background: #20946d;
border-radius: 25rpx;
border-radius: 25rpx;
font-size: 24rpx;
font-size: 24rpx;
font-weight: 400;
font-weight: 400;
color: #ffffff;
color: #ffffff;
line-height: 48rpx;
line-height: 48rpx;
text-align: center;
text-align: center;
}
}
.MoneyBox {
.MoneyBox {
flex-wrap: wrap;
flex-wrap: wrap;
height: auto;
height: auto;
color: #888888;
color: #888888;
width: 686rpx;
width: 686rpx;
margin: 0 auto;
margin: 0 auto;
overflow: hidden;
overflow: hidden;
}
}
.choiceClass {
.choiceClass {
background: rgba(39, 266, 148, 0.1) !important;
background: rgba(39, 266, 148, 0.1) !important;
color: #28d79c;
color: #28d79c;
}
}
.MoneyBox view {
.MoneyBox view {
width: 220rpx;
width: 220rpx;
height: 120rpx;
height: 120rpx;
background: #ffffff;
background: #ffffff;
border-radius: 8rpx;
border-radius: 8rpx;
border: 1rpx solid #eeeeee;
border: 1rpx solid #eeeeee;
margin-top: 16rpx;
margin-top: 16rpx;
text-align: center;
text-align: center;
position: relative;
position: relative;
box-shadow: 0px 9rpx 23rpx 0rpx rgba(25, 26, 88, 0.07);
box-shadow: 0px 9rpx 23rpx 0rpx rgba(25, 26, 88, 0.07);
margin-right: 2px;
margin-right: 2px;
float: left;
float: left;
}
}
.depotMoney .value {
.depotMoney .value {
font-size: 45rpx;
font-size: 45rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
font-weight: 600;
line-height: 120rpx;
line-height: 120rpx;
text-align: center;
text-align: center;
}
}
.depotMoney .tips {
.depotMoney .tips {
// width: 79rpx;
// width: 79rpx;
// height: 33rpx;
// height: 33rpx;
// background: linear-gradient(180deg, #FA6400 0%, #FD9D00 100%);
// background: linear-gradient(180deg, #FA6400 0%, #FD9D00 100%);
// border-radius: 4rpx;
// border-radius: 4rpx;
// font-size: 18rpx;
// font-size: 18rpx;
// font-weight: 500;
// font-weight: 500;
// padding: 4rpx;
// padding: 4rpx;
// text-align: center;
// text-align: center;
// float: right;
// float: right;
// position: absolute;
// position: absolute;
// right: 0rpx;
// right: 0rpx;
// line-height: 33rpx;
// line-height: 33rpx;
}
}
.OtherMoney {
.OtherMoney {
display: flex;
display: flex;
justify-content: flex-start;
justify-content: flex-start;
// color: #999999;
// color: #999999;
// font-size: 28rpx;
// font-size: 28rpx;
// font-family: PingFangSC-Regular, PingFang SC;
// font-family: PingFangSC-Regular, PingFang SC;
// font-weight: 400;
// font-weight: 400;
// color: #999999;
// color: #999999;
// line-height: 40rpx;
// line-height: 40rpx;
width: 686rpx;
width: 686rpx;
height: 100rpx;
height: 100rpx;
background: #f7f6fb;
background: #f7f6fb;
border-radius: 10rpx;
border-radius: 10rpx;
margin: 0 auto;
margin: 0 auto;
line-height: 100rpx;
line-height: 100rpx;
margin-top: 32rpx;
margin-top: 32rpx;
span {
span {
display: inline-block;
display: inline-block;
font-size: 40rpx;
font-size: 40rpx;
font-family: PingFang SC;
font-family: PingFang SC;
font-weight: bold;
font-weight: bold;
color: #000000;
color: #000000;
padding-left: 26rpx;
padding-left: 26rpx;
}
}
input {
input {
height: 100%;
height: 100%;
}
}
}
}
.OtherMoney view:nth-child(2) {
.OtherMoney view:nth-child(2) {
// width: 30rpx;
// width: 30rpx;
// height: 30rpx;
// height: 30rpx;
// background: #F0F0F0;
// background: #F0F0F0;
// border-radius: 50%;
// border-radius: 50%;
// text-align: center;
// text-align: center;
// line-height: 30rpx;
// line-height: 30rpx;
// margin-top: 7rpx;
// margin-top: 7rpx;
// margin-left: 5rpx;
// margin-left: 5rpx;
}
}
.payType {
.payType {
height: 98rpx;
height: 98rpx;
line-height: 98rpx;
line-height: 98rpx;
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
}
}
.payType view:nth-child(1) {
.payType view:nth-child(1) {
// width: 120rpx;
// width: 120rpx;
height: 42rpx;
height: 42rpx;
font-size: 32rpx;
font-size: 32rpx;
font-family: PingFang SC;
font-family: PingFang SC;
font-weight: 500;
font-weight: 500;
color: #888888;
color: #888888;
line-height: 98rpx;
line-height: 98rpx;
}
}
.payType view::nth-child(2) {
.payType view::nth-child(2) {
width: 225rpx;
width: 225rpx;
height: 45rpx;
height: 45rpx;
font-size: 32rpx;
font-size: 32rpx;
font-family: PingFang SC;
font-family: PingFang SC;
font-weight: bold;
font-weight: bold;
color: #333333;
color: #333333;
line-height: 45rpx;
line-height: 45rpx;
}
}
.arrow {
.arrow {
transform: rotate(-45deg);
transform: rotate(-45deg);
top: -3rpx;
top: -3rpx;
border: solid #999999;
border: solid #999999;
border-width: 0 1rpx 1rpx 0;
border-width: 0 1rpx 1rpx 0;
display: inline-block;
display: inline-block;
padding: 8rpx;
padding: 8rpx;
position: relative;
position: relative;
}
}
@media (min-height: 650px) {
@media (min-height: 650px) {
.bottomdiv {
.bottomdiv {
position: fixed;
position: fixed;
left: 0;
left: 0;
right: 0;
right: 0;
bottom: 30rpx;
bottom: 30rpx;
}
}
}
}
.DepositID {
.DepositID {
width: 630rpx;
width: 630rpx;
height: 92rpx;
height: 92rpx;
background: #04ba73;
background: #04ba73;
border-radius: 8rpx;
border-radius: 8rpx;
margin: 0 auto;
margin: 0 auto;
text-align: center;
text-align: center;
bottom: 30rpx;
bottom: 30rpx;
}
}
.DepositID span {
.DepositID span {
height: 50rpx;
height: 50rpx;
font-size: 36rpx;
font-size: 36rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
font-weight: 500;
color: #ffffff;
color: #ffffff;
line-height: 92rpx;
line-height: 92rpx;
}
}
.switchbankCard {
.switchbankCard {
text-align: center;
text-align: center;
/* width: 205px; */
/* width: 205px; */
// height: 28rpx;
// height: 28rpx;
font-size: 26rpx;
font-size: 26rpx;
font-family: PingFang SC;
font-family: PingFang SC;
font-weight: 500;
font-weight: 500;
text-decoration: underline;
text-decoration: underline;
color: #268ef8;
color: #268ef8;
margin-top: 23rpx;
margin-top: 23rpx;
}
}
.RechargeConfirmationBox {
.RechargeConfirmationBox {
position: fixed;
position: fixed;
left: 0;
left: 0;
right: 0;
right: 0;
top: 400rpx;
top: 400rpx;
width: 618rpx;
width: 618rpx;
height: 520rpx;
height: 520rpx;
background: #ffffff;
background: #ffffff;
border-radius: 8rpx;
border-radius: 8rpx;
margin: 0 auto;
margin: 0 auto;
.RechargeInfo {
.RechargeInfo {
width: 560rpx;
width: 560rpx;
height: 100%;
height: 100%;
margin: 0 auto;
margin: 0 auto;
/deep/ .openCardPhonTxt {
/deep/ .openCardPhonTxt {
font-weight: bold;
font-weight: bold;
color: #000000;
color: #000000;
width: auto;
width: auto;
}
}
/deep/ .openCardPhonSmsTxt {
/deep/ .openCardPhonSmsTxt {
font-weight: bold;
font-weight: bold;
color: #000000;
color: #000000;
width: auto;
width: auto;
}
}
/deep/ .van-cell {
/deep/ .van-cell {
padding-left: 0;
padding-left: 0;
padding-right: 0;
padding-right: 0;
height: 100rpx;
height: 100rpx;
}
}
/deep/ .van-button {
/deep/ .van-button {
background: #1cc48b;
background: #1cc48b;
border-radius: 8rpx;
border-radius: 8rpx;
font-size: 10rpx;
font-size: 10rpx;
}
}
.RechargeInfo1 {
.RechargeInfo1 {
height: 120rpx;
height: 120rpx;
line-height: 88rpx;
line-height: 88rpx;
font-size: 30rpx;
font-size: 30rpx;
font-family: PingFang SC;
font-family: PingFang SC;
font-weight: bold;
font-weight: bold;
color: #000000;
color: #000000;
text-align: center;
text-align: center;
}
}
.ContenInfo {
.ContenInfo {
text-align: center;
text-align: center;
// width: 383rpx;
// width: 383rpx;
height: 159rpx;
height: 159rpx;
margin: 0 auto;
margin: 0 auto;
font-size: 32rpx;
font-size: 32rpx;
font-family: PingFang SC;
font-family: PingFang SC;
font-weight: 500;
font-weight: 500;
color: #010101;
color: #010101;
view {
view {
line-height: 75rpx;
line-height: 75rpx;
}
}
}
}
.BtngGoup {
.BtngGoup {
justify-content: space-between;
justify-content: space-between;
display: flex;
display: flex;
margin-top: 40rpx;
margin-top: 40rpx;
view {
view {
width: 100%;
width: 100%;
height: 68rpx;
height: 68rpx;
border-radius: 8rpx;
border-radius: 8rpx;
text-align: center;
text-align: center;
line-height: 68rpx;
line-height: 68rpx;
}
}
view:nth-child(1) {
view:nth-child(1) {
background: #1cc48b;
background: #1cc48b;
font-size: 30rpx;
font-size: 30rpx;
font-family: PingFang SC;
font-family: PingFang SC;
font-weight: 500;
font-weight: 500;
color: #ebebeb;
color: #ebebeb;
}
}
view:nth-child(2) {
view:nth-child(2) {
background: #1cc48b;
background: #1cc48b;
font-size: 36rpx;
font-size: 36rpx;
font-family: PingFang SC;
font-family: PingFang SC;
font-weight: 500;
font-weight: 500;
color: #ffffff;
color: #ffffff;
}
}
}
}
}
}
}
}
.closePhoneBox {
.closePhoneBox {
// width: 35rpx;
// width: 35rpx;
height: 35rpx;
height: 35rpx;
position: relative;
position: relative;
right: -20rpx;
right: -20rpx;
top: 20rpx;
top: 20rpx;
text-align: right;
text-align: right;
image {
image {
width: 35rpx;
width: 35rpx;
height: 35rpx;
height: 35rpx;
position: relative;
position: relative;
right: 10rpx;
right: 10rpx;
}
}
}
}
.doBtnTx {
.doBtnTx {
width: 506rpx;
width: 506rpx;
height: 92rpx;
height: 92rpx;
background: #04ba73;
background: #04ba73;
border-radius: 8rpx;
border-radius: 8rpx;
color: #ffffff;
color: #ffffff;
position: absolute;
position: absolute;
left: 0;
left: 0;
right: 0;
right: 0;
margin: 0 auto;
margin: 0 auto;
bottom: 38rpx;
bottom: 38rpx;
}
}
.PhoneNum,
.PhoneNum,
.VerifyCode {
.VerifyCode {
width: 506rpx;
width: 506rpx;
height: 80rpx;
height: 80rpx;
line-height: 60rpx;
line-height: 60rpx;
background: #f7f6fb;
background: #f7f6fb;
margin: 0 auto;
margin: 0 auto;
margin-top: 20rpx;
margin-top: 20rpx;
}
}
.VerifyCode {
.VerifyCode {
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
}
}
.VerifyCode input {
.VerifyCode input {
width: 200rpx;
width: 200rpx;
}
}
.CodeMsg {
.CodeMsg {
color: #01bc73;
color: #01bc73;
background: #f7f6fb;
background: #f7f6fb;
font-size: 32rpx;
font-size: 32rpx;
font-weight: 600;
font-weight: 600;
line-height: 80rpx;
line-height: 80rpx;
letter-spacing: 3rpx;
letter-spacing: 3rpx;
}
}
.placeholderInput {
.placeholderInput {
color: #aaaaaa;
color: #aaaaaa;
font-size: 42rpx;
font-size: 42rpx;
font-weight: 500;
font-weight: 500;
letter-spacing: 3rpx;
letter-spacing: 3rpx;
// padding-left: 50rpx;
// padding-left: 50rpx;
height: 80rpx;
height: 80rpx;
}
}
.OtherTitle {
.OtherTitle {
height: 67rpx;
height: 67rpx;
font-size: 48rpx;
font-size: 48rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
font-weight: 600;
color: #010101;
color: #010101;
line-height: 67rpx;
line-height: 67rpx;
padding-top: 60rpx;
padding-top: 60rpx;
}
}
.inputOtherM {
.inputOtherM {
display: flex;
display: flex;
height: 100rpx;
height: 100rpx;
margin-top: 40rpx;
margin-top: 40rpx;
}
}
.inputOtherM input {
.inputOtherM input {
border: none;
border: none;
outline: none;
outline: none;
height: 50rpx;
height: 50rpx;
padding-left: 16rpx;
padding-left: 16rpx;
font-size: 72rpx;
font-size: 72rpx;
font-weight: 600;
font-weight: 600;
}
}
.inputOtherM span:nth-child(1) {
.inputOtherM span:nth-child(1) {
width: 72rpx;
width: 72rpx;
font-size: 80rpx;
font-size: 80rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
font-weight: 600;
color: #010101;
color: #010101;
line-height: 100rpx;
line-height: 100rpx;
}
}
.OtherLine {
.OtherLine {
width: 631rpx;
width: 631rpx;
height: 1rpx;
height: 1rpx;
background-color: #cccccc;
background-color: #cccccc;
margin-top: 19rpx;
margin-top: 19rpx;
}
}
.depositbox {
.depositbox {
margin-top: 31rpx;
margin-top: 31rpx;
height: 30rpx;
height: 30rpx;
line-height: 30rpx;
line-height: 30rpx;
}
}
.depositImg {
.depositImg {
width: 24rpx;
width: 24rpx;
height: 24rpx;
height: 24rpx;
vertical-align: middle;
vertical-align: middle;
margin-right: 8rpx;
margin-right: 8rpx;
position: relative;
position: relative;
top: -2rpx;
top: -2rpx;
}
}
.Recharge_ {
.Recharge_ {
height: 40rpx;
height: 40rpx;
font-size: 28rpx;
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
font-weight: 400;
color: #333333;
color: #333333;
line-height: 40rpx;
line-height: 40rpx;
margin-top: 40rpx;
margin-top: 40rpx;
}
}
.Recharge_ span:nth-child(2) {
.Recharge_ span:nth-child(2) {
font-size: 28rpx;
font-size: 28rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
font-weight: 600;
color: #fa6400;
color: #fa6400;
}
}
.placeholderinputOtherM {
.placeholderinputOtherM {
height: 50rpx;
height: 50rpx;
// font-family: PingFangSC-Semibold, PingFang SC;
// font-family: PingFangSC-Semibold, PingFang SC;
// font-weight: 600;
// font-weight: 600;
// color: #010101;
// color: #010101;
line-height: 50rpx;
line-height: 50rpx;
width: 323rpx;
width: 323rpx;
font-size: 28rpx;
font-size: 28rpx;
font-family: PingFang SC;
font-family: PingFang SC;
font-weight: 500;
font-weight: 500;
color: #888888;
color: #888888;
}
}
// 异常处理
// 异常处理
.RechargeException {
.RechargeException {
padding-top: 20rpx;
padding-top: 20rpx;
}
}
.weui-label {
.weui-label {
// width: 118rpx;
// width: 118rpx;
height: 42rpx;
height: 42rpx;
font-size: 30rpx;
font-size: 30rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
font-weight: 500;
color: #3d3d3d;
color: #3d3d3d;
line-height: 42rpx;
line-height: 42rpx;
font-weight: bold;
font-weight: bold;
margin-left: 30rpx;
margin-left: 30rpx;
}
}
.tiptext {
.tiptext {
height: 1.06rem;
height: 1.06rem;
font-size: 0.75rem;
font-size: 0.75rem;
font-family: PingFangSC-Regular, PingFang SC;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
font-weight: 400;
color: #03bc73;
color: #03bc73;
line-height: 1.06rem;
line-height: 1.06rem;
margin-bottom: 0.625rem;
margin-bottom: 0.625rem;
text-align: center;
text-align: center;
}
}
.bottomDetail {
.bottomDetail {
width: 628rpx;
width: 628rpx;
height: 88rpx;
height: 88rpx;
color: white;
color: white;
// position: fixed;
// position: fixed;
// left: 0;
// left: 0;
// right: 0;
// right: 0;
margin: 0 auto;
margin: 0 auto;
background-color: #03bc73;
background-color: #03bc73;
text-align: center;
text-align: center;
line-height: 88rpx;
line-height: 88rpx;
margin-top: 84rpx;
margin-top: 84rpx;
}
}
.RechargeException input::placeholder {
.RechargeException input::placeholder {
color: #a1a4a8;
color: #a1a4a8;
}
}
.RechargeException .weui-cell {
.RechargeException .weui-cell {
height: 4rem;
height: 4rem;
padding: 0 !important;
padding: 0 !important;
}
}
.idCardPhoto1,
.idCardPhoto1,
.idCardPhoto2 {
.idCardPhoto2 {
width: 388rpx;
width: 388rpx;
height: 224rpx;
height: 224rpx;
margin: 0 auto;
margin: 0 auto;
margin-top: 20rpx;
margin-top: 20rpx;
}
}
.idCardPhoto1 image,
.idCardPhoto1 image,
.idCardPhoto2 image {
.idCardPhoto2 image {
width: 100%;
width: 100%;
height: 100%;
height: 100%;
position: relative;
position: relative;
}
}
.weui-toptips_success {
.weui-toptips_success {
background-color: #03bc73 !important;
background-color: #03bc73 !important;
}
}
.positionCam {
.positionCam {
height: 32rpx;
height: 32rpx;
font-size: 22rpx;
font-size: 22rpx;
font-family: PingFang-SC-Medium, PingFang-SC;
font-family: PingFang-SC-Medium, PingFang-SC;
font-weight: 500;
font-weight: 500;
color: #6d7278;
color: #6d7278;
line-height: 32rpx;
line-height: 32rpx;
text-align: center;
text-align: center;
position: relative;
position: relative;
top: -29px;
top: -29px;
}
}
.BgCoverBox {
.BgCoverBox {
width: 100vw;
width: 100vw;
height: 100vh;
height: 100vh;
position: fixed;
position: fixed;
left: 0;
left: 0;
top: 0;
top: 0;
z-index: 10;
z-index: 10;
background: #000000;
background: #000000;
opacity: 0.5;
opacity: 0.5;
}
}
.hideListCover {
.hideListCover {
max-height: 50vh;
max-height: 50vh;
overflow-y: auto;
overflow-y: auto;
padding: 0;
padding: 0;
}
}
.bottomDiv {
.bottomDiv {
font-weight: bold;
font-weight: bold;
height: 50px;
height: 50px;
line-height: 50px;
line-height: 50px;
border-bottom: 1px solid #e6e6e6;
border-bottom: 1px solid #e6e6e6;
}
}
/deep/ .signAlert {
/deep/ .signAlert {
/deep/ .van-dialog__message {
/deep/ .van-dialog__message {
line-height: 60rpx;
line-height: 60rpx;
}
}
/deep/ .signAlert .van-dialog__confirm {
/deep/ .signAlert .van-dialog__confirm {
width: 200rpx !important;
width: 200rpx !important;
flex: none !important;
flex: none !important;
margin: 0 auto;
margin: 0 auto;
}
}
}
}
/deep/ uni-input.otherMoneyInput {
/deep/ uni-input.otherMoneyInput {
height: 120rpx;
height: 120rpx;
line-height: 120rpx;
line-height: 120rpx;
font-weight: 600;
font-weight: 600;
}
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment