Commit 2831d04e authored by 黄奎's avatar 黄奎

页面修改

parent 3511f4e0
...@@ -6,12 +6,12 @@ import md5 from 'js-md5' ...@@ -6,12 +6,12 @@ import md5 from 'js-md5'
Vue.prototype.domainManager = function () { Vue.prototype.domainManager = function () {
let domainUrl = ''; let domainUrl = '';
domainUrl = "http://192.168.2.214:8082"; domainUrl = "http://192.168.2.214:8082";
domainUrl = "http://192.168.0.110"; domainUrl = "http://127.0.0.1";
let locationName = location.hostname; let locationName = location.hostname;
if (locationName.indexOf('testerp.oytour') !== -1) { if (locationName.indexOf('testerp.oytour') !== -1) {
domainUrl = "http://testapi.oytour.com"; domainUrl = "http://testapi.oytour.com";
} else if (locationName.indexOf('oytour') !== -1) { } else if (locationName.indexOf('oytour') !== -1) {
domainUrl = "http://reborn.oytour.com"; domainUrl = "http://reborn.oytour.com";
} }
var obj = { var obj = {
//主地址 //主地址
...@@ -247,3 +247,7 @@ Vue.prototype.AddMonth = function (dateStr, month) { ...@@ -247,3 +247,7 @@ Vue.prototype.AddMonth = function (dateStr, month) {
Vue.prototype.getUrlKey = function (name, url) { Vue.prototype.getUrlKey = function (name, url) {
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(url) || [, ""])[1].replace(/\+/g, '%20')) || null return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(url) || [, ""])[1].replace(/\+/g, '%20')) || null
} }
Vue.prototype.GetHtml = function (str) {
return str.replace(/&lt;/g, '<').replace(/&gt;/g, '>')
.replace(/&amp;/g, '&').replace(/&quot;/g, '"').replace(/&apos;/g, "'");
}
...@@ -2882,17 +2882,18 @@ ...@@ -2882,17 +2882,18 @@
useDinnerTypeBy = y.childItem.useDinnerType useDinnerTypeBy = y.childItem.useDinnerType
} }
}) })
if (can.breakfirst == '敬请自理' && useDinnerTypeBy.indexOf('1') != -1) { console.log("useDinnerTypeBy",useDinnerTypeBy);
if (can.breakfirst == '敬请自理' && (useDinnerTypeBy && useDinnerTypeBy.indexOf('1') != -1)) {
can.breakfirst = '酒店内享用早餐' can.breakfirst = '酒店内享用早餐'
} else if (can.breakfirst == '') { } else if (can.breakfirst == '') {
can.breakfirst = '方便游玩敬请自理' can.breakfirst = '方便游玩敬请自理'
} }
if (can.lanuch == '敬请自理' && useDinnerTypeBy.indexOf('2') != -1) { if (can.lanuch == '敬请自理' && (useDinnerTypeBy && useDinnerTypeBy.indexOf('2') != -1)) {
can.lanuch = '酒店自助' can.lanuch = '酒店自助'
} else if (can.lanuch == '') { } else if (can.lanuch == '') {
can.lanuch = '方便游玩敬请自理' can.lanuch = '方便游玩敬请自理'
} }
if (can.dinner == '敬请自理' && useDinnerTypeBy.indexOf('3') != -1) { if (can.dinner == '敬请自理' && (useDinnerTypeBy && useDinnerTypeBy.indexOf('3') != -1)) {
can.dinner = '酒店自助' can.dinner = '酒店自助'
} else if (can.dinner == '') { } else if (can.dinner == '') {
can.dinner = '方便游玩敬请自理' can.dinner = '方便游玩敬请自理'
......
...@@ -38,10 +38,10 @@ ...@@ -38,10 +38,10 @@
<div class="todayTitle">行程特色</div> <div class="todayTitle">行程特色</div>
<div class="featureBox"> <div class="featureBox">
<template v-if="showType==3"> <template v-if="showType==3">
<div class="feature-inner" v-html="dataList.feature.featureContent" :class="{'isHiden4':isShow}"></div> <div class="feature-inner" v-html="GetHtml(dataList.feature.featureContent)" :class="{'isHiden4':isShow}"></div>
</template> </template>
<template v-if="showType>=4"> <template v-if="showType>=4">
<div class="feature-inner" v-html="dataList.feature.featureHtml" :class="{'isHiden4':isShow}"></div> <div class="feature-inner" v-html="GetHtml(dataList.feature.featureHtml)" :class="{'isHiden4':isShow}"></div>
</template> </template>
<div class="collapse_toggle" v-if="!isShow"> <div class="collapse_toggle" v-if="!isShow">
<i class="iconfont iconarrow-top" @click="isShow=true"></i> <i class="iconfont iconarrow-top" @click="isShow=true"></i>
......
...@@ -95,13 +95,13 @@ ...@@ -95,13 +95,13 @@
<div class="expense"> <div class="expense">
<div class="left">费用包含</div> <div class="left">费用包含</div>
<div class="right"> <div class="right">
<div v-html="dataList.feature.feeInclude"></div> <div v-html="GetHtml(dataList.feature.feeInclude)"></div>
</div> </div>
</div> </div>
<div class="expense"> <div class="expense">
<div class="left">自理费用</div> <div class="left">自理费用</div>
<div class="right"> <div class="right">
<div v-html="dataList.feature.feeNonInclude"></div> <div v-html="GetHtml(dataList.feature.feeNonInclude)"></div>
</div> </div>
</div> </div>
<div class="fee_title">购物说明</div> <div class="fee_title">购物说明</div>
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
<div class="expense"> <div class="expense">
<div class="left"></div> <div class="left"></div>
<div class="right"> <div class="right">
<div v-html="dataList.feature.shopRemark"></div> <div v-html="GetHtml(dataList.feature.shopRemark)"></div>
</div> </div>
</div> </div>
<div class="fee_title">预订须知</div> <div class="fee_title">预订须知</div>
...@@ -123,13 +123,13 @@ ...@@ -123,13 +123,13 @@
<div class="expense"> <div class="expense">
<div class="left">重要提示</div> <div class="left">重要提示</div>
<div class="right"> <div class="right">
<div v-html="dataList.feature.importantTip"></div> <div v-html="GetHtml(dataList.feature.importantTip)"></div>
</div> </div>
</div> </div>
<div class="expense"> <div class="expense">
<div class="left">温馨提示</div> <div class="left">温馨提示</div>
<div class="right"> <div class="right">
<div v-html="dataList.feature.warmTip"></div> <div v-html="GetHtml(dataList.feature.warmTip)"></div>
</div> </div>
</div> </div>
<div class="fee_title">签证</div> <div class="fee_title">签证</div>
......
...@@ -404,17 +404,17 @@ ...@@ -404,17 +404,17 @@
useDinnerTypeBy = y.childItem.useDinnerType useDinnerTypeBy = y.childItem.useDinnerType
} }
}) })
if (can.breakfirst == '敬请自理' && useDinnerTypeBy.indexOf('1') != -1) { if (can.breakfirst == '敬请自理' && useDinnerTypeBy && useDinnerTypeBy.indexOf('1') != -1) {
can.breakfirst = '酒店内享用早餐' can.breakfirst = '酒店内享用早餐'
} else if (can.breakfirst == '') { } else if (can.breakfirst == '') {
can.breakfirst = '方便游玩敬请自理' can.breakfirst = '方便游玩敬请自理'
} }
if (can.lanuch == '敬请自理' && useDinnerTypeBy.indexOf('2') != -1) { if (can.lanuch == '敬请自理' && useDinnerTypeBy && useDinnerTypeBy.indexOf('2') != -1) {
can.lanuch = '酒店自助' can.lanuch = '酒店自助'
} else if (can.lanuch == '') { } else if (can.lanuch == '') {
can.lanuch = '方便游玩敬请自理' can.lanuch = '方便游玩敬请自理'
} }
if (can.dinner == '敬请自理' && useDinnerTypeBy.indexOf('3') != -1) { if (can.dinner == '敬请自理' && useDinnerTypeBy && useDinnerTypeBy.indexOf('3') != -1) {
can.dinner = '酒店自助' can.dinner = '酒店自助'
} else if (can.dinner == '') { } else if (can.dinner == '') {
can.dinner = '方便游玩敬请自理' can.dinner = '方便游玩敬请自理'
......
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