Commit ceff2b75 authored by ZJG's avatar ZJG

再来一单处理

parent 1ac5d4f0
...@@ -171,6 +171,12 @@ ...@@ -171,6 +171,12 @@
canlendar, canlendar,
hotelGood hotelGood
}, },
onLoad(options) {
if(options && options.Name){
this.searchObj.Name = options.Name
}
},
created() { created() {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: "酒店", title: "酒店",
......
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
</view> </view>
<view style="font-size: 14px;color: #111111;margin-top: 10px;text-align: right;"> <view style="font-size: 14px;color: #111111;margin-top: 10px;text-align: right;">
应付:¥{{item.PreferPrice}} 金额:¥{{item.PreferPrice}}
</view> </view>
<view style="display: flex;justify-content: flex-end;margin-top: 5px;"> <view style="display: flex;justify-content: flex-end;margin-top: 5px;">
<view class="zailaiyidan" v-if="item.OrderStatus == 3 || item.OrderStatus == 4 || item.OrderStatus == 5" @click.stop="onemoreorder(item)"> <view class="zailaiyidan" v-if="item.OrderStatus == 3 || item.OrderStatus == 4 || item.OrderStatus == 5" @click.stop="onemoreorder(item)">
...@@ -529,11 +529,17 @@ ...@@ -529,11 +529,17 @@
onemoreorder(data){//再来一单的处理 onemoreorder(data){//再来一单的处理
if(data.OrderType==1){//酒店 if(data.OrderType==1){//酒店
uni.navigateTo({
url: '/pages/hotel/list?Name='+data.HotelList[0].HotelName,
})
}else if(data.OrderType==2){//餐厅 }else if(data.OrderType==2){//餐厅
uni.navigateTo({
url: '/pages/restaurant/list?Name='+data.DiningList[0].MealName,
})
}else if(data.OrderType==3){//门票 }else if(data.OrderType==3){//门票
uni.navigateTo({
url: '/pages/ticketCoupons/list?Name='+data.TicketList[0].TicketName,
})
}else if(data.OrderType==4){//车 }else if(data.OrderType==4){//车
let obj = { let obj = {
StartCityId:data.CarList[0].StartCityId, StartCityId:data.CarList[0].StartCityId,
......
...@@ -563,11 +563,17 @@ ...@@ -563,11 +563,17 @@
onemoreorder(data){//再来一单的处理 onemoreorder(data){//再来一单的处理
if(data.OrderType==1){//酒店 if(data.OrderType==1){//酒店
uni.navigateTo({
url: '/pages/hotel/list?Name='+data.HotelList[0].HotelName,
})
}else if(data.OrderType==2){//餐厅 }else if(data.OrderType==2){//餐厅
uni.navigateTo({
url: '/pages/restaurant/list?Name='+data.DiningList[0].MealName,
})
}else if(data.OrderType==3){//门票 }else if(data.OrderType==3){//门票
uni.navigateTo({
url: '/pages/ticketCoupons/list?Name='+data.TicketList[0].TicketName,
})
}else if(data.OrderType==4){//车 }else if(data.OrderType==4){//车
let obj = { let obj = {
StartCityId:data.CarList[0].StartCityId, StartCityId:data.CarList[0].StartCityId,
......
...@@ -183,7 +183,10 @@ ...@@ -183,7 +183,10 @@
restaurantGood, restaurantGood,
restaurantType restaurantType
}, },
created() { onLoad(options) {
if(options && options.Name){
this.msg.Name = options.Name
}
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: "美食", title: "美食",
}); });
...@@ -205,6 +208,10 @@ ...@@ -205,6 +208,10 @@
this.getFoodType(); this.getFoodType();
this.getPriceEnum(); this.getPriceEnum();
this.getFoodList(); this.getFoodList();
},
created() {
}, },
methods: { methods: {
searchList() { searchList() {
......
...@@ -154,12 +154,18 @@ ...@@ -154,12 +154,18 @@
} }
} }
}, },
created() { onLoad(options) {
if(options && options.Name){
this.msg.Name = options.Name
}
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: "门票", title: "门票",
}); });
this.getScenicType();// 获取景点类型 this.getScenicType();// 获取景点类型
this.getList();// 获取景点门票类型 this.getList();// 获取景点门票类型
},
created() {
}, },
methods: { methods: {
searchList(){ searchList(){
......
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