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
644c672e
Commit
644c672e
authored
Aug 15, 2024
by
蔡亮华(贵阳日报)
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.platform.xinhuaapp.com/pengjiani/groupPurchase-miniapp
parents
aa26a40c
94f7a11e
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
15 deletions
+37
-15
Date.vue
src/Components/assistingAgriculture/index/Date.vue
+4
-0
Sort.vue
src/Components/assistingAgriculture/index/Sort.vue
+11
-7
RuralTravel.vue
src/pages/assistingAgriculture/RuralTravel/RuralTravel.vue
+7
-3
specialOfferZoneList.vue
...assistingAgriculture/RuralTravel/specialOfferZoneList.vue
+14
-4
scenicSpotDetails.vue
.../assistingAgriculture/reviewDetails/scenicSpotDetails.vue
+1
-1
carImg.png
src/static/assistingAgriculture/detail/carImg.png
+0
-0
home.png
src/static/assistingAgriculture/detail/home.png
+0
-0
No files found.
src/Components/assistingAgriculture/index/Date.vue
View file @
644c672e
...
...
@@ -37,6 +37,10 @@ const props = defineProps({
},
});
const
reset
=
()
=>
{
selectedItem
.
value
=
null
;
};
defineExpose
({
reset
});
onMounted
(
async
()
=>
{
getStartDateList
();
});
...
...
src/Components/assistingAgriculture/index/Sort.vue
View file @
644c672e
...
...
@@ -5,7 +5,7 @@
v-for=
"(item, index) in items"
:key=
"index"
:class=
"
{ active: selectedItem === index }"
@
tap
="selectItem(index, item)"
@
click
="selectItem(index, item)"
>
{{
item
.
name
}}
</li>
...
...
@@ -14,7 +14,7 @@
</
template
>
<
script
setup
>
import
{
defineProps
}
from
'vue'
;
import
{
ref
}
from
'vue'
;
const
items
=
ref
([
{
name
:
'距离优先'
,
sortMode
:
1
},
{
name
:
'好评优先'
,
sortMode
:
2
},
...
...
@@ -31,8 +31,13 @@ const props = defineProps({
},
});
const
selectItem
=
(
index
,
item
)
=>
{
selectedItem
.
value
=
index
;
emit
(
'sortParams'
,
item
);
if
(
selectedItem
.
value
===
index
)
{
selectedItem
.
value
=
null
;
emit
(
'sortParams'
,
null
);
}
else
{
selectedItem
.
value
=
index
;
emit
(
'sortParams'
,
item
);
}
};
const
reset
=
()
=>
{
selectedItem
.
value
=
null
;
...
...
@@ -44,8 +49,6 @@ defineExpose({ reset });
.sort
{
position
:
absolute
;
top
:
100%
;
// width: 100%;
// min-height: 212rpx;
border-radius
:
0rpx
0rpx
16rpx
16rpx
;
background
:
#ffffff
;
box-shadow
:
0rpx
16rpx
16rpx
0rpx
rgba
(
73
,
73
,
73
,
0
.14
);
...
...
@@ -55,12 +58,13 @@ defineExpose({ reset });
padding-bottom
:
20rpx
;
box-sizing
:
border-box
;
.ul
{
padding-left
:
6
0rpx
;
padding-left
:
3
0rpx
;
li
{
list-style-type
:
none
;
font-size
:
22rpx
;
color
:
#3d3d3d
;
margin-top
:
20rpx
;
cursor
:
pointer
;
}
.active
{
color
:
#fa5151
;
...
...
src/pages/assistingAgriculture/RuralTravel/RuralTravel.vue
View file @
644c672e
...
...
@@ -48,7 +48,7 @@
/>
</view>
<view
class=
"right-offer"
>
<text
class=
"left-title"
>
日游
直播
</text>
<text
class=
"left-title"
>
日游
播放
</text>
<img
class=
"special-icon"
src=
"/static/assistingAgriculture/rural/dayTOur.png"
...
...
@@ -178,11 +178,11 @@
</view>
<view
class=
"all-info"
>
<view
class=
"detail-score"
>
<text
class=
"score"
>
{{
item
.
score
}}
分
</text>
<text
class=
"score"
v-if=
"item.score !== null"
>
{{
item
.
score
}}
分
</text>
<text
class=
"num"
>
月销
{{
item
.
monthSoldNum
}}
</text>
</view>
<view
class=
"venue"
>
<text
class=
"place"
>
{{
item
.
tripArea
}}
出发
</text>
<text
class=
"place"
v-if=
"item.tripArea !== null"
>
{{
item
.
tripArea
}}
出发
</text>
<text
class=
"price"
>
¥
{{
item
.
price
}}
</text>
</view>
</view>
...
...
@@ -373,6 +373,9 @@ const toSearch = () => {
const
currentPage
=
ref
(
1
);
// 查询列表
const
getProd
=
(
searchKeyword
=
''
)
=>
{
xma
.
showLoading
({
title
:
'加载中'
,
});
const
params
=
{
current
:
currentPage
.
value
,
size
:
3
,
...
...
@@ -394,6 +397,7 @@ const getProd = (searchKeyword = '') => {
...(
searchKeyword
&&
{
keyword
:
searchKeyword
}),
};
getProdList
(
params
).
then
((
res
)
=>
{
xma
.
hideLoading
();
res
.
data
.
records
.
forEach
((
item
)
=>
{
item
.
img
=
import
.
meta
.
env
.
VITE_APP_IMG_URL
+
item
.
pic
;
item
.
serveList
=
item
.
serviceList
.
slice
(
0
,
3
);
...
...
src/pages/assistingAgriculture/RuralTravel/specialOfferZoneList.vue
View file @
644c672e
...
...
@@ -86,10 +86,10 @@
<wd-icon
size=
"24rpx"
class=
"icons"
></wd-icon>
</view>
</view>
<Sort
v-show=
"rotate"
@
sortParams=
"sortParams"
/>
<DepartureDate
v-show=
"rotate2"
@
dataParams=
"dataParams"
/>
<ScenicSpots
v-show=
"rotate3"
@
placeParams=
"placeParams"
/>
<Screen
v-show=
"rotate4"
@
screenParams=
"screenParams"
/>
<Sort
v-show=
"rotate"
ref=
"sortRef"
@
sortParams=
"sortParams"
/>
<DepartureDate
v-show=
"rotate2"
ref=
"departureDateRef"
@
dataParams=
"dataParams"
/>
<ScenicSpots
v-show=
"rotate3"
ref=
"scenicSpotsRef"
@
placeParams=
"placeParams"
/>
<Screen
v-show=
"rotate4"
ref=
"screenRef"
@
screenParams=
"screenParams"
/>
</view>
<view
class=
"list"
>
<view
@
click=
"jumpPage(item)"
class=
"item"
v-for=
"(item, index) in cardData"
:key=
"index"
>
...
...
@@ -140,6 +140,10 @@ const textColor = ref('#ffffff');
const
backIconColor
=
ref
(
'white'
);
const
current
=
ref
(
0
);
const
isLoadReachBottom
=
ref
(
null
);
const
sortRef
=
ref
(
null
);
const
departureDateRef
=
ref
(
null
);
const
scenicSpotsRef
=
ref
(
null
);
const
screenRef
=
ref
(
null
);
const
params
=
ref
({
current
:
1
,
size
:
15
,
...
...
@@ -235,6 +239,12 @@ const screenParams = (item, type) => {
});
};
const
resetParams
=
()
=>
{
if
(
sortRef
.
value
||
departureDateRef
.
value
||
scenicSpotsRef
.
value
||
screenRef
.
value
)
{
sortRef
.
value
.
reset
();
departureDateRef
.
value
.
reset
();
scenicSpotsRef
.
value
.
reset
();
screenRef
.
value
.
reset
();
}
params
.
value
=
{
size
:
15
,
current
:
1
,
...
...
src/pages/assistingAgriculture/reviewDetails/scenicSpotDetails.vue
View file @
644c672e
...
...
@@ -3,7 +3,7 @@
<!-- 点评详情页面 -->
<search
style=
"z-index: 99; width: 100%"
:type=
"2"
backgroundBox=
"#fff"
>
<view
style=
"width: 100%; text-align: center; font-size: 36rpx; font-weight: bold"
>
点评
详情
景点
详情
</view>
</search>
<view
class=
"review-details-pages"
>
...
...
src/static/assistingAgriculture/detail/carImg.png
0 → 100644
View file @
644c672e
1.38 KB
src/static/assistingAgriculture/detail/home.png
0 → 100644
View file @
644c672e
839 Bytes
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