Commit c58ff155 authored by 黄奎's avatar 黄奎

页面修改

parent e33ae0ab
......@@ -122,7 +122,7 @@
</el-col>
<el-col :span="5">
<el-form-item>
<button class="normalBtn TC_SearchBtn" @click="resetPageIndex(),GetList()">{{$t('pub.searchBtn')}}</button>
<input type="button" class="hollowFixedBtn" @click="resetPageIndex(),GetList()" :value="$t('pub.searchBtn')" />
</el-form-item>
</el-col>
</el-row>
......
......@@ -2,7 +2,7 @@
.WebSiteimgLink .webSliderDiv {
line-height: 0;
height: 275px;
width:275px;
width: 275px;
border: 1px solid #ccc;
position: relative;
}
......@@ -42,10 +42,11 @@
.WebSiteimgLink .webSliderDiv>div {
height: 100%;
}
.WebSiteimgLink .sectionImg{
position:absolute;
width:100%;
height:100%;
.WebSiteimgLink .sectionImg {
position: absolute;
width: 100%;
height: 100%;
background-position: center;
background-size: cover;
}
......@@ -71,8 +72,16 @@
<el-row>
<el-col :span="10">
<el-form-item>
<div class="webSliderDiv">
<div class="sectionImg" :style="{backgroundImage:'url(' + plugData.TripImage1 + ')'}"></div>
<div class="webSliderDiv" @click="checkindex=1">
<el-upload :http-request="UploadImage" :multiple="true" accept="image/jpeg,image/gif,image/png,image/bmp"
:show-file-list="false" action="">
<div class="sectionImg" :style="{backgroundImage:'url(' + plugData.ImageUrl1 + ')'}"></div>
<div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i>
<i class="web_delImg iconfont icon-img_delete_small" style="margin-left:10px;"
@click.stop="plugData.ImageUrl1=''"></i>
</div>
</el-upload>
</div>
</el-form-item>
</el-col>
......@@ -92,8 +101,16 @@
<el-row>
<el-col :span="10">
<el-form-item>
<div class="webSliderDiv">
<div class="sectionImg" :style="{backgroundImage:'url(' + plugData.TripImage2 + ')'}"></div>
<div class="webSliderDiv" @click="checkindex=2">
<el-upload :http-request="UploadImage" :multiple="true" accept="image/jpeg,image/gif,image/png,image/bmp"
:show-file-list="false" action="">
<div class="sectionImg" :style="{backgroundImage:'url(' + plugData.ImageUrl2 + ')'}"></div>
<div class="addIconDiv">
<i class="web_addImg iconfont icon-img_haha"></i>
<i class="web_delImg iconfont icon-img_delete_small" style="margin-left:10px;"
@click.stop="plugData.ImageUrl2=''"></i>
</div>
</el-upload>
</div>
</el-form-item>
</el-col>
......@@ -113,14 +130,13 @@
</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>
</template>
<script>
......@@ -129,8 +145,8 @@
props: ["plugData"],
data() {
return {
checkIndex:0,
isShowTripDailog:false
checkIndex: 0,
isShowTripDailog: false
};
},
components: {
......@@ -146,9 +162,9 @@
this.UploadSelfFileT(path, newArr, x => {
var str = x.data.FilePath;
var imgUrl = this.domainManager().ViittoFileUrl + str;
if(this.checkindex==1){
if (this.checkindex == 1) {
this.plugData.ImageUrl1 = imgUrl;
}else{
} else {
this.plugData.ImageUrl2 = imgUrl;
}
});
......@@ -172,11 +188,11 @@
DayNum: item.DayNum,
Price: item.B2BPrice,
};
if(this.checkIndex==1){
if (this.checkIndex == 1) {
this.plugData.TripImage1 = obj.imgUrl;
this.plugData.TripTitle1 = obj.Title;
}
if(this.checkIndex==2){
if (this.checkIndex == 2) {
this.plugData.TripImage2 = obj.imgUrl;
this.plugData.TripTitle2 = obj.Title;
}
......@@ -187,7 +203,7 @@
},
mounted() {
},
};
......
......@@ -68,7 +68,7 @@
</el-row>
</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>
......
......@@ -279,7 +279,6 @@
chooseTrip
},
created() {
console.log("this",this.plugData);
},
methods: {
UploadImage(file) {
......
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