Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
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
android
uniapp_vedio
Commits
f2b83d8e
Commit
f2b83d8e
authored
Oct 11, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
fd7181ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
7733 deletions
+21
-7733
home.vue
vedio/pages/home.vue
+21
-17
city.json
vedio/static/selectAddress/city.json
+0
-7716
gou.png
vedio/static/selectAddress/gou.png
+0
-0
No files found.
vedio/pages/home.vue
View file @
f2b83d8e
...
...
@@ -83,23 +83,23 @@
}
},
onShow
()
{
if
(
app
.
globalData
.
resetLogin
&&
!
this
.
isFirstLoad
)
{
// this.wxLogin()
}
this
.
isFirstLoad
=
false
//
if (app.globalData.resetLogin && !this.isFirstLoad) {
//
// this.wxLogin()
//
}
//
this.isFirstLoad = false
try
{
// 在子组件重写show()代替onShow()
if
(
this
.
currentPage
==
0
)
{
this
.
$refs
.
index
.
show
();
}
else
if
(
this
.
currentPage
==
1
)
{
this
.
$refs
.
recommend
.
show
();
}
else
if
(
this
.
currentPage
==
2
)
{
this
.
$refs
.
user
.
show
();
}
}
catch
(
e
)
{
//
try {
//
// 在子组件重写show()代替onShow()
//
if (this.currentPage == 0) {
//
this.$refs.index.show();
//
} else if (this.currentPage == 1) {
//
this.$refs.recommend.show();
//
} else if (this.currentPage == 2) {
//
this.$refs.user.show();
//
}
//
} catch (e) {
}
//
}
},
mounted
()
{
// 渲染完成 初始化首页数据
...
...
@@ -118,11 +118,15 @@
loadComponentData
()
{
if
(
this
.
currentPage
==
0
)
{
this
.
$refs
.
index
.
show
();
this
.
$refs
.
recommend
.
hide
();
this
.
$refs
.
recommend
.
hide
();
this
.
$refs
.
user
.
hide
();
}
else
if
(
this
.
currentPage
==
1
)
{
this
.
$refs
.
recommend
.
show
();
this
.
$refs
.
recommend
.
show
();
this
.
$refs
.
index
.
hide
();
this
.
$refs
.
user
.
hide
();
}
else
if
(
this
.
currentPage
==
2
)
{
this
.
$refs
.
user
.
show
();
this
.
$refs
.
index
.
hide
();
this
.
$refs
.
recommend
.
hide
();
}
},
...
...
vedio/static/selectAddress/city.json
deleted
100644 → 0
View file @
fd7181ce
This source diff could not be displayed because it is too large. You can
view the blob
instead.
vedio/static/selectAddress/gou.png
deleted
100644 → 0
View file @
fd7181ce
1.92 KB
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