Commit bde6a7f7 by cwq0219
2 parents f1630ab2 c81f1f03
...@@ -278,3 +278,15 @@ html { ...@@ -278,3 +278,15 @@ html {
.marketing .table-img .el-table--medium td.el-table__cell { .marketing .table-img .el-table--medium td.el-table__cell {
padding: 2px 0 !important; 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 \ No newline at end of file
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</div> </div>
</div> </div>
<p class="edit-title">{{ title }}代金券</p> <p class="edit-title">{{ title }}代金券</p>
<glsx-combi-form class="edit-form-container" style="min-height: 570px;" ref="editFormRef" labelWidth="144px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" style="min-height: 570px;" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="useChannelHtml"> <template slot="useChannelHtml">
<el-radio v-model="editForm.useChannel" label="1" :disabled="apear != 'couponAdd'">线上商品</el-radio> <el-radio v-model="editForm.useChannel" label="1" :disabled="apear != 'couponAdd'">线上商品</el-radio>
<el-radio v-model="editForm.useChannel" label="2" :disabled="apear != 'couponAdd'">到店核销</el-radio> <el-radio v-model="editForm.useChannel" label="2" :disabled="apear != 'couponAdd'">到店核销</el-radio>
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</div> </div>
</div> </div>
<p class="edit-title">{{ title }}折扣劵</p> <p class="edit-title">{{ title }}折扣劵</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="effectiveHtml"> <template slot="effectiveHtml">
<el-form-item prop="effectiveTime" style="margin-top: 12px; display: block"> <el-form-item prop="effectiveTime" style="margin-top: 12px; display: block">
<el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'"> <el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'">
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</div> </div>
</div> </div>
<p class="edit-title">{{ title }}兑换券</p> <p class="edit-title">{{ title }}兑换券</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="effectiveHtml"> <template slot="effectiveHtml">
<el-form-item prop="effectiveTime" style="margin-top: 12px;display: block;"> <el-form-item prop="effectiveTime" style="margin-top: 12px;display: block;">
<el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'"> <el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'">
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="edit-share marketing p-t-20 edit-box"> <div class="edit-share marketing p-t-20 edit-box">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}会员服务</p> <p class="edit-title">{{ title }}会员服务</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="effectiveHtml"> <template slot="effectiveHtml">
<el-radio v-model="editForm.effectiveType" label="3" :disabled="apear != 'couponAdd'">无有效期</el-radio> <el-radio v-model="editForm.effectiveType" label="3" :disabled="apear != 'couponAdd'">无有效期</el-radio>
<br /> <br />
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</div> </div>
<div class="container"> <div class="container">
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="100px" :formObj="searchForm" :formData="searchFormData"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
<span slot="footer" class="footer-btns"> <span slot="footer" class="footer-btns">
<el-button :size="size" @click="handleReset">重置</el-button> <el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="coupon" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="coupon" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button v-if="scope.scope.status == '1'" type="text" @click="start(scope.scope)">生效</el-button> <el-button v-if="scope.scope.status == '1'" type="text" @click="start(scope.scope)">生效</el-button>
<el-button v-if="scope.scope.status == '2'" type="text" @click="end(scope.scope)">失效</el-button> <el-button v-if="scope.scope.status == '2'" type="text" @click="end(scope.scope)">失效</el-button>
...@@ -35,11 +35,13 @@ ...@@ -35,11 +35,13 @@
</template> </template>
<script> <script>
import url from '@/assets/empty.png'
export default { export default {
name: 'coupon', name: 'coupon',
data() { data() {
return { return {
size: 'small', size: 'small',
url: url,
// 下架 // 下架
isDownVisible: false, isDownVisible: false,
downForm: { downForm: {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="marketing pro-group p-t-20"> <div class="marketing pro-group p-t-20">
<div class="container"> <div class="container">
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="100px" :formObj="searchForm" :formData="searchFormData"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
<span slot="footer" class="footer-btns"> <span slot="footer" class="footer-btns">
<el-button :size="size" @click="handleReset">重置</el-button> <el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</span> </span>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="receiveList" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable> <GLTable ref="receiveList" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"></GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
</div> </div>
...@@ -53,11 +53,13 @@ ...@@ -53,11 +53,13 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
export default { export default {
name: 'receiveDetail', name: 'receiveDetail',
data() { data() {
return { return {
size: 'small', size: 'small',
url: url,
coupon: { coupon: {
couponName: '', couponName: '',
stock: '', stock: '',
...@@ -226,6 +228,11 @@ export default { ...@@ -226,6 +228,11 @@ export default {
phone: '' phone: ''
} }
this.handleSearch() this.handleSearch()
},
setTableFinishFun() {
//接收到的数据为空
this.$refs.receiveList.data.length ? (this.$refs.receiveList.tableHeightValues = '') : this.$refs.receiveList.setTableHeightFun()
} }
} }
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="marketing pro-group p-t-20"> <div class="marketing pro-group p-t-20">
<div class="container"> <div class="container">
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="100px" :formObj="searchForm" :formData="searchFormData"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
<span slot="footer" class="footer-btns"> <span slot="footer" class="footer-btns">
<el-button :size="size" @click="handleReset">重置</el-button> <el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</span> </span>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="writeOffList" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"></GLTable> <GLTable ref="writeOffList" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"></GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<!-- 优惠券核销 --> <!-- 优惠券核销 -->
...@@ -53,12 +53,13 @@ ...@@ -53,12 +53,13 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
export default { export default {
name: 'writeOffDetail', name: 'writeOffDetail',
data() { data() {
return { return {
size: 'small', size: 'small',
// 下架 url: url,
writeOffVisible: false, writeOffVisible: false,
coupon: { coupon: {
couponName: '', couponName: '',
...@@ -262,6 +263,11 @@ export default { ...@@ -262,6 +263,11 @@ export default {
verificationCode: '' verificationCode: ''
} }
this.handleSearch() this.handleSearch()
},
setTableFinishFun() {
//接收到的数据为空
this.$refs.writeOffList.data.length ? (this.$refs.writeOffList.tableHeightValues = '') : this.$refs.writeOffList.setTableHeightFun()
} }
} }
} }
......
...@@ -22,7 +22,21 @@ ...@@ -22,7 +22,21 @@
class="sale-select" class="sale-select"
v-show="basicForm.userList && basicForm.userList.length != 0" 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 <el-tag
v-for="(tag, idx) in basicForm.userList" v-for="(tag, idx) in basicForm.userList"
:key="idx" :key="idx"
...@@ -32,7 +46,7 @@ ...@@ -32,7 +46,7 @@
@close="remove(tag)" @close="remove(tag)"
>{{ tag.staffName }}</el-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> </div>
</el-form-item> </el-form-item>
<el-form-item label="选择客户" prop="selectType"> <el-form-item label="选择客户" prop="selectType">
...@@ -595,7 +609,8 @@ export default { ...@@ -595,7 +609,8 @@ export default {
align-items: center; align-items: center;
} }
.input-tag-wrapper { .input-tag-wrapper {
max-width: 300px; max-height: 68px;
overflow: auto;
position: relative; position: relative;
font-size: 14px; font-size: 14px;
background-color: #fff; background-color: #fff;
...@@ -603,32 +618,28 @@ export default { ...@@ -603,32 +618,28 @@ export default {
border-radius: 4px; border-radius: 4px;
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
box-sizing: border-box; box-sizing: border-box;
color: #606266; color: #666;
display: inline-block; display: inline-block;
outline: none; outline: none;
padding: 0 10px 0 5px; padding: 5px 5px 0px 5px;
flex-wrap: wrap; flex-wrap: wrap;
line-height: 32px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%; width: 450px;
display: flex; display: flex;
align-items: center; align-items: center;
/deep/ input { margin-top: 6px;
/* input { */ font-size: 14px;
/* background-color: red!important; 调试用的样式 */ i {
outline: none !important; color: #75acff;
border: none !important; margin-right: 3px;
} font-size: 14px;
/deep/ .el-input {
min-width: 150px;
width: auto;
flex: 1;
} }
} }
.el-tag { .el-tag {
margin-right: 4px; margin-right: 4px;
height: 26px; height: 26px;
line-height: 24px; line-height: 24px;
margin-bottom: 5px;
} }
.tag-input { .tag-input {
background: transparent; background: transparent;
......
...@@ -20,13 +20,25 @@ ...@@ -20,13 +20,25 @@
<div class="sale-select" v-show="basicForm.userList"> <div class="sale-select" v-show="basicForm.userList">
<div :key="key" class="el-input-tag input-tag-wrapper"> <div :key="key" class="el-input-tag input-tag-wrapper">
<el-tag <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" v-for="(tag, idx) in basicForm.userList"
:key="idx" :key="idx"
closable closable
:disable-transitions="false" :disable-transitions="false"
@close="remove(tag)" @close="remove(tag)"
>{{ tag.staffName }}</el-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> </div>
<div class="form-tips">群主收到通知后,可选择他管理的客户群并群发该内容。</div> <div class="form-tips">群主收到通知后,可选择他管理的客户群并群发该内容。</div>
...@@ -370,6 +382,8 @@ export default { ...@@ -370,6 +382,8 @@ export default {
} }
.input-tag-wrapper { .input-tag-wrapper {
max-width: 300px; max-width: 300px;
max-height: 68px;
overflow: auto;
position: relative; position: relative;
font-size: 14px; font-size: 14px;
background-color: #fff; background-color: #fff;
...@@ -377,32 +391,28 @@ export default { ...@@ -377,32 +391,28 @@ export default {
border-radius: 4px; border-radius: 4px;
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
box-sizing: border-box; box-sizing: border-box;
color: #606266; color: #666;
display: inline-block; display: inline-block;
outline: none; outline: none;
padding: 0 10px 0 5px; padding: 5px 5px 0px 5px;
flex-wrap: wrap; flex-wrap: wrap;
line-height: 32px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%; width: 450px;
display: flex; display: flex;
align-items: center; align-items: center;
/deep/ input { margin-top: 6px;
/* input { */ font-size: 14px;
/* background-color: red!important; 调试用的样式 */ i {
outline: none !important; color: #75acff;
border: none !important; margin-right: 3px;
} font-size: 14px;
/deep/ .el-input {
min-width: 150px;
width: auto;
flex: 1;
} }
} }
.el-tag { .el-tag {
margin-right: 4px; margin-right: 4px;
height: 26px; height: 26px;
line-height: 24px; line-height: 24px;
margin-bottom: 5px;
} }
.tag-input { .tag-input {
background: transparent; background: transparent;
......
...@@ -6,12 +6,24 @@ ...@@ -6,12 +6,24 @@
<div class="el-input-tag input-tag-wrapper" @click="foucusTagInput"> <div class="el-input-tag input-tag-wrapper" @click="foucusTagInput">
<div class="tag-box"> <div class="tag-box">
<el-tag <el-tag
effect="plain"
type="info"
v-for="(tag, idx) in innerTags" v-for="(tag, idx) in innerTags"
:key="idx" :key="idx"
closable closable
:disable-transitions="false" :disable-transitions="false"
@close="remove(tag)" @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> </div>
<el-input <el-input
...@@ -162,10 +174,15 @@ export default { ...@@ -162,10 +174,15 @@ export default {
} }
} }
.tag-box { .tag-box {
max-height: 66px; max-height: 60px;
overflow: auto; overflow: auto;
display: flex;
flex-direction: row;
flex-wrap: wrap;
} }
.input-tag-wrapper { .input-tag-wrapper {
// max-height: 68px;
// overflow: auto;
position: relative; position: relative;
font-size: 14px; font-size: 14px;
background-color: #fff; background-color: #fff;
...@@ -173,16 +190,17 @@ export default { ...@@ -173,16 +190,17 @@ export default {
border-radius: 4px; border-radius: 4px;
border: 1px solid #dcdfe6; border: 1px solid #dcdfe6;
box-sizing: border-box; box-sizing: border-box;
color: #606266; color: #666;
display: inline-block; display: inline-block;
outline: none; outline: none;
padding: 0 0 0 5px; padding: 5px 5px 0px 5px;
flex-wrap: wrap; flex-wrap: wrap;
line-height: 32px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
width: 100%; width: 450px;
display: flex; display: flex;
align-items: center; align-items: center;
margin-top: 6px;
font-size: 14px;
/deep/ input { /deep/ input {
/* input { */ /* input { */
/* background-color: red!important; 调试用的样式 */ /* background-color: red!important; 调试用的样式 */
...@@ -194,11 +212,17 @@ export default { ...@@ -194,11 +212,17 @@ export default {
width: auto; width: auto;
flex: 1; flex: 1;
} }
i {
color: #75acff;
margin-right: 3px;
font-size: 14px;
}
} }
.el-tag { .el-tag {
margin-right: 4px; margin-right: 4px;
height: 26px; height: 26px;
line-height: 24px; line-height: 24px;
margin-bottom: 5px;
} }
.tag-input { .tag-input {
background: transparent; background: transparent;
...@@ -221,15 +245,4 @@ export default { ...@@ -221,15 +245,4 @@ export default {
height: 32px; height: 32px;
line-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> </style>
...@@ -142,7 +142,12 @@ export default { ...@@ -142,7 +142,12 @@ export default {
this.savedRange.insertNode(node) this.savedRange.insertNode(node)
// 更新双向绑定数据 // 更新双向绑定数据
let target = this.$refs.wTextareaContent let target = this.$refs.wTextareaContent
// 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.updateData(target.innerHTML)
}
this.currentText = target.innerText this.currentText = target.innerText
this.$emit('updateText', this.currentText) this.$emit('updateText', this.currentText)
}, },
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<div class="tips-text"> <div class="tips-text">
<img src="../../../assets/guestCustom/tips.png" class="tips-icon" alt /> <img src="../../../assets/guestCustom/tips.png" class="tips-icon" alt />
<span v-if="form == 'customer'">每位客户每天可接收1条群发消息,超过接收上限的客户将无法再收到群发消息。</span> <span v-if="form == 'customer'">每位客户每天可接收1条群发消息,超过接收上限的客户将无法再收到群发消息。</span>
<span v-if="form == 'customerGroup'">每位客户群每天可接收1条群发消息,超过接收上限的客户群将无法再收到群发消息。</span> <span v-if="form == 'customerGroup'">每个客户群每天可接收1条群发消息,超过接收上限的客户群将无法再收到群发消息。</span>
</div> </div>
</div> </div>
<ActivityModel ref="activity" @selectActivity="selectActivity"></ActivityModel> <ActivityModel ref="activity" @selectActivity="selectActivity"></ActivityModel>
......
...@@ -59,7 +59,6 @@ export default { ...@@ -59,7 +59,6 @@ export default {
{ {
label: '群主', label: '群主',
name: 'staffId', name: 'staffId',
labelWidth: 28,
type: 'select', type: 'select',
isClear: true, isClear: true,
optionLabel: 'staffName', optionLabel: 'staffName',
...@@ -67,7 +66,7 @@ export default { ...@@ -67,7 +66,7 @@ export default {
optionList: [] optionList: []
}, },
{ {
label: '送达状态', label: '消息送达状态',
name: 'status', name: 'status',
type: 'select', type: 'select',
isClear: true, isClear: true,
......
...@@ -28,9 +28,21 @@ ...@@ -28,9 +28,21 @@
<div class="info-text"> <div class="info-text">
<div class="info-name"> <div class="info-name">
{{ item.staffName }} {{ item.staffName }}
<span <span :class="[item.status == 0 ? 'unsend' : 'send']">
:class="[item.status == 0 ? 'unsend' : 'send']" {{ item.status == 0 ? '未发送' : item.status == 1 ? '已发送' : '发送失败' }}
>{{ item.status == 0 ? '未发送' : item.status == 1 ? '已发送' : '发送失败' }}</span> <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>
<div class="info-num">共{{ item.customerCount ? item.customerCount : 0 }}个客户</div> <div class="info-num">共{{ item.customerCount ? item.customerCount : 0 }}个客户</div>
</div> </div>
...@@ -76,10 +88,21 @@ ...@@ -76,10 +88,21 @@
<div class="info-text"> <div class="info-text">
<div class="info-name"> <div class="info-name">
{{ item.customerName }} {{ item.customerName }}
<div <div class="customer-table" :class="[item.status == 0 ? 'unsend' : 'send']">
class="customer-table" {{ item.status == 0 ? '未送达' : item.status == 1 ? '已送达' : '送达失败' }}
:class="[item.status == 0 ? 'unsend' : 'send']" <el-popover
>{{ item.status == 0 ? '未送达' : item.status == 1 ? '已送达' : '送达失败' }}</div> 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> </div>
<div class="info-right"> <div class="info-right">
...@@ -106,6 +129,8 @@ ...@@ -106,6 +129,8 @@
</div> </div>
</template> </template>
<script> <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 Vue from 'vue'
import BasicInof from './components/basicInfo.vue' import BasicInof from './components/basicInfo.vue'
export default { export default {
...@@ -114,6 +139,7 @@ export default { ...@@ -114,6 +139,7 @@ export default {
}, },
data() { data() {
return { return {
iconUrl,
activeIndex: '', activeIndex: '',
customIndex: '', customIndex: '',
employeelist: [], employeelist: [],
...@@ -252,6 +278,8 @@ export default { ...@@ -252,6 +278,8 @@ export default {
line-height: 22px; line-height: 22px;
} }
.info-name { .info-name {
display: flex;
align-items: center;
font-size: 16px; font-size: 16px;
color: #333; color: #333;
font-weight: 500; font-weight: 500;
...@@ -263,7 +291,15 @@ export default { ...@@ -263,7 +291,15 @@ export default {
font-size: 14px; font-size: 14px;
} }
.send { .send {
position: relative;
color: #666; color: #666;
span {
img {
position: absolute;
right: -6px;
top: 4px;
}
}
} }
.unsend { .unsend {
padding: 3px 10px; padding: 3px 10px;
...@@ -272,7 +308,13 @@ export default { ...@@ -272,7 +308,13 @@ export default {
border-radius: 2px; border-radius: 2px;
} }
.customer-table { .customer-table {
display: table; display: flex;
&.send {
width: 70px;
}
span {
vertical-align: middle;
}
} }
div { div {
margin-top: 10px; margin-top: 10px;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="edit-share marketing p-t-20 edit-box"> <div class="edit-share marketing p-t-20 edit-box">
<div class="container edit-container"> <div class="container edit-container">
<p class="edit-title">{{ title }}秒杀活动</p> <p class="edit-title">{{ title }}秒杀活动</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="140px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="activityTimeHtml"> <template slot="activityTimeHtml">
<!-- <el-form-item> --> <!-- <el-form-item> -->
<el-date-picker v-model="editForm.activityTime" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :picker-options="pickerOptions" :default-time="['00:00:00', '23:59:59']" :disabled="isDisabled" clearable></el-date-picker> <el-date-picker v-model="editForm.activityTime" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :picker-options="pickerOptions" :default-time="['00:00:00', '23:59:59']" :disabled="isDisabled" clearable></el-date-picker>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</div> </div>
<div class="container"> <div class="container">
<div> <div>
<glsx-combi-form ref="showSearch" labelWidth="100px" :formObj="searchForm" :formData="searchFormData"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
<span slot="footer" class="footer-btns"> <span slot="footer" class="footer-btns">
<el-button :size="size" @click="handleReset">重置</el-button> <el-button :size="size" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button> <el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="activity" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="activity" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<template slot="activityImg" slot-scope="scope"> <template slot="activityImg" slot-scope="scope">
<img class="img-60" :src="scope.scope.activityImg" /> <img class="img-60" :src="scope.scope.activityImg" />
</template> </template>
...@@ -39,11 +39,13 @@ ...@@ -39,11 +39,13 @@
<script> <script>
import shareDialog from '../productGroup/components/shareDialog' import shareDialog from '../productGroup/components/shareDialog'
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
export default { export default {
name: 'activity', name: 'activity',
data() { data() {
return { return {
size: 'small', size: 'small',
url: url,
downForm: { downForm: {
id: '', id: '',
offReason: '', offReason: '',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!