Commit 3524ed1e authored by 黄奎's avatar 黄奎

11

parent aa595a1f
...@@ -490,7 +490,8 @@ ...@@ -490,7 +490,8 @@
searchKey: '', //搜索数据 searchKey: '', //搜索数据
priceOrderByField: 2, priceOrderByField: 2,
PlaceIds: '', PlaceIds: '',
lineId: 0 lineId: 0,
teamType: "", //团队类型 1-小包团
}, },
time: '', time: '',
currentLineId: null, currentLineId: null,
...@@ -596,6 +597,9 @@ ...@@ -596,6 +597,9 @@
if (option && option.PlaceIds) { if (option && option.PlaceIds) {
this.msg.PlaceIds = option.PlaceIds; this.msg.PlaceIds = option.PlaceIds;
} }
if (option && option.teamType && option.teamType == "1") {
this.msg.teamType = option.teamType;
}
this.getLineQuery(); this.getLineQuery();
}, },
methods: { methods: {
...@@ -611,8 +615,8 @@ ...@@ -611,8 +615,8 @@
this.allTeams = false; this.allTeams = false;
this.currentLineId = item; this.currentLineId = item;
this.msg.lineId = item.LineID; this.msg.lineId = item.LineID;
this.msg.PlaceIds=""; this.msg.PlaceIds = "";
this.msg.team=[]; this.msg.team = [];
}, },
//获取查询条件 //获取查询条件
getLineQuery() { getLineQuery() {
......
...@@ -1468,6 +1468,7 @@ ...@@ -1468,6 +1468,7 @@
myObj.babyChargePrice = this.currentPrice.babyChargePrice; myObj.babyChargePrice = this.currentPrice.babyChargePrice;
myObj.b2BMemberPrice = this.currentPrice.b2BMemberPrice; myObj.b2BMemberPrice = this.currentPrice.b2BMemberPrice;
myObj.tcid = this.currentPrice.tcid; myObj.tcid = this.currentPrice.tcid;
myObj.teamType = this.currentPrice.teamType;
let imgCover = JSON.parse(this.dataList.imgCover); let imgCover = JSON.parse(this.dataList.imgCover);
if (imgCover.length > 0) { if (imgCover.length > 0) {
myObj.CoverImg = imgCover[0].Url; myObj.CoverImg = imgCover[0].Url;
...@@ -1479,19 +1480,18 @@ ...@@ -1479,19 +1480,18 @@
yeCount: this.yeCount, //婴儿 yeCount: this.yeCount, //婴儿
etbCount: this.etbCount, //儿童不占床 etbCount: this.etbCount, //儿童不占床
}; };
let tParams = "&tcid=" +
this.delMsg.tcid +
"&cityId=" +
this.delMsg.cityId +
"&lineId=" +
this.dataList.lineId;
console.log("tParams", tParams);
uni.navigateTo({ uni.navigateTo({
url: "/pages/jiuzhai/jz_Reserve?currentPriceInfo=" + url: "/pages/jiuzhai/jz_Reserve?currentPriceInfo=" +
encodeURIComponent(myCurr) + encodeURIComponent(myCurr) +
"&seat=" + "&seat=" +
encodeURIComponent(JSON.stringify(ren)) + encodeURIComponent(JSON.stringify(ren)) + tParams,
"&tcid=" +
this.delMsg.tcid +
"&cityId=" +
this.delMsg.cityId +
"&lineId=" +
this.dataList.lineId +
"&teamType=" +
this.currentPrice.teamType,
}); });
}, },
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
......
...@@ -502,7 +502,6 @@ ...@@ -502,7 +502,6 @@
}; };
}, },
created() { created() {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: "订单支付预览", title: "订单支付预览",
}); });
...@@ -511,11 +510,12 @@ ...@@ -511,11 +510,12 @@
}, },
onLoad(option) { onLoad(option) {
this.customer = uni.getStorageSync("b2b_user"); this.customer = uni.getStorageSync("b2b_user");
console.log("option", option); if (option.currentPriceInfo) {
if (option.seat) {
this.currentPriceInfo = JSON.parse( this.currentPriceInfo = JSON.parse(
decodeURIComponent(option.currentPriceInfo) decodeURIComponent(option.currentPriceInfo)
); );
}
if (option.seat) {
let t = JSON.parse(decodeURIComponent(option.seat)); let t = JSON.parse(decodeURIComponent(option.seat));
this.orderMsg.ManNum = t.crCount; this.orderMsg.ManNum = t.crCount;
this.orderMsg.ChirdNeedBedNum = t.etCount; this.orderMsg.ChirdNeedBedNum = t.etCount;
...@@ -527,11 +527,10 @@ ...@@ -527,11 +527,10 @@
if (option.tcid) { if (option.tcid) {
this.getDetails(option.tcid, option.cityId); this.getDetails(option.tcid, option.cityId);
} }
if (option.lineId) { if (option.lineId) {
this.lineId = option.lineId this.lineId = option.lineId
this.getUserCouponList()
} }
this.getUserCouponList();
}, },
methods: { methods: {
showCouponHandler() { showCouponHandler() {
...@@ -560,6 +559,7 @@ ...@@ -560,6 +559,7 @@
"CustomerType": 0, //客户类型 0-同行,1-直客 "CustomerType": 0, //客户类型 0-同行,1-直客
"TCID": this.currentPriceInfo.tcid, "TCID": this.currentPriceInfo.tcid,
} }
console.log("this.currentPriceInfo",this.currentPriceInfo);
if (this.currentPriceInfo.teamType == "0") { if (this.currentPriceInfo.teamType == "0") {
//跟团游 //跟团游
couponParams.CouponsUseScope = 2; couponParams.CouponsUseScope = 2;
......
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