Commit cbc85525 authored by zhengke's avatar zhengke

修改

parent 5401d27a
...@@ -171,7 +171,10 @@ ...@@ -171,7 +171,10 @@
carMsg:'',//景点专车分享带过来的字段 carMsg:'',//景点专车分享带过来的字段
id:0, //酒店带过来字段 id:0, //酒店带过来字段
dayObj:'', //酒店带过来字段 dayObj:'', //酒店带过来字段
searchObj:'' //酒店带过来字段 searchObj:'' ,//酒店带过来字段
tcid:0, //线路带过来字段
configId:0, //线路带过来字段
cityId:0 //线路带来字段
}; };
}, },
components: { components: {
...@@ -369,6 +372,15 @@ ...@@ -369,6 +372,15 @@
if (options && options.OrderId) { //代付订单id if (options && options.OrderId) { //代付订单id
this.OrderId = options.OrderId; this.OrderId = options.OrderId;
} }
if(options && options.tcid){
this.tcid = options.tcid
}
if(options && options.configId){
this.configId = options.configId
}
if(options && options.cityId){
this.cityId = options.cityId
}
that.u = uni.getStorageSync("mall_UserInfo"); that.u = uni.getStorageSync("mall_UserInfo");
if (!that.u) { if (!that.u) {
...@@ -823,6 +835,8 @@ ...@@ -823,6 +835,8 @@
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){ //酒店详情
uni.navigateTo({ url: '/pages/hotel/detail?id=' + that.id + '&dayObj=' + that.dayObj+'&searchObj='+that.searchObj}) uni.navigateTo({ url: '/pages/hotel/detail?id=' + that.id + '&dayObj=' + that.dayObj+'&searchObj='+that.searchObj})
}else if(that.JumpType == 19){ //线路详情
uni.navigateTo({ url: '/pages/jiuzhai/jz_LineDetail?tcid=' + that.tcid + '&configId=' + that.configId+'&cityId='+that.cityId})
} }
}, 500); }, 500);
}, },
......
...@@ -580,7 +580,53 @@ ...@@ -580,7 +580,53 @@
uni.navigateTo({ uni.navigateTo({
url: "/pages/jiuzhai/jz_Reserve?currentPriceInfo="+encodeURIComponent(myCurr)+"&ln="+this.dataList.ltName+"&seat="+encodeURIComponent(JSON.stringify(ren))+"&tips="+encodeURIComponent(this.dataList.feature.importantTipText) url: "/pages/jiuzhai/jz_Reserve?currentPriceInfo="+encodeURIComponent(myCurr)+"&ln="+this.dataList.ltName+"&seat="+encodeURIComponent(JSON.stringify(ren))+"&tips="+encodeURIComponent(this.dataList.feature.importantTipText)
}); });
} },
//分享朋友圈
onShareTimeline() {
let uid = uni.getStorageSync("mall_UserInfo")
? uni.getStorageSync("mall_UserInfo").UserId
: 0;
if(uid==0){
uid = uni.getStorageSync("pid")?uni.getStorageSync("pid").pid:0
}
let SmallShopId = uni.getStorageSync("mall_UserInfo")
? uni.getStorageSync("mall_UserInfo").SmallShopId
: 0;
if(SmallShopId == 0){//如果微店id为0 去找所属微店id
SmallShopId = uni.getStorageSync("mall_UserInfo")
? uni.getStorageSync("mall_UserInfo").UserSmallShopId
: 0;
}
let title =this.dataList.title?this.dataList.title:'帖子';
let imageUrl =this.dataList.tempImgCover && this.dataList.tempImgCover.length>0?this.dataList.tempImgCover[0]:'';
return {
title: title,
query: "tcid=" + this.delMsg.tcid + "&user_id=" + uid+ "&SmallShopId=" + SmallShopId+ "&Up=" + this.Up +
'&JumpType=19' + '&configId=' + this.delMsg.configId + '&cityId=' + this.delMsg.cityId,
imageUrl: imageUrl,
};
},
//分享给朋友
onShareAppMessage(res) {
let u = uni.getStorageSync("mall_UserInfo");
let uid = u.UserId ? u.UserId : 0;
if(uid==0){
uid = uni.getStorageSync("pid")?uni.getStorageSync("pid").pid:0
}
let SmallShopId = u.SmallShopId ? u.SmallShopId : 0;
if(SmallShopId == 0){//如果微店id为0 去找所属微店id
SmallShopId = u.UserSmallShopId? u.UserSmallShopId:0
}
return {
title:this.dataList.title?this.dataList.title:'帖子',
path: "/pages/index/index?tcid=" + this.delMsg.tcid + "&user_id=" + uid+ "&SmallShopId=" + SmallShopId+
"&Up=" + this.Up+'&JumpType=19' + '&configId=' + this.delMsg.configId + '&cityId=' + this.delMsg.cityId,
imageUrl:this.dataList.tempImgCover && this.dataList.tempImgCover.length>0?this.dataList.tempImgCover[0]:'',
};
},
}, },
}; };
</script> </script>
......
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