Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intel_promotion_uniapp
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
刘怀志
intel_promotion_uniapp
Commits
3fae8e4b
Commit
3fae8e4b
authored
Aug 24, 2024
by
刘帅阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
85d3782a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
14 deletions
+14
-14
index.vue
pages/menu/index.vue
+10
-10
index.vue
pages/shop/index.vue
+4
-4
pic1.png
static/image/pic1.png
+0
-0
pic2.png
static/image/pic2.png
+0
-0
fenlei_pic_bg@2x.png
static/img/image/fenlei_pic_bg@2x.png
+0
-0
gouwuche_pic_bg@2x.png
static/img/image/gouwuche_pic_bg@2x.png
+0
-0
wode_pic_bg1@2x.png
static/img/image/wode_pic_bg1@2x.png
+0
-0
No files found.
pages/menu/index.vue
View file @
3fae8e4b
...
@@ -7,22 +7,22 @@
...
@@ -7,22 +7,22 @@
</view>
</view>
</view>
-->
</view>
-->
<view
class=
"u-menu-wrap"
>
<view
class=
"u-menu-wrap"
>
<scroll-view
scroll-y
scroll-with-animation
class=
"u-tab-view menu-scroll-view"
:scroll-top=
"scrollTop"
<scroll-view
:scroll-into-view=
"itemId"
:scroll-top=
"scrollTop"
class=
"u-tab-view menu-scroll-view"
scroll-with-animation
:scroll-into-view=
"itemId"
>
scroll-y
>
<view
v-for=
"(item,index) in tabbar"
:key=
"index"
class=
"u-tab-item"
:class=
"[current == index ? 'u-tab-item-active' : '']
"
<view
v-for=
"(item,index) in tabbar"
:key=
"index"
:class=
"[current == index ? 'u-tab-item-active' : '']"
class=
"u-tab-item
"
@
tap
.
stop=
"swichMenu(index)"
>
@
tap
.
stop=
"swichMenu(index)"
>
<text
class=
"u-line-1"
>
{{
item
.
name
}}
</text>
<text
class=
"u-line-1"
>
{{
item
.
name
}}
</text>
</view>
</view>
</scroll-view>
</scroll-view>
<scroll-view
:scroll-top=
"scrollRightTop"
scroll-y
scroll-with-animation
class=
"right-box"
@
scroll=
"rightScroll"
>
<scroll-view
:scroll-top=
"scrollRightTop"
class=
"right-box"
scroll-with-animation
scroll-y
@
scroll=
"rightScroll"
>
<view
class=
"page-view"
>
<view
class=
"page-view"
>
<view
class=
"class-item"
:id=
"'item' + index"
v-for=
"(item , index) in tabbar"
:key=
"index
"
>
<view
v-for=
"(item , index) in tabbar"
:id=
"'item' + index"
:key=
"index"
class=
"class-item
"
>
<view
class=
"item-title"
>
<view
class=
"item-title"
>
<text>
{{
item
.
name
}}
</text>
<text>
{{
item
.
name
}}
</text>
</view>
</view>
<view
class=
"item-container"
>
<view
class=
"item-container"
>
<view
class=
"thumb-box"
v-for=
"(item1, index1) in item.children"
:key=
"index1
"
@
click=
"toCategory(item1)"
>
<view
v-for=
"(item1, index1) in item.children"
:key=
"index1"
class=
"thumb-box
"
@
click=
"toCategory(item1)"
>
<image
class=
"item-menu-image"
:src=
"item1.path
"
mode=
""
></image>
<image
:src=
"item1.path"
class=
"item-menu-image
"
mode=
""
></image>
<view
class=
"item-menu-name"
>
{{
item1
.
title
||
item1
.
videoTitle
}}
</view>
<view
class=
"item-menu-name"
>
{{
item1
.
title
||
item1
.
videoTitle
}}
</view>
</view>
</view>
</view>
</view>
...
@@ -33,12 +33,12 @@
...
@@ -33,12 +33,12 @@
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
pic2
from
"../../static/image/pic2.png"
;
//
import pic2 from "../../static/image/pic2.png";
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
pic2
,
//
pic2,
scrollTop
:
0
,
//tab标题的滚动条位置
scrollTop
:
0
,
//tab标题的滚动条位置
oldScrollTop
:
0
,
oldScrollTop
:
0
,
current
:
0
,
// 预设当前项的值
current
:
0
,
// 预设当前项的值
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
})
})
this
.
getMenuItemTop
()
this
.
getMenuItemTop
()
}
}
},
},
toSearch
()
{
toSearch
()
{
this
.
$u
.
route
({
this
.
$u
.
route
({
...
...
pages/shop/index.vue
View file @
3fae8e4b
...
@@ -91,8 +91,8 @@
...
@@ -91,8 +91,8 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
projectName
from
"../../common/projectName"
;
import
projectName
from
"../../common/projectName"
;
import
pic1
from
'../../static/image/pic1.png'
//
import pic1 from '../../static/image/pic1.png'
import
pic2
from
'../../static/image/pic2.png'
//
import pic2 from '../../static/image/pic2.png'
import
UCol
from
"../../uview-ui/components/u-col/u-col.vue"
;
import
UCol
from
"../../uview-ui/components/u-col/u-col.vue"
;
import
USwiper
from
"../../uview-ui/components/u-swiper/u-swiper.vue"
;
import
USwiper
from
"../../uview-ui/components/u-swiper/u-swiper.vue"
;
export
default
{
export
default
{
...
@@ -101,8 +101,8 @@ import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue";
...
@@ -101,8 +101,8 @@ import USwiper from "../../uview-ui/components/u-swiper/u-swiper.vue";
return
{
return
{
linkUrl
:
''
,
linkUrl
:
''
,
unitId
:
''
,
unitId
:
''
,
pic1
,
//
pic1,
pic2
,
//
pic2,
navList
:
[],
navList
:
[],
activeNav
:
0
,
activeNav
:
0
,
newList
:
[],
newList
:
[],
...
...
static/image/pic1.png
deleted
100644 → 0
View file @
85d3782a
104 KB
static/image/pic2.png
deleted
100644 → 0
View file @
85d3782a
10.1 KB
static/img/image/fenlei_pic_bg@2x.png
deleted
100644 → 0
View file @
85d3782a
179 KB
static/img/image/gouwuche_pic_bg@2x.png
deleted
100644 → 0
View file @
85d3782a
101 KB
static/img/image/wode_pic_bg1@2x.png
deleted
100644 → 0
View file @
85d3782a
463 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