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
c83e98f3
Commit
c83e98f3
authored
Dec 30, 2021
by
李智书
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.渤海银行充值提现;
parent
9be89681
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
202 additions
and
19 deletions
+202
-19
src/pages/BankModule/Recharge/Recharge.vue
src/pages/BankModule/Recharge/Recharge.vue
+72
-11
src/pages/BankModule/Reflect/Reflect.vue
src/pages/BankModule/Reflect/Reflect.vue
+129
-7
src/pages/ConsumptionReport/ConsumptionReport.vue
src/pages/ConsumptionReport/ConsumptionReport.vue
+1
-1
No files found.
src/pages/BankModule/Recharge/Recharge.vue
View file @
c83e98f3
...
...
@@ -11,15 +11,18 @@
<view
class=
"cardNum"
>
<view
class=
"cardNumleft"
><span>
账户:
</span>
**** **** ****
{{
bankInfo_
.
accountNo
.
slice
(
bankInfo_
.
accountNo
.
length
-
4
)
}}
<span>
(
{{
accountEnum
[
bankInfo_
.
accountType
+
''
]
}}
III类户
)
</span>
<span>
(
{{
accountEnum
[
bankInfo_
.
accountType
+
''
]
}}
)
</span>
</view>
<view
class=
"cardNumright"
id=
"cardNumright"
@
click=
"CopyCardNumber"
>
复制
</view>
</view>
<view
class=
"HidenText"
>
<view
class=
"userName"
style=
"text-overflow: ellipsis;overflow: hidden; white-space: nowrap;"
>
姓名:
<span>
{{
PersonalInfo
.
name
}}
</span></view>
<view
class=
"StudentCls"
style=
"text-overflow: ellipsis;overflow: hidden; white-space: nowrap;"
v-if=
"PersonalInfo.usertype=='1'"
>
<view
class=
"userName"
style=
"text-overflow: ellipsis;overflow: hidden; white-space: nowrap;"
>
姓名:
<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>
<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
class=
"Balance"
>
<view
class=
"cardBalanceTx"
>
余额:¥
<span>
{{
cardBalanceTx
}}
</span></view>
...
...
@@ -117,7 +120,7 @@
<view
style=
"width: 520rpx;height: 1rpx;background: #EEEEEE;"
></view>
<van-field
v-model=
"openCardPhonSms"
label-class=
"openCardPhonSmsTxt"
maxlength=
"6"
label=
"验证码:"
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>
</van-button>
</van-field>
...
...
@@ -259,9 +262,10 @@
accountType
:
'
2
'
,
// 银行账户类型名称枚举
accountEnum
:
{
'
1
'
:
"
平安银行
"
,
'
2
'
:
"
工商银行
"
,
'
3
'
:
"
交通银行
"
,
'
1
'
:
"
平安银行III类户
"
,
'
2
'
:
"
工商银行III类户
"
,
'
3
'
:
"
交通银行III类户
"
,
'
4
'
:
"
渤海银行II类户
"
,
},
/**
* 20211129新增
...
...
@@ -423,8 +427,25 @@
loadingType
:
'
spinner
'
,
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
({
url
:
gHost
+
'
/bank-wechat/bocom/exchange/rechargeSms
'
,
url
:
exchangeUrl
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
...
...
@@ -433,6 +454,9 @@
userId
:
userID
,
//用户id
sessionid
:
sessionID
,
wechattype
:
1
,
// 20211230渤海
mobilePhone
:
this
.
openCardPhon
,
msg
:
"
充值
"
},
headers
:
{
'
sessionid
'
:
sessionID
,
...
...
@@ -507,8 +531,25 @@
mask
:
true
,
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
({
url
:
gHost
+
'
/bank-wechat/bocom/exchange/recharge
'
,
url
:
exchangeUrl
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
...
...
@@ -519,6 +560,9 @@
userId
:
userID
,
//用户id
sessionid
:
sessionID
,
wechattype
:
1
,
// 21211230渤海银行
transAmount
:
(
amount
*
1
).
toFixed
(
2
),
verifyNo
:
this
.
openCardPhonSms
},
headers
:
{
'
sessionid
'
:
sessionID
,
...
...
@@ -738,9 +782,26 @@
//获取银行余额
queryBankInfo
()
{
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('请稍后');
$
.
ajax
({
url
:
gHost
+
'
/bank-wechat/bocom/balance/getBankBlanceAndSyncLocal
'
,
url
:
queryBankInfoUrl
,
type
:
"
POST
"
,
timeout
:
8000
,
contentType
:
"
application/x-www-form-urlencoded
"
,
...
...
src/pages/BankModule/Reflect/Reflect.vue
View file @
c83e98f3
<
template
>
<view
class=
"container"
>
<view
class=
"ReflectBox"
>
<view
class=
"ReflectBox"
v-if=
"bankInfo_.accountType==3"
>
<view
class=
"left_"
>
提现金额
</view>
<view
class=
"right_"
>
每日可提现一次
</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"
>
<span>
¥
</span>
<input
class=
"TxClsTx"
v-model=
"inputOtherM"
@
input=
"inputControl"
@
blur=
"ReturnToTop"
: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>
</view>
<!-- 提现账户 -->
<view
class=
"payType"
@
click=
"queryBindCardList"
>
<view
class=
"payType"
@
click=
"queryBindCardList"
v-if=
"bankInfo_.accountType==3"
>
<view>
提现账户
</view>
<view>
{{
bankInfo_
.
accountName
}}
(
{{
bankInfo_
.
accountNo
.
slice
(
bankInfo_
.
accountNo
.
length
-
4
)
}}
)
<span
class=
"arrow"
></span></view>
</view>
<view
class=
"OtherMoney"
v-if=
"false"
style=
"color: #BFBFBF;font-weight: 500;"
>
每日仅可提现一次,请明日再来。
小提示:每天仅可提现一次
</view>
<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;'"
>
<span>
提现
</span>
</view>
...
...
@@ -102,7 +120,7 @@
inputOtherM
:
''
,
ImgUrl
:
this
.
$ImgUrl
,
ReflectMoney
:
3
,
cardBalanceTx
:
''
,
cardBalanceTx
:
'
0
'
,
placeholder
:
"
可提现金额0.00元
"
,
bankInfo_
:
{
accountNo
:
'
**** **** **** 1234
'
...
...
@@ -154,8 +172,25 @@
loadingType
:
'
spinner
'
,
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
({
url
:
gHost
+
'
/bank-wechat/bocom/exchange/withdrawSms
'
,
url
:
withdrawSmsUrl
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
...
...
@@ -164,6 +199,9 @@
userId
:
userID
,
//用户id
sessionid
:
sessionID
,
wechattype
:
1
,
// 21211230渤海银行
mobilePhone
:
this
.
openCardPhon
,
msg
:
"
提现
"
},
headers
:
{
'
sessionid
'
:
sessionID
,
...
...
@@ -266,9 +304,40 @@
// 提现
async
ExchangeWithdraw
()
{
let
this_
=
this
;
if
(
!
this
.
RechargeSmsorderNoInfo
.
orderNo
)
{
Dialog
({
title
:
'
系统提示
'
,
message
:
'
请获取验证码!
'
});
return
}
if
(
!
this
.
openCardPhonSms
)
{
Dialog
({
title
:
'
系统提示
'
,
message
:
'
请收入验证码!
'
});
return
}
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
({
url
:
gHost
+
'
/bank-wechat/bocom/exchange/withdraw
'
,
url
:
withdrawUrl
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
...
...
@@ -280,6 +349,9 @@
userId
:
userID
,
sessionid
:
sessionID
,
wechattype
:
1
,
// 21211230渤海银行
transAmount
:
(
this
.
inputOtherM
*
1
).
toFixed
(
2
),
verifyNo
:
this_
.
openCardPhonSms
,
},
headers
:
{
'
sessionid
'
:
sessionID
,
...
...
@@ -466,8 +538,25 @@
queryBankInfo
()
{
let
this_
=
this
;
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
({
url
:
gHost
+
'
/bank-wechat/bocom/balance/getBankBlanceAndSyncLocal
'
,
url
:
queryBankInfoUrl
,
type
:
"
POST
"
,
timeout
:
8000
,
contentType
:
"
application/x-www-form-urlencoded
"
,
...
...
@@ -590,6 +679,38 @@
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
{
display
:
flex
;
justify-content
:
flex-start
;
...
...
@@ -639,6 +760,7 @@
height
:
100rpx
;
line-height
:
100rpx
;
.left_
{
font-size
:
36rpx
;
font-family
:
PingFang
SC
;
...
...
src/pages/ConsumptionReport/ConsumptionReport.vue
View file @
c83e98f3
...
...
@@ -141,7 +141,7 @@
</view>
<view
class=
"average-daily-consumption-chart"
>
<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"
>
<view
class=
"average-daily-consumption-chart-item-data"
@
click=
"click"
>
{{
item
.
value
}}
...
...
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