|
@@ -10,8 +10,11 @@
|
|
|
:width="500">
|
|
|
<div class="promotionDesc-con">
|
|
|
<img src="@/assets/iphone.png" alt="图片走丢了" srcset="">
|
|
|
- <div class="promotionDescCon" v-html="mainContent">
|
|
|
-
|
|
|
+ <div class="promotionDescCon" v-show="showType=='IMAGE_CONTENT'" v-html="mainContent"></div>
|
|
|
+ <div class="promotionDescCon" v-show="showType=='VIDEO'">
|
|
|
+ <video width="100%" height="auto">
|
|
|
+ <source :src="mainContent" type="video/mp4"></source>
|
|
|
+ </video>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="btn-cont">
|
|
@@ -37,12 +40,17 @@ export default {
|
|
|
return {
|
|
|
modalTit: '促销展示',
|
|
|
isShow: this.openModal, // 是否打开弹框
|
|
|
- mainContent: ''
|
|
|
+ mainContent: '', // 主要显示内容
|
|
|
+ showType: undefined//
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
getDetail (con) {
|
|
|
- promoTerminalDetail(con).then(res => {
|
|
|
+ const ajaxData = {
|
|
|
+ id: con.id
|
|
|
+ }
|
|
|
+ this.showType = con.showType
|
|
|
+ promoTerminalDetail(ajaxData).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.mainContent = res.data.content
|
|
|
}
|