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
a36cbab3
Commit
a36cbab3
authored
Oct 24, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6612f1f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
7 deletions
+28
-7
mycollection.vue
pages/school/personal/mycollection.vue
+5
-3
orderList.vue
pages/school/personal/orderList.vue
+23
-4
No files found.
pages/school/personal/mycollection.vue
View file @
a36cbab3
...
...
@@ -49,8 +49,8 @@
}
</
style
>
<
template
>
<view
class=
"mycollection"
:style=
"
{'height':contentHeight}"
v-if="!loading"
>
<template>
<view
class=
"mycollection"
:style=
"
{'height':contentHeight}" >
<template
v-if=
"!loading"
>
<u-empty
v-if=
"goodslist.length==0"
text=
"没有任何收藏课程哦~"
mode=
"favor"
></u-empty>
<view
v-if=
"goodslist.length>0"
style=
"
height: calc(100vh - 50px);
...
...
@@ -95,7 +95,7 @@
pageTitle
:
'课程收藏'
,
loading
:
true
,
contentHeight
:
0
,
showAuth
:
fals
e
,
showAuth
:
tru
e
,
mainColor
:
''
,
msg
:
{
pageIndex
:
1
,
...
...
@@ -113,6 +113,7 @@
nomore
:
"没有更多了"
,
},
windowWidth
:
0
,
u
:{}
}
},
components
:
{
...
...
@@ -141,6 +142,7 @@
},
onLoad
()
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
console
.
log
(
!
this
.
u
,
'UserInfo'
);
if
(
!
this
.
u
)
{
this
.
u
=
{
nickName
:
"未登录"
,
...
...
pages/school/personal/orderList.vue
View file @
a36cbab3
...
...
@@ -172,7 +172,7 @@
</view>
</view>
</u-popup>
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
'gbAuth'
></auth>
</view>
</
template
>
<
script
>
...
...
@@ -224,6 +224,7 @@
},
payBtn
:
false
,
payExit
:
false
,
showAuth
:
false
};
},
created
()
{
...
...
@@ -247,12 +248,30 @@
},
1000
);
},
onLoad
(
option
)
{
this
.
current
=
option
.
status
||
0
;
this
.
getHeadList
();
this
.
payInfo
.
OpenId
=
uni
.
getStorageSync
(
'mall_UserInfo'
).
OpenId
;
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
!
this
.
u
)
{
this
.
u
=
{
nickName
:
"未登录"
,
avatarUrl
:
""
};
this
.
showAuth
=
true
;
}
else
{
this
.
current
=
option
.
status
||
0
;
this
.
payInfo
.
OpenId
=
uni
.
getStorageSync
(
'mall_UserInfo'
).
OpenId
;
this
.
getHeadList
();
this
.
getContent
();
}
},
methods
:
{
reloadUserinfo
()
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
// this.showAuth=false;
this
.
getContent
();
},
//关闭登录窗口
gbAuth
()
{
uni
.
navigateBack
()
},
getHeadHeight
()
{
let
that
=
this
;
const
query
=
uni
.
createSelectorQuery
().
in
(
this
);
...
...
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