Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
Project
Project
Details
Activity
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
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
abd34f0a
Commit
abd34f0a
authored
Aug 07, 2024
by
张娇(东信)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
乡村旅居页面跳转
parent
cb41caec
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
6 deletions
+37
-6
RouteDetails.vue
src/pages/assistingAgriculture/RouteDetails/RouteDetails.vue
+31
-2
index.vue
src/pages/assistingAgriculture/index/index.vue
+6
-4
No files found.
src/pages/assistingAgriculture/RouteDetails/RouteDetails.vue
View file @
abd34f0a
<
template
>
<
template
>
<div
class=
"route-details"
>
<div
class=
"route-details"
>
<scroll-view
class=
"container"
scroll-y
>
<scroll-view
class=
"container"
scroll-y
>
<img
class=
"back-img"
src=
"/static/assistingAgriculture/assets/left.png"
@
tap=
"back"
/>
<!-- 轮播 -->
<!-- 轮播 -->
<div
class=
"banner"
>
<div
class=
"banner"
>
<!-- -->
<!-- -->
...
@@ -60,7 +61,7 @@
...
@@ -60,7 +61,7 @@
<span>
/5分
</span>
<span>
/5分
</span>
</p>
</p>
</div>
</div>
<div
class=
"link"
>
查看全部(526) >
</div>
<div
class=
"link"
@
click=
"toCommentDetail"
>
查看全部(526) >
</div>
</div>
</div>
<div
class=
"tags"
>
<div
class=
"tags"
>
<p>
景色优美 (153)
</p>
<p>
景色优美 (153)
</p>
...
@@ -78,7 +79,7 @@
...
@@ -78,7 +79,7 @@
<div
class=
"album"
>
<div
class=
"album"
>
<div
class=
"top flex-between"
>
<div
class=
"top flex-between"
>
<div
class=
"title"
>
用户相册
</div>
<div
class=
"title"
>
用户相册
</div>
<div
class=
"link"
>
查看全部(526) >
</div>
<div
class=
"link"
@
click=
"toAlbum"
>
查看全部(526) >
</div>
</div>
</div>
<div
class=
"img-list"
>
<div
class=
"img-list"
>
<wd-img
<wd-img
...
@@ -268,6 +269,26 @@ const swiperList = ref([
...
@@ -268,6 +269,26 @@ const swiperList = ref([
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/moon.jpg'
,
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/moon.jpg'
,
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/meng.jpg'
,
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/meng.jpg'
,
]);
]);
// 返回上一级
function
back
()
{
xma
.
navigateBack
({
delta
:
1
,
});
}
// 跳转详情页
function
toCommentDetail
()
{
// TODO: 跳转到评论详情页
xma
.
navigateTo
({
url
:
'/pages/assistingAgriculture/commentList/index'
,
});
}
// 跳转用户相册
function
toAlbum
()
{
// TODO: 跳转到评论详情页
xma
.
navigateTo
({
url
:
'/pages/assistingAgriculture/album/index'
,
});
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
uni-page-body
{
uni-page-body
{
...
@@ -677,4 +698,12 @@ uni-page-body {
...
@@ -677,4 +698,12 @@ uni-page-body {
}
}
}
}
}
}
.back-img
{
width
:
56rpx
;
height
:
56rpx
;
position
:
absolute
;
z-index
:
999
;
margin-top
:
40rpx
;
margin-left
:
40rpx
;
}
</
style
>
</
style
>
src/pages/assistingAgriculture/index/index.vue
View file @
abd34f0a
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<view
style=
"display: flex; flex-direction: row"
>
<view
style=
"display: flex; flex-direction: row"
>
<view
<view
class=
"borderClass"
class=
"borderClass"
@
tap=
"toBuilding
"
@
click=
"toBuilding(index)
"
v-for=
"(item, index) in sortList"
v-for=
"(item, index) in sortList"
:key=
"index"
:key=
"index"
>
>
...
@@ -212,17 +212,19 @@ const getStrictSelectionList = () => {
...
@@ -212,17 +212,19 @@ const getStrictSelectionList = () => {
console
.
log
(
res
,
333
);
console
.
log
(
res
,
333
);
});
});
};
};
function
toBuilding
()
{
function
toBuilding
(
index
)
{
if
(
index
===
0
)
{
// TODO: 跳转到筑农严选
// TODO: 跳转到筑农严选
xma
.
navigateTo
({
xma
.
navigateTo
({
url
:
'/pages/assistingAgriculture/index/building'
,
url
:
'/pages/assistingAgriculture/index/building'
,
});
});
}
}
else
if
(
index
===
2
)
{
function
toRuralTravel
()
{
// TODO: 跳转到乡村旅居
// TODO: 跳转到乡村旅居
xma
.
navigateTo
({
xma
.
navigateTo
({
url
:
'/pages/assistingAgriculture/RuralTravel/RuralTravel'
,
url
:
'/pages/assistingAgriculture/RuralTravel/RuralTravel'
,
});
});
}
console
.
log
(
index
,
121
);
}
}
// 跳转详情页
// 跳转详情页
function
toDetail
()
{
function
toDetail
()
{
...
...
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