Commit 6251094e authored by 罗超's avatar 罗超

修改样式

parent 9d41d1be
......@@ -34,14 +34,14 @@
mode="aspectFill">
</image>
<view class="city-list-item col">
<view @click="goListHandle('')" style="margin-bottom: 30rpx;" class=" row items-center">
<view @click="goListHandle('',x)" style="margin-bottom: 30rpx;" class=" row items-center">
<view class="bold col">{{x.DepartureName}} - {{x.ArrivalCityName}}</view>
<view class="row items-center">
<view style="font-size: 22rpx;">更多日期</view>
<u-icon name='arrow_right' custom-prefix="tffont" color="#00000066" size="28"></u-icon>
</view>
</view>
<view @click="goListHandle(f.FlightDate)" class="flights row items-center" v-for="(f,fi) in x.TicketProductList">
<view @click="goListHandle(f.FlightDate,x)" class="flights row items-center" v-for="(f,fi) in x.TicketProductList">
<image style="width: 30rpx;" :src="`https://static.tripcdn.com/packages/flight/airline-logo/latest/airline/48/${f.AlCode}.png`" mode="widthFix"></image>
<view style="font-size: 22rpx;width:50rpx;margin:0 4px">
{{ f.DayCount }}
......@@ -252,7 +252,22 @@
})
this.getTopLowTicketHandle()
},
goListHandle(val){
goListHandle(val,x){
const newCityInfo = [{
type: 0,
ID: x.DepartureCity,
Name: x.DepartureName
},
{
type: 1,
ID: x.ArrivalCityId,
Name: x.ArrivalCityName
}
]
uni.setStorageSync('scf',{
cities:newCityInfo,
dateRange: this.dateRangeValue
})
let url ='/pages/airTicket/ticketList/ticketList'
if(val!=''){
url += `?dv=${encodeURIComponent(val)}`
......
......@@ -164,9 +164,9 @@
},
components:{CityList,DateRange},
created() {
if(uni.getStorageSync("tdr")){
this.dateRangeValue = uni.getStorageSync("tdr")
}
// if(uni.getStorageSync("tdr")){
// this.dateRangeValue = uni.getStorageSync("tdr")
// }
this.getTopLowTicketHandle()
},
mounted() {
......
......@@ -28,7 +28,7 @@
</view>
<template v-else>
<view class="time-list row" style="padding:0 12rpx;">
<scroll-view :scroll-left="scrollLeft" scroll-x class="col header-scroll" style="padding:12rpx 0;width:1px">
<scroll-view :scroll-left="scrollLeft" scroll-x class="col header-scroll" style="padding:12rpx 0;width:1px;">
<view class="row items-center">
<view class="time-item" :id="'a'+x.FlightDate.replaceAll('-','')" @click="flightDateChangeHandle(x.FlightDate)"
:class="{'active':currentDate==x.FlightDate}" v-for="(x,i) in lowHeadData" :key="i">
......@@ -40,7 +40,7 @@
</scroll-view>
<view class="time-item more row items-center justify-center">
<date-select @change="dateFilterChange" :default-value="[filterDate.start,filterDate.end]">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638753835239709518.png" mode="widthFix" style="width: 30rpx;"></image>
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638753835239709518.png" mode="widthFix" style="width: 30rpx;max-height: 60px;"></image>
</date-select>
</view>
</view>
......
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