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
fe3d2239
Commit
fe3d2239
authored
Jul 03, 2024
by
袁玲利
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存
parent
e7a5d58c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
49 deletions
+52
-49
src/pages/BankModule/Recharge/Recharge.vue
src/pages/BankModule/Recharge/Recharge.vue
+10
-31
src/pages/toAliPay/toAliPay.vue
src/pages/toAliPay/toAliPay.vue
+42
-18
No files found.
src/pages/BankModule/Recharge/Recharge.vue
View file @
fe3d2239
...
@@ -607,7 +607,6 @@ export default {
...
@@ -607,7 +607,6 @@ export default {
typeCode
:
""
,
typeCode
:
""
,
unbindFlag
:
false
,
// 解绑标志
unbindFlag
:
false
,
// 解绑标志
unattachedCardItem
:
{},
unattachedCardItem
:
{},
accountType
:
""
,
};
};
},
},
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
...
@@ -1362,38 +1361,19 @@ export default {
...
@@ -1362,38 +1361,19 @@ export default {
if
(
bankInfo
.
bindCardNo
==
item
.
bindCardNo
)
{
if
(
bankInfo
.
bindCardNo
==
item
.
bindCardNo
)
{
return
;
return
;
}
}
if
(
this
.
accountType
==
2
&&
this
.
typeCode
==
'
BOCOM
'
){
// 交行二类户
let
userName_
=
(
bankInfo
.
trueName
).
substring
((
bankInfo
.
trueName
).
length
-
1
)
let
accountNo_
=
(
bankInfo
.
accountNo
).
replace
(
/
\s
*/g
,
""
);
accountNo_
=
accountNo_
.
substring
(
accountNo_
.
length
-
4
)
jWeixin
.
miniProgram
.
navigateTo
({
url
:
'
/pages_subpackB/pages/FaceRecogAuthen/main?userName=
'
+
userName_
+
"
&accountNo=
"
+
accountNo_
})
return
;
}
var
loading
=
weui
.
loading
(
"
请稍后
"
);
var
loading
=
weui
.
loading
(
"
请稍后
"
);
let
params
=
{
schoolId
:
bankInfo
.
schoolId
,
userId
:
userID
,
sessionid
:
sessionID
,
wechattype
:
1
,
bindMedium
:
item
.
bindCardNo
,
bindMediumName
:
item
.
bindCardName
,
};
let
url
=
"
/bank-wechat/icbc/account/bindcard/changeDefaultBinding
"
;
if
(
this_
.
typeCode
==
"
BOCOM
"
)
{
url
=
'
/bank-wechat/bocom/open/changeBindCard
'
;
Object
.
assign
(
params
,{
livingOrderNo
:
uni
.
getStorageSync
(
'
faceIdentificationNo
'
)
})
}
$
.
ajax
({
$
.
ajax
({
url
:
gHost
+
url
,
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
:
params
,
data
:
{
schoolId
:
bankInfo
.
schoolId
,
userId
:
userID
,
sessionid
:
sessionID
,
wechattype
:
1
,
bindMedium
:
item
.
bindCardNo
,
bindMediumName
:
item
.
bindCardName
,
},
success
:
function
(
res5
)
{
success
:
function
(
res5
)
{
loading
.
hide
();
loading
.
hide
();
if
(
res5
.
code
==
"
10000
"
)
{
if
(
res5
.
code
==
"
10000
"
)
{
...
@@ -1562,7 +1542,6 @@ export default {
...
@@ -1562,7 +1542,6 @@ export default {
console
.
log
(
res
);
console
.
log
(
res
);
if
(
res
.
code
==
"
10000
"
&&
res
.
results
)
{
if
(
res
.
code
==
"
10000
"
&&
res
.
results
)
{
self
.
rechargeLimit
=
res
.
results
.
rechargeLimit
||
""
;
self
.
rechargeLimit
=
res
.
results
.
rechargeLimit
||
""
;
self
.
accountType
=
res
.
results
.
accountType
;
if
(
self
.
rechargeLimit
==
1
){
if
(
self
.
rechargeLimit
==
1
){
self
.
queryWalletRechargeLimit
()
self
.
queryWalletRechargeLimit
()
}
}
...
@@ -1630,7 +1609,7 @@ export default {
...
@@ -1630,7 +1609,7 @@ export default {
this_
.
actions
=
this_
.
actions
.
filter
((
x
)
=>
x
.
text
!=
"
证件更新
"
);
this_
.
actions
=
this_
.
actions
.
filter
((
x
)
=>
x
.
text
!=
"
证件更新
"
);
}
}
if
(
this_
.
typeCode
==
"
BOCOM
"
)
{
if
(
this_
.
typeCode
==
"
BOCOM
"
)
{
this_
.
actions
=
this_
.
actions
.
filter
((
x
)
=>
x
.
text
!=
"
申请激活
"
&&
x
.
text
!=
"
证件更新
"
);
this_
.
actions
=
this_
.
actions
.
filter
((
x
)
=>
x
.
text
!=
"
证件更新
"
);
}
}
bankInfo
.
sessionid
=
sessionID
;
bankInfo
.
sessionid
=
sessionID
;
this_
.
queryBankInfo
();
//查余额
this_
.
queryBankInfo
();
//查余额
...
...
src/pages/toAliPay/toAliPay.vue
View file @
fe3d2239
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
if
(
this
.
fromPage
==
"
WECHAT
"
)
{
if
(
this
.
fromPage
==
"
WECHAT
"
)
{
if
(
this
.
faceType
==
"
OPEN_ACCOUNT
"
)
{
if
(
this
.
faceType
==
"
OPEN_ACCOUNT
"
)
{
// 开户
// 开户
jWeixin
.
miniProgram
.
navigateTo
({
jWeixin
.
miniProgram
.
navigateTo
({
url
:
`/pages_subpack/pages/BankOpenAccount/BankOpenAccount?faceAuth=1`
,
url
:
`/pages_subpack/pages/BankOpenAccount/BankOpenAccount?faceAuth=1`
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
// 跳转成功
// 跳转成功
...
@@ -35,23 +35,47 @@
...
@@ -35,23 +35,47 @@
console
.
error
(
'
navigateTo failed:
'
,
err
);
console
.
error
(
'
navigateTo failed:
'
,
err
);
}
}
});
});
}
else
{
}
else
if
(
this
.
faceType
==
"
UPDATE_BIND_CARD
"
)
{
if
(
this
.
faceType
==
"
OPEN_ACCOUNT
"
)
{
// 换绑卡
// 开户
jWeixin
.
miniProgram
.
navigateTo
({
my
.
navigateTo
({
url
:
`/pages/AssignAddCardInfo/main?faceAuth=1`
,
url
:
`/pages/BankModule/OpenAccount/OpenAccount?faceAuth=1`
,
success
:
function
(
res
)
{
});
// 跳转成功
}
else
if
(
this
.
faceType
==
"
CHANGE_CARD
"
)
{
},
// 换绑卡
fail
:
function
(
err
)
{
my
.
navigateTo
({
// 捕捉到错误,可以在这里处理错误
url
:
`/pages/BankModule/ChangeBankPay/ChangeBankPay?faceAuth=1`
,
console
.
error
(
'
navigateTo failed:
'
,
err
);
});
}
}
else
if
(
this
.
faceType
==
"
CANCEL_ACCOUNT
"
||
this
.
faceType
==
"
ACTIVE_ACCOUNT
"
)
{
});
// 销户、不动户激活
}
else
if
(
this
.
faceType
==
"
CANCEL_ACCOUNT
"
)
{
my
.
navigateTo
({
// 销户
url
:
`/pages/BankModule/Recharge/Recharge?faceAuth=1&faceType=
${
this
.
faceType
}
`
,
jWeixin
.
miniProgram
.
navigateTo
({
});
url
:
`/pages/AssignCancelUserPhone/main?faceAuth=1`
,
}
success
:
function
(
res
)
{
// 跳转成功
},
fail
:
function
(
err
)
{
// 捕捉到错误,可以在这里处理错误
console
.
error
(
'
navigateTo failed:
'
,
err
);
}
});
}
}
else
{
if
(
this
.
faceType
==
"
OPEN_ACCOUNT
"
)
{
// 开户
my
.
navigateTo
({
url
:
`/pages/BankModule/OpenAccount/OpenAccount?faceAuth=1`
,
});
}
else
if
(
this
.
faceType
==
"
CHANGE_CARD
"
)
{
// 换绑卡
my
.
navigateTo
({
url
:
`/pages/BankModule/ChangeBankPay/ChangeBankPay?faceAuth=1`
,
});
}
else
if
(
this
.
faceType
==
"
CANCEL_ACCOUNT
"
||
this
.
faceType
==
"
ACTIVE_ACCOUNT
"
)
{
// 销户、不动户激活
my
.
navigateTo
({
url
:
`/pages/BankModule/Recharge/Recharge?faceAuth=1&faceType=
${
this
.
faceType
}
`
,
});
}
}
}
}
}
}
...
...
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