Commit e83ba70d authored by 黄奎's avatar 黄奎

页面修改

parent 0e607939
...@@ -13,11 +13,13 @@ ...@@ -13,11 +13,13 @@
<tr> <tr>
<td> <td>
行程頁背版 行程頁背版
<el-radio v-model="TripBgImgItem.plugData.IsShowBgImg" :label="1">開啟</el-radio> <el-radio v-if="TripBgImgItem&&TripBgImgItem.plugData" v-model="TripBgImgItem.plugData.IsShowBgImg"
<el-radio v-model="TripBgImgItem.plugData.IsShowBgImg" :label="0">關閉</el-radio> :label="1">開啟</el-radio>
<el-radio v-if="TripBgImgItem&&TripBgImgItem.plugData" v-model="TripBgImgItem.plugData.IsShowBgImg"
:label="0">關閉</el-radio>
</td> </td>
</tr> </tr>
<tr v-if="TripBgImgItem.plugData.IsShowBgImg==1"> <tr v-if="TripBgImgItem&&TripBgImgItem.plugData&&TripBgImgItem.plugData.IsShowBgImg==1">
<td> <td>
<img :src="DefaultBgImg" style="width:100px;height:60px;" /> <img :src="DefaultBgImg" style="width:100px;height:60px;" />
</td> </td>
...@@ -27,7 +29,7 @@ ...@@ -27,7 +29,7 @@
<tr> <tr>
<td> <td>
動態橫幅 動態橫幅
<el-select v-model="TripBottonItem.plugData.TripBottonStyle"> <el-select v-if="TripBottonItem&&TripBottonItem.plugData" v-model="TripBottonItem.plugData.TripBottonStyle">
<el-option v-for="(item,index) in TripBottonStyleArray" :key="index" :label="item.Name" :value="item.Id"> <el-option v-for="(item,index) in TripBottonStyleArray" :key="index" :label="item.Name" :value="item.Id">
</el-option> </el-option>
</el-select> </el-select>
...@@ -258,11 +260,13 @@ ...@@ -258,11 +260,13 @@
//获取按钮样式图片 //获取按钮样式图片
getBottonStyleImg() { getBottonStyleImg() {
var str = ""; var str = "";
var bottomStyleItem = this.TripBottonStyleArray.find(member => { if (this.TripBottonItem && this.TripBottonItem.plugData) {
return member.Id == this.TripBottonItem.plugData.TripBottonStyle; var bottomStyleItem = this.TripBottonStyleArray.find(member => {
}); return member.Id == this.TripBottonItem.plugData.TripBottonStyle;
if (bottomStyleItem) { });
str = bottomStyleItem.Img if (bottomStyleItem) {
str = bottomStyleItem.Img
}
} }
return str; return str;
}, },
...@@ -295,7 +299,6 @@ ...@@ -295,7 +299,6 @@
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data;
console.log("tempData", tempData);
if (tempData) { if (tempData) {
if (tempData.Id) { if (tempData.Id) {
this.postMsg.Id = tempData.Id; this.postMsg.Id = tempData.Id;
...@@ -311,6 +314,9 @@ ...@@ -311,6 +314,9 @@
} }
}); });
} }
console.log("this.TripBgImgItem", this.TripBgImgItem);
console.log("this.TripBottonItem", this.TripBottonItem);
console.log("this.OtherList", this.OtherList);
} }
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
......
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