Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uni-app-ddh-shop
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
zhanhai
uni-app-ddh-shop
Commits
4c031cd0
Commit
4c031cd0
authored
Nov 09, 2024
by
caimeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新弹框有bug;已修复
parent
3a74269c
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
330 additions
and
317 deletions
+330
-317
App.vue
App.vue
+2
-4
upgradePopup.vue
components/showModal/upgradePopup.vue
+311
-300
index.less
pages/index/index.less
+2
-2
index.vue
pages/index/index.vue
+11
-8
index.vue
pages/starPage/index.vue
+4
-3
No files found.
App.vue
View file @
4c031cd0
...
...
@@ -16,7 +16,7 @@ export default {
uni
.
setStorageSync
(
'version'
,
res
.
appVersion
)
}
})
// 强制竖屏
plus
.
screen
.
lockOrientation
(
"portrait-primary"
)
...
...
@@ -44,15 +44,13 @@ export default {
// 存储所有请求的头部信息
uni
.
setStorage
({
key
:
'm-header-version'
,
data
:
versionNumber
});
})
/*** tabbar*/
switchShowTabbar
()
},
async
onShow
()
{
await
ininIndex
()
await
initSettings
()
await
initApp
()
switchShowTabbar
()
},
/** 切换到后台 */
onHide
()
{
...
...
components/showModal/upgradePopup.vue
View file @
4c031cd0
This diff is collapsed.
Click to expand it.
pages/index/index.less
View file @
4c031cd0
...
...
@@ -235,9 +235,9 @@
}
}
}
.box-at-home{
// height: 1200rpx;
.box-at-home{
background:#F7FAFF ;
.main-box{
display:flex;
flex-wrap: wrap;
...
...
pages/index/index.vue
View file @
4c031cd0
...
...
@@ -3,6 +3,7 @@
<view
class=
'i-header'
v-show=
'isFixed != true'
>
<text>
多典花
</text>
</view>
<view
v-if=
'index !== null'
class=
'i-boxs'
>
<!-- Banner 位 -->
<view
class=
'i-banner'
>
...
...
@@ -76,9 +77,9 @@
</view>
</view>
</scroll-view>
</view>
</view>
</view>
<!-- 更新 -->
...
...
@@ -88,8 +89,7 @@
</
template
>
<
script
>
import
{
isLogin
,
ininIndex
}
from
'@/utils/index'
import
{
isLogin
,
switchShowTabbar
,
ininIndex
}
from
'@/utils/index'
const
cacheIndexData
=
uni
.
getStorageSync
(
'dataIndex'
)
?
JSON
.
parse
(
uni
.
getStorageSync
(
'dataIndex'
))
:
null
;
export
default
{
...
...
@@ -97,7 +97,7 @@ export default {
return
{
index
:
cacheIndexData
,
hotList
:
[
{
title
:
'浏览量'
,
id
:
0
},
{
title
:
'价格'
,
id
:
1
},
...
...
@@ -108,7 +108,7 @@ export default {
headerHeight
:
0
,
scrollTop
:
0
,
IndexList
:
[],
pageNum
:
1
,
pageSize
:
50
,
...
...
@@ -134,16 +134,19 @@ export default {
},
async
onLoad
()
{
this
.
isFirstShow
=
uni
.
getStorageSync
(
'isFirstShow'
)
await
this
.
getAppVersion
()
},
async
onShow
()
{
// 初始化首页数据
ininIndex
()
// 显示隐藏tabBar
// switchShowTabbar()
// initSettings()
switchShowTabbar
()
// 首页流量埋点
this
.
buryingPoint
(
'app:index_page_view'
)
await
this
.
initAjax
();
// await this.getAppVersion()
},
methods
:
{
...
...
pages/starPage/index.vue
View file @
4c031cd0
...
...
@@ -9,9 +9,7 @@ import { ininIndex, initSettings, initApp } from '@/utils/index'
export
default
{
async
onLoad
()
{
await
ininIndex
()
await
initSettings
()
await
initApp
()
// 有网络了再弹窗
uni
.
getNetworkType
({
...
...
@@ -33,6 +31,9 @@ export default {
})
await
ininIndex
()
await
initSettings
()
await
initApp
()
},
methods
:
{
init
()
{
...
...
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