Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
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
viitto
million
Commits
1829d518
Commit
1829d518
authored
Nov 20, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e057e343
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2758 additions
and
1 deletion
+2758
-1
block.vue
src/components/searchProductdata/block.vue
+44
-0
kkday.vue
src/components/searchProductdata/kkday.vue
+978
-0
list.vue
src/components/searchProductdata/list.vue
+81
-0
kkday.vue
src/components/searchdata/kkday.vue
+1
-1
SearchProduct.vue
src/pages/SearchProduct.vue
+1649
-0
routes.js
src/router/routes.js
+5
-0
No files found.
src/components/searchProductdata/block.vue
0 → 100644
View file @
1829d518
<
template
>
<!-- 豆腐块 -->
<div
class=
"Search_center"
>
<ul
class=
"pd-list"
>
<li
class=
"pd-box"
v-for=
"(item,index) in DataList"
:key=
"index"
>
<a
class=
"pd-link"
>
<div
class=
"pd-img"
:style=
"
{backgroundImage:`url('${item.newCoverImg}')`}">
<div
class=
"pd-price"
>
<div
class=
"price"
>
{{
item
.
dayNum
}}
<small
class=
"unit"
>
天
</small>
{{
item
.
b2BPrice
}}
<small
class=
"unit"
>
元起
</small>
</div>
</div>
</div>
<div
class=
"pd-content"
>
<h3
class=
"pd-title"
>
{{
item
.
title
}}
</h3>
<div
class=
"pd-departure"
>
出發日期:
{{
item
.
startDate
}}
<span
class=
"more"
@
click=
"GotoDetails(item)"
style=
"cursor:pointer"
>
...更多
</span>
</div>
</div>
</a>
</li>
</ul>
</div>
</
template
>
<
script
>
export
default
{
props
:
[
"DataList"
,
"PageCount"
],
data
()
{
return
{
};
},
methods
:
{
GotoDetails
(
item
)
{
this
.
CommonJump
(
'/details/'
+
encodeURIComponent
(
item
.
id
)
+
"/"
+
item
.
tcid
,
{});
}
}
}
</
script
>
src/components/searchProductdata/kkday.vue
0 → 100644
View file @
1829d518
This diff is collapsed.
Click to expand it.
src/components/searchProductdata/list.vue
0 → 100644
View file @
1829d518
<
template
>
<!-- 列表 -->
<div
class=
"group-result-list"
>
<div
class=
"group-statis-block"
>
<div
class=
"group-share"
style=
"display:none;"
></div>
<div
class=
"group-statis-detail"
>
<span
class=
"title"
v-if=
"qMsg.searchKey"
>
{{
qMsg
.
searchKey
}}
:
</span>
找到
<span
class=
"num"
>
{{
qMsg
.
TotalCount
}}
</span>
個行程
<span
class=
"pc"
>
,目前在第
<span
style=
"color: #7f7f7f;"
>
{{
qMsg
.
pageIndex
}}
</span>
頁
</span>
</div>
</div>
<div>
<div
class=
"group-box"
v-for=
"(itemf,indexf) in DataList"
:key=
"indexf"
>
<a
class=
"group-cover"
>
<template
v-if=
"itemf.imgCover&&itemf.imgCover.length>0"
>
<img
:src=
"itemf.imgCover[0].url"
/>
</
template
>
</a>
<div
class=
"group-main"
>
<div
class=
"group-info"
>
<div
class=
"group-name"
style=
"margin-bottom:5px;cursor:pointer"
@
click=
"GotoDetails(itemf)"
>
{{itemf.title}}
</div>
<div
class=
"group-detail"
@
click=
"GotoDetails(itemf)"
>
<i
class=
"iconfont iconaddress"
></i>
<span>
{{itemf.countryName}}
</span>
</div>
<div
class=
"group-detail"
@
click=
"GotoDetails(itemf)"
>
<i
class=
"iconfont icontime"
></i>
<span>
{{itemf.dayNum}} 天
</span>
</div>
<ul
class=
"group-list"
>
<li>
<
template
v-if=
"itemf.PriceList&&itemf.PriceList.length>0"
>
<div
v-for=
"(item,index) in itemf.priceList"
:key=
"index"
>
<a>
{{
item
.
StartDate
}}
</a>
</div>
</
template
>
</li>
</ul>
</div>
<div
class=
"price-info"
@
click=
"GotoDetails(itemf)"
>
<div
class=
"price-wrap"
>
<div
class=
"price_Search"
>
<small
class=
"price_unit"
>
TWD$
</small>
{{itemf.b2BPrice}}
</div>
<a
class=
"btn_warning"
@
click=
"GotoDetails(itemf)"
style=
"cursor:pointer"
>
更多出發日
</a>
</div>
</div>
</div>
</div>
<div
style=
"display:flex;justify-content: center;"
>
<q-pagination
v-if=
"qMsg.PageCount>1"
v-model=
"qMsg.pageIndex"
:max=
"qMsg.PageCount"
@
input=
"gerOrderList()"
:direction-links=
"true"
>
</q-pagination>
</div>
</div>
</div>
</template>
<
script
>
export
default
{
props
:
[
"DataList"
,
"qMsg"
],
data
()
{
return
{
};
},
methods
:
{
GotoDetails
(
item
)
{
this
.
CommonJump
(
'/details/'
+
encodeURIComponent
(
item
.
id
)
+
"/"
+
item
.
tcid
,
{});
},
//调用
gerOrderList
(){
this
.
$emit
(
'getPage'
)
}
}
}
</
script
>
src/components/searchdata/kkday.vue
View file @
1829d518
...
...
@@ -836,7 +836,7 @@ export default {
//
}
//
}
);
this.DataList = tempArray;
this.renderSearchInfo(res.data.data.pageData
.condition
);
this.renderSearchInfo(res.data.data.pageData);
this.$forceUpdate();
}
}
...
...
src/pages/SearchProduct.vue
0 → 100644
View file @
1829d518
This diff is collapsed.
Click to expand it.
src/router/routes.js
View file @
1829d518
...
...
@@ -73,6 +73,11 @@ const routes = [{
meta
:
{
title
:
'出行检索'
},
component
:
()
=>
import
(
'pages/Search.vue'
)
},{
path
:
'/searchProduct'
,
//出行产品(团)检索
meta
:
{
title
:
'出行检索'
},
component
:
()
=>
import
(
'pages/SearchProduct.vue'
)
},
{
path
:
'/account'
,
//用户信息
...
...
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