Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
A
az-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
李智书
az-uniapp-wechat-web
Commits
b25475ee
Commit
b25475ee
authored
Sep 16, 2021
by
符伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工行优化
parent
e8e08c3a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
86 additions
and
20 deletions
+86
-20
.gitignore
.gitignore
+1
-0
.hbuilderx/launch.json
.hbuilderx/launch.json
+10
-5
manifest.json
manifest.json
+1
-1
pages/IcbcModule/Recharge/Recharge.vue
pages/IcbcModule/Recharge/Recharge.vue
+68
-13
pages/IcbcModule/Reflect/Reflect.vue
pages/IcbcModule/Reflect/Reflect.vue
+6
-1
No files found.
.gitignore
View file @
b25475ee
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
node_modules/
node_modules/
unpackage/
unpackage/
dist/
dist/
.hbuilderx/
# local env files
# local env files
.env.local
.env.local
...
...
.hbuilderx/launch.json
View file @
b25475ee
...
@@ -2,10 +2,15 @@
...
@@ -2,10 +2,15 @@
//
launchtype项可配置值为local或remote
,
local代表前端连本地云函数,remote代表前端连云端云函数
//
launchtype项可配置值为local或remote
,
local代表前端连本地云函数,remote代表前端连云端云函数
"version"
:
"0.0"
,
"version"
:
"0.0"
,
"configurations"
:
[{
"configurations"
:
[{
"type"
:
"uniCloud"
,
"default"
:
"default"
:
{
{
"launchtype"
:
"remote"
"launchtype"
:
"remote"
}
},
}
"h5"
:
{
"launchtype"
:
"remote"
},
"type"
:
"uniCloud"
}
]
]
}
}
manifest.json
View file @
b25475ee
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
"secure"
:
false
,
"secure"
:
false
,
"pathRewrite"
:
{
"pathRewrite"
:
{
"^/api"
:
"/"
"^/api"
:
"/"
}
}
}
}
}
}
},
},
...
...
pages/IcbcModule/Recharge/Recharge.vue
View file @
b25475ee
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
<span>
充值生活费
</span>
<span>
充值生活费
</span>
</view>
</view>
<!-- -->
<!-- -->
<view
class=
"switchbankCard"
@
click=
"
BackToMini('AssignAddCard')
"
>
我要换银行卡支付
</view>
<view
class=
"switchbankCard"
@
click=
"
ChangeBankPay
"
>
我要换银行卡支付
</view>
</view>
</view>
</view>
</view>
...
@@ -251,7 +251,7 @@
...
@@ -251,7 +251,7 @@
tempFiles1
:
'
../../static/img/idCardBg1.png
'
,
//上传身份证临时选择文件
tempFiles1
:
'
../../static/img/idCardBg1.png
'
,
//上传身份证临时选择文件
tempFiles2
:
'
../../static/img/idCardBg0.png
'
,
tempFiles2
:
'
../../static/img/idCardBg0.png
'
,
//绑定的一类卡列表
//绑定的一类卡列表
bindcardList
:
[]
,
bindcardList
:
[]
}
}
},
},
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
...
@@ -270,6 +270,56 @@
...
@@ -270,6 +270,56 @@
},
},
methods
:
{
methods
:
{
async
ChangeBankPay
(){
uni
.
showLoading
({
mask
:
true
});
let
status
=
await
this
.
accountCloseacceptStatusQuery
();
uni
.
hideLoading
();
if
(
status
!==
0
)
return
false
;
this
.
BackToMini
(
'
AssignAddCard
'
)
},
accountCloseacceptStatusQuery
(){
return
new
Promise
((
resolve
,
reject
)
=>
{
$
.
ajax
({
//查询是否提交销户
url
:
gHost
+
"
/bank-wechat/icbc/account/manager/accountCloseacceptStatusQuery
"
,
type
:
'
post
'
,
data
:{
schoolId
:
this
.
PersonalInfo
.
schoolid
,
userId
:
this
.
PersonalInfo
.
id
,
wechattype
:
1
,
'
sessionid
'
:
sessionID
,
},
contentType
:
"
application/x-www-form-urlencoded
"
,
headers
:
{
'
sessionid
'
:
sessionID
,
},
success
:(
{
code
,
message
,
results
}
)
=>
{
let
status
=
results
&&
results
.
status
;
// 0表示未申请,1申请中,2已销户,3销户申请失败
if
(
code
===
'
10000
'
&&
status
==
'
0
'
){
}
else
if
(
code
===
'
10000
'
&&
status
==
'
1
'
){
uni
.
showToast
({
title
:
"
您已提交销户申请,银行正在审核中。
"
,
icon
:
'
none
'
,
})
}
else
{
uni
.
showToast
({
title
:
message
,
icon
:
'
none
'
,
})
}
resolve
(
status
)
},
error
:
function
(
err
)
{
uni
.
showToast
({
title
:
err
.
message
||
'
请求失败
'
,
icon
:
'
none
'
,
});
reject
(
-
1
)
},
});
})
},
// 验证码弹出框开启
// 验证码弹出框开启
toDeposit
()
{
toDeposit
()
{
if
(
this
.
isOtherMoney
)
{
if
(
this
.
isOtherMoney
)
{
...
@@ -378,6 +428,14 @@
...
@@ -378,6 +428,14 @@
loadingType
:
'
spinner
'
,
loadingType
:
'
spinner
'
,
duration
:
0
duration
:
0
});
});
try
{
let
status
=
await
this
.
accountCloseacceptStatusQuery
();
if
(
status
!==
0
)
{
loading
.
clear
();
return
false
};
}
catch
(
e
){
loading
.
clear
();
return
false
}
$
.
ajax
({
$
.
ajax
({
url
:
gHost
+
'
/bank-wechat/icbc/account/exchange/recharge
'
,
url
:
gHost
+
'
/bank-wechat/icbc/account/exchange/recharge
'
,
type
:
"
POST
"
,
type
:
"
POST
"
,
...
@@ -398,15 +456,11 @@
...
@@ -398,15 +456,11 @@
loading
.
clear
();
loading
.
clear
();
if
(
res5
.
code
==
"
10000
"
)
{
if
(
res5
.
code
==
"
10000
"
)
{
this_
.
close
();
this_
.
close
();
Toast
({
wx
.
showModal
({
className
:
'
SubmittedSuccessfully
'
,
title
:
'
充值申请已提交
'
,
message
:
'
充值申请提交成功
'
,
content
:
'
银行处理需要1-5分钟时间,充值结果以余额查询为准。
'
,
icon
:
require
(
'
../../../static/images/tijiaos.png
'
),
showCancel
:
false
});
})
setTimeout
(
function
()
{
this_
.
ExchangeRechargeQuery
(
res5
.
results
.
flowId
,
res5
.
results
.
corpSerno
);
},
2000
)
}
else
{
}
else
{
weui
.
topTips
(
res5
.
message
)
weui
.
topTips
(
res5
.
message
)
}
}
...
@@ -661,7 +715,7 @@
...
@@ -661,7 +715,7 @@
}
}
},
},
error
:
function
(
err
)
{
error
:
function
(
err
)
{
loading
.
hide
();
//
loading.hide();
},
},
});
});
},
},
...
@@ -713,7 +767,7 @@
...
@@ -713,7 +767,7 @@
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
lang=
"scss"
>
html
,
html
,
body
,
body
,
page
{
page
{
...
@@ -748,6 +802,7 @@
...
@@ -748,6 +802,7 @@
background
:
#000000
;
background
:
#000000
;
opacity
:
0
.8
;
opacity
:
0
.8
;
border-radius
:
8rpx
;
border-radius
:
8rpx
;
}
}
.cardNum
{
.cardNum
{
...
...
pages/IcbcModule/Reflect/Reflect.vue
View file @
b25475ee
...
@@ -177,7 +177,12 @@
...
@@ -177,7 +177,12 @@
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
);
// this_.ExchangeWithdrawQuery(res5.results.flowId, res5.results.corpSerno);
wx
.
showModal
({
title
:
'
提现申请已提交
'
,
content
:
'
银行处理需要1-5分钟时间,充值结果以余额查询为准。
'
,
showCancel
:
false
})
}
else
{
}
else
{
weui
.
topTips
(
res5
.
message
)
weui
.
topTips
(
res5
.
message
)
}
}
...
...
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