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

页面修改

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