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
0b37eaff
Commit
0b37eaff
authored
Sep 03, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理登录效果
parent
9c5cd8be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
3 deletions
+60
-3
billboarddetails.vue
pages/kotra/billboard/billboarddetails.vue
+30
-2
mybillbordList.vue
pages/kotra/billboard/mybillbordList.vue
+30
-1
No files found.
pages/kotra/billboard/billboarddetails.vue
View file @
0b37eaff
...
...
@@ -341,12 +341,20 @@
</view>
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
"gbAuth"
></auth>
</view>
</
template
>
<
script
>
import
auth
from
"@/components/auth/index.vue"
;
export
default
{
components
:
{
auth
},
data
(){
return
{
Id
:
0
,
...
...
@@ -354,6 +362,8 @@
RankList
:[],
type
:
1
,
//1位列表过来的 2 为自己报名列表过来的
controls
:
false
,
showAuth
:
false
,
u
:
{}
}
},
onLoad
(
options
)
{
...
...
@@ -370,13 +380,31 @@
})
if
(
options
&&
options
.
Id
){
this
.
Id
=
options
.
Id
this
.
getDetails
()
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
!
this
.
u
)
{
this
.
u
=
{
nickName
:
"未登录"
,
avatarUrl
:
""
,
};
this
.
showAuth
=
true
;
}
else
{
this
.
getDetails
()
}
}
if
(
options
&&
options
.
type
){
this
.
type
=
options
.
type
}
},
methods
:{
reloadUserinfo
()
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
this
.
getDetails
()
},
//关闭登录窗口
gbAuth
()
{
uni
.
navigateBack
()
},
enlarge
(
file
)
{
// 全屏
this
.
videoContext
=
uni
.
createVideoContext
(
file
);
...
...
pages/kotra/billboard/mybillbordList.vue
View file @
0b37eaff
...
...
@@ -112,11 +112,20 @@
<div
style=
'width: 100%;height: 30px;'
></div>
</scroll-view>
</view>
<auth
v-if=
"showAuth"
@
changeuserinfo=
"reloadUserinfo"
@
gbAuth=
"gbAuth"
></auth>
</view>
</
template
>
<
script
>
import
auth
from
"@/components/auth/index.vue"
;
export
default
{
components
:
{
auth
},
data
(){
return
{
titleStyle
:
{},
...
...
@@ -151,6 +160,8 @@
loading
:
"努力加载中"
,
nomore
:
"没有更多了"
,
},
showAuth
:
false
,
u
:
{}
}
},
created
()
{
...
...
@@ -169,9 +180,27 @@
that
.
mainColor
=
that
.
$uiConfig
.
mainColor
;
var
myDate
=
new
Date
();
that
.
msg
.
Year
=
myDate
.
getFullYear
();
that
.
getList
()
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
if
(
!
this
.
u
)
{
this
.
u
=
{
nickName
:
"未登录"
,
avatarUrl
:
""
,
};
this
.
showAuth
=
true
;
}
else
{
that
.
getList
()
}
},
methods
:{
reloadUserinfo
()
{
this
.
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
that
.
getList
()
},
//关闭登录窗口
gbAuth
()
{
uni
.
navigateBack
()
},
goback
()
{
uni
.
navigateBack
({
delta
:
1
,
...
...
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