Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Athena
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
华国豪
Athena
Commits
8cf3f235
Commit
8cf3f235
authored
Aug 27, 2019
by
黄媛媛
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/huaguohao/athena
parents
f1f2847e
7a7d2218
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
8 deletions
+59
-8
FreeHome.vue
src/components/FreeTravel/FreeHome.vue
+28
-0
FreeList.vue
src/components/FreeTravel/FreeList.vue
+17
-5
FreeList2.vue
src/components/FreeTravel/FreeList2.vue
+14
-3
No files found.
src/components/FreeTravel/FreeHome.vue
View file @
8cf3f235
...
@@ -885,6 +885,7 @@
...
@@ -885,6 +885,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<a
:href=
"blankUrl"
id=
"blankLink"
target=
"_blank"
style=
"display:none"
>
1
</a>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -899,6 +900,7 @@ export default {
...
@@ -899,6 +900,7 @@ export default {
'cheliang'
,
'cheliang'
,
'menpiao'
,
'menpiao'
,
],
],
blankUrl
:
''
,
inputActive
:
false
,
inputActive
:
false
,
activeId
:
'meals'
,
activeId
:
'meals'
,
dataList
:
[],
dataList
:
[],
...
@@ -949,6 +951,26 @@ export default {
...
@@ -949,6 +951,26 @@ export default {
this
.
getCCList
()
this
.
getCCList
()
},
},
methods
:
{
methods
:
{
searchKey
(){
this
.
apiJavaPost
(
"/api/kkday/commodityList"
,
{
"locale"
:
"zh-cn"
,
"state"
:
"CN"
,
"sort"
:
"PASC"
,
"keywords"
:
str
},
res
=>
{
if
(
res
.
data
.
resultCode
===
1
)
{
let
data
=
res
.
data
.
data
.
prods
;
console
.
log
(
data
)
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
null
);
},
scrollbar
(
dom
,
type
)
{
scrollbar
(
dom
,
type
)
{
if
(
type
==
1
)
{
if
(
type
==
1
)
{
this
.
$refs
[
dom
].
scrollLeft
=
this
.
$refs
[
dom
].
scrollLeft
-
300
this
.
$refs
[
dom
].
scrollLeft
=
this
.
$refs
[
dom
].
scrollLeft
-
300
...
@@ -1011,6 +1033,12 @@ export default {
...
@@ -1011,6 +1033,12 @@ export default {
);
);
},
},
goDetails
(
obj
,
type
){
goDetails
(
obj
,
type
){
let
dom
=
document
.
querySelector
(
"#blankLink"
)
let
fullPath
=
`/FreeDetail?id=
${
type
?
obj
.
pkg_no
:
obj
.
prod_url_no
}
`
;
dom
.
href
=
`http://
${
window
.
location
.
host
}
/#
${
fullPath
}
`
//console.log(that.$refs.blankLink.click())
dom
.
click
()
return
console
.
log
(
obj
)
console
.
log
(
obj
)
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"FreeDetail"
,
name
:
"FreeDetail"
,
...
...
src/components/FreeTravel/FreeList.vue
View file @
8cf3f235
...
@@ -347,6 +347,9 @@
...
@@ -347,6 +347,9 @@
top
:
0
;
top
:
0
;
transition
:
all
linear
.5s
;
transition
:
all
linear
.5s
;
cursor
:
pointer
;
cursor
:
pointer
;
height
:
286px
;
box-sizing
:
border-box
;
overflow
:
hidden
;
}
}
.shangpinliebiao-item
:hover
{
.shangpinliebiao-item
:hover
{
top
:
-10px
;
top
:
-10px
;
...
@@ -499,15 +502,15 @@
...
@@ -499,15 +502,15 @@
<div
class=
"hot-p"
v-if=
"dataHotList.length > 0"
>
<div
class=
"hot-p"
v-if=
"dataHotList.length > 0"
>
<div
class=
"hot-p-item"
>
<div
class=
"hot-p-item"
>
<p
class=
"f24 hot-p-item-tit"
><strong>
TOP
{{
dataHotList
.
length
>
2
?
3
:
dataHotList
.
length
}}
</strong>
目的地热销产品
</p>
<p
class=
"f24 hot-p-item-tit"
><strong>
TOP
{{
dataHotList
.
length
>
2
?
3
:
dataHotList
.
length
}}
</strong>
目的地热销产品
</p>
<div
v-for=
"(item, index) in dataHotList"
v-if=
"index
<
3
"
@
click=
"goDetails(item)"
class=
"__cp"
>
<div
v-for=
"(item, index) in dataHotList"
v-if=
"index
<
3
"
>
<p
class=
"f20 hot-p-item-tit-s"
>
<p
class=
"f20 hot-p-item-tit-s"
>
<span
class=
"hot-p-item-tit-s-line"
></span>
<span
class=
"hot-p-item-tit-s-line"
></span>
<strong>
{{
item
.
name
}}
</strong>
<strong>
{{
item
.
name
}}
</strong>
<!--
<span
class=
"f14 c88 __cp see-more"
>
查看更多
</span>
-->
<!--
<span
class=
"f14 c88 __cp see-more"
>
查看更多
</span>
-->
</p>
</p>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
v-for=
"(sItem, sIndex) in item.data"
v-if=
"sIndex
<
4
"
:key=
"sIndex"
>
<el-col
:span=
"6"
v-for=
"(sItem, sIndex) in item.data"
v-if=
"sIndex
<
4
"
class=
"__cp"
:key=
"sIndex"
>
<div
class=
"pro-item"
>
<div
class=
"pro-item"
@
click=
"goDetails(sItem)"
>
<span
class=
"pro-item-tag bgc-b cff"
:class=
"`bgc-b$
{sItem.prod_type == 'M01' ? 1 : sItem.prod_type == 'M04' ? 2 : sItem.prod_type == 'M05' ? 3 : 4}`">
{{
sItem
.
prod_type
==
'M01'
?
'一日游'
:
sItem
.
prod_type
==
'M04'
?
'交通'
:
sItem
.
prod_type
==
'M05'
?
'门票'
:
'其他'
}}
</span>
<span
class=
"pro-item-tag bgc-b cff"
:class=
"`bgc-b$
{sItem.prod_type == 'M01' ? 1 : sItem.prod_type == 'M04' ? 2 : sItem.prod_type == 'M05' ? 3 : 4}`">
{{
sItem
.
prod_type
==
'M01'
?
'一日游'
:
sItem
.
prod_type
==
'M04'
?
'交通'
:
sItem
.
prod_type
==
'M05'
?
'门票'
:
'其他'
}}
</span>
<div
class=
"pro-item-top"
>
<div
class=
"pro-item-top"
>
<img
:onerror=
"defaultImg"
:src=
"KkdayDomain + sItem.prod_img_url"
alt=
""
>
<img
:onerror=
"defaultImg"
:src=
"KkdayDomain + sItem.prod_img_url"
alt=
""
>
...
@@ -520,7 +523,7 @@
...
@@ -520,7 +523,7 @@
<!--
<p
class=
"c88 f12"
>
最早可订日期:2019年8月20日
</p>
-->
<!--
<p
class=
"c88 f12"
>
最早可订日期:2019年8月20日
</p>
-->
</div>
</div>
<div
class=
"c88 f12"
>
<div
class=
"c88 f12"
>
{{
sItem
.
order_count
+
Math
.
round
(
Math
.
random
()
*
99
)
}}
人已购买
{{
sItem
.
order_count
}}
人已购买
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -600,7 +603,7 @@
...
@@ -600,7 +603,7 @@
<!--
<p
class=
"c88 f12"
>
最早可订日期:2019年8月20日
</p>
-->
<!--
<p
class=
"c88 f12"
>
最早可订日期:2019年8月20日
</p>
-->
</div>
</div>
<div
class=
"c88 f12"
>
<div
class=
"c88 f12"
>
{{
item
.
order_count
+
Math
.
round
(
Math
.
random
()
*
99
)
}}
人已购买
{{
item
.
order_count
}}
人已购买
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -623,6 +626,7 @@
...
@@ -623,6 +626,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<a
:href=
"blankUrl"
id=
"blankLink"
target=
"_blank"
style=
"display:none"
>
1
</a>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -630,6 +634,7 @@ export default {
...
@@ -630,6 +634,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
defaultImg
:
'this.src="'
+
require
(
'assets/img/juan/error.png'
)
+
'"'
,
defaultImg
:
'this.src="'
+
require
(
'assets/img/juan/error.png'
)
+
'"'
,
blankUrl
:
''
,
newCityCheck
:
[],
newCityCheck
:
[],
paixu1
:
false
,
paixu1
:
false
,
paixu2
:
false
,
paixu2
:
false
,
...
@@ -929,6 +934,13 @@ export default {
...
@@ -929,6 +934,13 @@ export default {
});
});
},
},
goDetails
(
obj
){
goDetails
(
obj
){
console
.
log
(
obj
)
let
dom
=
document
.
querySelector
(
"#blankLink"
)
let
fullPath
=
`/FreeDetail?id=
${
obj
.
prod_url_no
}
`
;
dom
.
href
=
`http://
${
window
.
location
.
host
}
/#
${
fullPath
}
`
//console.log(that.$refs.blankLink.click())
dom
.
click
()
return
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"FreeDetail"
,
name
:
"FreeDetail"
,
query
:
{
query
:
{
...
...
src/components/FreeTravel/FreeList2.vue
View file @
8cf3f235
...
@@ -358,6 +358,9 @@
...
@@ -358,6 +358,9 @@
top
:
0
;
top
:
0
;
transition
:
all
linear
.5s
;
transition
:
all
linear
.5s
;
cursor
:
pointer
;
cursor
:
pointer
;
height
:
286px
;
box-sizing
:
border-box
;
overflow
:
hidden
;
}
}
.shangpinliebiao-item
:hover
{
.shangpinliebiao-item
:hover
{
top
:
-10px
;
top
:
-10px
;
...
@@ -515,7 +518,7 @@
...
@@ -515,7 +518,7 @@
<img
:src=
"require('@/assets/img/weather/'+ weatherList[0].cond_code_d +'.png')"
alt=
""
>
<img
:src=
"require('@/assets/img/weather/'+ weatherList[0].cond_code_d +'.png')"
alt=
""
>
<div
class=
"f16 cff"
>
<div
class=
"f16 cff"
>
<p
class=
"PingFangR"
>
{{
weatherList
[
0
].
tmp_min
}}
℃-
{{
weatherList
[
0
].
tmp_max
}}
℃
</p>
<p
class=
"PingFangR"
>
{{
weatherList
[
0
].
tmp_min
}}
℃-
{{
weatherList
[
0
].
tmp_max
}}
℃
</p>
<p
class=
"f14"
>
{{
weatherList
[
0
].
cond_txt_d
}}
,
{{
weatherList
[
0
].
date
.
substring
(
5
,
7
)
}}
月
{{
weatherList
[
0
].
date
.
substring
(
8
,
10
)
}}
日
</p>
<p
class=
"f14"
>
{{
weatherList
[
0
].
cond_txt_d
}}
,
{{
weatherList
[
0
].
date
.
substring
(
5
,
7
)
}}
-
{{
weatherList
[
0
].
date
.
substring
(
8
,
10
)
}}
</p>
</div>
</div>
</div>
</div>
<div
v-else
class=
"today-tq today-tq2"
>
<div
v-else
class=
"today-tq today-tq2"
>
...
@@ -523,7 +526,7 @@
...
@@ -523,7 +526,7 @@
<img
:src=
"require('@/assets/img/weather/'+ item.cond_code_d +'.png')"
alt=
""
>
<img
:src=
"require('@/assets/img/weather/'+ item.cond_code_d +'.png')"
alt=
""
>
<div
class=
"f16 c33"
>
<div
class=
"f16 c33"
>
<p
class=
"PingFangR"
>
{{
item
.
tmp_min
}}
℃-
{{
item
.
tmp_max
}}
℃
</p>
<p
class=
"PingFangR"
>
{{
item
.
tmp_min
}}
℃-
{{
item
.
tmp_max
}}
℃
</p>
<p
class=
"f14"
>
{{
item
.
cond_txt_d
}}
,
{{
item
.
date
.
substring
(
5
,
7
)
}}
月
{{
item
.
date
.
substring
(
8
,
10
)
}}
日
</p>
<p
class=
"f14"
>
{{
item
.
cond_txt_d
}}
,
{{
item
.
date
.
substring
(
5
,
7
)
}}
-
{{
item
.
date
.
substring
(
8
,
10
)
}}
</p>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -634,7 +637,7 @@
...
@@ -634,7 +637,7 @@
<!--
<p
class=
"c88 f12"
>
最早可订日期:2019年8月20日
</p>
-->
<!--
<p
class=
"c88 f12"
>
最早可订日期:2019年8月20日
</p>
-->
</div>
</div>
<div
class=
"c88 f12"
>
<div
class=
"c88 f12"
>
{{
item
.
order_count
+
Math
.
round
(
Math
.
random
()
*
99
)
}}
人已购买
{{
item
.
order_count
}}
人已购买
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -659,6 +662,7 @@
...
@@ -659,6 +662,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<a
:href=
"blankUrl"
id=
"blankLink"
target=
"_blank"
style=
"display:none"
>
1
</a>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -666,6 +670,7 @@ export default {
...
@@ -666,6 +670,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
tianqiShow
:
false
,
tianqiShow
:
false
,
blankUrl
:
''
,
defaultImg
:
'this.src="'
+
require
(
'assets/img/juan/error.png'
)
+
'"'
,
defaultImg
:
'this.src="'
+
require
(
'assets/img/juan/error.png'
)
+
'"'
,
ccIdNew
:
null
,
ccIdNew
:
null
,
newCityCheck
:
[],
newCityCheck
:
[],
...
@@ -998,6 +1003,12 @@ export default {
...
@@ -998,6 +1003,12 @@ export default {
}
}
},
},
goDetails
(
obj
){
goDetails
(
obj
){
let
dom
=
document
.
querySelector
(
"#blankLink"
)
let
fullPath
=
`/FreeDetail?id=
${
obj
.
prod_url_no
}
`
;
dom
.
href
=
`http://
${
window
.
location
.
host
}
/#
${
fullPath
}
`
//console.log(that.$refs.blankLink.click())
dom
.
click
()
return
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
"FreeDetail"
,
name
:
"FreeDetail"
,
query
:
{
query
:
{
...
...
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