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
74001f5d
Commit
74001f5d
authored
Nov 12, 2024
by
caimeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.0.5 包没有过,修改成1.0.6 重新提包
parent
23be374d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
App.vue
App.vue
+1
-0
manifest.json
manifest.json
+2
-2
index.vue
pages/index/index.vue
+5
-3
No files found.
App.vue
View file @
74001f5d
...
...
@@ -41,6 +41,7 @@ export default {
}
else
{
versionNumber
=
plus
.
runtime
.
version
;
}
console
.
log
(
versionNumber
,
'当前版本号'
)
// 存储所有请求的头部信息
uni
.
setStorage
({
key
:
'm-header-version'
,
data
:
versionNumber
});
})
...
...
manifest.json
View file @
74001f5d
...
...
@@ -2,8 +2,8 @@
"name"
:
"多典花"
,
"appid"
:
"__UNI__DE04B13"
,
"description"
:
""
,
"versionName"
:
"1.0.
5
"
,
"versionCode"
:
10
5
,
"versionName"
:
"1.0.
6
"
,
"versionCode"
:
10
6
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
"app-plus"
:
{
...
...
pages/index/index.vue
View file @
74001f5d
...
...
@@ -6,7 +6,7 @@
<view
v-if=
'index !== null'
class=
'i-boxs'
>
<!-- Banner 位 -->
<view
class=
'i-banner'
>
<view
v-if=
"index['bannerList']"
class=
'i-banner'
>
<swiper
:autoplay=
"true"
:interval=
"3000"
:duration=
"1000"
style=
"height: 359rpx;"
>
<swiper-item
class=
'swiper-item-i'
v-for=
"(item, index) in JSON.parse(index['bannerList'])"
:key=
"item.id"
@
click=
'jump(item, index, "banner")'
>
...
...
@@ -16,7 +16,7 @@
</view>
<!-- 金刚位 -->
<view
class=
"i-list"
>
<view
v-if=
"index['shortcutList']"
class=
"i-list"
>
<view
class=
'mian-item'
v-for=
"(item, index) in JSON.parse(index['shortcutList'])"
:key=
"item.id"
@
click=
"jump(item, index, 'diamond')"
>
<image
class=
'item-img'
:src=
'item.url'
></image>
...
...
@@ -92,6 +92,8 @@
import
{
isLogin
,
switchShowTabbar
,
ininIndex
}
from
'@/utils/index'
const
cacheIndexData
=
uni
.
getStorageSync
(
'dataIndex'
)
?
JSON
.
parse
(
uni
.
getStorageSync
(
'dataIndex'
))
:
null
;
const
indexGoods
=
uni
.
getStorageSync
(
'indexGoods'
)
?
JSON
.
parse
(
uni
.
getStorageSync
(
'indexGoods'
))
:
[];
export
default
{
data
()
{
return
{
...
...
@@ -311,7 +313,7 @@ export default {
self
.
IndexList
=
records
}
uni
.
setStorageSync
(
'indexGoods'
,
JSON
.
stringify
(
self
.
IndexList
))
uni
.
setStorageSync
(
'indexGoods'
,
JSON
.
stringify
(
records
))
self
.
hasNextPage
=
hasNextPage
self
.
loadFlag
=
false
...
...
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