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
583edb5f
Commit
583edb5f
authored
Feb 04, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
41552a99
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
6 deletions
+54
-6
appointment.vue
pages/appointment/appointment.vue
+2
-0
pointBalance.vue
pages/appointment/personal/pointBalance.vue
+9
-2
pointRecharge.vue
pages/appointment/personal/pointRecharge.vue
+2
-2
user-center.vue
pages/user-center/user-center.vue
+41
-2
No files found.
pages/appointment/appointment.vue
View file @
583edb5f
...
...
@@ -287,10 +287,12 @@ import tabbars from '@/components/tabbar/index';
}
else
{
if
(
this
.
showteacher
==
1
){
this
.
msg
.
TeacherId
=
this
.
u
.
UserTeacher
this
.
init
()
}
this
.
getPointCourseClassList
()
this
.
getTeacherList
()
}
},
created
()
{
...
...
pages/appointment/personal/pointBalance.vue
View file @
583edb5f
...
...
@@ -84,12 +84,12 @@
current
:
0
,
msg
:{
pageIndex
:
1
,
pageSize
:
1
0
,
pageSize
:
1
5
,
Type
:
0
},
msg2
:{
pageIndex
:
1
,
pageSize
:
1
0
,
pageSize
:
1
5
,
OrderNo
:
0
},
g
:[],
...
...
@@ -104,6 +104,9 @@
}
},
onLoad
()
{
},
onShow
()
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
!
this
.
u
)
{
this
.
u
=
{
...
...
@@ -112,8 +115,12 @@
};
this
.
showAuth
=
true
;
}
else
{
this
.
current
=
0
this
.
msg
.
pageIndex
=
1
;
this
.
g
=
[];
this
.
init
()
}
},
created
()
{
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
...
...
pages/appointment/personal/pointRecharge.vue
View file @
583edb5f
...
...
@@ -3,8 +3,8 @@
<view
class=
"recharge-top"
>
<u-avatar
:src=
"mall_UserInfo.Photo"
size=
"80"
></u-avatar>
<view
class=
"recharge-top-r"
>
<text
class=
"chaochu1"
>
{{
mall_UserInfo
.
Name
}}
</text>
<text
class=
"chaochu1"
style=
'font-size: 11px;color: #666666;'
>
{{
Point
}}
</text>
<text
class=
"chaochu1"
style=
"font-size:13px;color: #111111;"
>
{{
mall_UserInfo
.
Name
}}
</text>
<text
class=
"chaochu1"
style=
'font-size: 11px;color: #666666;'
>
可用点数:
{{
Point
}}
</text>
</view>
</view>
<view
class=
"recharge-c"
>
...
...
pages/user-center/user-center.vue
View file @
583edb5f
...
...
@@ -72,9 +72,9 @@
</view>
</view>
<!-- 排课点数 -->
<view
class=
"order_bar
"
style=
"margin-top: 15px;display: flex;flex-direction: row;align-items: center;justify-content: space-between;"
@
click=
"gopointBalance
"
>
<view
class=
"order_bar
paike"
style=
""
@
click=
"gopointBalance"
v-if=
"meueData.user_center.is_point_status==1
"
>
<span
style=
'font-size: 14px;color: #111111;'
>
可用余额(点数):
</span>
<span
style=
'font-size: 22px;color: #111111;font-family: aa;'
>
2000
</span>
<span
style=
'font-size: 22px;color: #111111;font-family: aa;'
>
{{
PointNum
}}
</span>
</view>
<view
class=
"order_bar"
v-if=
"meueData.user_center.is_order_bar_status == 1"
>
<u-section
title=
"我的订单"
sub-title=
"查看更多"
style=
"width: 100%;padding:0px 0 10px ;"
@
click=
"goUrl('/pages/order/index/index?status=0')"
></u-section>
...
...
@@ -198,6 +198,7 @@
shopBasics
:
{},
mall_UserInfo
:
{},
IsEducation
:
0
,
//1是0否是网课模式
PointNum
:
0
,
};
},
components
:
{
...
...
@@ -246,6 +247,9 @@
},
onShow
()
{
this
.
userinfo
(
2
);
if
(
this
.
mall_UserInfo
)
{
this
.
getUserPoint
()
}
},
methods
:
{
goHome
()
{
...
...
@@ -287,6 +291,27 @@
}
}
break
;
case
"/pages/appointment/personal/studentAppointmentList"
:
if
(
this
.
meueData
.
user_center
.
is_point_status
==
1
){
flag
=
true
;
}
else
{
flag
=
false
;
}
break
;
case
"/pages/appointment/personal/teacherOrderList"
:
if
(
this
.
meueData
.
user_center
.
is_point_status
==
1
&&
this
.
mall_UserInfo
.
UserTeacher
>
0
){
flag
=
true
;
}
else
{
flag
=
false
;
}
break
;
case
"/pages/appointment/appointment?teacher=1"
:
if
(
this
.
meueData
.
user_center
.
is_point_status
==
1
&&
this
.
mall_UserInfo
.
UserTeacher
>
0
){
flag
=
true
;
}
else
{
flag
=
false
;
}
break
;
}
return
flag
;
},
...
...
@@ -360,6 +385,16 @@
}
);
},
getUserPoint
(){
this
.
request2
({
url
:
'/api/AppletPoint/GetAppletUserPointDetailPageList'
,
data
:
{
pageIndex
:
1
,
pageSize
:
10
,
Type
:
0
}
},
(
res
)
=>
{
this
.
PointNum
=
res
.
data
.
pageData
.
PointNum
;
}
);
},
goUrl
(
url
)
{
if
(
url
==
'/pages/balance/balance'
)
{
uni
.
navigateTo
({
...
...
@@ -375,6 +410,7 @@
this
.
userinfo
();
this
.
u
=
this
.
user_info
;
this
.
mall_UserInfo
=
uni
.
getStorageSync
(
"mall_UserInfo"
)
?
uni
.
getStorageSync
(
"mall_UserInfo"
)
:
{};
this
.
getUserPoint
()
},
login
(
name
)
{
if
((
name
&&
name
.
nickname
==
''
)
||
!
name
||
!
name
.
nickname
)
{
...
...
@@ -716,4 +752,7 @@
.userBox
.headHasTOP
{
margin-top
:
25px
;
}
.userBox
.paike
{
margin-top
:
15px
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
}
</
style
>
\ No newline at end of file
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