Commit b414444b authored by youjie's avatar youjie

图片 标题

parent bc50c239
...@@ -564,7 +564,7 @@ ...@@ -564,7 +564,7 @@
openPicture() { openPicture() {
let imgObj = JSON.stringify(this.imgList); let imgObj = JSON.stringify(this.imgList);
uni.navigateTo({ uni.navigateTo({
url: "/pages/hotel/picture?imgObj=" + imgObj, url: "/pages/hotel/picture?imgObj=" + imgObj+"&carType="+this.orderMsg.OrderType,
}); });
}, },
formatDate(str) { formatDate(str) {
......
...@@ -150,28 +150,28 @@ ...@@ -150,28 +150,28 @@
currentData(item,items) { currentData(item,items) {
this.busInfor.CountryId = item.Country this.busInfor.CountryId = item.Country
this.busInfor.CountryName = item.CountryName this.busInfor.CountryName = item.CountryName
this.busInfor.desCountryId = item.Country
this.busInfor.desCountryName = item.CountryName
this.busInfor.ThreeCode = item.ThreeCode
this.busInfor.CityId = items.City this.busInfor.CityId = items.City
this.busInfor.CityName = items.CityName this.busInfor.CityName = items.CityName
this.busInfor.oriLatitude = items.Lat
this.busInfor.oriLongitude = items.Lng
this.busInfor.desCountryId = item.Country
this.busInfor.desCountryName = item.CountryName
this.busInfor.desCityId = items.City this.busInfor.desCityId = items.City
this.busInfor.desCityName = items.CityName this.busInfor.desCityName = items.CityName
this.busInfor.ThreeCode = item.ThreeCode
this.busInfor.AirportId = items.AirportId this.busInfor.AirportId = items.AirportId
this.busInfor.AirportName = items.AirportName this.busInfor.AirportName = items.AirportName
this.busInfor.oriLatitude = items.Lat
this.busInfor.oriLongitude = items.Lng
if(this.busInfor.CarType==1){ if(this.busInfor.CarType==1){
this.busInfor.startaddress = `${item.CountryName} ${items.CityName} ${items.AirportName}` this.busInfor.startaddress = `${item.CountryName} ${items.CityName} ${items.AirportName}`
} }
if(this.busInfor.CarType==2){ if(this.busInfor.CarType==2){
this.busInfor.destination = `${item.CountryName} ${items.CityName} ${items.AirportName}` this.busInfor.destination = `${item.CountryName} ${items.CityName} ${items.AirportName}`
} }
console.log(item) console.log(item)
// this.busInfor.CityId = items.CityId
// this.busInfor.CityName = items.CityName
this.$emit('change',this.busInfor) this.$emit('change',this.busInfor)
}, },
} }
......
...@@ -292,6 +292,19 @@ ...@@ -292,6 +292,19 @@
}, },
methods: { methods: {
getAirport(msg,type){ getAirport(msg,type){
console.log(msg,'---',type)
if(msg.CountryId!=this.busInfor.CountryId){
if(msg.CarType==1){
msg.destination = ''
msg.desLatitude = ''
msg.desLongitude = ''
}
if(msg.CarType==2){
msg.startaddress = ''
msg.oriLatitude = ''
msg.oriLongitude = ''
}
}
this.busInfor = msg this.busInfor = msg
if(type==2&&(msg.CountryId!=msg.desCountryId)){ if(type==2&&(msg.CountryId!=msg.desCountryId)){
this.busInfor.CountryId = null this.busInfor.CountryId = null
......
...@@ -50,6 +50,16 @@ ...@@ -50,6 +50,16 @@
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: "线路图片", title: "线路图片",
}); });
}else if(options.imgObj&&options.carType){
this.imageList=JSON.parse(decodeURIComponent(options.imgObj))
this.isLine=0;
let text = '接机'
if(options.carType==2) text = '送机'
else if(options.carType==3) text = '包车'
this.getSeperate();
uni.setNavigationBarTitle({
title: text+"图片",
});
}else{ }else{
this.imageList=JSON.parse(options.imgObj); this.imageList=JSON.parse(options.imgObj);
this.isLine=0; this.isLine=0;
...@@ -86,7 +96,9 @@ ...@@ -86,7 +96,9 @@
current: src, current: src,
longPressActions: { longPressActions: {
itemList: ["发送给朋友", "保存图片", "收藏"], itemList: ["发送给朋友", "保存图片", "收藏"],
success: function(data) {}, success: function(data) {
},
fail: function(err) { fail: function(err) {
console.log(err.errMsg); console.log(err.errMsg);
}, },
......
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