Commit c58ff155 authored by 黄奎's avatar 黄奎

页面修改

parent e33ae0ab
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
<el-form-item> <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-form-item>
</el-col> </el-col>
</el-row> </el-row>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.WebSiteimgLink .webSliderDiv { .WebSiteimgLink .webSliderDiv {
line-height: 0; line-height: 0;
height: 275px; height: 275px;
width:275px; width: 275px;
border: 1px solid #ccc; border: 1px solid #ccc;
position: relative; position: relative;
} }
...@@ -42,10 +42,11 @@ ...@@ -42,10 +42,11 @@
.WebSiteimgLink .webSliderDiv>div { .WebSiteimgLink .webSliderDiv>div {
height: 100%; height: 100%;
} }
.WebSiteimgLink .sectionImg{
position:absolute; .WebSiteimgLink .sectionImg {
width:100%; position: absolute;
height:100%; width: 100%;
height: 100%;
background-position: center; background-position: center;
background-size: cover; background-size: cover;
} }
...@@ -71,8 +72,16 @@ ...@@ -71,8 +72,16 @@
<el-row> <el-row>
<el-col :span="10"> <el-col :span="10">
<el-form-item> <el-form-item>
<div class="webSliderDiv"> <div class="webSliderDiv" @click="checkindex=1">
<div class="sectionImg" :style="{backgroundImage:'url(' + plugData.TripImage1 + ')'}"></div> <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> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -92,8 +101,16 @@ ...@@ -92,8 +101,16 @@
<el-row> <el-row>
<el-col :span="10"> <el-col :span="10">
<el-form-item> <el-form-item>
<div class="webSliderDiv"> <div class="webSliderDiv" @click="checkindex=2">
<div class="sectionImg" :style="{backgroundImage:'url(' + plugData.TripImage2 + ')'}"></div> <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> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -113,14 +130,13 @@ ...@@ -113,14 +130,13 @@
</el-form> </el-form>
<el-dialog title="选择行程" :visible.sync="isShowTripDailog" width="1000px" append-to-body> <el-dialog title="选择行程" :visible.sync="isShowTripDailog" width="1000px" append-to-body>
<!-- 行程选中 --> <!-- 选择行程 -->
<chooseTrip ref="chooseTrip" :IsMultiple="false"></chooseTrip> <chooseTrip ref="chooseTrip" :IsMultiple="false"></chooseTrip>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="isShowTripDailog = false" size="small">取 消</el-button> <el-button @click="isShowTripDailog = false" size="small">取 消</el-button>
<el-button type="danger" size="small" @click="getChooseTripData()">确 定</el-button> <el-button type="danger" size="small" @click="getChooseTripData()">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -129,8 +145,8 @@ ...@@ -129,8 +145,8 @@
props: ["plugData"], props: ["plugData"],
data() { data() {
return { return {
checkIndex:0, checkIndex: 0,
isShowTripDailog:false isShowTripDailog: false
}; };
}, },
components: { components: {
...@@ -146,9 +162,9 @@ ...@@ -146,9 +162,9 @@
this.UploadSelfFileT(path, newArr, x => { this.UploadSelfFileT(path, newArr, x => {
var str = x.data.FilePath; var str = x.data.FilePath;
var imgUrl = this.domainManager().ViittoFileUrl + str; var imgUrl = this.domainManager().ViittoFileUrl + str;
if(this.checkindex==1){ if (this.checkindex == 1) {
this.plugData.ImageUrl1 = imgUrl; this.plugData.ImageUrl1 = imgUrl;
}else{ } else {
this.plugData.ImageUrl2 = imgUrl; this.plugData.ImageUrl2 = imgUrl;
} }
}); });
...@@ -172,11 +188,11 @@ ...@@ -172,11 +188,11 @@
DayNum: item.DayNum, DayNum: item.DayNum,
Price: item.B2BPrice, Price: item.B2BPrice,
}; };
if(this.checkIndex==1){ if (this.checkIndex == 1) {
this.plugData.TripImage1 = obj.imgUrl; this.plugData.TripImage1 = obj.imgUrl;
this.plugData.TripTitle1 = obj.Title; this.plugData.TripTitle1 = obj.Title;
} }
if(this.checkIndex==2){ if (this.checkIndex == 2) {
this.plugData.TripImage2 = obj.imgUrl; this.plugData.TripImage2 = obj.imgUrl;
this.plugData.TripTitle2 = obj.Title; this.plugData.TripTitle2 = obj.Title;
} }
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
</el-row> </el-row>
</el-form> </el-form>
<el-dialog title="选择行程" :visible.sync="isShowTripDailog" width="1000px" append-to-body> <el-dialog title="选择行程" :visible.sync="isShowTripDailog" width="1000px" append-to-body>
<!-- 行程选中 --> <!-- 选择行程 -->
<chooseTrip ref="chooseTrip" :IsMultiple="false"></chooseTrip> <chooseTrip ref="chooseTrip" :IsMultiple="false"></chooseTrip>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="isShowTripDailog = false" size="small">取 消</el-button> <el-button @click="isShowTripDailog = false" size="small">取 消</el-button>
......
...@@ -279,7 +279,6 @@ ...@@ -279,7 +279,6 @@
chooseTrip chooseTrip
}, },
created() { created() {
console.log("this",this.plugData);
}, },
methods: { methods: {
UploadImage(file) { 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