Commit 269f82f7 by 匡雅琴

调整

1 parent aa5ca355
......@@ -268,6 +268,7 @@ export default {
this.materialAddForm.businessType = []
}
if (this.materialAddForm.materialType == 3) {
this.materialAddForm.materialUrl = decodeURIComponent(this.materialAddForm.materialUrl)
this.$refs.textBox.setEdit(this.materialAddForm.materialUrl)
} else if (this.materialAddForm.materialType == 1) {
this.pdfUrl = this.materialAddForm.materialUrl
......@@ -396,6 +397,7 @@ export default {
if (params.materialType == 1) {
params.materialUrl = this.pdfUrl
} else if (params.materialType == 3) {
this.textBoxContent = encodeURIComponent(this.textBoxContent)
params.materialUrl = this.textBoxContent
}
let material
......@@ -435,6 +437,7 @@ export default {
if (params.materialType == 1) {
params.materialUrl = this.pdfUrl
} else if (params.materialType == 3) {
this.textBoxContent = encodeURIComponent(this.textBoxContent)
params.materialUrl = this.textBoxContent
}
let material
......@@ -801,6 +804,7 @@ export default {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
word-wrap: break-word;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
......
......@@ -32,18 +32,18 @@ export default {
name: 'customerName',
maxlength: 10,
type: 'input',
placehoder: '请输入内容'
placeholder: '请输入内容'
},{
label: '客户手机号:',
name: 'customerPhone',
placehoder: '请输入手机号',
placeholder: '请输入手机号',
type: 'input'
},
{
label: '发送人:',
name: 'staffName',
maxlength: 10,
placehoder: '请输入内容',
placeholder: '请输入内容',
type: 'input'
}
],
......
......@@ -313,7 +313,7 @@ export default {
mounted() {
let clientHeight = document.documentElement.clientHeight
let offTop = document.querySelector('.tabelList').offsetTop
this.boxHeight = clientHeight - offTop + 'px'
this.boxHeight = clientHeight - offTop - 20 + 'px'
this.findAllDictData('business_type')
this.firstCome()
this.getListApi()
......@@ -374,7 +374,7 @@ export default {
console.log(scope)
var params = {}
params.id = scope.id
if (params.status == 0) {
if (scope.status == 0) {
params.status = -1
this.secondConfirm('提示', '禁用素材,所有已经发送给客户的素材链接均会失效,是否继续禁用?', 'material', 'materialEdit', params )
} else {
......@@ -504,6 +504,7 @@ export default {
.left {
height: 100%;
position: relative;
overflow: auto;
border-right: 1px solid #e8e8ea;
}
.right {
......
......@@ -76,7 +76,9 @@
</div>
<div class="materialDetail-desc-item">
<div class="materialDetail-item-name">行为标签:</div>
<!-- <el-tag type="info" v-if="detailInfo.tagJson.length">{{ detailInfo.tagJson }}</el-tag> -->
<span v-if="detailInfo.tagJson.length">
<el-tag type="info" v-for="item in detailInfo.tagJson" :key="item">{{ item.labelName }}</el-tag>
</span>
</div>
<div class="materialDetail-desc-item">
<div class="materialDetail-item-name">分享设置:</div>
......@@ -142,12 +144,13 @@
</div>
</div>
</div>
<el-dialog :visible.sync="visibleImg" width="50%" :before-close="handleClose">
<el-dialog :visible.sync="visibleImg" width="30%" :before-close="handleClose">
<div slot="title" class="phone-view">
<img class="img-phone" src="@/assets/phone.png" alt="" />
<div class="phone-content">
<div>{{ detailInfo.materialName }}</div>
<div v-if="detailInfo.materialType == 3" v-html="detailInfo.materialUrl"></div>
<h4 class="phone-content-title">{{ detailInfo.materialName }}</h4>
<div class="phone-content-word" v-if="detailInfo.materialType == 3" v-html="detailInfo.materialUrl"></div>
<div class="phone-content-word">活动时间:2022年3月17日 8:00-23:00</div>
<div>
<img src="@/assets/material/car.png" alt="" />
</div>
......@@ -194,6 +197,14 @@ export default {
this.$apis.material.materialDetail(params).then(res => {
console.log(res, 'dhakfh')
this.detailInfo = res
if (this.detailInfo.tagJson) {
this.detailInfo.tagJson = eval(this.detailInfo.tagJson)
} else {
this.detailInfo.tagJson = []
}
if (this.detailInfo.materialType == 3) {
this.detailInfo.materialUrl = decodeURIComponent(this.detailInfo.materialUrl)
}
})
},
// 获取数据概览
......@@ -280,12 +291,22 @@ background-color: #fff;
flex: 1;
.content-item-title {
color: #333333;
max-width: 210px;
overflow: hidden;
text-overflow: ellipsis;
line-height: 20px;
margin-bottom: 6px;
}
.content-item-desc {
color: #999999;
line-height: 20px;
max-width: 210px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
word-wrap: break-word;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
}
}
......@@ -423,6 +444,15 @@ background-color: #fff;
position: absolute;
top: 20%;
left: 30%;
&-title {
width: 100%;
height: 30px;
border-bottom: 1px solid #ccc;
color: #333;
}
&-word {
color: #666;
}
}
}
.content-item-image {
......@@ -431,4 +461,7 @@ background-color: #fff;
height: 85px;
}
}
.el-tag {
margin-right: 4px;
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!