Commit efe281e9 by 前端

Merge branch 'SAAS+V4.38.0-0425' into 'master'

上线合并

See merge request !75
2 parents 9495dcb8 3c59017e
...@@ -31,7 +31,8 @@ ...@@ -31,7 +31,8 @@
</template> </template>
</div> </div>
</div> </div>
<div class="text-num">{{ textNum }}/{{ maxNum }}</div> <span v-if="showNewMaxNum" class="text-num-up">{{ textNum }}/{{ maxNum }}</span>
<div v-else class="text-num">{{ textNum }}/{{ maxNum }}</div>
</div> </div>
<div v-show="emotionStatus" class="emotion-panel"> <div v-show="emotionStatus" class="emotion-panel">
<emotion-words class="emotion-panel-box" @emotion="handleEmotion" :height="280"></emotion-words> <emotion-words class="emotion-panel-box" @emotion="handleEmotion" :height="280"></emotion-words>
...@@ -62,7 +63,8 @@ export default { ...@@ -62,7 +63,8 @@ export default {
maxNum: { maxNum: {
typr: Number, typr: Number,
default: 200 default: 200
} },
showNewMaxNum:Boolean
}, },
components: { components: {
WTextarea, WTextarea,
...@@ -222,6 +224,15 @@ export default { ...@@ -222,6 +224,15 @@ export default {
position: absolute; position: absolute;
right: -85px; right: -85px;
} }
.text-num-up{
font-size: 14px;
color: #999999;
position: absolute;
right: 12px;
bottom: 100px;
background: #fff;
line-height: 16px;
}
} }
.date-picker { .date-picker {
margin-top: 10px; margin-top: 10px;
......
<template>
<GLDialog :mode="mode" title="文字喜报配置" :before-close="handlebattleClose" :visible.sync="isDialogVisible" @onOk="handlebattleConfirm" @onCancel="handlebattleClose">
<div class="popup-wrap">
<div class="left-wrap">
<div class="img-wrap">
<img src="@/assets/wordReport_qy.png" />
</div>
<p class="color-3 txt-center text-14">图示效果</p>
</div>
<div class="right-wrap">
<el-form ref="form" :model="form" label-width="120px">
<div class="item-line">
<el-form-item label="编辑文本:" class="verbal-wrap">
<verbal :showNewMaxNum="true" :btnList="btnList" :maxNum="2000" :mapList="mapList" ref="verbalRef"></verbal>
</el-form-item>
</div>
</el-form>
<div class="explain">
<div class="color6 weight-6 font-14">
<i class="el-icon-warning"></i>
推送机制说明
</div>
<p class="mrp">推送2.1会员权益场景的商品,驻店在小程序端下单,客户支付成功后产生有效订单时自动推送,订单金额低于1元时四舍五入为0元产值订单进行推送,测试订单不推送。</p>
</div>
</div>
</div>
</GLDialog>
</template>
<script>
import dialog from './dialog'
export default {
mixins: [dialog],
data() {
return {
mode: 'big',
wordType: {
switchType: 2401,
switchText: ''
},
btnList: [
{
type: 1,
name: '表情'
},
{
type: 2,
name: '销售顾问'
},
{
type: 2,
name: '客户姓名'
},
{
type: 2,
name: '转化人员'
},
{
type: 2,
name: '商品名称'
},
{
type: 2,
name: '车辆价格'
},
{
type: 2,
name: '今日单量'
},{
type: 2,
name: '部门名称累计:本月累计单量'
},{
type: 2,
name: '本月累计单量'
},{
type: 2,
name: '本月累计产值'
},{
type: 2,
name: '订单总金额'
},{
type: 2,
name: '流量店门店名称'
},
],
params: ['wordType'],
mapList: {
销售顾问: '${referrer}',
客户姓名: '${customerName}',
转化人员: '${transferName}',
车辆价格: '${carPrice}',
商品名称: '${goodsNames}',
今日单量: '${orderNumber}',
'部门名称累计:本月累计单量': '${departmentNameOrderNumber}',
本月累计单量: '${monthOrderNumber}',
本月累计产值: '${monthTurnover}',
订单总金额: '${orderPrice}',
流量店门店名称: '${merchantName4s}',
}
}
},
methods: {
initData() {
this.switchList.wordReport.forEach(i => {
this.params.find(data => {
if (this[data].switchType == i.switchType) {
this[data] = this.$common.utils.deepClone(i)
}
})
})
this.$nextTick(() => {
this.$refs.verbalRef && this.$refs.verbalRef.update(this.wordType.switchText)
})
},
handlebattleConfirm() {
this.isDialogVisible = false
let switchList = []
this.params.forEach(data => {
if (data == 'wordType') this[data].switchText = this.$refs.verbalRef.getTextValue()
switchList.push(this[data])
})
this.$emit('handlePreview', { key: 'wordReport', data: switchList })
}
}
}
</script>
<style lang="scss" scoped>
.popup-wrap {
display: flex;
padding: 0 28px;
.img-wrap {
width: 250px;
height: 560px;
margin-bottom: 14px;
img {
width: 100%;
height: 100%;
}
}
.right-wrap {
margin-top: 12px;
/deep/.el-form-item {
margin-bottom: 0px;
}
.item-line {
margin-bottom: 20px;
}
.switchStyle /deep/ .el-switch__label {
position: absolute;
display: none;
color: #fff;
font-size: 12px !important;
line-height: 20px;
}
.el-switch__core {
background-color: rgba(166, 166, 166, 1);
}
.switchStyle /deep/.el-switch__label--left {
z-index: 9;
left: 20px;
}
.switchStyle /deep/ .el-switch__label--right {
z-index: 9;
left: 4px;
}
.switchStyle /deep/ .el-switch__label.is-active {
display: block;
}
.switchStyle /deep/ .el-switch__core {
width: 56px !important;
}
.switchStyle /deep/ .el-switch__label {
width: 56px !important;
}
.explain {
width: 592px;
background: #f4f6fc;
padding: 16px;
margin-left: 120px;
box-sizing: border-box;
position: absolute;
bottom: 85px;
.el-icon-warning {
width: 16px;
height: 16px;
margin-right: 4px;
}
.mrp {
margin: 8px 0 0 20px;
line-height: 22px;
}
}
}
.warn {
font-size: 12px;
color: #999999;
margin-left: 154px;
}
.verbal-wrap {
/deep/ .el-form-item__content {
width: 592px;
}
/deep/ .w-textarea_input {
height: 328px;
}
/deep/ .btn-group-panel .btn-group {
flex-wrap: wrap;
justify-content: none;
.add-btn {
margin-bottom: 5px;
}
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!