Commit 9e4ddf79 authored by 黄奎's avatar 黄奎

页面修改

parent 9af301f3
...@@ -78,11 +78,11 @@ ...@@ -78,11 +78,11 @@
props: [ props: [
'index', 'index',
'TripColor', 'TripColor',
'FeatureData' 'FeatureData',
'canEdit'
], ],
data() { data() {
return { return {
canEdit: true,
backgroundColor: null, backgroundColor: null,
subscriptText: [{ subscriptText: [{
Name: 'FOODING', Name: 'FOODING',
......
...@@ -19,11 +19,11 @@ ...@@ -19,11 +19,11 @@
}, },
props: [ props: [
'TripColor', 'TripColor',
'FeatureItem' 'FeatureItem',
'canEdit'
], ],
data() { data() {
return { return {
canEdit: true,
backgroundImgBj2: 'http://imgfile.oytour.com/Static/NewTripFeature/logoBjTwo.png', //白色背景 backgroundImgBj2: 'http://imgfile.oytour.com/Static/NewTripFeature/logoBjTwo.png', //白色背景
}; };
}, },
......
...@@ -19,11 +19,11 @@ ...@@ -19,11 +19,11 @@
}, },
props: [ props: [
'TripColor', 'TripColor',
'FeatureItem' 'FeatureItem',
'canEdit'
], ],
data() { data() {
return { return {
canEdit: true,
backgroundColor: null backgroundColor: null
}; };
}, },
...@@ -49,4 +49,5 @@ ...@@ -49,4 +49,5 @@
<style> <style>
@import url("../../../../../assets/css/UpgradedVersion.css"); @import url("../../../../../assets/css/UpgradedVersion.css");
</style> </style>
...@@ -90,10 +90,10 @@ ...@@ -90,10 +90,10 @@
'TripColor', 'TripColor',
'index', 'index',
'FeatureItem', 'FeatureItem',
'canEdit',
], ],
data() { data() {
return { return {
canEdit: true,
//选取弹窗 //选取弹窗
isShowScenicImg: false, isShowScenicImg: false,
choseType: 0, choseType: 0,
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
}, },
}, },
mounted() { mounted() {
} }
}; };
</script> </script>
......
...@@ -4,20 +4,20 @@ ...@@ -4,20 +4,20 @@
<div class="UpgradedVersion-box UpgradedVersion-homebj relative" <div class="UpgradedVersion-box UpgradedVersion-homebj relative"
:class="{'UpgradedVersion-otherBj':item.pageType==3}" v-for="(item,index) in pageList" :key="index+1000"> :class="{'UpgradedVersion-otherBj':item.pageType==3}" v-for="(item,index) in pageList" :key="index+1000">
<!-- logo --> <!-- logo -->
<Header :TripColor="TripColor" :FeatureItem="item"></Header> <Header :TripColor="TripColor" :canEdit="canEdit" :FeatureItem="item"></Header>
<!-- 首页 --> <!-- 首页 -->
<featureHome v-if="item.pageType==1" :index="index" :FeatureItem="item" :TripColor="TripColor" <featureHome v-if="item.pageType==1" :canEdit="canEdit" :index="index" :FeatureItem="item" :TripColor="TripColor"
@toAddPages="AddPages" @toDeletePages="DeletePages"></featureHome> @toAddPages="AddPages" @toDeletePages="DeletePages"></featureHome>
<!-- 其余页 --> <!-- 其余页 -->
<div v-else> <div v-else>
<headerTitle :FeatureItem="item" :TripColor="TripColor"></headerTitle> <headerTitle :FeatureItem="item" :TripColor="TripColor" :canEdit="canEdit"></headerTitle>
<!-- 介绍、宿食景页 --> <!-- 介绍、宿食景页 -->
<otherJourney :index="index" :FeatureItem="item" :TripColor="TripColor" @toAddPages="AddPages" <otherJourney :index="index" :FeatureItem="item" :canEdit="canEdit" :TripColor="TripColor"
@toDeletePages="DeletePages" v-if="item.pageType!=1&&item.pageType!=3"> @toAddPages="AddPages" @toDeletePages="DeletePages" v-if="item.pageType!=1&&item.pageType!=3">
</otherJourney> </otherJourney>
<!-- 食详情页 --> <!-- 食详情页 -->
<UpgradedVersionDetails :index="index" :FeatureData="item" :TripColor="TripColor" @toAddPages="AddPages" <UpgradedVersionDetails :index="index" :canEdit="canEdit" :FeatureData="item" :TripColor="TripColor"
@toDeletePages="DeletePages" v-if="item.pageType==3"></UpgradedVersionDetails> @toAddPages="AddPages" @toDeletePages="DeletePages" v-if="item.pageType==3"></UpgradedVersionDetails>
<!-- otherJourney-footer 食景 食详情 --> <!-- otherJourney-footer 食景 食详情 -->
<div v-if="item.pageType!=1" <div v-if="item.pageType!=1"
:class="{'otherJourney-footer':item.pageType==5||item.pageType==6||item.pageType==3}"> :class="{'otherJourney-footer':item.pageType==5||item.pageType==6||item.pageType==3}">
...@@ -132,7 +132,6 @@ ...@@ -132,7 +132,6 @@
var pageData = this.getPageObj(); var pageData = this.getPageObj();
pageData.isDeletePage = true; pageData.isDeletePage = true;
pageData.pageType = featureDataObj.pageType; pageData.pageType = featureDataObj.pageType;
var tripObj = this.getTripData(); var tripObj = this.getTripData();
var newObj = this.getDetailsObj(); var newObj = this.getDetailsObj();
newObj.LineName = this.FeatureData.LineName; newObj.LineName = this.FeatureData.LineName;
...@@ -172,7 +171,6 @@ ...@@ -172,7 +171,6 @@
}, },
//删除页面 //删除页面
DeletePages(index) { DeletePages(index) {
this.pageList.splice(index, 1); this.pageList.splice(index, 1);
}, },
getDetailsObj() { getDetailsObj() {
...@@ -598,7 +596,7 @@ ...@@ -598,7 +596,7 @@
dinnerArray, dinnerArray,
} }
}, },
// 设置编辑状态 //设置编辑状态
canEditChange: function (val) { canEditChange: function (val) {
this.canEdit = val; this.canEdit = val;
this.$forceUpdate(); this.$forceUpdate();
...@@ -634,6 +632,4 @@ ...@@ -634,6 +632,4 @@
<style> <style>
@import url("../../../../assets/css/UpgradedVersion.css"); @import url("../../../../assets/css/UpgradedVersion.css");
</style> </style>
...@@ -61,12 +61,11 @@ ...@@ -61,12 +61,11 @@
props: [ props: [
'TripColor', 'TripColor',
'index', 'index',
'FeatureItem' 'FeatureItem',
'canEdit'
], ],
data() { data() {
return { return {
canEdit: true,
canEdit1: true,
isShowScenicImg: false, isShowScenicImg: false,
choseType: 0, choseType: 0,
queryItem: { queryItem: {
......
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