Commit b4a2a860 authored by 黄奎's avatar 黄奎

页面修改

parent ab499962
...@@ -60,15 +60,23 @@ ...@@ -60,15 +60,23 @@
:title="$t('pub.updateMsg')"></i></a> :title="$t('pub.updateMsg')"></i></a>
<a :href='item.AdvertisingPicUrl' target="_blank" :download="$t('salesModule.AdvPic')+'.png'"><i class="el-icon-download" <a :href='item.AdvertisingPicUrl' target="_blank" :download="$t('salesModule.AdvPic')+'.png'"><i class="el-icon-download"
:title="$t('objFill.xz')"></i></a> --> :title="$t('objFill.xz')"></i></a> -->
<span @click="getPicList(index)"><i class="iconfont icon-view" title="查看原图"></i></span>
<span @click="clickDownLoad(item,1)"><i class="el-icon-download" title="旅小友二维码"></i></span> <span @click="clickDownLoad(item,1)"><i class="el-icon-download" title="旅小友二维码"></i></span>
<span @click="clickDownLoad(item,2)"><i class="el-icon-download" title="行程二维码"></i></span> <!-- <span @click="clickDownLoad(item,2)"><i class="el-icon-download" title="行程二维码"></i></span> -->
<span @click="clickDownLoad(item,3)"><i class="el-icon-download" title="原图下载"></i></span> <!-- <span @click="clickDownLoad(item,3)"><i class="el-icon-download" title="原图下载"></i></span> -->
<i class="el-icon-delete" :title="$t('system.ph_shanchu')" @click.stop="deleteItem(item.ID)"></i> <i class="el-icon-delete" :title="$t('system.ph_shanchu')" @click.stop="deleteItem(item.ID)"></i>
</div> </div>
</div> </div>
<div style="text-align:center;">
<el-button type="text" @click="clickDownLoad(item,2)">
行程广告图下载
</el-button>
<el-button type="text" @click="clickDownLoad(item,3)">
原图下载
</el-button>
</div>
</li> </li>
</ul> </ul>
<div v-if='dataList.length==0' style='width:100%;margin-top:50px;text-align:center;color: #ccc;'> <div v-if='dataList.length==0' style='width:100%;margin-top:50px;text-align:center;color: #ccc;'>
......
...@@ -206,7 +206,8 @@ ...@@ -206,7 +206,8 @@
:before-upload="beforeUploadVideo" :show-file-list="false" :file-list="VideoStrList"> :before-upload="beforeUploadVideo" :show-file-list="false" :file-list="VideoStrList">
<el-button size="small" type="primary">{{$t('tips.dianjishanhcuan')}}</el-button> <el-button size="small" type="primary">{{$t('tips.dianjishanhcuan')}}</el-button>
</el-upload> </el-upload>
<el-button size="small" class="TC_ChoiceBtn" @click="checkType=2,addimg=true" type="primary">{{$t('fnc.xuanze')}} <el-button size="small" class="TC_ChoiceBtn" @click="checkType=2,addimg=true" type="primary">
{{$t('fnc.xuanze')}}
</el-button> </el-button>
</div> </div>
<div style="text-align: center;" v-if="VideoStr"> <div style="text-align: center;" v-if="VideoStr">
...@@ -237,6 +238,9 @@ ...@@ -237,6 +238,9 @@
<div class="re-delte" @click.stop="addImgOpen(index)"> <div class="re-delte" @click.stop="addImgOpen(index)">
<i class="iconfont icon-img_cz"></i> <i class="iconfont icon-img_cz"></i>
</div> </div>
<div class="re-delte" @click.stop="viewImg(index)">
<i class="iconfont icon-view"></i>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -279,6 +283,14 @@ ...@@ -279,6 +283,14 @@
</div> </div>
</el-upload> </el-upload>
</el-dialog> </el-dialog>
<div v-if='picIsShow' class="viewBigPicLayer" @click="picIsShow=false">
<i class="el-icon-circle-close-outline clolseViewBigPicLayer" @click="picIsShow=false"></i>
<el-carousel height="600px" :initial-index='initialIndex' :interval="5000" trigger="click">
<el-carousel-item v-for="(item,index) in picObj" :key="index">
<div class="inlineDiv ownScrollbarStyle"><img :src="item" /></div>
</el-carousel-item>
</el-carousel>
</div>
</div> </div>
</template> </template>
<script> <script>
...@@ -385,7 +397,10 @@ ...@@ -385,7 +397,10 @@
ColorName: this.$t('objFill.subjectcolor')[18], ColorName: this.$t('objFill.subjectcolor')[18],
ColorValue: '#6E4C43' ColorValue: '#6E4C43'
}, },
] ],
picIsShow: false,
picObj: [],
initialIndex: 0,
}; };
}, },
components: { components: {
...@@ -394,7 +409,15 @@ ...@@ -394,7 +409,15 @@
GGMap: GGMap, GGMap: GGMap,
}, },
methods: { methods: {
//获取轮播路径
viewImg(index) {
this.picIsShow = true;
this.picObj = [];
this.initialIndex = index;
this.PostConfig.fileList.forEach(item => {
this.picObj.push(item.Url);
})
},
loadVideo: function () { // 输入地址 loadVideo: function () { // 输入地址
if (this.PostConfig.VideoStr) if (this.PostConfig.VideoStr)
this.VideoStr = this.VideoStr.indexOf('http') > -1 ? this.VideoStr : this.domainManager().ViittoFileUrl + this.VideoStr = this.VideoStr.indexOf('http') > -1 ? this.VideoStr : this.domainManager().ViittoFileUrl +
...@@ -494,7 +517,7 @@ ...@@ -494,7 +517,7 @@
obj.ID = 0; obj.ID = 0;
obj.Path = this.$commonUtils.removeDomain(imgItem.Path); obj.Path = this.$commonUtils.removeDomain(imgItem.Path);
obj.PicID = imgItem.ID; obj.PicID = imgItem.ID;
obj.ShowPath = imgItem.Path ; obj.ShowPath = imgItem.Path;
that.PostConfig.fileList[this.ChooseImgIndex].Url = obj.ShowPath; that.PostConfig.fileList[this.ChooseImgIndex].Url = obj.ShowPath;
}); });
} else { } else {
......
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