Commit b7388037 authored by 罗超's avatar 罗超

1

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