Commit 370c8abb by 胡悦

修改样式

1 parent a0ca653f
......@@ -271,4 +271,16 @@ html {
.marketing .table-img .el-table--medium td.el-table__cell {
padding: 2px 0 !important;
}
::-webkit-scrollbar {
/*滚动条整体样式*/
width: 6px;
height: 4px;
}
::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
}
\ No newline at end of file
......@@ -22,7 +22,21 @@
class="sale-select"
v-show="basicForm.userList && basicForm.userList.length != 0"
>
<div :key="key" class="el-input-tag input-tag-wrapper">
<div class="el-input-tag input-tag-wrapper">
<el-tag
effect="plain"
type="info"
v-for="(tag, idx) in basicForm.userList"
:key="idx"
closable
:disable-transitions="false"
@close="remove(tag)"
>
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
</div>
<!-- <div :key="key" class="el-input-tag input-tag-wrapper">
<el-tag
v-for="(tag, idx) in basicForm.userList"
:key="idx"
......@@ -32,7 +46,7 @@
@close="remove(tag)"
>{{ tag.staffName }}</el-tag>
<el-input size="small" style="outline: none; border: none"></el-input>
</div>
</div>-->
</div>
</el-form-item>
<el-form-item label="选择客户" prop="selectType">
......@@ -595,7 +609,8 @@ export default {
align-items: center;
}
.input-tag-wrapper {
max-width: 300px;
max-height: 68px;
overflow: auto;
position: relative;
font-size: 14px;
background-color: #fff;
......@@ -603,32 +618,28 @@ export default {
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #606266;
color: #666;
display: inline-block;
outline: none;
padding: 0 10px 0 5px;
padding: 5px 5px 0px 5px;
flex-wrap: wrap;
line-height: 32px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%;
width: 450px;
display: flex;
align-items: center;
/deep/ input {
/* input { */
/* background-color: red!important; 调试用的样式 */
outline: none !important;
border: none !important;
}
/deep/ .el-input {
min-width: 150px;
width: auto;
flex: 1;
margin-top: 6px;
font-size: 14px;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
.el-tag {
margin-right: 4px;
height: 26px;
line-height: 24px;
margin-bottom: 5px;
}
.tag-input {
background: transparent;
......
......@@ -20,13 +20,25 @@
<div class="sale-select" v-show="basicForm.userList">
<div :key="key" class="el-input-tag input-tag-wrapper">
<el-tag
effect="plain"
type="info"
v-for="(tag, idx) in basicForm.userList"
:key="idx"
closable
:disable-transitions="false"
@close="remove(tag)"
>
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
<!-- <el-tag
v-for="(tag, idx) in basicForm.userList"
:key="idx"
closable
:disable-transitions="false"
@close="remove(tag)"
>{{ tag.staffName }}</el-tag>
<el-input size="small" style="outline: none; border: none"></el-input>
<el-input size="small" style="outline: none; border: none"></el-input>-->
</div>
</div>
<div class="form-tips">群主收到通知后,可选择他管理的客户群并群发该内容。</div>
......@@ -370,6 +382,8 @@ export default {
}
.input-tag-wrapper {
max-width: 300px;
max-height: 68px;
overflow: auto;
position: relative;
font-size: 14px;
background-color: #fff;
......@@ -377,32 +391,28 @@ export default {
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #606266;
color: #666;
display: inline-block;
outline: none;
padding: 0 10px 0 5px;
padding: 5px 5px 0px 5px;
flex-wrap: wrap;
line-height: 32px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%;
width: 450px;
display: flex;
align-items: center;
/deep/ input {
/* input { */
/* background-color: red!important; 调试用的样式 */
outline: none !important;
border: none !important;
}
/deep/ .el-input {
min-width: 150px;
width: auto;
flex: 1;
margin-top: 6px;
font-size: 14px;
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
.el-tag {
margin-right: 4px;
height: 26px;
line-height: 24px;
margin-bottom: 5px;
}
.tag-input {
background: transparent;
......
......@@ -6,12 +6,24 @@
<div class="el-input-tag input-tag-wrapper" @click="foucusTagInput">
<div class="tag-box">
<el-tag
effect="plain"
type="info"
v-for="(tag, idx) in innerTags"
:key="idx"
closable
:disable-transitions="false"
@close="remove(tag)"
>{{ tag.staffName }}</el-tag>
>
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
<!-- <el-tag
v-for="(tag, idx) in innerTags"
:key="idx"
closable
:disable-transitions="false"
@close="remove(tag)"
>{{ tag.staffName }}</el-tag>-->
</div>
<el-input
......@@ -162,10 +174,15 @@ export default {
}
}
.tag-box {
max-height: 66px;
max-height: 60px;
overflow: auto;
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.input-tag-wrapper {
// max-height: 68px;
// overflow: auto;
position: relative;
font-size: 14px;
background-color: #fff;
......@@ -173,16 +190,17 @@ export default {
border-radius: 4px;
border: 1px solid #dcdfe6;
box-sizing: border-box;
color: #606266;
color: #666;
display: inline-block;
outline: none;
padding: 0 0 0 5px;
padding: 5px 5px 0px 5px;
flex-wrap: wrap;
line-height: 32px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%;
width: 450px;
display: flex;
align-items: center;
margin-top: 6px;
font-size: 14px;
/deep/ input {
/* input { */
/* background-color: red!important; 调试用的样式 */
......@@ -194,11 +212,17 @@ export default {
width: auto;
flex: 1;
}
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
}
.el-tag {
margin-right: 4px;
height: 26px;
line-height: 24px;
margin-bottom: 5px;
}
.tag-input {
background: transparent;
......@@ -221,15 +245,4 @@ export default {
height: 32px;
line-height: 32px;
}
::-webkit-scrollbar {
/*滚动条整体样式*/
width: 6px;
height: 4px;
}
::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
}
</style>
......@@ -142,7 +142,12 @@ export default {
this.savedRange.insertNode(node)
// 更新双向绑定数据
let target = this.$refs.wTextareaContent
this.updateData(target.innerHTML)
// this.updateData(target.innerHTML)
if (navigator.userAgent.indexOf('Firefox') > 0 || navigator.userAgent.indexOf('QQBrowser') > 0) {
this.updateData(target.innerHTML + '&nbsp;')
} else {
this.updateData(target.innerHTML)
}
this.currentText = target.innerText
this.$emit('updateText', this.currentText)
},
......
......@@ -82,7 +82,7 @@
<div class="tips-text">
<img src="../../../assets/guestCustom/tips.png" class="tips-icon" alt />
<span v-if="form == 'customer'">每位客户每天可接收1条群发消息,超过接收上限的客户将无法再收到群发消息。</span>
<span v-if="form == 'customerGroup'">每位客户群每天可接收1条群发消息,超过接收上限的客户群将无法再收到群发消息。</span>
<span v-if="form == 'customerGroup'">每个客户群每天可接收1条群发消息,超过接收上限的客户群将无法再收到群发消息。</span>
</div>
</div>
<ActivityModel ref="activity" @selectActivity="selectActivity"></ActivityModel>
......
......@@ -59,7 +59,6 @@ export default {
{
label: '群主',
name: 'staffId',
labelWidth: 28,
type: 'select',
isClear: true,
optionLabel: 'staffName',
......@@ -67,7 +66,7 @@ export default {
optionList: []
},
{
label: '送达状态',
label: '消息送达状态',
name: 'status',
type: 'select',
isClear: true,
......
......@@ -28,9 +28,21 @@
<div class="info-text">
<div class="info-name">
{{ item.staffName }}
<span
:class="[item.status == 0 ? 'unsend' : 'send']"
>{{ item.status == 0 ? '未发送' : item.status == 1 ? '已发送' : '发送失败' }}</span>
<span :class="[item.status == 0 ? 'unsend' : 'send']">
{{ item.status == 0 ? '未发送' : item.status == 1 ? '已发送' : '发送失败' }}
<el-popover
v-show="item.status != 0 && item.status != 1"
placement="top-start"
title="失败原因:"
width="400"
trigger="hover"
>
<p>1.若插入活动发送失败,可能为企微未绑定活动小程序,请绑定后再尝试。</p>
<p>2.可能为客户开启消息免打扰,消息发送失败。</p>
<p>3.可能为群发次数达到上限,上限次数为每个客户/客户群每天仅可接收1条群发消息。</p>
<img slot="reference" :src="iconUrl" alt />
</el-popover>
</span>
</div>
<div class="info-num">共{{ item.customerCount ? item.customerCount : 0 }}个客户</div>
</div>
......@@ -76,10 +88,21 @@
<div class="info-text">
<div class="info-name">
{{ item.customerName }}
<div
class="customer-table"
:class="[item.status == 0 ? 'unsend' : 'send']"
>{{ item.status == 0 ? '未送达' : item.status == 1 ? '已送达' : '送达失败' }}</div>
<div class="customer-table" :class="[item.status == 0 ? 'unsend' : 'send']">
{{ item.status == 0 ? '未送达' : item.status == 1 ? '已送达' : '送达失败' }}
<el-popover
v-show="item.status != 0 && item.status != 1"
placement="top-start"
title="失败原因:"
width="400"
trigger="hover"
>
<p>1.若插入活动发送失败,可能为企微未绑定活动小程序,请绑定后再尝试。</p>
<p>2.可能为客户开启消息免打扰,消息发送失败。</p>
<p>3.可能为群发次数达到上限,上限次数为每个客户/客户群每天仅可接收1条群发消息。</p>
<img slot="reference" :src="iconUrl" alt />
</el-popover>
</div>
</div>
</div>
<div class="info-right">
......@@ -106,6 +129,8 @@
</div>
</template>
<script>
const iconUrl =
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAFoTx1HAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAADqADAAQAAAABAAAADgAAAAC98Dn6AAAB7klEQVQoFVVSQUhUURQ9981sVFyYRRHuFFq1CGlZC3etnBlMRhMXQwhtCqIQJBA3gSSi1EpkNqkjCjOjm1YWuGojBVO7Fi0K2qQLF6H453bO+/ODLvz37z333PvOu+8BtImCf0K56J8VYKLoC9HRMlnwRxaRgB0kOHDDz5gl/0hZBaaFwGl3H65j577nygV/ITCM71pinRo1GiF4zm8jqzkr5dEtluiTJZ9zx8fYTEBmbP5D/tSY3wnaRUwB0rbdsAH5SYK3sW2l4r1/jnFIsUMElmsNmxdB7JGsUnGUWvQz+XkHXtXqNsxx/KL/Zg+oS5xxi8A2T8SqNe0az3NANyfVJD4N5ripZDTDrc1da8kn/i1QxGya4eq4Kl8aui7hblRLUd/JXCSxxXarBJ9T8fuYFLsztiqTv4NjXUTh2rZteEhiP8OKiiIez3+CFoWubdXtpUDe1XAbmJEfQLxpRxFPRz7T1ccz6BFkl6okRzHFOJ5ccbnkr8l5LF8mrl5Pnv5gJksJjmlD/wclv9121ClxeqthH4TJQh5fLhIMaa7LOrRuIk2la89lfO29ghuU/69IHBatqIZfOhgWv2OXhUIOi/FCnDpoZuYqaCaYpYJ5gvf+m6pInUE9Y5NRhoPCdGl80fscyFK1aqfCZH8B0rPa9foo7e4AAAAASUVORK5CYII='
import Vue from 'vue'
import BasicInof from './components/basicInfo.vue'
export default {
......@@ -114,6 +139,7 @@ export default {
},
data() {
return {
iconUrl,
activeIndex: '',
customIndex: '',
employeelist: [],
......@@ -252,6 +278,8 @@ export default {
line-height: 22px;
}
.info-name {
display: flex;
align-items: center;
font-size: 16px;
color: #333;
font-weight: 500;
......@@ -263,7 +291,15 @@ export default {
font-size: 14px;
}
.send {
position: relative;
color: #666;
span {
img {
position: absolute;
right: -6px;
top: 4px;
}
}
}
.unsend {
padding: 3px 10px;
......@@ -272,7 +308,13 @@ export default {
border-radius: 2px;
}
.customer-table {
display: table;
display: flex;
&.send {
width: 70px;
}
span {
vertical-align: middle;
}
}
div {
margin-top: 10px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!