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
2bf239f3
Commit
2bf239f3
authored
Aug 13, 2024
by
蔡亮华(贵阳日报)
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.platform.xinhuaapp.com/pengjiani/groupPurchase-miniapp
parents
25916d1f
3ee5cecd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
+18
-8
pages.json
src/pages.json
+2
-1
RuralTravel.vue
src/pages/assistingAgriculture/RuralTravel/RuralTravel.vue
+16
-7
No files found.
src/pages.json
View file @
2bf239f3
...
...
@@ -208,7 +208,8 @@
{
"path"
:
"pages/assistingAgriculture/RuralTravel/RuralTravel"
,
"style"
:
{
"navigationBarTitleText"
:
"乡村旅居"
"navigationBarTitleText"
:
"乡村旅居"
,
"enablePullDownRefresh"
:
true
,
}
},
...
...
src/pages/assistingAgriculture/RuralTravel/RuralTravel.vue
View file @
2bf239f3
...
...
@@ -137,23 +137,23 @@
<img
class=
"card-img"
:src=
"item.img"
style=
"width: 248rpx; height: 240rpx"
/>
<view
class=
"detail-text"
>
<text
class=
"detail-title"
>
{{
item
.
prodName
}}
</text>
<text
class=
"give"
>
{{
item
.
prodName
}}
</text>
<text
class=
"give"
>
{{
item
.
brief
}}
</text>
<view
class=
"tag"
>
<wd-tag
bg-color=
"#EEEEEE"
round
v-for=
"(tag, tagIndex) in item.
tag
"
v-for=
"(tag, tagIndex) in item.
serveList
"
:key=
"tagIndex"
>
{{
tag
}}
{{
tag
.
labelName
}}
</wd-tag>
</view>
<view
class=
"detail-score"
>
<text
class=
"score"
>
{{
item
.
deliveryAmount
}}
分
</text>
<text
class=
"num"
>
月销
{{
item
.
deliveryAmount
}}
</text>
<text
class=
"score"
>
{{
item
.
score
}}
分
</text>
<text
class=
"num"
>
月销
{{
item
.
monthSoldNum
}}
</text>
</view>
<view
class=
"venue"
>
<text
class=
"place"
>
{{
item
.
prodName
}}
</text>
<text
class=
"place"
>
{{
item
.
tripArea
}}
出发
</text>
<text
class=
"price"
>
¥
{{
item
.
price
}}
</text>
</view>
</view>
...
...
@@ -226,6 +226,13 @@ const locationFiltering = (index) => {
labelId
.
value
=
null
;
}
};
onPullDownRefresh
(()
=>
{
getProd
();
getPopular
();
setTimeout
(()
=>
{
uni
.
stopPullDownRefresh
();
},
1000
);
});
// 查询热门路线
const
getPopular
=
()
=>
{
getPopularList
({
current
:
1
,
size
:
10
}).
then
((
res
)
=>
{
...
...
@@ -287,10 +294,12 @@ const getProd = () => {
getProdList
(
params
).
then
((
res
)
=>
{
res
.
data
.
records
.
forEach
((
item
)
=>
{
item
.
img
=
import
.
meta
.
env
.
VITE_APP_IMG_URL
+
item
.
pic
;
item
.
serveList
=
item
.
serviceList
.
slice
(
0
,
3
);
});
cardList
.
value
=
res
.
data
.
records
;
});
};
const
resetParams
=
()
=>
{
sortType
.
value
=
null
;
attractionId
.
value
=
null
;
...
...
@@ -549,6 +558,6 @@ page {
height
:
56rpx
;
}
.detail-score
{
margin-top
:
9
0rpx
;
margin-top
:
3
0rpx
;
}
</
style
>
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