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
ec450caa
Commit
ec450caa
authored
Jun 08, 2022
by
袁玲利
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
充值界面
parent
46353995
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
97 additions
and
10 deletions
+97
-10
src/pages.json
src/pages.json
+2
-2
src/pages/IcbcModule/Recharge/Recharge.vue
src/pages/IcbcModule/Recharge/Recharge.vue
+95
-8
No files found.
src/pages.json
View file @
ec450caa
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
"path"
:
"pages/IcbcModule/Recharge/Recharge"
,
"path"
:
"pages/IcbcModule/Recharge/Recharge"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"
充值
"
,
"navigationBarTitleText"
:
"
电子校园卡
"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
...
@@ -263,7 +263,7 @@
...
@@ -263,7 +263,7 @@
"path"
:
"pages/BankModule/Recharge/Recharge"
,
"path"
:
"pages/BankModule/Recharge/Recharge"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"
充值
"
,
"navigationBarTitleText"
:
"
电子校园卡
"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
...
...
src/pages/IcbcModule/Recharge/Recharge.vue
View file @
ec450caa
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"userInfoBox"
>
<view
class=
"firstLine"
>
<view
class=
"avatar"
>
<image
:src=
"ImgUrl+'user/personAva.png'"
alt=
""
></image>
</view>
<view
class=
"name"
>
{{
PersonalInfo
.
name
}}
</view>
<view>
{{
PersonalInfo
.
gradename
}}{{
PersonalInfo
.
classname
}}
</view>
</view>
<view
class=
"secondLine"
>
{{
PersonalInfo
.
schoolname
}}
</view>
</view>
<view
class=
"balanceWrapper"
>
<view
class=
"firstLine"
></view>
</view>
<view
class=
"contentBox"
v-if=
"!depotMoneyother"
>
<view
class=
"contentBox"
v-if=
"!depotMoneyother"
>
<!--
<image
mode=
'widthFix'
src=
"https://xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/images/xiaopaycard (31).png"
></image>
-->
<!--
<image
mode=
'widthFix'
src=
"https://xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/images/xiaopaycard (31).png"
></image>
-->
<view
class=
"contentDiv"
>
<view
class=
"contentDiv"
>
...
@@ -98,7 +113,7 @@
...
@@ -98,7 +113,7 @@
</view>
</view>
<!-- 充值其它金额 -->
<!-- 充值其它金额 -->
<!--
<view
class=
"OtherMoney"
v-if=
"isOtherMoney"
>
-->
<!--
<view
class=
"OtherMoney"
v-if=
"isOtherMoney"
>
-->
<view
class=
"OtherMoney"
>
<view
class=
"OtherMoney"
>
<span>
¥
</span>
<span>
¥
</span>
<input
<input
v-model=
"inputOtherM"
v-model=
"inputOtherM"
...
@@ -216,7 +231,10 @@
...
@@ -216,7 +231,10 @@
item
.
bindCardNo
.
slice
(
item
.
bindCardNo
.
length
-
4
)
item
.
bindCardNo
.
slice
(
item
.
bindCardNo
.
length
-
4
)
}}
</span
}}
</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>
...
@@ -450,8 +468,8 @@ export default {
...
@@ -450,8 +468,8 @@ export default {
// 输入限制
// 输入限制
inputControl
(
e
)
{
inputControl
(
e
)
{
let
this_
=
this
;
let
this_
=
this
;
this_
.
MoneyIndex
=
-
1
;
this_
.
MoneyIndex
=
-
1
;
this_
.
isOtherMoney
=
true
;
this_
.
isOtherMoney
=
true
;
let
obj
=
e
.
detail
;
let
obj
=
e
.
detail
;
this
.
$nextTick
(
function
()
{
this
.
$nextTick
(
function
()
{
obj
.
value
=
obj
.
value
.
replace
(
/
[^\d
.
]
/g
,
""
);
//清除"数字"和"."以外的字符
obj
.
value
=
obj
.
value
.
replace
(
/
[^\d
.
]
/g
,
""
);
//清除"数字"和"."以外的字符
...
@@ -643,9 +661,9 @@ export default {
...
@@ -643,9 +661,9 @@ export default {
// return;
// return;
// }
// }
this
.
isOtherMoney
=
false
;
this
.
isOtherMoney
=
false
;
this
.
inputOtherM
=
""
;
this
.
inputOtherM
=
""
;
this
.
Money
=
parseInt
(
value
);
this
.
Money
=
parseInt
(
value
);
this
.
MoneyIndex
=
MoneyIndex
;
this
.
MoneyIndex
=
MoneyIndex
;
},
},
//按钮操作
//按钮操作
HideHTML
(
dom
,
type
)
{
HideHTML
(
dom
,
type
)
{
...
@@ -871,7 +889,76 @@ page {
...
@@ -871,7 +889,76 @@ page {
width
:
750rpx
;
width
:
750rpx
;
background
:
linear-gradient
(
180deg
,
#ffffff
0%
,
#fafafa
100%
);
background
:
linear-gradient
(
180deg
,
#ffffff
0%
,
#fafafa
100%
);
}
}
.userInfoBox
{
display
:
flex
;
flex-direction
:
column
;
width
:
calc
(
100%
-
64rpx
);
height
:
150rpx
;
margin
:
0
32rpx
;
margin-top
:
30rpx
;
background
:
linear-gradient
(
270deg
,
#f4f4f4
0%
,
#ebebeb
100%
);
border-radius
:
16px
;
.firstLine
{
display
:
flex
;
flex-direction
:
row
;
width
:
calc
(
100%
-
68rpx
);
height
:
56rpx
;
line-height
:
56rpx
;
margin
:
0
34rpx
;
margin-top
:
28rpx
;
overflow
:
hidden
;
view
{
white-space
:
nowrap
;
}
.avatar
{
width
:
56rpx
;
height
:
56rpx
;
uni-image
{
width
:
56rpx
;
height
:
56rpx
;
}
}
.name
{
margin-left
:
17rpx
;
font-size
:
36rpx
;
font-weight
:
600
;
color
:
rgba
(
0
,
0
,
0
,
0
.85
);
}
view
:last-child
{
margin-left
:
10rpx
;
align-self
:
center
;
align-items
:
center
;
padding
:
0
8rpx
;
height
:
40rpx
;
line-height
:
40rpx
;
background
:
rgba
(
0
,
0
,
0
,
0
.08
);
border-radius
:
4rpx
;
font-size
:
26rpx
;
font-weight
:
500
;
color
:
rgba
(
0
,
0
,
0
,
0
.5
);
}
}
.secondLine
{
display
:
flex
;
width
:
calc
(
100%
-
62rpx
);
margin
:
0
31rpx
;
margin-top
:
8rpx
;
height
:
37rpx
;
line-height
:
37rpx
;
font-size
:
26rpx
;
color
:
rgba
(
0
,
0
,
0
,
0
.45
);
}
}
.balanceWrapper
{
width
:
calc
(
100%
-
64rpx
);
margin
:
0
32rpx
;
margin-top
:
24rpx
;
height
:
289rpx
;
background-image
:
url("https://xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/user/bankBg.png")
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
position
:
relative
;
}
.showBindCardList
{
.showBindCardList
{
.choiceBox
{
.choiceBox
{
text-align
:
center
;
text-align
:
center
;
...
...
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