Commit d60836fa authored by 黄奎's avatar 黄奎

页面修改

parent a54d1836
......@@ -88,26 +88,26 @@
<el-row v-if="plugData.Type==1||plugData.Type==2||plugData.Type==3">
<el-col :span="24">
<el-form-item :label="'行程名稱'+' '+(index+1)">
<el-input type="text" v-model="item.TripTitle2"></el-input>
<el-input type="text" v-model="item.TripTitle"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row v-if="plugData.Type==1||plugData.Type==2">
<el-col :span="12">
<el-form-item label="價格">
<el-input type="text" v-model="item.Price2" @keyup.native="checkPrice(item,'Price2')"></el-input>
<el-input type="text" v-model="item.Price" @keyup.native="checkPrice(item,'Price')"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="天數">
<el-input type="text" v-model="item.DayNum2" @keyup.native="checkInteger(item,'DayNum2')"></el-input>
<el-input type="text" v-model="item.DayNum" @keyup.native="checkInteger(item,'DayNum')"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="連結網址">
<el-input type="text" v-model="item.LinkUrl2" maxlength="200"></el-input>
<el-input type="text" v-model="item.LinkUrl" maxlength="200"></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -152,7 +152,7 @@
<el-row v-for="(item,index) in plugData.Details" :key="index" style="margin-bottom:20px;">
<el-col :span="10">
<div class="webSliderDiv">
<img v-if="item.ImageUrl" :src="item.ImageUrl" class="web_imgUrl" alt="" />
<img v-if="item.ImageUrl" :src="item.ImageUrl" class="web_imgUrl" alt="" />
</div>
<div style="margin-top:5px;">圖片尺寸請上傳:800x530,檔案請小於3M</div>
</el-col>
......@@ -191,15 +191,9 @@
<el-row v-for="(item,index) in plugData.Details" :key="index" style="margin-bottom:20px;">
<el-col :span="8">
<div class="webSliderDiv webImg_radius">
<!-- <el-upload :http-request="UploadImage" :multiple="true" accept="image/jpeg,image/gif,image/png,image/bmp"
:show-file-list="false" action=""> -->
<img v-if="item.ImageUrl" :src="item.ImageUrl" style="width:auto;" class="web_imgUrl" alt="" />
<!-- <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="item.ImageUrl=''"></i>
</div>
</el-upload> -->
<img v-if="item.ImageUrl" :src="item.ImageUrl" style="width:auto;" class="web_imgUrl" alt="" />
</div>
</el-col>
<el-col :span="16">
......@@ -255,17 +249,6 @@
},
created() {},
methods: {
UploadImage(file) {
let newArr = [];
newArr.push(file.file);
let fileName = file.file.name;
var path = "/Upload/WebSite/";
this.UploadSelfFileT(path, newArr, x => {
var str = x.data.FilePath;
var imgUrl = this.domainManager().ViittoFileUrl + str;
this.plugData.Details[this.clickIndex].ImageUrl = imgUrl;
});
},
//获取选择行程数据
getChooseTripData() {
......@@ -286,10 +269,20 @@
DayNum: item.DayNum,
Price: item.B2BPrice,
};
this.plugData.Details[this.checkIndex].ImageUrl = obj.imgUrl;
this.plugData.Details[this.checkIndex].Price2 = obj.Price;
this.plugData.Details[this.checkIndex].TripTitle2 = obj.Title;
console.log("plugData.Type", this.plugData.Type);
console.log("obj", obj);
console.log("this.plugData.Details[this.checkIndex]", this.plugData.Details[this.checkIndex]);
if (this.plugData.Type == 1 || this.plugData.Type == 2 || this.plugData.Type == 3) {
this.plugData.Details[this.checkIndex].ImageUrl = obj.imgUrl;
this.plugData.Details[this.checkIndex].Price = obj.Price;
this.plugData.Details[this.checkIndex].TripTitle = obj.Title;
this.plugData.Details[this.checkIndex].DayNum = obj.DayNum;
} else {
this.plugData.Details[this.checkIndex].ImageUrl = obj.imgUrl;
this.plugData.Details[this.checkIndex].Price2 = obj.Price;
this.plugData.Details[this.checkIndex].TripTitle2 = obj.Title;
this.plugData.Details[this.checkIndex].DayNum2 = obj.DayNum;
}
this.$refs.chooseTrip.clearData();
});
}
......
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