Commit 588da741 authored by 黄奎's avatar 黄奎

页面修改

parent cd21cb84
...@@ -275,7 +275,6 @@ ...@@ -275,7 +275,6 @@
props: ["templateData"], props: ["templateData"],
data() { data() {
return { return {
//模板列表 //模板列表
templateList: [], templateList: [],
//模板编号 //模板编号
......
...@@ -42,18 +42,20 @@ ...@@ -42,18 +42,20 @@
height: 310px !important; height: 310px !important;
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
border:0!important; border: 0 !important;
} }
.b2b_imgList{
width:100%; .b2b_imgList {
min-height:233px; width: 100%;
background-color: #f1f1f1; min-height: 233px;
position: relative; background-color: #f1f1f1;
position: relative;
} }
.b2bDialog .sectionImg{
position:absolute; .b2bDialog .sectionImg {
width:100%; position: absolute;
height:100%; width: 100%;
height: 100%;
background-position: center; background-position: center;
background-size: cover; background-size: cover;
} }
...@@ -78,13 +80,7 @@ ...@@ -78,13 +80,7 @@
<el-col :span="14"> <el-col :span="14">
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item :label="'行程名稱'+(index+1)"> <el-button type="primary" size="small" @click="isShowTripDailog=true">选择行程</el-button>
<el-select v-model="item.TripTitle" style="width:100%">
<el-option label="不限" :value="0"></el-option>
<el-option label="B2B前台菜单" :value="-1">B2B前台菜单</el-option>
<el-option label="个人中心菜单" :value="-2">个人中心菜单</el-option>
</el-select>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
...@@ -135,20 +131,20 @@ ...@@ -135,20 +131,20 @@
</template> </template>
<template v-if="plugData.Type==3"> <template v-if="plugData.Type==3">
<el-row> <el-row>
<el-col :span="12" v-for="(item,index) in plugData.Details" :key="index"> <el-col :span="12" v-for="(item,index) in plugData.Details" :key="index">
<el-form-item :label="'行程名稱'+' '+(index+1)"> <el-form-item :label="'行程名稱'+' '+(index+1)">
<el-select v-model="item.TripTitle" style="width:100%"> <el-select v-model="item.TripTitle" style="width:100%">
<el-option label="不限" :value="0"></el-option> <el-option label="不限" :value="0"></el-option>
<el-option label="B2B前台菜单" :value="-1">B2B前台菜单</el-option> <el-option label="B2B前台菜单" :value="-1">B2B前台菜单</el-option>
<el-option label="个人中心菜单" :value="-2">个人中心菜单</el-option> <el-option label="个人中心菜单" :value="-2">个人中心菜单</el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<div class="b2b_imgList"> <div class="b2b_imgList">
<div class="sectionImg" :style="{backgroundImage:'url(' + item.TripImageUrl + ')'}"></div> <div class="sectionImg" :style="{backgroundImage:'url(' + item.TripImageUrl + ')'}"></div>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
...@@ -189,9 +185,9 @@ ...@@ -189,9 +185,9 @@
<el-row v-for="(item,index) in plugData.Details" :key="index" style="margin-bottom:20px;"> <el-row v-for="(item,index) in plugData.Details" :key="index" style="margin-bottom:20px;">
<el-col :span="8"> <el-col :span="8">
<div class="webSliderDiv webImg_radius"> <div class="webSliderDiv webImg_radius">
<div class="b2b_imgList"> <div class="b2b_imgList">
<div class="sectionImg" :style="{backgroundImage:'url(' + item.TripImageUrl + ')'}"></div> <div class="sectionImg" :style="{backgroundImage:'url(' + item.TripImageUrl + ')'}"></div>
</div> </div>
</div> </div>
</el-col> </el-col>
<el-col :span="16"> <el-col :span="16">
...@@ -210,16 +206,29 @@ ...@@ -210,16 +206,29 @@
</el-row> </el-row>
</template> </template>
</el-form> </el-form>
<el-dialog title="选择行程" :visible.sync="isShowTripDailog" width="1000px" append-to-body>
<!-- 行程选中 -->
<chooseTrip ref="chooseTrip" :IsMultiple="false"></chooseTrip>
<span slot="footer" class="dialog-footer">
<el-button @click="isShowTripDailog = false" size="small">取 消</el-button>
<el-button type="danger" size="small" @click="getChooseTripData()">确 定</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
import chooseTrip from "../plug-in/choose_trip.vue"
export default { export default {
props: ["plugData"], props: ["plugData"],
data() { data() {
return { return {
isShowTripDailog: false,
clickIndex: 1 clickIndex: 1
}; };
}, },
components: {
chooseTrip,
},
created() {}, created() {},
methods: { methods: {
UploadImage(file) { UploadImage(file) {
...@@ -232,7 +241,30 @@ ...@@ -232,7 +241,30 @@
var imgUrl = this.domainManager().ViittoFileUrl + str; var imgUrl = this.domainManager().ViittoFileUrl + str;
this.plugData.Details[this.clickIndex].TripImageUrl = imgUrl; this.plugData.Details[this.clickIndex].TripImageUrl = imgUrl;
}); });
} },
//获取选择行程数据
getChooseTripData() {
var tempArray = this.$refs.chooseTrip.getChooseData();
this.isShowTripDailog = false;
if (tempArray && tempArray.length > 0) {
tempArray.forEach(item => {
var imgUrl = ""
if (item.ImgCover && item.ImgCover.length > 0) {
imgUrl = item.ImgCover[0].Url;
}
var obj = {
StartDate: item.StartDate,
imgUrl:imgUrl,
TCNUM: item.TCNUM,
TCID: item.TCID,
Title: item.Title,
DayNum: item.DayNum,
Price: item.B2BPrice,
};
console.log(obj);
});
}
},
}, },
mounted() { mounted() {
console.log(this.plugData, 'plugData'); console.log(this.plugData, 'plugData');
......
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