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
d07096a4
Commit
d07096a4
authored
Aug 20, 2021
by
符伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工商功能修改
parent
7a25c575
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
99 additions
and
63 deletions
+99
-63
.gitignore
.gitignore
+1
-0
manifest.json
manifest.json
+12
-2
pages/IcbcModule/Recharge/Recharge.vue
pages/IcbcModule/Recharge/Recharge.vue
+72
-56
pages/IcbcModule/Reflect/Reflect.vue
pages/IcbcModule/Reflect/Reflect.vue
+14
-5
No files found.
.gitignore
View file @
d07096a4
...
@@ -6,6 +6,7 @@ dist/
...
@@ -6,6 +6,7 @@ dist/
# local env files
# local env files
.env.local
.env.local
.env.*.local
.env.*.local
manifest.json
# Log files
# Log files
npm-debug.log*
npm-debug.log*
...
...
manifest.json
View file @
d07096a4
...
@@ -85,8 +85,18 @@
...
@@ -85,8 +85,18 @@
},
},
"h5"
:
{
"h5"
:
{
"devServer"
:
{
"devServer"
:
{
"port"
:
80
,
"port"
:
80
,
"disableHostCheck"
:
true
"disableHostCheck"
:
true
,
"proxy"
:
{
"/api"
:
{
"target"
:
"https://uat.xiaopay.net"
,
"changeOrigin"
:
true
,
"secure"
:
false
,
"pathRewrite"
:
{
"^/api"
:
"/"
}
}
}
},
},
"router"
:
{
"router"
:
{
"mode"
:
"hash"
,
"mode"
:
"hash"
,
...
...
pages/IcbcModule/Recharge/Recharge.vue
View file @
d07096a4
...
@@ -67,8 +67,9 @@
...
@@ -67,8 +67,9 @@
<!-- 支付方式 -->
<!-- 支付方式 -->
<view
class=
"payType"
@
click=
"queryBindCardList"
>
<view
class=
"payType"
@
click=
"queryBindCardList"
>
<view>
付款方式
</view>
<view>
付款方式
</view>
<view>
{{
bankInfo_
.
accountName
}}
(
{{
bankInfo_
.
accountNo
.
slice
(
bankInfo_
.
accountNo
.
length
-
4
)
}}
)
<span
<view>
{{
bankInfo_
.
bindCardName
}}
{{
bankInfo_
.
bindCardNo
.
slice
(
bankInfo_
.
bindCardNo
.
length
-
4
)
}}
<span
class=
"arrow"
></span></view>
class=
"arrow"
></span></view>
<!--
<view>
{{
bankInfo_
.
accountName
}}
(
{{
bankInfo_
.
accountNo
.
slice
(
bankInfo_
.
accountNo
.
length
-
4
)
}}
)
<span
class=
"arrow"
></span></view>
-->
</view>
</view>
<!--
<view
class=
""
style=
"height: 1rpx;background-color: #DFDFDF;"
></view>
-->
<!--
<view
class=
""
style=
"height: 1rpx;background-color: #DFDFDF;"
></view>
-->
<!-- 充值生活费 -->
<!-- 充值生活费 -->
...
@@ -117,8 +118,8 @@
...
@@ -117,8 +118,8 @@
<view
class=
""
v-else
>
<view
class=
""
v-else
>
充值金额:
{{
Money
}}
元
充值金额:
{{
Money
}}
元
</view>
</view>
<view
class=
""
>
<view
class=
""
>
付款账户:
{{
bankInfo_
.
accountName
}}
(
{{
bankInfo_
.
account
No
.
slice
(
bankInfo_
.
accountNo
.
length
-
4
)
}}
)
付款账户:
{{
bankInfo_
.
bindCardName
}}
(
{{
bankInfo_
.
bindCardNo
&&
bankInfo_
.
bindCard
No
.
slice
(
bankInfo_
.
accountNo
.
length
-
4
)
}}
)
</view>
</view>
</view>
</view>
<view
style=
"width: 520rpx;height: 1rpx;background: #EEEEEE;"
></view>
<view
style=
"width: 520rpx;height: 1rpx;background: #EEEEEE;"
></view>
...
@@ -142,11 +143,13 @@
...
@@ -142,11 +143,13 @@
<!-- 切换绑定的一类卡列表 -->
<!-- 切换绑定的一类卡列表 -->
<view
class=
"showBindCardList"
>
<view
class=
"showBindCardList"
>
<view
class=
"choiceBox"
>
选择付款账户
</view>
<view
class=
"choiceBox"
>
选择付款账户
</view>
<view
class=
"ListItem"
@
click=
"ChangeCardPay('bankName','bindCardNo')"
<view
class=
"ListItem"
@
click=
"ChangeCardPay(item)"
v-for=
"(item,index) in bindcardList"
:key=
"index"
>
v-for=
"(item,index) in bindcardList"
:key=
"index"
>
<span
>
{{
item
.
bankName
}}
</span>
<span
style=
"padding-right:10px;"
>
{{
item
.
bindCardName
}}
</span>
<span>
{{
item
.
bindCardNo
}}
</span>
<span>
尾号:
{{
item
.
bindCardNo
.
slice
(
item
.
bindCardNo
.
length
-
4
)
}}
</span>
<
image
class=
'BankListImg'
src=
'../../../static/img/choiceBank.png'
></image
>
<
!--
<image
class=
'BankListImg'
src=
'../../../static/img/choiceBank.png'
></image>
--
>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -232,7 +235,9 @@
...
@@ -232,7 +235,9 @@
usertype
:
"
1
"
usertype
:
"
1
"
},
},
bankInfo_
:
{
bankInfo_
:
{
accountNo
:
'
**** **** **** 1234
'
accountNo
:
'
**** **** **** 1234
'
,
bindCardName
:
''
,
bindCardNo
:
''
},
},
ImgUrl
:
this
.
$ImgUrl
,
ImgUrl
:
this
.
$ImgUrl
,
MoneyList
:
Array
(
6
).
fill
(
1
).
map
((
v
,
index
)
=>
{
MoneyList
:
Array
(
6
).
fill
(
1
).
map
((
v
,
index
)
=>
{
...
@@ -246,7 +251,7 @@
...
@@ -246,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
)
{
...
@@ -438,11 +443,19 @@
...
@@ -438,11 +443,19 @@
success
:
function
(
res5
)
{
success
:
function
(
res5
)
{
loading
.
clear
();
loading
.
clear
();
if
(
res5
.
code
==
"
10000
"
)
{
if
(
res5
.
code
==
"
10000
"
)
{
let
appStatus
=
res5
.
results
.
appStatus
;
if
(
appStatus
==
'
4
'
){
uni
.
showModal
({
uni
.
showModal
({
title
:
"
系统提示
"
,
title
:
"
系统提示
"
,
content
:
"
充值成功!
"
content
:
"
充值成功!
"
})
})
this_
.
queryBankInfo
();
this_
.
queryBankInfo
();
}
else
{
uni
.
showModal
({
title
:
"
系统提示
"
,
content
:
appStatus
==
'
1
'
?
'
申请已受理
'
:
'
申请失败
'
})
}
}
else
{
}
else
{
weui
.
topTips
(
res5
.
message
)
weui
.
topTips
(
res5
.
message
)
uni
.
showModal
({
uni
.
showModal
({
...
@@ -459,15 +472,10 @@
...
@@ -459,15 +472,10 @@
// 复制我卡号
// 复制我卡号
async
CopyCardNumber
()
{
async
CopyCardNumber
()
{
let
value
=
this
.
bankInfo_
.
accountNo
let
value
=
this
.
bankInfo_
.
accountNo
// Dialog({
Dialog
({
// title: '系统提示',
title
:
'
系统提示
'
,
// message: '卡号复制成功'
message
:
'
复制成功!
'
// });
});
uni
.
showToast
({
icon
:
"
none
"
,
duration
:
3000
,
title
:
"
卡号复制成功!
"
})
this
.
$nextTick
(
function
()
{
this
.
$nextTick
(
function
()
{
let
clipboard
=
new
ClipboardJS
(
'
#cardNumright
'
,
{
let
clipboard
=
new
ClipboardJS
(
'
#cardNumright
'
,
{
text
:
function
()
{
text
:
function
()
{
...
@@ -516,14 +524,14 @@
...
@@ -516,14 +524,14 @@
}
}
},
},
//换绑卡
//换绑卡
ChangeCardPay
(
bankName
,
bindCard
)
{
ChangeCardPay
(
item
)
{
let
this_
=
this
;
let
this_
=
this
;
if
(
b
indCard
==
payCardNumber
)
{
if
(
b
ankInfo
.
bindCardNo
==
item
.
bindCardNo
)
{
return
return
}
}
var
loading
=
weui
.
loading
(
'
请稍后
'
);
var
loading
=
weui
.
loading
(
'
请稍后
'
);
$
.
ajax
({
$
.
ajax
({
url
:
gHost
+
'
/bank-wechat/
user/bank/change/bind
'
,
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
:
{
...
@@ -531,16 +539,18 @@
...
@@ -531,16 +539,18 @@
userId
:
userID
,
userId
:
userID
,
sessionid
:
sessionID
,
sessionid
:
sessionID
,
wechattype
:
1
,
wechattype
:
1
,
accountName
:
bankName
,
bindMedium
:
item
.
bindCardNo
,
accountNo
:
bindCard
,
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
();
}
else
{
}
else
{
weui
.
topTips
(
res5
.
message
)
weui
.
topTips
(
res5
.
message
)
}
}
this_
.
popshow
=
false
;
},
},
error
:
function
(
err
)
{
error
:
function
(
err
)
{
loading
.
hide
();
loading
.
hide
();
...
@@ -549,14 +559,14 @@
...
@@ -549,14 +559,14 @@
},
},
//查询一类卡绑定列表
//查询一类卡绑定列表
queryBindCardList
()
{
queryBindCardList
()
{
return
let
this_
=
this
;
let
this_
=
this
;
let
loading
=
weui
.
loading
(
'
请稍后
'
);
let
loading
=
weui
.
loading
(
'
请稍后
'
);
$
.
ajax
({
$
.
ajax
({
url
:
gHost
+
'
/bank-wechat/
query/accoun
t
'
,
url
:
gHost
+
'
/bank-wechat/
icbc/account/bindcard/bindingLis
t
'
,
type
:
"
POST
"
,
type
:
"
POST
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
contentType
:
"
application/x-www-form-urlencoded
"
,
data
:
{
data
:
{
mediumId
:
bankInfo
.
accountNo
,
schoolId
:
bankInfo
.
schoolId
,
schoolId
:
bankInfo
.
schoolId
,
userId
:
userID
,
userId
:
userID
,
sessionid
:
sessionID
,
sessionid
:
sessionID
,
...
@@ -565,7 +575,7 @@
...
@@ -565,7 +575,7 @@
success
:
function
(
res4
)
{
success
:
function
(
res4
)
{
loading
.
hide
();
loading
.
hide
();
if
(
res4
.
code
==
"
10000
"
)
{
if
(
res4
.
code
==
"
10000
"
)
{
this_
.
bindcardList
=
res4
.
results
.
accountList
[
0
].
bindcardList
this_
.
bindcardList
=
res4
.
results
;
this_
.
popshow
=
true
this_
.
popshow
=
true
}
else
{
}
else
{
weui
.
topTips
(
res4
.
message
)
weui
.
topTips
(
res4
.
message
)
...
@@ -642,8 +652,9 @@
...
@@ -642,8 +652,9 @@
}
}
bankInfo
=
res2
.
results
;
bankInfo
=
res2
.
results
;
bankInfo
.
sessionid
=
sessionID
;
bankInfo
.
sessionid
=
sessionID
;
this_
.
queryBankInfo
();
this_
.
queryBankInfo
();
//查余额
this_
.
bankInfo_
=
bankInfo
this_
.
bankInfo_
=
bankInfo
;
// this_.getBindingList(bankInfo.accountNo,bankInfo.schoolId,bankInfo.id);
}
else
{
}
else
{
weui
.
topTips
(
res2
.
message
)
weui
.
topTips
(
res2
.
message
)
}
}
...
@@ -708,6 +719,25 @@
...
@@ -708,6 +719,25 @@
width
:
750rpx
;
width
:
750rpx
;
background
:
linear-gradient
(
180deg
,
#FFFFFF
0%
,
#FAFAFA
100%
);
background
:
linear-gradient
(
180deg
,
#FFFFFF
0%
,
#FAFAFA
100%
);
}
}
.showBindCardList
{
.choiceBox
{
text-align
:
center
;
font-weight
:
bold
;
height
:
50px
;
line-height
:
50px
;
padding
:
0
;
border-bottom
:
0
.5px
solid
#e6e6e6
;
}
.ListItem
{
border-bottom
:
1rpx
solid
#e6e6e6
;
font-size
:
30rpx
;
padding
:
25rpx
0
;
background
:
#fff
;
position
:
relative
;
text-align
:
center
;
}
}
.SubmittedSuccessfully
{
.SubmittedSuccessfully
{
width
:
400rpx
!
important
;
width
:
400rpx
!
important
;
...
@@ -995,26 +1025,12 @@
...
@@ -995,26 +1025,12 @@
}
}
@media screen and(max-height:600px) {
.bottomdiv {
// position: fixed;
// left: 0;
// right: 0;
// bottom: 30rpx;
margin-top: 173rpx;
padding-bottom: 80rpx;
}
}
@media screen and(min-height:600px) {
.bottomdiv {
.bottomdiv {
position: fixed;
position: fixed;
left: 0;
left: 0;
right: 0;
right: 0;
bottom: 30rpx;
bottom: 30rpx;
}
}
}
.DepositID {
.DepositID {
width: 630rpx;
width: 630rpx;
...
@@ -1075,7 +1091,7 @@
...
@@ -1075,7 +1091,7 @@
}
}
.ContenInfo {
.ContenInfo {
//
text-align: center;
text-align: center;
width: 383rpx;
width: 383rpx;
height: 159rpx;
height: 159rpx;
margin: 0 auto;
margin: 0 auto;
...
...
pages/IcbcModule/Reflect/Reflect.vue
View file @
d07096a4
...
@@ -209,11 +209,20 @@
...
@@ -209,11 +209,20 @@
success
:
function
(
res5
)
{
success
:
function
(
res5
)
{
loading
.
hide
();
loading
.
hide
();
if
(
res5
.
code
==
"
10000
"
)
{
if
(
res5
.
code
==
"
10000
"
)
{
let
appStatus
=
res5
.
results
.
appStatus
;
if
(
appStatus
==
'
4
'
){
uni
.
showModal
({
uni
.
showModal
({
title
:
"
系统提示
"
,
title
:
"
系统提示
"
,
content
:
"
提现成功!
"
content
:
"
提现成功!
"
})
})
uni
.
navigateBack
({})
uni
.
navigateBack
({})
}
else
{
uni
.
showModal
({
title
:
"
系统提示
"
,
content
:
appStatus
==
'
1
'
?
'
申请已受理
'
:
'
申请失败
'
})
}
}
else
{
}
else
{
weui
.
topTips
(
res5
.
message
)
weui
.
topTips
(
res5
.
message
)
uni
.
showModal
({
uni
.
showModal
({
...
...
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