Commit 77fb44e9 authored by 罗超's avatar 罗超
parents 1be7f755 d9d442f7
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
"pages/video/index", "pages/video/index",
"components/emoji/emoji", "components/emoji/emoji",
"components/inputclear/inputclear", "components/inputclear/inputclear",
"components/inputmodal/inputmodal" "components/inputmodal/inputmodal",
"pages/index/tripDay/tripDay"
], ],
"window": { "window": {
"backgroundTextStyle": "light", "backgroundTextStyle": "light",
......
...@@ -26,6 +26,13 @@ ...@@ -26,6 +26,13 @@
.c99{ .c99{
color:#999999; color:#999999;
} }
.c66{
color:#666666;
}
.red{
color:#FF3166
}
.text1 { .text1 {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -40,4 +47,16 @@ ...@@ -40,4 +47,16 @@
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
}
.center{
text-align: center;
}
.left{
text-align: left;
}
.right{
text-align: right;
}
.bold{
font-weight: 700;
} }
\ No newline at end of file
...@@ -27,6 +27,9 @@ Page({ ...@@ -27,6 +27,9 @@ Page({
todayList:[], todayList:[],
contactState:true, contactState:true,
contactInfo:{}, contactInfo:{},
airState:true,
configId:'',
tcid:'',
}, },
//事件处理函数 //事件处理函数
bindViewTap: function() { bindViewTap: function() {
...@@ -72,6 +75,30 @@ Page({ ...@@ -72,6 +75,30 @@ Page({
} }
that.getData(); that.getData();
}, },
tripDay(e){
let that=this;
let info = e.currentTarget.dataset.item;
console.log("info",info)
wx.navigateTo({
url: '/pages/index/tripDay/tripDay?ConfigId=' + that.data.configId + "&TCID=" + that.data.tcid + "&DayNum=" + info.DayNum
})
},
makePhone(e){
let phone = e.currentTarget.dataset.item.MobilePhone;
wx.makePhoneCall({
phoneNumber: phone,
})
},
seeFight(){
this.setData({
airState: false,
})
},
closeAir(e) {
this.setData({
airState: true,
})
},
closeState(e){ closeState(e){
this.setData({ this.setData({
contactState:true, contactState:true,
...@@ -137,8 +164,11 @@ Page({ ...@@ -137,8 +164,11 @@ Page({
this.setData({ this.setData({
dataInfo:res, dataInfo:res,
todayMsg: todayMsg todayMsg: todayMsg,
configId: res.configId,
tcid: res.tcid
}) })
console.log("dataInfo", this.data.dataInfo)
this.getToday(); this.getToday();
}).catch(err => { }) }).catch(err => { })
}, },
......
...@@ -48,10 +48,10 @@ ...@@ -48,10 +48,10 @@
</scroll-view> </scroll-view>
</view> </view>
<view class="timeView"> <view class="timeView">
<view style="font-size:30rpx;font-weight:700">重要时间</view> <view style="font-size:30rpx;font-weight:700;padding-left:30rpx">重要时间</view>
<swiper class="swiper-box" style="height:240rpx" indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}"> <swiper bindtap="seeFight" class="swiper-box" style="height:240rpx" indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}">
<block> <block>
<swiper-item> <swiper-item style="padding: 0 30rpx;box-sizing: border-box;">
<view class="item"> <view class="item">
<view class="itemView"> <view class="itemView">
<image style="width:44rpx;height:44rpx" src="../../images/index/time.png"></image> <image style="width:44rpx;height:44rpx" src="../../images/index/time.png"></image>
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
</swiper-item> </swiper-item>
</block> </block>
<block> <block>
<swiper-item> <swiper-item style="padding: 0 30rpx;box-sizing: border-box;">
<view class="item"> <view class="item">
<!-- <view class="itemView"> <!-- <view class="itemView">
<image style="width:44rpx;height:44rpx" src="../../images/index/time.png"></image> <image style="width:44rpx;height:44rpx" src="../../images/index/time.png"></image>
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
<view class="XcView"> <view class="XcView">
<view style="font-size:30rpx;font-weight:700;padding-left:30rpx">行程概览</view> <view style="font-size:30rpx;font-weight:700;padding-left:30rpx">行程概览</view>
<scroll-view scroll-x class="scroll-header"> <scroll-view scroll-x class="scroll-header">
<view wx:for="{{dataInfo.JourneyDayImgList}}" wx:key="index" class="scroll-view-item"> <view bindtap="tripDay" data-item="{{item}}" wx:for="{{dataInfo.JourneyDayImgList}}" wx:key="index" class="scroll-view-item">
<image class="img" wx:if="{{item.Images.Url && item.Images.Url!=''}}" src="{{item.Images.Url}}"></image> <image class="img" wx:if="{{item.Images.Url && item.Images.Url!=''}}" src="{{item.Images.Url}}"></image>
<image wx:else src="../../images/index/default.png"></image> <image wx:else src="../../images/index/default.png"></image>
<text style="color:#fff;font-size:36rpx;font-weight:700">Day{{item.DayNum}}</text> <text style="color:#fff;font-size:36rpx;font-weight:700">Day{{item.DayNum}}</text>
...@@ -147,6 +147,8 @@ ...@@ -147,6 +147,8 @@
<view class="imgLeft"> <view class="imgLeft">
<image wx:if="{{item.ImgCover && item.ImgCover!=''}}" src="{{item.ImgCover}}"></image> <image wx:if="{{item.ImgCover && item.ImgCover!=''}}" src="{{item.ImgCover}}"></image>
<image wx:else src="../../images/index/default1.png"></image> <image wx:else src="../../images/index/default1.png"></image>
<image class="img1" src="{{item.ImgCover}}"></image>
<image class="img2" src="{{item.ImgCover}}"></image>
</view> </view>
<view class="right"> <view class="right">
<view style="margin-top:10rpx" class="text2 c11 f30">{{item.Name}}</view> <view style="margin-top:10rpx" class="text2 c11 f30">{{item.Name}}</view>
...@@ -206,11 +208,40 @@ ...@@ -206,11 +208,40 @@
<view style="margin:30rpx 0 30rpx 0" class="f32 bold">30</view> <view style="margin:30rpx 0 30rpx 0" class="f32 bold">30</view>
<view wx:if="{{contactInfo.type==3}}" class="f22">报名数量</view> <view wx:if="{{contactInfo.type==3}}" class="f22">报名数量</view>
<view wx:else class="f22">带团次数</view> <view wx:else class="f22">带团次数</view>
<view class="lxView"> <view bindtap="makePhone" data-item="{{contactInfo}}" class="lxView">
<image style="width:30rpx;height:30rpx;position: relative;top:4rpx" src="../../images/index/lx.png"></image> <image style="width:30rpx;height:30rpx;position: relative;top:4rpx" src="../../images/index/lx.png"></image>
联系他 联系他
</view> </view>
</view> </view>
</view>
<!-- 航班详情 -->
<view catchtap="closeAir" data-self="self" hidden="{{airState}}" class="ContactTc AirTc">
<view catchtap="noThing" data-self="no" class="contentView1">
<image class="photo" src="../../images/index/air.png"></image>
<view class="Content" style="padding-top:85rpx">
<view wx:for="{{dataInfo.FlightList}}" wx:key="index">
<view class="title">
<text>{{item.FlightDate}}</text>
</view>
<view class="fightitem">
<view style="width:120rpx" class="time f32 right">{{item.Departure_time}}</view>
<view style="width:240rpx;position:relative;top:15rpx" class="hr f22 c66 center">{{item.AlName}} {{item.Flight_number}}</view>
<view style="width:120rpx" class="time f32 left">{{item.Arrival_time}}</view>
</view>
<view class="fightitem">
<view style="width:120rpx" class="time f24 right ">{{item.DepartureName}}</view>
<view style="width:240rpx" class="hr f22 c66">
<image style="width:100%;height:8rpx" src="../../images/index/hr.png"></image>
<view wx:if="item.StopoverName && item.StopoverName!=''" class="red f20 center ">{{item.StopoverName}}</view>
</view>
<view style="width:120rpx" class="time f24 left">{{item.ArrivalCityName}}</view>
</view>
</view>
</view>
</view>
</view> </view>
\ No newline at end of file
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
white-space: nowrap; white-space: nowrap;
padding: 30rpx; padding: 30rpx;
box-sizing: border-box; box-sizing: border-box;
color:#fff;
} }
.headView .scroll-header .scroll-view-item { .headView .scroll-header .scroll-view-item {
...@@ -87,7 +88,7 @@ ...@@ -87,7 +88,7 @@
height: 24rpx; height: 24rpx;
} }
.timeView{ .timeView{
padding: 0 30rpx;
box-sizing: border-box; box-sizing: border-box;
} }
.timeView .item .itemView{ .timeView .item .itemView{
...@@ -213,13 +214,37 @@ ...@@ -213,13 +214,37 @@
border-radius:20rpx; border-radius:20rpx;
} }
.toDayView .ListItem .imgLeft image{ .toDayView .ListItem .imgLeft image{
width: 100%; width:200rpx;
height: 100%; height:260rpx;
z-index: 3;
border-radius:20rpx;
}
.toDayView .ListItem .imgLeft .img1{
position: absolute;
width: 200rpx;
height: 220rpx;
left: 40rpx;
opacity: 0.6;
top: 20rpx;
z-index:-1;
border-radius:20rpx;
}
.toDayView .ListItem .imgLeft .img2{
position: absolute;
width: 200rpx;
height: 180rpx;
left: 66rpx;
opacity: 0.6;
top: 40rpx;
z-index:-2;
border-radius:20rpx;
display: inline-block;
} }
.toDayView .ListItem .right{ .toDayView .ListItem .right{
width: 100%; width: 100%;
padding-left: 230rpx; padding-left: 290rpx;
box-sizing: border-box; box-sizing: border-box;
text-align: left;
} }
.toDayView .daka{ .toDayView .daka{
width:128rpx; width:128rpx;
...@@ -304,4 +329,56 @@ ...@@ -304,4 +329,56 @@
margin-left: 15rpx; margin-left: 15rpx;
} }
.AirTc .contentView1{
text-align: left;
padding: 0 30rpx;
box-sizing: border-box;
background:rgba(255,255,255,1);
border-radius:20rpx;
height:670rpx;
}
.AirTc .contentView1 .photo{
width:150rpx;
height:150rpx;
border-radius:50%;
top: -75rpx;
position: absolute;
left: 200rpx;
z-index: 100000;
}
.AirTc .contentView1 .Content{
height:574rpx;
overflow: scroll;
}
.AirTc .contentView1 .title{
margin-bottom: 15rpx;
}
.AirTc .contentView1 .title text{
padding: 8rpx 20rpx;
background:rgba(255,49,102,0.3);
border-radius:26rpx;
font-size: 22rpx;
}
.AirTc .contentView1 .fightitem{
display: flex;
justify-content: space-around;
}
.AirTc .contentView1 .fightitem>view{
display: inline-block;
}
.AirTc .contentView1 .fightitem .hr{
padding: 0 10rpx;
box-sizing: border-box;
position: relative;
}
.AirTc .contentView1{
position: absolute;
width:560rpx;
margin: auto;
left: 0;
top: 0;
bottom: 0;
right: 0;
padding-bottom: 20rpx;
}
// pages/index/tripDay/tripDay.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
msg:{
ConfigId:'4265',
DayNum:'1',
TCID:'7003',
},
dataInfo:{},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log("options",options)
let that=this;
let msg=that.data.msg;
if (options.ConfigId){
msg.ConfigId = options.ConfigId;
msg.DayNum = options.DayNum;
msg.TCID = options.TCID;
that.setData({
msg: msg
})
}
that.getData()
},
getData(){
let msg=this.data.msg
app.$api('b2b_get_GetMXYTravelJourneyInfo', msg ).then(res => {
this.setData({
dataInfo:res
})
console.log("dataInfo", this.data.dataInfo)
}).catch(err => { })
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "行程概览",
"navigationStyle": "default"
}
\ No newline at end of file
<view class="tripDay">
<view class="title">
<text class="f32">第{{dataInfo.dayNum}}天</text>
<!-- <text class="f22">2020-03-11</text> -->
</view>
<view wx:for="{{dataInfo.dayArray}}" wx:key="index" class="content">
<view wx:if="{{item.Type==1}}" class="common head f24">
<text class="circle"></text>
<view class="bold">交通</view>
<view style="margin-top:12rpx" wx:if="{{item.childItem.SubTraffic}}">
<view wx:for="{{item.childItem.SubTraffic}}" wx:for-item="trac" wx:key="index">
<text>{{trac.StartCityName}}</text>
<text style="margin:0 15rpx">至</text>
<text>{{trac.ArrivalCityName}}</text>
</view>
</view>
</view>
<view wx:if="{{item.Type==7}}" class="common head f24">
<text class="circle"></text>
<view class="bold">{{item.childItem.Title}}</view>
</view>
<view wx:if="{{item.Type==2}}" class="common head f24">
<text class="circle"></text>
<view>
<text class="f22 c99">景点</text>
<text style="margin:0 6rpx 0 30rpx" class="f26 bold">{{item.childItem.CouponsName}}</text>
<text wx:if="{{item.childItem.PlayTimeHour && item.childItem.PlayTimeHour!=''}}" class="f22 c99">{{item.childItem.PlayTimeHour}}小时</text>
<text wx:if="{{item.childItem.PlayTimeMinutes && item.childItem.PlayTimeMinutes!=''}}" class="f22 c99">{{item.childItem.PlayTimeMinutes}}分钟</text>
</view>
<view wx:for="{{item.childItem.ImaArray}}" wx:key="index" wx:for-item="img" class="img">
<image wx:if="{{img.Url && img.Url!=''}}" src="{{img.Url}}"></image>
<image wx:else src="../../../images/index/default.png"></image>
</view>
<view>
{{item.childItem.Description}}
</view>
</view>
<view wx:if="{{item.Type==3}}" class="common head f24">
<text class="circle"></text>
<view>
<text class="f22 c99">住宿</text>
<text style="margin:0 6rpx 0 30rpx" class="f26 bold">{{item.childItem.NewHotelName}}</text>
</view>
<view wx:for="{{item.childItem.ImaArray}}" wx:key="index" wx:for-item="img" class="img">
<image wx:if="{{img.Url && img.Url!=''}}" src="{{img.Url}}"></image>
<image wx:else src="../../../images/index/default.png"></image>
</view>
<view style="margin-top:15rpx">
{{item.childItem.HotelNewDescriptionText}}
</view>
</view>
<view wx:if="{{item.Type==6}}" class="common head f24">
<!-- <text class="circle"></text> -->
<view class="bold" style="color:#FF3166">温馨提示</view>
<view style="margin-top:15rpx">
<rich-text nodes="{{item.childItem.Description}}"></rich-text>
</view>
</view>
<view wx:if="{{item.Type==4}}" class="common head f24">
<text class="circle"></text>
<view>
<text class="f22 c99">餐饮</text>
<text style="margin:0 6rpx 0 30rpx" class="f26 bold">
{{item.childItem.DinnerName}}
</text>
</view>
</view>
</view>
</view>
\ No newline at end of file
.tripDay{
width: 100%;
box-sizing: border-box;
padding: 0 30rpx;
margin-bottom: 20rpx;
}
.tripDay .title{
height:90rpx;
line-height:90rpx;
background:linear-gradient(90deg,rgba(255,49,102,0.3),rgba(255,49,102,0.05));
border-radius:20rpx;
display: flex;
padding: 0 30rpx;
box-sizing: border-box;
color:#FF3166;
justify-content: space-between;
}
.content{
padding-left: 30rpx;
width: 100%;
box-sizing: border-box;
}
.common{
position: relative;
padding: 30rpx 0 30rpx 40rpx;
border-left: 2px solid #FFC2D2;
}
.common .circle{
width:16rpx;
height:16rpx;
background:rgba(255,49,102,1);
border-radius:50%;
display: block;
position: absolute;
left: -8rpx;
top: 36rpx;
}
.common .img{
width:626rpx;
height:384rpx;
border-radius:20rpx;
margin-top:30rpx;
overflow: hidden;
margin-bottom: 10rpx;
}
.common .img image{
width: 100%;
}
\ No newline at end of file
...@@ -83,6 +83,12 @@ ...@@ -83,6 +83,12 @@
"pathName": "pages/webview/webview", "pathName": "pages/webview/webview",
"query": "", "query": "",
"scene": null "scene": null
},
{
"id": -1,
"name": "行程概览",
"pathName": "pages/index/tripDay/tripDay",
"scene": null
} }
] ]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment