Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
4545dc87
Commit
4545dc87
authored
Sep 03, 2025
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
55555
parent
b1c16144
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
xingmaLab.vue
pages/xingmaLab/xingmaLab.vue
+9
-9
No files found.
pages/xingmaLab/xingmaLab.vue
View file @
4545dc87
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
</view>
</view>
<view
v-for=
"(item, index) in cangguanList"
:key=
"index"
class=
"item_cangguan"
<view
v-for=
"(item, index) in cangguanList"
:key=
"index"
class=
"item_cangguan"
@
click=
"handleItemClick_cangguan(item)"
>
@
click=
"handleItemClick_cangguan(item
, index
)"
>
<image
class=
"item_cangguan_img"
:src=
"`$
{item.imgUrl}`" mode="widthFix" />
<image
class=
"item_cangguan_img"
:src=
"`$
{item.imgUrl}`" mode="widthFix" />
<view
class=
"item_cangguan_bottom"
>
<view
class=
"item_cangguan_bottom"
>
<view
class=
"item_cangguan_bottom_bg"
>
<view
class=
"item_cangguan_bottom_bg"
>
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
<grid-view
column=
"2"
main-axis-gap=
"
{{
10
}}
" cross-axis-gap="
{{
10
}}
"
<grid-view
column=
"2"
main-axis-gap=
"
{{
10
}}
" cross-axis-gap="
{{
10
}}
"
padding="
{{
[
0
,
12
,
0
,
12
]
}}
" type="masonry">
padding="
{{
[
0
,
12
,
0
,
12
]
}}
" type="masonry">
<view
v-for=
"(item, index) in cangpinList"
:key=
"index"
class=
"waterfall-item"
<view
v-for=
"(item, index) in cangpinList"
:key=
"index"
class=
"waterfall-item"
@
click=
"handleItemClick_cangpin(item)"
>
@
click=
"handleItemClick_cangpin(item
, index
)"
>
<view
class=
"item-up-content"
>
<view
class=
"item-up-content"
>
<image
class=
"item-image"
:src=
"item.imgUrl"
mode=
"widthFix"
/>
<image
class=
"item-image"
:src=
"item.imgUrl"
mode=
"widthFix"
/>
...
@@ -136,7 +136,7 @@
...
@@ -136,7 +136,7 @@
<grid-view
column=
"2"
main-axis-gap=
"
{{
10
}}
" cross-axis-gap="
{{
10
}}
"
<grid-view
column=
"2"
main-axis-gap=
"
{{
10
}}
" cross-axis-gap="
{{
10
}}
"
padding="
{{
[
0
,
12
,
0
,
12
]
}}
" type="masonry">
padding="
{{
[
0
,
12
,
0
,
12
]
}}
" type="masonry">
<view
v-for=
"(item, index) in shoucangList"
:key=
"index"
class=
"waterfall-item"
<view
v-for=
"(item, index) in shoucangList"
:key=
"index"
class=
"waterfall-item"
@
click=
"handleItemClick_shoucang(item)"
>
@
click=
"handleItemClick_shoucang(item
, index
)"
>
<view
class=
"item-up-content"
>
<view
class=
"item-up-content"
>
<image
class=
"item-image"
:src=
"item.imgUrl"
mode=
"widthFix"
/>
<image
class=
"item-image"
:src=
"item.imgUrl"
mode=
"widthFix"
/>
...
@@ -606,7 +606,7 @@ const handleBottomNavClick = async (navType) => {
...
@@ -606,7 +606,7 @@ const handleBottomNavClick = async (navType) => {
}
}
}
}
const
handleItemClick_cangguan
=
(
item
)
=>
{
const
handleItemClick_cangguan
=
(
item
,
index
)
=>
{
console
.
log
(
'点击了项目藏馆:'
,
item
)
console
.
log
(
'点击了项目藏馆:'
,
item
)
md
.
sensorComponentLogTake
({
md
.
sensorComponentLogTake
({
...
@@ -618,24 +618,24 @@ const handleItemClick_cangguan = (item) => {
...
@@ -618,24 +618,24 @@ const handleItemClick_cangguan = (item) => {
// 这里可以添加跳转逻辑
// 这里可以添加跳转逻辑
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/XingmaLabDetailPage/XingmaLabDetailPage?id='
+
item
.
id
url
:
'/pages/XingmaLabDetailPage/XingmaLabDetailPage?id='
+
item
.
id
+
'&index='
+
index
})
})
}
}
const
handleItemClick_cangpin
=
(
item
)
=>
{
const
handleItemClick_cangpin
=
(
item
,
index
)
=>
{
console
.
log
(
'点击了项目藏品:'
,
item
)
console
.
log
(
'点击了项目藏品:'
,
item
)
// 这里可以添加跳转逻辑
// 这里可以添加跳转逻辑
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/XingmaLabDetailPage/XingmaLabDetailPage?id='
+
item
.
id
url
:
'/pages/XingmaLabDetailPage/XingmaLabDetailPage?id='
+
item
.
id
+
'&index='
+
index
})
})
}
}
const
handleItemClick_shoucang
=
(
item
)
=>
{
const
handleItemClick_shoucang
=
(
item
,
index
)
=>
{
console
.
log
(
'点击了项目收藏:'
,
item
)
console
.
log
(
'点击了项目收藏:'
,
item
)
// 这里可以添加跳转逻辑
// 这里可以添加跳转逻辑
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/XingmaLabDetailPage/XingmaLabDetailPage?id='
+
item
.
id
url
:
'/pages/XingmaLabDetailPage/XingmaLabDetailPage?id='
+
item
.
id
+
'&index='
+
index
})
})
}
}
...
...
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