Commit 8ee0038d by 前端

v3.6.0朋友圈营销代码上传

1 parent 67862483
...@@ -61,6 +61,12 @@ import { utils } from 'glsx-common' ...@@ -61,6 +61,12 @@ import { utils } from 'glsx-common'
import util from '@/utils/util' import util from '@/utils/util'
export default { export default {
name: 'activityModel', name: 'activityModel',
props:{
labelTypesStr:{
type:String,
default:'自店标签,企业标签,系统标签'
}
},
data() { data() {
return { return {
loading: false, loading: false,
...@@ -107,7 +113,7 @@ export default { ...@@ -107,7 +113,7 @@ export default {
pageSize: 1000, pageSize: 1000,
shopId: this.$globalState.session.merchantId, shopId: this.$globalState.session.merchantId,
labelGroupName: this.labelGroupName, labelGroupName: this.labelGroupName,
labelTypesStr: '自店标签,企业标签,系统标签', labelTypesStr: this.labelTypesStr,
edition: this.$globalState.session.merchantModel edition: this.$globalState.session.merchantModel
} }
}) })
......
...@@ -54,6 +54,20 @@ ...@@ -54,6 +54,20 @@
></i> ></i>
</div> </div>
</template> </template>
<template v-else-if="item.attType == 4">
<div class="welcome-activity-panel" >
<div class="welcome-activity-box">
<div class="welcome-activity-icon">
<img :src="item.attContent.picurl" v-if="item.attContent.picurl" alt=""/>
<img src="@/assets/welcomeWord/coupon.png" v-else/>
</div>
<div class="welcome-activity-desc">
<div class="model-item-title">{{ item.attContent.title }}</div>
<div class="model-item-content">{{ item.attContent.desc }}</div>
</div>
</div>
</div>
</template>
</div> </div>
</div> </div>
</template> </template>
...@@ -147,6 +161,112 @@ export default { ...@@ -147,6 +161,112 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.welcome-activity-panel {
display: flex;
margin-right: 10px;
.welcome-activity-box {
cursor: pointer;
position: relative;
min-width: 180px;
background: #fafbfe;
border-radius: 2px;
border: 1px solid #e8e8ea;
padding: 8px;
box-sizing: border-box;
display: flex;
&:hover {
.delete-solid {
opacity: 1;
}
}
.welcome-activity-icon {
width: 36px;
height: 36px;
margin-right: 8px;
position: relative;
background-size: 100% 100%;
img {
width: 100%;
height: 100%;
}
video {
object-fit: fill;
}
.el-icon-video-play {
position: absolute;
top: 7px;
left: 7px;
font-size: 22px;
color: rgba(255, 255, 255, 0.8);
}
.img-filter-box {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
color: rgba(255, 255, 255, 0.8);
display: flex;
font-size: 13px;
align-items: center;
justify-content: center;
}
}
.delete-solid {
transition: all 0.5s;
opacity: 0;
position: absolute;
top: 0px;
right: 0px;
width: 14px;
height: 14px;
background: rgba(0, 0, 0, 0.5);
display: flex;
font-size: 12px;
align-items: center;
justify-content: center;
}
.el-icon-delete-solid {
color: rgba(255, 255, 255, 0.5);
}
.model-item-title {
font-size: 14px;
font-weight: 600;
color: #333333;
line-height: 20px;
max-width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.model-item-content {
font-size: 12px;
font-weight: 400;
color: #999999;
line-height: 17px;
max-width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
span {
color: #5850ff;
}
}
}
}
.img-list { .img-list {
margin-right: 3px; margin-right: 3px;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!