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
f2876cd4
Commit
f2876cd4
authored
Dec 03, 2021
by
李智书
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改提现;
parent
2a454128
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
236 additions
and
11 deletions
+236
-11
src/pages/BankModule/Reflect/Reflect.vue
src/pages/BankModule/Reflect/Reflect.vue
+236
-11
No files found.
src/pages/BankModule/Reflect/Reflect.vue
View file @
f2876cd4
...
@@ -25,6 +25,36 @@
...
@@ -25,6 +25,36 @@
</view>
</view>
<view
class=
"switchbankCard"
@
click=
"BackToMini('TxHistory')"
>
提现记录
</view>
<view
class=
"switchbankCard"
@
click=
"BackToMini('TxHistory')"
>
提现记录
</view>
</view>
</view>
<!-- 弹出层 -->
<uni-popup
ref=
"popup"
:mask-click=
"false"
>
<!-- 充值确认 -->
<view
class=
"RechargeConfirmationBox"
>
<view
class=
"RechargeInfo"
>
<view
class=
"closePhoneBox"
@
click=
"close()"
>
<image
src=
"../../../static/img/close.png"
mode=
"aspectFit"
></image>
</view>
<view
class=
"RechargeInfo1"
>
验证校园卡开卡手机号
</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>
<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"
>
{{
CodeMsg
}}
</van-button>
</van-field>
<view
style=
"width: 520rpx;height: 1rpx;background: #EEEEEE;"
></view>
<!-- 取消 确认充值按钮 -->
<view
class=
"BtngGoup"
>
<view
class=
""
@
click=
"ExchangeWithdraw"
>
提现
</view>
</view>
</view>
</view>
</uni-popup>
</view>
</view>
</
template
>
</
template
>
...
@@ -76,6 +106,15 @@
...
@@ -76,6 +106,15 @@
bankInfo_
:
{
bankInfo_
:
{
accountNo
:
'
**** **** **** 1234
'
accountNo
:
'
**** **** **** 1234
'
},
},
/**
* 20211129新增
*/
// 充值手机号码
openCardPhon
:
""
,
openCardPhonSms
:
""
,
msCount
:
60
,
//定时器
CodeMsg
:
"
获取验证码
"
,
RechargeSmsorderNoInfo
:
{}
//第三方合作交易标识
}
}
},
},
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
...
@@ -94,6 +133,75 @@
...
@@ -94,6 +133,75 @@
},
},
methods
:
{
methods
:
{
// 充值验证获取验证码
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
+
'
/bocom/exchange/withdrawSms
'
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
amount
:
(
this
.
inputOtherM
*
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
();
},
});
},
//定时器
IntervalFun
()
{
if
(
this
.
msCount
==
1
)
{
window
.
clearInterval
(
MyTimer
);
//停止计时器
MyTimer
=
null
this
.
CodeMsg
=
"
获取验证码
"
this
.
msCount
=
60
;
}
else
{
this
.
msCount
--
;
this
.
CodeMsg
=
this
.
msCount
+
"
s后获取
"
}
},
// 验证码弹出框关闭
close
()
{
this
.
$refs
.
popup
.
close
()
},
//全部提现
//全部提现
TxAllFun
()
{
TxAllFun
()
{
let
this_
=
this
let
this_
=
this
...
@@ -152,24 +260,22 @@
...
@@ -152,24 +260,22 @@
weui
.
topTips
(
`提现金额不可大于账户余额`
);
weui
.
topTips
(
`提现金额不可大于账户余额`
);
return
return
}
}
await
this
.
ExchangeWithdraw
(
)
this
.
$refs
.
popup
.
open
(
'
top
'
)
},
},
// 提现
// 提现
async
ExchangeWithdraw
()
{
async
ExchangeWithdraw
()
{
let
this_
=
this
;
let
this_
=
this
;
let
loading
=
weui
.
loading
(
'
请稍后
'
);
let
loading
=
weui
.
loading
(
'
请稍后
'
);
$
.
ajax
({
$
.
ajax
({
url
:
gHost
+
'
/bank-wechat/
icbc/account
/exchange/withdraw
'
,
url
:
gHost
+
'
/bank-wechat/
bocom
/exchange/withdraw
'
,
type
:
"
POST
"
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
data
:
{
orderNo
:
this_
.
RechargeSmsorderNoInfo
.
orderNo
,
schoolId
:
bankInfo
.
schoolId
,
schoolId
:
bankInfo
.
schoolId
,
userId
:
userID
,
userId
:
userID
,
sessionid
:
sessionID
,
sessionid
:
sessionID
,
wechattype
:
1
,
wechattype
:
1
,
amount
:
this_
.
inputOtherM
*
1
,
bindMedium
:
this_
.
bankInfo_
.
bindCardNo
,
summary
:
"
提现
"
,
},
},
headers
:
{
headers
:
{
'
sessionid
'
:
sessionID
,
'
sessionid
'
:
sessionID
,
...
@@ -177,11 +283,13 @@
...
@@ -177,11 +283,13 @@
success
:
function
(
res5
)
{
success
:
function
(
res5
)
{
loading
.
hide
();
loading
.
hide
();
if
(
res5
.
code
==
"
10000
"
)
{
if
(
res5
.
code
==
"
10000
"
)
{
// this_.ExchangeWithdrawQuery(res5.results.flowId, res5.results.corpSerno);
wx
.
showModal
({
wx
.
showModal
({
title
:
'
提现申请已提交
'
,
title
:
'
提现申请已提交
'
,
content
:
'
银行处理需要1-5分钟时间,充值结果以余额查询为准。
'
,
content
:
'
银行处理需要1-5分钟时间,充值结果以余额查询为准。
'
,
showCancel
:
false
showCancel
:
false
,
success
:
function
()
{
this_
.
ExchangeWithdrawQuery
();
}
})
})
}
else
{
}
else
{
weui
.
topTips
(
res5
.
message
)
weui
.
topTips
(
res5
.
message
)
...
@@ -197,16 +305,14 @@
...
@@ -197,16 +305,14 @@
let
this_
=
this
;
let
this_
=
this
;
let
loading
=
weui
.
loading
(
'
请稍后
'
);
let
loading
=
weui
.
loading
(
'
请稍后
'
);
$
.
ajax
({
$
.
ajax
({
url
:
gHost
+
'
/bank-wechat/
icbc/account
/exchange/withdrawQuery
'
,
url
:
gHost
+
'
/bank-wechat/
bocom
/exchange/withdrawQuery
'
,
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
,
oriCorpSerno
:
oriCorpSerno
,
},
},
headers
:
{
headers
:
{
'
sessionid
'
:
sessionID
,
'
sessionid
'
:
sessionID
,
...
@@ -619,4 +725,123 @@
...
@@ -619,4 +725,123 @@
padding
:
8rpx
;
padding
:
8rpx
;
position
:
relative
;
position
:
relative
;
}
}
.RechargeConfirmationBox
{
position
:
fixed
;
left
:
0
;
right
:
0
;
top
:
400rpx
;
width
:
618rpx
;
height
:
520rpx
;
background
:
#FFFFFF
;
border-radius
:
8rpx
;
margin
:
0
auto
;
.RechargeInfo
{
width
:
560rpx
;
height
:
100%
;
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
{
height
:
120rpx
;
line-height
:
88rpx
;
font-size
:
30rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#000000
;
text-align
:
center
;
}
.ContenInfo
{
text-align
:
center
;
// width: 383rpx;
height
:
159rpx
;
margin
:
0
auto
;
font-size
:
32rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#010101
;
view
{
line-height
:
75rpx
;
}
}
.BtngGoup
{
justify-content
:
space-between
;
display
:
flex
;
margin-top
:
40rpx
;
view
{
width
:
100%
;
height
:
68rpx
;
border-radius
:
8rpx
;
text-align
:
center
;
line-height
:
68rpx
;
}
view
:nth-child
(
1
)
{
background
:
#1CC48B
;
font-size
:
30rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#EBEBEB
;
}
view
:nth-child
(
2
)
{
background
:
#1CC48B
;
font-size
:
36rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#FFFFFF
;
}
}
}
}
.closePhoneBox
{
// width: 35rpx;
height
:
35rpx
;
position
:
relative
;
right
:
-20rpx
;
top
:
20rpx
;
text-align
:
right
;
image
{
width
:
35rpx
;
height
:
35rpx
;
position
:
relative
;
right
:
10rpx
;
}
}
</
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