Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
viitto
mallapp
Commits
17ca4d6b
Commit
17ca4d6b
authored
Feb 02, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9692a66c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
86 additions
and
1 deletion
+86
-1
pages.json
pages.json
+2
-0
pointBalance.vue
pages/appointment/personal/pointBalance.vue
+73
-0
pointRecharge.vue
pages/appointment/personal/pointRecharge.vue
+8
-0
user-center.vue
pages/user-center/user-center.vue
+3
-1
No files found.
pages.json
View file @
17ca4d6b
...
...
@@ -505,6 +505,8 @@
"path"
:
"appointment"
//约课
},{
"path"
:
"personal/pointBalance"
//点数余额
},{
"path"
:
"personal/pointRecharge"
//充值点数
}
]
},
...
...
pages/appointment/personal/pointBalance.vue
View file @
17ca4d6b
<
template
>
<view
class=
"pointBalance"
>
<view
class=
"balancetop"
>
<view
class=
"topbox"
>
<span
style=
'font-size: 12px;color: #1B1D1E;'
>
账户余额(点数)
</span>
<span
style=
'font-size: 25px;color: #111111;'
>
2000
</span>
<!--
<view
class=
"recharge"
v-if=
"IsShowRecharge == 1"
@
click=
"gopointRecharge"
>
充值
</view>
-->
<view
class=
"recharge"
v-if=
"IsShowRecharge == 0"
@
click=
"gopointRecharge"
>
充值
</view>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
(){
return
{
mainColor
:
''
,
secondary
:
''
,
IsShowRecharge
:
0
,
}
},
onLoad
()
{
},
created
()
{
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
secondary
=
this
.
$uiConfig
.
secondary
;
uni
.
setNavigationBarTitle
({
title
:
'余额点数'
});
this
.
IsShowRecharge
=
uni
.
getStorageSync
(
"basedata"
)
?
uni
.
getStorageSync
(
"basedata"
).
mall
.
setting
.
IsShowRecharge
:
0
},
methods
:{
gopointRecharge
(){
uni
.
navigateTo
({
url
:
'/pages/appointment/personal/pointRecharge'
});
}
}
}
</
script
>
<
style
>
.pointBalance
{
width
:
100%
;
height
:
100vh
;
background
:
#FFFFFF
;
}
.pointBalance
.balancetop
{
width
:
100%
;
padding
:
5px
15px
;
}
.pointBalance
.topbox
{
width
:
100%
;
height
:
150px
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
space-between
;
padding
:
10px
0
;
box-shadow
:
0
2px
10px
5px
#F2F2F2
;
}
.pointBalance
.recharge
{
width
:
100px
;
height
:
30px
;
border-radius
:
4px
;
background-color
:
#40766E
;
font-size
:
13px
;
color
:
#FFF
;
margin-bottom
:
10px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
</
style
>
pages/appointment/personal/pointRecharge.vue
0 → 100644
View file @
17ca4d6b
<
template
>
</
template
>
<
script
>
</
script
>
<
style
>
</
style
>
pages/user-center/user-center.vue
View file @
17ca4d6b
...
...
@@ -392,7 +392,9 @@
this
.
scrollTop
=
0
;
},
gopointBalance
(){
//跳转点数余额
uni
.
navigateTo
({
url
:
'/pages/appointment/personal/pointBalance'
});
},
}
};
...
...
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