Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
8878119e
Commit
8878119e
authored
May 27, 2021
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/zk123/jz_travel
parents
c21f7b6b
3d69aa66
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
430 additions
and
326 deletions
+430
-326
pages.json
pages.json
+2
-0
index.vue
pages/index/index.vue
+15
-15
jz_Line.vue
pages/jiuzhai/jz_Line.vue
+31
-10
jz_LineDetail.vue
pages/jiuzhai/jz_LineDetail.vue
+258
-255
detail.vue
pages/ticketCoupons/detail.vue
+30
-46
imgList.vue
pages/ticketCoupons/imgList.vue
+94
-0
No files found.
pages.json
View file @
8878119e
...
@@ -750,6 +750,8 @@
...
@@ -750,6 +750,8 @@
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
},{
"path"
:
"imgList"
}
}
]
]
}
}
...
...
pages/index/index.vue
View file @
8878119e
...
@@ -1220,21 +1220,21 @@
...
@@ -1220,21 +1220,21 @@
},
},
yj
(){
yj
(){
let
obj
=
{
ArriveCityId
:
7
,
// let obj ={ArriveCityId: 7,
ArriveCityName
:
"九寨沟"
,
// ArriveCityName: "九寨沟",
ArriveCityType
:
2
,
// ArriveCityType: 2,
Q_Date
:
"2021-5-25"
,
// Q_Date: "2021-5-25",
StartCityId
:
262
,
// StartCityId: 262,
StartCityName
:
"成都"
,
// StartCityName: "成都",
StartCityType
:
1
}
// StartCityType: 1}
obj
=
encodeURIComponent
(
JSON
.
stringify
(
obj
))
// obj = encodeURIComponent(JSON.stringify(obj))
uni
.
navigateTo
({
url
:
'/pages/guidecar/bookaCarList?carMsg='
+
obj
})
// uni.navigateTo({
// uni.navigateTo({
// url: '/pages/guidecar/index'
// url: '/pages/guidecar/bookaCarList?carMsg='+obj
// // url: '/pages/blindDate/personal/IDidentification'
// })
// })
uni
.
navigateTo
({
url
:
'/pages/jiuzhai/jz_Line'
,
// url: '/pages/blindDate/personal/IDidentification'
})
}
}
},
},
...
...
pages/jiuzhai/jz_Line.vue
View file @
8878119e
...
@@ -133,6 +133,16 @@
...
@@ -133,6 +133,16 @@
top
:
130px
;
top
:
130px
;
z-index
:
999
;
z-index
:
999
;
}
}
.jz_Recommend
{
color
:
#999999
;
font-size
:
24
rpx
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
overflow
:
hidden
;
margin-top
:
10px
;
line-height
:
20px
;
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"jz_Line"
>
<div
class=
"jz_Line"
>
...
@@ -160,11 +170,10 @@
...
@@ -160,11 +170,10 @@
<template
v-else
>
<template
v-else
>
<view
style=
"height: calc(100vh - 120px);overflow: hidden;"
>
<view
style=
"height: calc(100vh - 120px);overflow: hidden;"
>
<scroll-view
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lower"
:style=
"
{ height: '100%' }">
<scroll-view
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lower"
:style=
"
{ height: '100%' }">
<view
class=
"jz_ListMain"
v-for=
"(item,index) in dataList"
:key=
"index"
@
click=
"goJzDetail(item.tcid)"
>
<view
class=
"jz_ListMain"
v-for=
"(item,index) in dataList"
:key=
"index"
@
click=
"goJzDetail(item.tcid
,item.configId
)"
>
<view
class=
"jz_List"
>
<view
class=
"jz_List"
>
<view
class=
"jz_TuDiv"
>
<view
class=
"jz_TuDiv"
>
<img
class=
"jz_TuBigImg"
aspectFill
src=
"http://imgfile.oytour.com/Upload/DMC/20200603030333648.jpg"
<img
class=
"jz_TuBigImg"
mode=
"aspectFill"
:src=
"getImgs(item.imgCover)"
alt=
""
/>
alt=
""
/>
<view
class=
"jz_TuDivBotm"
>
<view
class=
"jz_TuDivBotm"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/address.png"
/>
成都出发
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/address.png"
/>
成都出发
{{
item
.
dayNum
}}
天
{{
item
.
dayNum
}}
天
...
@@ -172,14 +181,19 @@
...
@@ -172,14 +181,19 @@
</view>
</view>
<view
class=
"jz_Right"
>
<view
class=
"jz_Right"
>
<view
class=
"jz_LineName"
>
{{
item
.
title
}}
</view>
<view
class=
"jz_LineName"
>
{{
item
.
title
}}
</view>
<view
class=
"jz_Recommend"
>
{{
item
.
productRecommend
}}
</view>
<view
style=
"margin:10px 0"
>
<view
style=
"margin:10px 0"
>
<img
class=
"jz_calederImg"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/canlder.png"
/>
{{
item
.
startDate
}}
<text
<img
class=
"jz_calederImg"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/CustomizedCar/canlder.png"
/>
{{
item
.
startDate
}}
class=
"jz_Canhoubu"
>
不可候补
</text>
<text
class=
"jz_Canhoubu"
>
{{
item
.
isSubstitution
==
0
?
'不可候补'
:
'可以候补'
}}
</text>
</view>
</view>
<view
style=
"margin-bottom:10px"
>
航班:
<text>
无
</text>
(余位:10)
</view>
<view
style=
"margin-bottom:10px"
>
余位:
{{
item
.
surplus
}}
</view>
<view
style=
"color:#FF3166;position: absolute;right:0;bottom:0"
>
<view
style=
"color:#FF3166;position: absolute;right:0;bottom:0"
>
<text
style=
"font-size:20rpx;"
>
¥
</text>
<text
style=
"font-size:20rpx;"
>
¥
</text>
<text
style=
"font-size:
36
rpx;"
>
{{
item
.
b2BPrice
}}
</text>
<text
style=
"font-size:
40
rpx;"
>
{{
item
.
b2BPrice
}}
</text>
<text
style=
"font-size:20rpx;"
>
起
</text>
<text
style=
"font-size:20rpx;"
>
起
</text>
</view>
</view>
</view>
</view>
...
@@ -243,7 +257,7 @@
...
@@ -243,7 +257,7 @@
//获取数据
//获取数据
getList
()
{
getList
()
{
this
.
apipost
(
this
.
apipost
(
"b2b_get_GetB2B
HomeLine
TravelPageList"
,
"b2b_get_GetB2BTravelPageList"
,
this
.
msg
,
this
.
msg
,
res
=>
{
res
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
...
@@ -271,10 +285,17 @@
...
@@ -271,10 +285,17 @@
}
}
},
},
//跳转至详情
//跳转至详情
goJzDetail
(
tcid
){
goJzDetail
(
tcid
,
configId
){
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/jiuzhai/jz_LineDetail?tcid="
+
tcid
url
:
"/pages/jiuzhai/jz_LineDetail?tcid="
+
tcid
+
'&configId='
+
configId
});
});
},
//获取第一张图
getImgs
(
imgObj
){
let
imgArr
=
JSON
.
parse
(
imgObj
);
if
(
imgArr
&&
imgArr
.
length
>
0
){
return
imgArr
[
0
].
Url
}
}
}
},
},
};
};
...
...
pages/jiuzhai/jz_LineDetail.vue
View file @
8878119e
This diff is collapsed.
Click to expand it.
pages/ticketCoupons/detail.vue
View file @
8878119e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
<scroll-view
scroll-y=
"true"
style=
"width: 100%;height: 100%;"
@
scroll=
"scroll"
>
<scroll-view
scroll-y=
"true"
style=
"width: 100%;height: 100%;"
@
scroll=
"scroll"
>
<view
style=
"height: 700rpx;position: relative;z-index: 1;"
:style=
"
{'opacity':(100-boxOption)+'%'}">
<view
style=
"height: 700rpx;position: relative;z-index: 1;"
:style=
"
{'opacity':(100-boxOption)+'%'}">
<view
@
click=
"goback"
:style=
"[titleStyle,
{opacity:'100% !important'}]"
<view
@
click=
"goback"
:style=
"[titleStyle,
{opacity:'100% !important'}]"
style="position: fixed;top: 0;left: 0;padding-left: 6rpx;">
style="position: fixed;top: 0;left: 0;
z-index: 9;
padding-left: 6rpx;">
<u-icon
name=
"arrow-left"
size=
"44"
color=
"#000"
style=
"margin-top: 22rpx;"
></u-icon>
<u-icon
name=
"arrow-left"
size=
"44"
color=
"#000"
style=
"margin-top: 22rpx;"
></u-icon>
</view>
</view>
<image
:src=
"imgBaseUrl+details.AllPicList[0].TagPicList[0].Path"
mode=
"aspectFit"
style=
"width: 100%,height:100%;
"
></image>
<image
class=
"banner-img"
:src=
"imgBaseUrl+details.AllPicList[0].TagPicList[0].Path"
mode=
"aspectFit"
@
click=
"goUrl
"
></image>
</view>
</view>
<view
class=
"ticket-title"
:style=
"[titleStyle]"
>
<view
class=
"ticket-title"
:style=
"[titleStyle
Fix
]"
>
<view
@
click=
"goback"
>
<view
@
click=
"goback"
>
<u-icon
name=
"arrow-left"
size=
"44"
></u-icon>
<u-icon
name=
"arrow-left"
size=
"44"
></u-icon>
</view>
</view>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</view>
</view>
</view>
</view>
<view
class=
"info2"
>
<view
class=
"info2"
>
{{
details
.
ID
}}
条点评
0
条点评
<u-icon
name=
"arrow-down"
color=
"#6E6E6E"
size=
"20rpx"
class=
"icon"
></u-icon>
<u-icon
name=
"arrow-down"
color=
"#6E6E6E"
size=
"20rpx"
class=
"icon"
></u-icon>
</view>
</view>
<view
class=
"info3"
>
<view
class=
"info3"
>
...
@@ -169,6 +169,7 @@
...
@@ -169,6 +169,7 @@
boxOption
:
0
,
boxOption
:
0
,
navsOption
:
0
,
navsOption
:
0
,
titleStyle
:
{},
titleStyle
:
{},
titleStyleFix
:{},
active
:
0
,
active
:
0
,
mainColor
:
''
,
mainColor
:
''
,
controls
:
false
,
//显示默认控件
controls
:
false
,
//显示默认控件
...
@@ -186,7 +187,7 @@
...
@@ -186,7 +187,7 @@
this
.
ID
=
options
.
id
this
.
ID
=
options
.
id
this
.
getDetail
()
this
.
getDetail
()
}
}
this
.
imgBaseUrl
=
this
.
host2
this
.
imgBaseUrl
=
"http://192.168.20.214:8130"
uni
.
getSystemInfo
({
uni
.
getSystemInfo
({
success
(
res
)
{
success
(
res
)
{
that
.
titleStyle
=
{
that
.
titleStyle
=
{
...
@@ -194,34 +195,25 @@
...
@@ -194,34 +195,25 @@
paddingTop
:
`
${
res
.
statusBarHeight
}
px`
,
paddingTop
:
`
${
res
.
statusBarHeight
}
px`
,
opacity
:
"0%"
opacity
:
"0%"
};
};
that
.
titleStyleFix
=
{
height
:
"45px"
,
position
:
'fixed'
,
top
:
'0'
,
left
:
'0'
,
paddingTop
:
`
${
res
.
statusBarHeight
}
px`
,
'background-color'
:
'#f6f6f6'
,
opacity
:
"0%"
}
},
},
});
});
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
},
},
methods
:
{
methods
:
{
// showTips(id, text, showis) {
goUrl
(){
// clearInterval(timer);
uni
.
navigateTo
({
// if (this.eleId == id && this.tooltipShow == true) {
url
:
"/pages/ticketCoupons/imgList?id="
+
this
.
ID
,
// this.tooltipShow = false
})
// } else {
},
// console.log(text, showis)
// if (text != undefined && text != null && text != '' && showis == 1) {
// this.eleId = id;
// this.tooltipBtns = [text]
// this.tooltipShow = true;
// timer = setTimeout(() => {
// this.tooltipShow = false;
// }, 3000)
// } else {
// this.tooltipShow = false;
// }
// }
// },
// clickDescription(e) {
// console.log(e);
// },
//获取详情
//获取详情
getDetail
()
{
getDetail
()
{
this
.
request2
({
this
.
request2
({
...
@@ -272,6 +264,9 @@
...
@@ -272,6 +264,9 @@
this
.
titleStyle
.
opacity
=
((
e
.
detail
.
scrollTop
-
100
)
<
0
?
0
:
Math
.
floor
(
e
.
detail
.
scrollTop
-
100
))
+
this
.
titleStyle
.
opacity
=
((
e
.
detail
.
scrollTop
-
100
)
<
0
?
0
:
Math
.
floor
(
e
.
detail
.
scrollTop
-
100
))
+
"%"
;
"%"
;
this
.
tooltipShow
=
false
this
.
tooltipShow
=
false
this
.
titleStyleFix
.
opacity
=
((
e
.
detail
.
scrollTop
-
100
)
<
0
?
0
:
Math
.
floor
(
e
.
detail
.
scrollTop
-
100
))
+
"%"
;
this
.
$forceUpdate
()
this
.
$forceUpdate
()
},
},
goback
()
{
goback
()
{
...
@@ -295,23 +290,7 @@
...
@@ -295,23 +290,7 @@
this
.
controls
=
true
this
.
controls
=
true
}
}
},
},
getlove
()
{
// this.request2(
// {
// url: '/api/AppletTrade/GetCollect',
// data: {Type:2,SourceId:this.ID,Id:this.details.CollectId}
// },
// res => {
// if(res.resultCode==1){
// uni.showToast({
// title: res.message,
// icon:'none'
// });
// this.getDetail()
// }
// }
// );
},
goMap
(
name
,
lon
,
lat
)
{
goMap
(
name
,
lon
,
lat
)
{
console
.
log
(
name
,
lon
,
lat
)
console
.
log
(
name
,
lon
,
lat
)
let
newLat
=
parseFloat
(
lat
)
let
newLat
=
parseFloat
(
lat
)
...
@@ -339,6 +318,11 @@
...
@@ -339,6 +318,11 @@
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.banner-img
{
width
:
750rpx
;
height
:
700rpx
;
// background-color: #ff0;
}
.ticket-title
{
.ticket-title
{
line-height
:
45px
!
important
;
line-height
:
45px
!
important
;
font-size
:
16px
;
font-size
:
16px
;
...
@@ -729,7 +713,7 @@
...
@@ -729,7 +713,7 @@
}
}
}
}
.last-item
{
.last-item
{
border
:none
;
border
-bottom
:none
!
important
;
margin-bottom
:
0rpx
!
important
;
margin-bottom
:
0rpx
!
important
;
}
}
...
...
pages/ticketCoupons/imgList.vue
0 → 100644
View file @
8878119e
<
template
>
<view
class=
"img-list"
>
<view
class=
"img-navs"
>
<view
v-for=
"(item,index) in navList"
:key=
"index"
class=
"nav-btn"
:class=
"
{'check-nav':index==curNavIndex}">
{{
item
.
key
}}
</view>
</view>
<view
class=
"img-list"
>
<view
v-for=
"(item,index) in imgList"
:key=
"item.ID"
class=
"img-list-item"
@
click=
""
>
<view
class=
""
>
<image
src=
""
mode=
""
></image>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
ID
:
0
,
navList
:[],
curNavIndex
:
0
,
imgList
:[]
}
},
components
:
{
},
watch
:{
curNavIndex
(
val
){
}
},
created
()
{
uni
.
setNavigationBarTitle
({
title
:
"风景图片"
,
});
},
onLoad
(
option
)
{
if
(
options
&&
options
.
id
)
{
this
.
ID
=
options
.
id
this
.
getDetail
()
}
},
methods
:
{
//获取详情
getDetail
(
index
)
{
this
.
request2
({
url
:
'/api/AppletDining/GetTicketCouponsDetails'
,
data
:
{
ID
:
this
.
ID
}
},
res
=>
{
if
(
res
.
resultCode
==
1
)
{
this
.
navList
=
res
.
data
.
AllPicList
;
this
.
imgList
=
res
.
data
.
AllPicList
[
index
].
TagPicList
console
.
log
(
this
.
imgList
)
}
}
);
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.img-list
{
.img-navs
{
display
:
flex
;
.nav-btn
{
width
:
230rpx
;
height
:
60rpx
;
background-color
:
#FFFFFF
;
border
:
1rpx
solid
#111111
;
border-radius
:
20rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
text-align
:
center
;
vertical-align
:
middle
;
}
.check-nav
{
background-color
:
#111111
;
color
:
#FFFFFF
;
}
}
}
</
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