Commit b7388037 authored by 罗超's avatar 罗超

1

parent 88b96f89
......@@ -825,10 +825,9 @@
}else if(that.JumpType == 14){//用户资料填写
uni.navigateTo({ url: "/pages/blindDate/editData"});
}else if(that.JumpType == 15){//门票详情
console.log(that.GoodsId)
uni.navigateTo({ url: "/pages/ticketCoupons/details?id"+that.GoodsId});
uni.navigateTo({ url: "/pages/ticketCoupons/detail?id"+that.GoodsId});
}else if(that.JumpType == 16){//餐食详情
uni.navigateTo({ url: "/pages/restaurant/details?id"+that.GoodsId});
uni.navigateTo({ url: "/pages/restaurant/detail?id"+that.GoodsId});
}else if(that.JumpType == 17){//景点专车
uni.navigateTo({ url: '/pages/guidecar/bookaCarList?carMsg='+that.carMsg})
}else if(that.JumpType == 18){ //酒店详情
......
......@@ -184,9 +184,7 @@
restaurantType
},
onLoad(options) {
uni.setNavigationBarTitle({
title: "美食",
});
let d1 = new Date();
let d = new Date();
let d2 = new Date(d.setDate(d.getDate() + 1))
......@@ -208,7 +206,9 @@
},
created() {
uni.setNavigationBarTitle({
title: "美食",
});
},
methods: {
searchList() {
......
......@@ -9,10 +9,10 @@
<view>
<u-dropdown ref="uDropdown" @open="open" @close="close" active-color="#000" inactive-color="#444">
<!-- 推荐排序 -->
<u-dropdown-item v-model="msg.OrderBy" :title="optionsTitle[0]" :options="orderOptions" @change="getList" style="justify-content: center;">
<u-dropdown-item v-model="msg.OrderBy" :title="optionsTitle[0]" :options="orderOptions" @change="orderChange" style="justify-content: center;">
</u-dropdown-item>
<!-- 景点类型 -->
<u-dropdown-item :title="optionsTitle[1]" v-model="msg.FoodTypeIds" :options="classOptions" @change="getList">
<u-dropdown-item :title="optionsTitle[1]" v-model="msg.FoodTypeIds" :options="classOptions" @change="typeChange">
<!-- <Cascade :dataList="typeList"></Cascade> -->
......@@ -21,9 +21,9 @@
<u-dropdown-item :title="optionsTitle[2]" >
<view class="slot-content">
<!-- <view class="u-text-center u-content-color">其他自定义内容</view>-->
<view class="slot-btn" :class="{'check-btn':msg.IsFree!=-1}" @click="changeScreen('IsFree')">是否免费</view>
<view class="slot-btn" :class="{'check-btn':msg.IsSameDayBuy!=-1}" @click="changeScreen('IsSameDayBuy')">是否闪入园</view>
<view class="slot-btn" :class="{'check-btn':msg.IsWorryFreeRefund!=-1}" @click="changeScreen('IsWorryFreeRefund')">是否无忧退款</view>
<view class="hotel-rate" :class="{'hotel-rate-active':msg.IsFree!=-1}" @click="changeScreen('IsFree')">是否免费</view>
<view class="hotel-rate" :class="{'hotel-rate-active':msg.IsSameDayBuy!=-1}" @click="changeScreen('IsSameDayBuy')">是否闪入园</view>
<view class="hotel-rate" :class="{'hotel-rate-active':msg.IsWorryFreeRefund!=-1}" @click="changeScreen('IsWorryFreeRefund')">是否无忧退款</view>
<view class="" style="display: flex;width: 100%;">
<view style="flex:1;margin-right: 30rpx;">
<u-button :custom-style="btnStyle" @click="resetPrice">重置</u-button>
......@@ -135,6 +135,14 @@
label: '销量最高',
value: 1,
},
{
label: '价格最高',
value: 4,
},
{
label: '价格最低',
value: 5,
},
],
classOptions:[],
btnStyle:{
......@@ -158,11 +166,14 @@
if(options && options.Name){
this.msg.Name = options.Name
}
this.getScenicType();// 获取景点类型
this.getList();// 获取景点门票类型
},
created() {
uni.setNavigationBarTitle({
title: "门票",
});
this.getScenicType();// 获取景点类型
this.getList();// 获取景点门票类型
},
methods: {
searchList(){
......@@ -278,12 +289,44 @@
}else{
this.msg[field]=-1
}
},
orderChange(val){
this.getList();
let res= this.orderOptions.filter(i=>{return i.value==val})
this.optionsTitle[0]=res[0].label
},
typeChange(val){
this.getList();
let res= this.classOptions.filter(i=>{return i.value==val})
this.optionsTitle[1]=res[0].label
}
},
}
</script>
<style lang="scss" scoped>
.hotel-rate {
width: 215rpx;
height: 60rpx;
background: #ECF1F4;
border-radius: 10rpx;
font-size: 26rpx;
color: #999999;
line-height: 60rpx;
margin-right: 15rpx;
text-align: center;
flex-shrink: 0;
margin-bottom: 29rpx;
}
.hotel-rate:last-child {
margin-right: 0;
}
.hotel-rate-active {
background-color: #111111;
color: #FFFFFF;
}
/deep/.u-flex{
justify-content: center;
}
......@@ -322,24 +365,7 @@
display: flex;
align-items: center;
}
.hotel-rate{
width: 160rpx;
height: 60rpx;
background: #ECF1F4;
border-radius: 10rpx;
font-size: 26rpx;
color: #999999;
line-height: 60rpx;
margin-right: 15rpx;
text-align: center;
}
.hotel-rate:last-child{
margin-right: 0;
}
.hotel-rate.active{
background: #111111;
color: #FFFFFF;
}
.slot-content{
// height: 200rpx;
background-color: #ffffff;
......@@ -347,23 +373,23 @@
border-top: 1px solid #c0c4cc;
display: flex;
flex-wrap: wrap;
.slot-btn{
height: 46rpx;
padding: 0 10rpx;
font-size: 26rpx;
font-family: PingFang SC;
font-weight: 500;
line-height: 44rpx;
color: #333333;
border: 1px solid #333333;
margin-right: 20rpx;
margin-bottom: 20rpx;
border-radius: 23rpx;
}
.check-btn{
background-color: #333333 !important;
color: #ffffff !important;
}
// .slot-btn{
// height: 46rpx;
// padding: 0 10rpx;
// font-size: 26rpx;
// font-family: PingFang SC;
// font-weight: 500;
// line-height: 44rpx;
// color: #333333;
// border: 1px solid #333333;
// margin-right: 20rpx;
// margin-bottom: 20rpx;
// border-radius: 23rpx;
// }
// .check-btn{
// background-color: #333333 !important;
// color: #ffffff !important;
// }
}
.ticket-list{
padding: 0 30rpx;
......
......@@ -9,10 +9,10 @@
<view class="officialNotice">
<view class="title" id="notice">
官方公告信息
</view>
</view>richtext
<view class="desc">
<rich-text :nodes="details.TicketNotice"></rich-text>
<rich-text :nodes="details.TicketNotice" class="policyDetail-richText"></rich-text>
</view>
<view class="title">
......@@ -198,4 +198,8 @@
}
}
}
.policyDetail-richText{
font-size: 26rpx !important;
font-weight: 500 !important;
}
</style>
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