Commit 75796436 by yangming

1.0.1

1 parent 90a3d1d0
.vdr {
touch-action: none;
position: absolute;
box-sizing: border-box;
border: 1px dashed black;
}
.handle {
box-sizing: border-box;
position: absolute;
width: 10px;
height: 10px;
background: #EEE;
border: 1px solid #333;
}
.handle-tl {
top: -10px;
left: -10px;
cursor: nw-resize;
}
.handle-tm {
top: -10px;
left: 50%;
margin-left: -5px;
cursor: n-resize;
}
.handle-tr {
top: -10px;
right: -10px;
cursor: ne-resize;
}
.handle-ml {
top: 50%;
margin-top: -5px;
left: -10px;
cursor: w-resize;
}
.handle-mr {
top: 50%;
margin-top: -5px;
right: -10px;
cursor: e-resize;
}
.handle-bl {
bottom: -10px;
left: -10px;
cursor: sw-resize;
}
.handle-bm {
bottom: -10px;
left: 50%;
margin-left: -5px;
cursor: s-resize;
}
.handle-br {
bottom: -10px;
right: -10px;
cursor: se-resize;
}
@media only screen and (max-width: 768px) {
[class*="handle-"]:before {
content: '';
left: -10px;
right: -10px;
bottom: -10px;
top: -10px;
position: absolute;
}
}
...@@ -99,7 +99,13 @@ export default { ...@@ -99,7 +99,13 @@ export default {
}, },
methods: { methods: {
jumpUrl() { jumpUrl() {
this.$history.push('/custom/tagsManage/index') const link = document.createElement('a')
link.setAttribute('href', location.host+'/custom/tagsManage/index') //设置下载文件的url地址
//link.setAttribute('download', 'download'); //用于设置下载文件的文件名
link.click()
// console.log(location.host+'/custom/tagsManage/index')
// this.$history.push('/custom/tagsManage/index')
// window.open(location.host+'/custom/tagsManage/index')
}, },
init(item) { init(item) {
this.labelGroupName = '' this.labelGroupName = ''
...@@ -118,7 +124,8 @@ export default { ...@@ -118,7 +124,8 @@ export default {
pageSize: 1000, pageSize: 1000,
shopId: this.$globalState.session.merchantId, shopId: this.$globalState.session.merchantId,
labelGroupName: this.labelGroupName, labelGroupName: this.labelGroupName,
labelTypesStr: '自店标签,企业标签' labelTypesStr: '自店标签,企业标签',
edition: this.$globalState.session.merchantModel
} }
}) })
.then(res => { .then(res => {
......
<template> <template>
<div class="square-main"> <div class="square-main">
<el-dialog title="选择活动" :visible.sync="dialogVisible" width="70%" :before-close="handleClose"> <el-dialog title="选择活动" :visible.sync="dialogVisible" width="1088px" :before-close="handleClose">
<div class="model-panel"> <div class="model-panel">
<div class="model-panel-tab"> <div class="model-panel-tab">
<label>活动类型:</label> <label>活动类型:</label>
...@@ -18,37 +18,43 @@ ...@@ -18,37 +18,43 @@
<div class="model-item-title" :title="item.couponName" v-show="activeName == 1">{{ item.couponName }}</div> <div class="model-item-title" :title="item.couponName" v-show="activeName == 1">{{ item.couponName }}</div>
<div class="model-item-title" :title="item.packageName" v-show="activeName == 4">{{ item.packageName }}</div> <div class="model-item-title" :title="item.packageName" v-show="activeName == 4">{{ item.packageName }}</div>
<div class="model-item-title" :title="item.activityName" v-show="activeName == 5">{{ item.activityName }}</div> <div class="model-item-title" :title="item.activityName" v-show="activeName == 5">{{ item.activityName }}</div>
<div class="model-item-content" v-show="activeName == 1 || activeName == 4"></div>
<div class="model-item-content" v-show="activeName == 2">剩余数量:{{ item.residueAmount }}</div>
<div class="model-item-content" v-show="activeName == 1">剩余数量:{{ item.remainAmount }}</div> <div class="model-item-content" v-show="activeName == 1">剩余数量:{{ item.remainAmount }}</div>
<div class="model-item-content" v-show="activeName == 3">价格:{{ item.goodPrice }}元</div> <div class="model-item-content" v-show="activeName == 3">领取方式:免费领用</div>
<div class="model-item-content" v-show="activeName == 4">价格:{{ item.packagePrice }}元</div> <div class="model-item-content" v-show="activeName == 4">领取方式:付费购买</div>
<div class="model-item-content" v-show="activeName == 5"></div>
<div class="model-item-content" v-show="activeName == 5"></div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 1">有效期:{{ item.effectiveDays }}天</div> <div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 1">有效期:{{ item.effectiveDays }}天</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 3">有效期:无限制</div> <div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 3">有效期:无限制</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 2">有效期:{{ item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : '' }}~{{ item.effectiveEndTime ? item.effectiveEndTime.split(' ')[0] : '' }}</div> <div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 2">有效期:{{ item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : '' }}~{{ item.effectiveEndTime ? item.effectiveEndTime.split(' ')[0] : '' }}</div>
<div class="model-item-content" v-show="activeName == 3">有效期:{{ item.effectivedDay }}天</div> <div class="model-item-content" v-show="activeName == 3"></div>
<div class="model-item-content model-item-contents" v-show="activeName == 3">
试用天数:
<span>{{ item.freeDay }}天</span>
</div>
<div class="model-item-content" v-show="activeName == 2"> <div class="model-item-content" v-show="activeName == 2">
类型: 使用途径:
<span>{{ item.discountType == 2 ? '折扣券' : item.discountType == 3 ? '代金券' : item.discountType == 4 ? '兑换券' : '' }}</span> {{ item.useChannel == 1 ? '线上商品' : '到店核销' }}
</div> </div>
<div class="model-item-content" v-show="activeName == 1"> <div class="model-item-content" v-show="activeName == 1">
类型: 类型:
<span>精品券</span> <span>精品券</span>
</div> </div>
<div class="model-item-content" v-show="activeName == 3"> <div class="model-item-content" v-show="activeName == 4 || activeName == 5"></div>
类型: <div class="model-item-content model-item-contents" v-show="activeName == 4">
<span>权益卡</span> 销售价格:
<span>{{ item.packagePrice }}元</span>
</div> </div>
<div class="model-item-content" v-show="activeName == 4"> <div class="model-item-content" v-if="activeName == 5">
类型: 开始时间:
<span>权益套餐</span> {{ item.startTime }}
</div> </div>
<div class="model-item-content" v-if="activeName == 5"> <div class="model-item-content" v-if="activeName == 5">
活动时间: 结束时间:
{{ item.startTime.split(' ')[0] }}-{{ item.endTime.split(' ')[0] }} {{ item.endTime }}
</div>
<div class="model-item-content model-item-contents" v-show="activeName == 2">
数量:
<span>{{ item.residueAmount }}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -86,7 +92,7 @@ export default { ...@@ -86,7 +92,7 @@ export default {
methods: { methods: {
handleSelectItem(item) { handleSelectItem(item) {
this.selectItem = item this.selectItem = item
if(item.equityClassId) { if (item.equityClassId) {
this.selectItem.id = item.equityClassId this.selectItem.id = item.equityClassId
} }
console.log(this.selectItem) console.log(this.selectItem)
...@@ -229,27 +235,33 @@ export default { ...@@ -229,27 +235,33 @@ export default {
} }
} }
.model-item-panel { .model-item-panel {
display: grid; // display: grid;
grid-template-columns: repeat(4, 25%); // grid-template-columns: repeat(4, 25%);
grid-row-gap: 10px; // grid-row-gap: 10px;
height: 38vh; max-height: 38vh;
padding: 10px;
overflow: auto; overflow: auto;
text-align: center; display: flex;
flex-wrap: wrap;
align-items: stretch;
flex-direction: row;
.model-item { .model-item {
width: 240px;
margin-right: 24px;
margin-bottom: 24px;
padding: 12px 16px;
position: relative; position: relative;
height: 128px; height: 128px;
background: #ffffff; background: #ffffff;
border-radius: 4px; border-radius: 4px;
border: 2px solid #e6e6e6; border: 1px solid #e6e6e6;
padding: 14px 24px; padding: 14px 24px;
box-sizing: border-box; box-sizing: border-box;
margin-right: 10px;
&:nth-child(4n) { &:nth-child(4n) {
margin-right: 0px; margin-right: 0px;
} }
&.checked { &.checked {
border: 2px solid #5850ff; background: rgba(88, 80, 255, 0.1);
border: 1px solid #5850ff;
} }
&-qrcode { &-qrcode {
position: absolute; position: absolute;
...@@ -273,15 +285,21 @@ export default { ...@@ -273,15 +285,21 @@ export default {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
color: #666666; color: #666666;
line-height: 17px; line-height: 16px;
height: 16px;
margin-top: 6px; margin-top: 6px;
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
span { span {
color: #5850ff; color: #5850ff;
font-size: 20px;
} }
} }
&-contents {
line-height: 22px;
height: 22px;
}
} }
} }
} }
......
...@@ -21,7 +21,6 @@ export default { ...@@ -21,7 +21,6 @@ export default {
return { return {
list: [ list: [
['微笑', '撇嘴', '色', '发呆', '得意', '流泪', '害羞', '闭嘴'], ['微笑', '撇嘴', '色', '发呆', '得意', '流泪', '害羞', '闭嘴'],
['睡', '大哭', '尴尬', '发怒', '调皮', '呲牙', '惊讶', '难过'][('酷', '冷汗', '抓狂', '吐', '偷笑', '可爱', '白眼', '傲慢')],
['饥饿', '困', '惊恐', '流汗', '憨笑', '大兵', '奋斗', '咒骂'], ['饥饿', '困', '惊恐', '流汗', '憨笑', '大兵', '奋斗', '咒骂'],
['疑问', '嘘', '晕', '折磨', '衰', '骷髅', '敲打', '再见'], ['疑问', '嘘', '晕', '折磨', '衰', '骷髅', '敲打', '再见'],
['擦汗', '抠鼻', '鼓掌', '糗大了', '坏笑', '左哼哼', '右哼哼', '哈欠'], ['擦汗', '抠鼻', '鼓掌', '糗大了', '坏笑', '左哼哼', '右哼哼', '哈欠'],
......
...@@ -195,7 +195,7 @@ export default { ...@@ -195,7 +195,7 @@ export default {
let htm = target.innerHTML let htm = target.innerHTML
const list = ['微笑', '撇嘴', '色', '发呆', '得意', '流泪', '害羞', '闭嘴', '睡', '大哭', '尴尬', '发怒', '调皮', '呲牙', '惊讶', '难过', '酷', '冷汗', '抓狂', '吐', '偷笑', '可爱', '白眼', '傲慢', '饥饿', '困', '惊恐', '流汗', '憨笑', '大兵', '奋斗', '咒骂', '疑问', '嘘', '晕', '折磨', '衰', '骷髅', '敲打', '再见', '擦汗', '抠鼻', '鼓掌', '糗大了', '坏笑', '左哼哼', '右哼哼', '哈欠', '鄙视', '委屈', '快哭了', '阴险', '亲亲', '吓', '可怜', '菜刀', '西瓜', '啤酒', '篮球', '乒乓', '咖啡', '饭', '猪头', '玫瑰', '凋谢', '示爱', '爱心', '心碎', '蛋糕', '闪电', '炸弹', '刀', '足球', '瓢虫', '便便', '月亮', '太阳', '礼物', '拥抱', '强', '弱', '握手', '胜利', '抱拳', '勾引', '拳头', '差劲', '爱你', 'NO', 'OK', '爱情', '飞吻', '跳跳', '发抖', '怄火', '转圈', '磕头', '回头', '跳绳', '挥手', '激动', '街舞', '献吻', '左太极', '右太极'] const list = ['微笑', '撇嘴', '色', '发呆', '得意', '流泪', '害羞', '闭嘴', '睡', '大哭', '尴尬', '发怒', '调皮', '呲牙', '惊讶', '难过', '酷', '冷汗', '抓狂', '吐', '偷笑', '可爱', '白眼', '傲慢', '饥饿', '困', '惊恐', '流汗', '憨笑', '大兵', '奋斗', '咒骂', '疑问', '嘘', '晕', '折磨', '衰', '骷髅', '敲打', '再见', '擦汗', '抠鼻', '鼓掌', '糗大了', '坏笑', '左哼哼', '右哼哼', '哈欠', '鄙视', '委屈', '快哭了', '阴险', '亲亲', '吓', '可怜', '菜刀', '西瓜', '啤酒', '篮球', '乒乓', '咖啡', '饭', '猪头', '玫瑰', '凋谢', '示爱', '爱心', '心碎', '蛋糕', '闪电', '炸弹', '刀', '足球', '瓢虫', '便便', '月亮', '太阳', '礼物', '拥抱', '强', '弱', '握手', '胜利', '抱拳', '勾引', '拳头', '差劲', '爱你', 'NO', 'OK', '爱情', '飞吻', '跳跳', '发抖', '怄火', '转圈', '磕头', '回头', '跳绳', '挥手', '激动', '街舞', '献吻', '左太极', '右太极']
const cutImg = htm.replaceAll('<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/','') const cutImg = htm.replaceAll('<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/','')
const replaceImg = cutImg.replace(/(\d).gif">/g,function(str){ const replaceImg = cutImg.replace(/(\d){1,2}.gif">/g,function(str){
let s = list[str.split('.')[0]] let s = list[str.split('.')[0]]
return `[${s}]` return `[${s}]`
}) })
...@@ -229,7 +229,7 @@ export default { ...@@ -229,7 +229,7 @@ export default {
const list = ['微笑', '撇嘴', '色', '发呆', '得意', '流泪', '害羞', '闭嘴', '睡', '大哭', '尴尬', '发怒', '调皮', '呲牙', '惊讶', '难过', '酷', '冷汗', '抓狂', '吐', '偷笑', '可爱', '白眼', '傲慢', '饥饿', '困', '惊恐', '流汗', '憨笑', '大兵', '奋斗', '咒骂', '疑问', '嘘', '晕', '折磨', '衰', '骷髅', '敲打', '再见', '擦汗', '抠鼻', '鼓掌', '糗大了', '坏笑', '左哼哼', '右哼哼', '哈欠', '鄙视', '委屈', '快哭了', '阴险', '亲亲', '吓', '可怜', '菜刀', '西瓜', '啤酒', '篮球', '乒乓', '咖啡', '饭', '猪头', '玫瑰', '凋谢', '示爱', '爱心', '心碎', '蛋糕', '闪电', '炸弹', '刀', '足球', '瓢虫', '便便', '月亮', '太阳', '礼物', '拥抱', '强', '弱', '握手', '胜利', '抱拳', '勾引', '拳头', '差劲', '爱你', 'NO', 'OK', '爱情', '飞吻', '跳跳', '发抖', '怄火', '转圈', '磕头', '回头', '跳绳', '挥手', '激动', '街舞', '献吻', '左太极', '右太极'] const list = ['微笑', '撇嘴', '色', '发呆', '得意', '流泪', '害羞', '闭嘴', '睡', '大哭', '尴尬', '发怒', '调皮', '呲牙', '惊讶', '难过', '酷', '冷汗', '抓狂', '吐', '偷笑', '可爱', '白眼', '傲慢', '饥饿', '困', '惊恐', '流汗', '憨笑', '大兵', '奋斗', '咒骂', '疑问', '嘘', '晕', '折磨', '衰', '骷髅', '敲打', '再见', '擦汗', '抠鼻', '鼓掌', '糗大了', '坏笑', '左哼哼', '右哼哼', '哈欠', '鄙视', '委屈', '快哭了', '阴险', '亲亲', '吓', '可怜', '菜刀', '西瓜', '啤酒', '篮球', '乒乓', '咖啡', '饭', '猪头', '玫瑰', '凋谢', '示爱', '爱心', '心碎', '蛋糕', '闪电', '炸弹', '刀', '足球', '瓢虫', '便便', '月亮', '太阳', '礼物', '拥抱', '强', '弱', '握手', '胜利', '抱拳', '勾引', '拳头', '差劲', '爱你', 'NO', 'OK', '爱情', '飞吻', '跳跳', '发抖', '怄火', '转圈', '磕头', '回头', '跳绳', '挥手', '激动', '街舞', '献吻', '左太极', '右太极']
const cutImg = htm.replaceAll('<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/','') const cutImg = htm.replaceAll('<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/','')
console.log(cutImg) console.log(cutImg)
const replaceImg = cutImg.replace(/(\d).gif">/g,function(str){ const replaceImg = cutImg.replace(/(\d){1,2}.gif">/g,function(str){
let s = list[str.split('.')[0]] let s = list[str.split('.')[0]]
return `[${s}]` return `[${s}]`
}) })
......
...@@ -256,16 +256,22 @@ export default { ...@@ -256,16 +256,22 @@ export default {
}) })
this.$refs.welcome.updateList(previewList) this.$refs.welcome.updateList(previewList)
}) })
},
resize() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
} }
}, },
mounted() { mounted() {
this.resize()
window.addEventListener('resize', () => {
this.resize()
})
const { id, codeUuid } = this.$route.params const { id, codeUuid } = this.$route.params
if (id != -1) { if (id) {
this.codeId = id this.codeId = id
this.detailChannelCode(id, codeUuid) this.detailChannelCode(id, codeUuid)
} }
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
} }
} }
</script> </script>
......
<template> <template>
<div> <div>
<div class="form-header"> <div class="form-header">
<el-button type="primary" size="small" icon="el-icon-add" @click="handleAddCode">新建渠道活码</el-button> <GLButton type="primary" size="small" icon="el-icon-add" @click="handleAddCode" fn="新增活码">新建渠道活码</GLButton>
</div> </div>
<div class="form-panel scrm-box-f"> <div class="form-panel scrm-box-f">
<el-form :inline="true" :model="tableSearchForm" class="follow-form-item"> <el-form :inline="true" :model="tableSearchForm" class="follow-form-item">
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
</el-form> </el-form>
<GLTable ref="table" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams"> <GLTable ref="table" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams">
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">数据</el-button> <GLButton type="text" @click="handleDetail(scope.scope)" fn="到店咨询客户数据">数据</GLButton>
<el-button type="text" @click="handleEdit(scope.scope)">修改</el-button> <GLButton type="text" @click="handleEdit(scope.scope)" fn="活码编辑">修改</GLButton>
<el-button type="text" @click="handleDelete(scope.scope)">删除</el-button> <el-button type="text" @click="handleDelete(scope.scope)">删除</el-button>
<el-button type="text" @click="handleAddPoster(scope.scope)">活码海报</el-button> <GLButton type="text" @click="handleAddPoster(scope.scope)" fn="活码海报">活码海报</GLButton>
</div> </div>
<div slot="staffInfo" slot-scope="scope"> <div slot="staffInfo" slot-scope="scope">
<el-popover trigger="hover" placement="top" v-if="scope.scope.staffInfo.length > 3"> <el-popover trigger="hover" placement="top" v-if="scope.scope.staffInfo.length > 3">
...@@ -154,7 +154,7 @@ export default { ...@@ -154,7 +154,7 @@ export default {
this.listChannelCodeByPage() this.listChannelCodeByPage()
}, },
handleAddCode() { handleAddCode() {
this.$router.push('/channel/addCode/-1/-1') this.$router.push('/channel/addCode')
}, },
handleAddPoster(scope) { handleAddPoster(scope) {
this.$router.push('/channel/poster/' + scope.id) this.$router.push('/channel/poster/' + scope.id)
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<el-button type="primary" size="small" @click="goBack">返回</el-button> <el-button type="primary" size="small" @click="goBack">返回</el-button>
</div> </div>
<div class="poster-body"> <div class="poster-body">
<div class="poster-item" @dblclick="setPoster(item)" @mouseenter="item.show = true" @mouseleave="item.show = false" v-for="(item, index) in posterList" :key="index"> <div class="poster-item" @click="setPoster(item)" @mouseenter="item.show = true" @mouseleave="item.show = false" v-for="(item, index) in posterList" :key="index">
<div class="poster-del" v-show="item.show" @click="handleDelete(item.id)"> <div class="poster-del" v-show="item.show" @click="handleDelete(item.id)">
<img src="@/assets/img/del.png" /> <img src="@/assets/img/del.png" />
</div> </div>
...@@ -75,8 +75,8 @@ ...@@ -75,8 +75,8 @@
<script> <script>
import util from '@/utils/util' import util from '@/utils/util'
import VueDraggableResizable from '@/components/vue-draggable-resizable' import VueDraggableResizable from '@/components/draggable/vue-draggable-resizable'
import '@/components/vue-draggable-resizable.css' import '@/components/draggable/vue-draggable-resizable.css'
export default { export default {
name: 'poster', name: 'poster',
components: { components: {
......
...@@ -485,7 +485,7 @@ export default { ...@@ -485,7 +485,7 @@ export default {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft this.footerWidth = document.documentElement.clientWidth - this.footerLeft
let { id } = this.$route.params let { id } = this.$route.params
if (id != -1) { if (id) {
this.editId = id this.editId = id
this.findById(id) this.findById(id)
this.editStatus = false this.editStatus = false
......
<template> <template>
<div class="square-main"> <div class="square-main">
<div class="square-main-header"> <div class="square-main-header">
<el-button type="primary" size="small" @click="addConfig"> <GLButton type="primary" size="small" @click="addConfig" fn="新增营销">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
新增营销 新增营销
</el-button> </GLButton>
<!-- <GLButton type="primary" @click="addConfig" size="small" fn="新增" mode="el-button">新增营销</GLButton> --> <!-- <GLButton type="primary" @click="addConfig" size="small" fn="新增" mode="el-button">新增营销</GLButton> -->
<label>结合门店营销活动,指定客户创建智能营销,提高活动转化率</label> <label>结合门店营销活动,指定客户创建智能营销,提高活动转化率</label>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</el-form> </el-form>
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn"> <GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button :disabled="scope.scope.imStatus!=1" type="text" @click="handleDetail(scope.scope)">营销配置</el-button> <GLButton :disabled="scope.scope.imStatus!=1" type="text" @click="handleDetail(scope.scope)" fn="智能营销配置">营销配置</GLButton>
</div> </div>
</GLTable> </GLTable>
</div> </div>
...@@ -134,7 +134,7 @@ export default { ...@@ -134,7 +134,7 @@ export default {
}, },
handleImport() {}, handleImport() {},
addConfig() { addConfig() {
this.$router.push('/market/config/-1') this.$router.push('/market/config')
}, },
handleDetail(scope) { handleDetail(scope) {
this.$router.push('/market/config/' + scope.id) this.$router.push('/market/config/' + scope.id)
......
...@@ -321,11 +321,17 @@ export default { ...@@ -321,11 +321,17 @@ export default {
this.addForm.content = res.dracImMessageConResponse.content this.addForm.content = res.dracImMessageConResponse.content
this.tagging = eval(res.tagging) this.tagging = eval(res.tagging)
}) })
},
resize() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
} }
}, },
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.resize();
this.footerWidth = document.documentElement.clientWidth - this.footerLeft window.addEventListener('resize', () => {
this.resize()
})
let { id } = this.$route.params let { id } = this.$route.params
if (id != -1) { if (id != -1) {
this.editId = id this.editId = id
......
...@@ -54,12 +54,8 @@ export default { ...@@ -54,12 +54,8 @@ export default {
label: '待处理' label: '待处理'
}, },
{ {
value: '2',
label: '处理中'
},
{
value: '3', value: '3',
label: '已处理' label: '已完成'
} }
], ],
pickerOptions: { pickerOptions: {
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
</div> </div>
<div class="custom-wrap-item"> <div class="custom-wrap-item">
<div class="custom-wrap-itemBox"> <div class="custom-wrap-itemBox">
<div class="custom-wrap-title">待定保客户</div> <div class="custom-wrap-title">待首保客户</div>
<div class="custom-wrap-sta"> <div class="custom-wrap-sta">
<div class="custom-count-item"> <div class="custom-count-item">
<div class="custom-count-title">属于本次导入</div> <div class="custom-count-title">属于本次导入</div>
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<div class="custom-count-num">{{ detailInfo.waitRegularMaintainTotal }}人</div> <div class="custom-count-num">{{ detailInfo.waitRegularMaintainTotal }}人</div>
</div> </div>
</div> </div>
<div class="custom-wrap-content">智能提醒用户定期保养,推荐保养项目和优惠活动,提高用户返店率。</div> <div class="custom-wrap-content">智能提醒用户回店首保,提高用户返店率。</div>
<div class="custom-wrap-config">敬请期待</div> <div class="custom-wrap-config">敬请期待</div>
</div> </div>
</div> </div>
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</div> </div>
</div> </div>
<div class="coustom-box-content">当前客户池中,尚未匹配到企微账号的数量。推荐使用以下营销策略,吸引用户添加企微。</div> <div class="coustom-box-content">当前客户池中,尚未匹配到企微账号的数量。推荐使用以下营销策略,吸引用户添加企微。</div>
<div class="coustom-box-config" @click="jumpDrainage">营销配置</div> <GLButton class="coustom-box-config" @click="jumpDrainage" fn="客户引流企微" mode="div">营销配置</GLButton>
</div> </div>
<div class="coustom-box-item"> <div class="coustom-box-item">
<div class="coustom-box-title">信息待完善客户</div> <div class="coustom-box-title">信息待完善客户</div>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
</div> </div>
</div> </div>
<div class="coustom-box-content">当前客户池中,有企微客户尚未维护手机号码。建议批量通知对应的销售顾问维护此类客户信息。</div> <div class="coustom-box-content">当前客户池中,有企微客户尚未维护手机号码。建议批量通知对应的销售顾问维护此类客户信息。</div>
<div class="coustom-box-config" @click="jumpFriend">营销配置</div> <GLButton class="coustom-box-config" @click="jumpFriend" fn="客户资料跟进" mode="div">营销配置</GLButton>
</div> </div>
<div class="coustom-box-item"> <div class="coustom-box-item">
<div class="coustom-box-title">待续保客户</div> <div class="coustom-box-title">待续保客户</div>
...@@ -74,10 +74,10 @@ ...@@ -74,10 +74,10 @@
<div class="square-tabel scrm-box-f"> <div class="square-tabel scrm-box-f">
<div class="square-tabel-form"> <div class="square-tabel-form">
<el-form :inline="true" :model="tableSearchForm" class="follow-form-item" label-width="120px"> <el-form :inline="true" :model="tableSearchForm" class="follow-form-item" label-width="120px">
<el-button size="small" type="primary" @click="handleImport"> <GLButton size="small" type="primary" @click="handleImport" fn="魔方导入">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
导入魔方 导入魔方
</el-button> </GLButton>
<el-form-item size="small" label="导入时间"> <el-form-item size="small" label="导入时间">
<el-date-picker :picker-options="pickerOptions" v-model="createTime" type="daterange" value-format="yyyy-MM-dd" start-placeholder="开始时间" end-placeholder="结束时间"></el-date-picker> <el-date-picker :picker-options="pickerOptions" v-model="createTime" type="daterange" value-format="yyyy-MM-dd" start-placeholder="开始时间" end-placeholder="结束时间"></el-date-picker>
</el-form-item> </el-form-item>
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
</div> </div>
</div> </div>
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">详情</el-button> <GLButton type="text" @click="handleDetail(scope.scope)" fn="魔方导入结果">详情</GLButton>
</div> </div>
</GLTable> </GLTable>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!