Commit ef1bd497 authored by 华国豪's avatar 华国豪 🙄

‘修改部分’

parent 8bf277fe
......@@ -2101,7 +2101,7 @@
},
setDate: function (j) {
let stDate = this.sonData.currentPriceInfo.startDate
let stDate = this.sonData.currentPriceInfo && this.sonData.currentPriceInfo.startDate ? this.sonData.currentPriceInfo.startDate :''
if (j === 0) {
return stDate
} else {
......@@ -2174,7 +2174,7 @@
init() {
if (true) {
let data = JSON.parse(JSON.stringify(this.sonData))
this.orderTripdiff = data.currentPriceInfo.priceFlight;
this.orderTripdiff = data.currentPriceInfo && data.currentPriceInfo.priceFlight ? data.currentPriceInfo.priceFlight : [];
if (this.orderTripdiff && this.orderTripdiff.flightInfoJson) {
this.orderTripdiff.travelOrderFlightList = JSON.parse(this.orderTripdiff.flightInfoJson);
}
......@@ -2245,7 +2245,7 @@
this.feature = data.feature
this.showType = this.feature.featureType;
this.isDirect = data.isDirect;
if (data.currentPriceInfo.priceFlight.length > 0) {
if (data.currentPriceInfo && data.currentPriceInfo.priceFlight.length > 0) {
data.currentPriceInfo.priceFlight.forEach((x, i) => {
if (i == 0) {
x.dayNum = 1;
......
......@@ -925,8 +925,8 @@ export default {
// })
// }
this.priceList = data.priceList;
this.clickDate = data.currentPriceInfo.startDate;
this.FlightList = data.currentPriceInfo.priceFlight;
this.clickDate = data.currentPriceInfo && data.currentPriceInfo.startDate ? data.currentPriceInfo.startDate : '';
this.FlightList = data.currentPriceInfo && data.currentPriceInfo.priceFlight ? data.currentPriceInfo.priceFlight : '';
this.dataList = data;
this.toDayObj = this.priceList && this.priceList.length>0?this.priceList[0]:null;
this.imgCover = JSON.parse(this.dataList.imgCover);
......
......@@ -49,7 +49,7 @@ export default new Router({
}
},
{
path: '/detailTwo/:id/:pre',
path: '/detailTwo/:id/:tcid/:pre',
name: 'detailTwo',
component: resolve => require(['@/components/mall/detailTwo'], resolve),
meta: {
......
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