Commit ebe32071 by cwq0219
2 parents 3a494146 75af7887
......@@ -144,7 +144,7 @@ const groupDetailList = params => {
})
}
// 详情页客户群提醒
// 根据id提醒用户 ,列表
const listRemindOperate = params => {
params.method = `${path}listRemindOperate`
return http({
......@@ -154,7 +154,7 @@ const listRemindOperate = params => {
sign: true
})
}
// 根据id提醒用户
// 详情页客户群提醒
const remindUserGroup = params => {
params.method = `${path}remindUserGroup`
return http({
......
......@@ -28,25 +28,26 @@
style="-webkit-user-modify: read-write-plaintext-only !important;"
placeholder="请输入内容"
></el-input>-->
<div v-for="itm in previewList" :key="itm.id">
<div v-for="(itm, index) in previewList" :key="itm.id">
<div class="welcome-file" v-if="itm.attType != 1">
<template v-if="itm.attType == 2">
<img src="@/assets/guestCustom/icon-img.png" alt />
<span>{{ itm.attContent }}</span>
<i v-show="index == (previewList.length -1) && loading" class="el-icon-loading"></i>
<img v-show="!loading" src="@/assets/guestCustom/icon-img.png" alt />
<span :title="itm.attContent">{{ itm.attContent }}</span>
</template>
<template v-else-if="itm.attType == 3">
<img src="@/assets/guestCustom/icon-img.png" alt />
<span>{{ itm.attContent }}</span>
<span :title="itm.attContent">{{ itm.attContent }}</span>
</template>
<template v-else-if="itm.attType == 7">
<img src="@/assets/guestCustom/icon-applet.png" alt />
<span>{{ itm.attContent.marketingName }}</span>
<span :title="itm.attContent.marketingName">{{ itm.attContent.marketingName }}</span>
</template>
<template v-else-if="itm.attType == 5">
<img src="@/assets/guestCustom/icon-applet.png" alt />
<span>{{ itm.attContent.title }}</span>
<span :title="itm.attContent.title">{{ itm.attContent.title }}</span>
</template>
<i class="el-icon-circle-close" @click="close(index)"></i>
<i class="el-icon-circle-close" style="cursor: pointer;" @click="close(index)"></i>
</div>
</div>
<div class="btn-group">
......@@ -60,7 +61,7 @@
style="opacity: 0"
:id="item.name + 'file'"
ref="file"
class="welcome-input"
class="welcome-input upload-img"
:accept="item.accept || 'image/png, image/jpeg, image/jpg'"
@change="e => handleImgChange(e, item)"
/>
......@@ -109,6 +110,7 @@ export default {
props: { eventBus: Object },
data() {
return {
loading: false,
btnList: [
// {
// id: 1,
......@@ -175,7 +177,13 @@ export default {
this.$message.error('上传图片大小不能超过' + limitSize + 'MB!')
return true
}
this.loading = true
reader.readAsDataURL(file)
this.previewList.push({
attType: ATT_TYPE.IMAGE,
attContent: ''
})
reader.onload = e => {
var image = new Image()
image.src = e.target.result
......@@ -185,12 +193,14 @@ export default {
const base64 = file.name.split('.')[1] + '@' + imgFile.split(',')[1]
this.$apis.common.pictureUpload({ file: base64 }).then(res => {
if (res) {
console.log(res)
this.previewList.push({
attType: ATT_TYPE.IMAGE,
attContent: res
})
let len = this.previewList.length - 1
this.previewList[len].attContent = res
document.querySelector('.upload-img').value = ''
} else {
let len = this.previewList.length - 1
this.previewList.splice(len, 1)
}
this.loading = false
})
}
}
......@@ -217,6 +227,7 @@ export default {
attType: ATT_TYPE.VEDIO,
attContent: res
})
document.querySelector('.upload-img').value = ''
}
})
}
......@@ -350,6 +361,9 @@ export default {
i {
font-size: 16px;
}
.el-icon-loading {
font-size: 24px;
}
&:last-child {
margin-bottom: 0;
}
......@@ -366,6 +380,7 @@ export default {
font-size: 16px;
color: #666;
cursor: pointer;
span {
font-size: 14px;
margin-left: 5px;
......@@ -374,10 +389,13 @@ export default {
position: absolute;
width: 100%;
cursor: pointer;
font-size: 0;
height: 40px;
}
img {
width: 16px;
height: 16px;
cursor: pointer;
}
.el-link {
position: absolute;
......
......@@ -111,11 +111,11 @@ export default {
},
{
label: '群主所在部门',
prop: 'zoneName'
prop: 'departmentName'
},
{
label: '群客户人数',
prop: 'departmentName'
prop: 'customerCount'
},
{
label: '消息送达状态',
......@@ -163,7 +163,7 @@ export default {
},
remind(data) {
this.$apis.customerTransform
.listRemindOperate({
.remindUserGroup({
id: data.id,
type: 2
})
......
......@@ -35,8 +35,9 @@
<div class="info-num">共{{ item.customerCount ? item.customerCount : 0 }}个客户</div>
</div>
<div class="info-right">
<div v-if="item.remindStatus == 1">已提醒</div>
<div v-if="item.status != 0 || item.remindStatus == 1">已提醒</div>
<el-button
v-if="item.status == 0"
:disabled="item.remindStatus == 1"
size="mini"
type="primary"
......@@ -144,7 +145,7 @@ export default {
remind(data, index) {
if (!data.remindStatus) {
this.$apis.customerTransform
.listRemindOperate({
.remindUserGroup({
id: data.id,
type: 1
})
......@@ -164,14 +165,14 @@ export default {
this.basicInfo = res
})
},
getStaffList(status = 0) {
getStaffList(status = null) {
const id = this.$route.params.id
this.$apis.customerTransform.staffList({ id, status }).then(res => {
console.log(res)
this.employeelist = res ? res : []
})
},
getCustomerList(status = 0) {
getCustomerList(status = null) {
const id = this.$route.params.id
this.$apis.customerTransform.customerDetailList({ id, status }).then(res => {
console.log(res)
......@@ -318,4 +319,15 @@ export default {
box-sizing: border-box;
padding: 40px 0;
}
::-webkit-scrollbar {
/*滚动条整体样式*/
width: 6px;
height: 4px;
}
::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
}
</style>
......@@ -35,7 +35,7 @@
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button
type="text"
:disabled="scope.scope.isRemind == 1"
:disabled="scope.scope.unsendUserNum == 0 || (scope.scope.unsendUserNum != 0 && scope.scope.isRemind == 1)"
@click="btnClick('remind', 1, scope.scope)"
>提醒发送</el-button>
<el-button type="text" @click="btnClick('detail', 1, scope.scope)">详情</el-button>
......@@ -66,7 +66,7 @@
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button
type="text"
:disabled="scope.scope.isRemind == 1"
:disabled="scope.scope.unsendUserNum == 0 || (scope.scope.unsendUserNum != 0 && scope.scope.isRemind == 1)"
@click="btnClick('remind', 2, scope.scope)"
>提醒发送</el-button>
<el-button type="text" @click="btnClick('detail', 2, scope.scope)">详情</el-button>
......@@ -249,7 +249,7 @@ export default {
type
}
// if (type == 1) {
this.$apis.customerTransform.remindUserGroup(params).then(res => {
this.$apis.customerTransform.listRemindOperate(params).then(res => {
console.log(res)
this.$message({
type: 'success',
......
......@@ -67,12 +67,14 @@ export default {
},
watch: {
list(val) {
const yData = val.map(i => i.packageName)
const data = val.map(i => i.totalSales)
this.option.yAxis.data = yData
this.option.series[0].data = data
console.log(this.option)
this.option && this.myChart.setOption(this.option)
if (val) {
const yData = val.map(i => i.packageName)
const data = val.map(i => i.totalSales)
this.option.yAxis.data = yData
this.option.series[0].data = data
console.log(this.option)
this.option && this.myChart.setOption(this.option)
}
}
},
methods: {
......
......@@ -19,6 +19,7 @@
<div class="marketing-content">{{item.content}}</div>
<div class="marketing-btn">
<el-button
style="width: 118px;"
:disabled="!$globalState.routers.find(i => i.compath == item.path)"
type="primary"
size="small"
......@@ -74,7 +75,7 @@
</div>
<div class="data-item">
<span class="data-title w-90">
核销率
核销总数
<el-popover
placement="top-start"
title="核销总数"
......@@ -91,7 +92,7 @@
</span>
</div>
<div class="data-last">
<span class="data-name">核销总数</span>
<span class="data-name">核销率</span>
<span class="data-percentage">{{coupon.verificationRate}}</span>
</div>
</div>
......@@ -321,7 +322,7 @@ export default {
title: '商品销售',
content: '管理上下架门店自有的商品,可配置带货商品活动商品销售分润。',
linkName: '上架商品',
path: '/homeSet/index'
path: '/productGroup/index'
}
],
date: [],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!