Commit 3ed6d42d by yangming

new

1 parent 388753ee
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
* @param {*} params * @param {*} params
* @returns * @returns
*/ */
import { http } from '@/main' import { http,http_tag,http_custom } from '@/main'
let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop' let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
const getListApi = params => { const getListApi = params => {
params.method = 'entmicro.api.staff.listFollowerStaffByPage' params.method = 'entmicro.api.staff.listFollowerStaffByPage'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -21,7 +21,7 @@ const getListApi = params => { ...@@ -21,7 +21,7 @@ const getListApi = params => {
const getFollower = params => { const getFollower = params => {
params.method = 'entmicro.api.staff.listFollowerStaffByPage' params.method = 'entmicro.api.staff.listFollowerStaffByPage'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -29,9 +29,9 @@ const getFollower = params => { ...@@ -29,9 +29,9 @@ const getFollower = params => {
}) })
} }
const querylabeltree = params => { const querylabeltree = params => {
params.method = 'scrm.api.datahub.label.querylabeltree' params.method = 'scrm.api.datahub.labelgroup.queryLabelTree'
params.sessionId = session params.sessionId = session
return http({ return http_tag({
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -41,7 +41,7 @@ const querylabeltree = params => { ...@@ -41,7 +41,7 @@ const querylabeltree = params => {
const deleteChannelCodeBill = params => { const deleteChannelCodeBill = params => {
params.method = 'entmicro.api.code.deleteChannelCodeBill' params.method = 'entmicro.api.code.deleteChannelCodeBill'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -51,7 +51,7 @@ const deleteChannelCodeBill = params => { ...@@ -51,7 +51,7 @@ const deleteChannelCodeBill = params => {
const getSubCodeChannelCodeBill = params => { const getSubCodeChannelCodeBill = params => {
params.method = 'entmicro.api.code.getSubCodeChannelCodeBill' params.method = 'entmicro.api.code.getSubCodeChannelCodeBill'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -61,7 +61,7 @@ const getSubCodeChannelCodeBill = params => { ...@@ -61,7 +61,7 @@ const getSubCodeChannelCodeBill = params => {
const saveChannelCodeBill = params => { const saveChannelCodeBill = params => {
params.method = 'entmicro.api.code.saveChannelCodeBill' params.method = 'entmicro.api.code.saveChannelCodeBill'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -71,7 +71,7 @@ const saveChannelCodeBill = params => { ...@@ -71,7 +71,7 @@ const saveChannelCodeBill = params => {
const updateChannelCodeBill = params => { const updateChannelCodeBill = params => {
params.method = 'entmicro.api.code.updateChannelCodeBill' params.method = 'entmicro.api.code.updateChannelCodeBill'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -81,7 +81,7 @@ const updateChannelCodeBill = params => { ...@@ -81,7 +81,7 @@ const updateChannelCodeBill = params => {
const listChannelCodeBill = params => { const listChannelCodeBill = params => {
params.method = 'entmicro.api.code.listChannelCodeBill' params.method = 'entmicro.api.code.listChannelCodeBill'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -92,7 +92,7 @@ const listChannelCodeBill = params => { ...@@ -92,7 +92,7 @@ const listChannelCodeBill = params => {
const deleteChannelCode = params => { const deleteChannelCode = params => {
params.method = 'entmicro.api.code.deleteChannelCode' params.method = 'entmicro.api.code.deleteChannelCode'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -102,7 +102,7 @@ const deleteChannelCode = params => { ...@@ -102,7 +102,7 @@ const deleteChannelCode = params => {
const detailChannelCode = params => { const detailChannelCode = params => {
params.method = 'entmicro.api.code.detailChannelCode' params.method = 'entmicro.api.code.detailChannelCode'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -112,7 +112,7 @@ const detailChannelCode = params => { ...@@ -112,7 +112,7 @@ const detailChannelCode = params => {
const listChannelCodeByPage = params => { const listChannelCodeByPage = params => {
params.method = 'entmicro.api.code.listChannelCodeByPage' params.method = 'entmicro.api.code.listChannelCodeByPage'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -122,7 +122,7 @@ const listChannelCodeByPage = params => { ...@@ -122,7 +122,7 @@ const listChannelCodeByPage = params => {
const saveChannelCode = params => { const saveChannelCode = params => {
params.method = 'entmicro.api.code.saveChannelCode' params.method = 'entmicro.api.code.saveChannelCode'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -132,7 +132,7 @@ const saveChannelCode = params => { ...@@ -132,7 +132,7 @@ const saveChannelCode = params => {
const updateChannelCode = params => { const updateChannelCode = params => {
params.method = 'entmicro.api.code.updateChannelCode' params.method = 'entmicro.api.code.updateChannelCode'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -142,7 +142,7 @@ const updateChannelCode = params => { ...@@ -142,7 +142,7 @@ const updateChannelCode = params => {
const getCustomer = params => { const getCustomer = params => {
params.method = 'entmicro.api.customer.page' params.method = 'entmicro.api.customer.page'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -152,15 +152,26 @@ const getCustomer = params => { ...@@ -152,15 +152,26 @@ const getCustomer = params => {
const getChannelCodeStaffList = params => { const getChannelCodeStaffList = params => {
params.method = 'entmicro.api.code.getChannelCodeStaffList' params.method = 'entmicro.api.code.getChannelCodeStaffList'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
const getStatus = params => {
params.method = 'scrm.api.work.wechat.access.status'
params.sessionId = session
return http({
url: '/rop-scrm-wechat/router',
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
getStatus,
getListApi, getListApi,
getFollower, getFollower,
querylabeltree, querylabeltree,
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
* @param {*} params * @param {*} params
* @returns * @returns
*/ */
import { http } from '@/main' import { http,http_custom } from '@/main'
let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop' let session = 'mini-57c1c42e-8a0c-4fc3-959c-b62813a471cd-rop'
const getCoupon = params => { const getCoupon = params => {
params.method = 'scrm.api.boutiquecoupon.coupon.page' params.method = 'scrm.api.boutiquecoupon.coupon.page'
return http({ return http({
...@@ -35,6 +35,25 @@ const getCard = params => { ...@@ -35,6 +35,25 @@ const getCard = params => {
sign: true sign: true
}) })
} }
const merchantOpen = params => {
params.method = 'scrm.api.equity.service.merchant.config.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const merchant = params => {
params.method = 'scrm.api.equity.open.card.price.list.by.merchantid'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const getPackage = params => { const getPackage = params => {
params.method = 'scrm.api.equity.package.info.list.with.page' params.method = 'scrm.api.equity.package.info.list.with.page'
return http({ return http({
...@@ -56,7 +75,7 @@ const getActivity = params => { ...@@ -56,7 +75,7 @@ const getActivity = params => {
const findAllByPage = params => { const findAllByPage = params => {
params.method = 'entmicro.api.dracIm.findAllByPage' params.method = 'entmicro.api.dracIm.findAllByPage'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -66,7 +85,7 @@ const findAllByPage = params => { ...@@ -66,7 +85,7 @@ const findAllByPage = params => {
const exportAdd = params => { const exportAdd = params => {
params.method = 'entmicro.api.dracIm.exportAdd' params.method = 'entmicro.api.dracIm.exportAdd'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -76,7 +95,7 @@ const exportAdd = params => { ...@@ -76,7 +95,7 @@ const exportAdd = params => {
const exportUpdate = params => { const exportUpdate = params => {
params.method = 'entmicro.api.dracIm.exportUpdate' params.method = 'entmicro.api.dracIm.exportUpdate'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -86,7 +105,7 @@ const exportUpdate = params => { ...@@ -86,7 +105,7 @@ const exportUpdate = params => {
const findById = params => { const findById = params => {
params.method = 'entmicro.api.dracIm.findById' params.method = 'entmicro.api.dracIm.findById'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -96,7 +115,7 @@ const findById = params => { ...@@ -96,7 +115,7 @@ const findById = params => {
const dracImMessage = params => { const dracImMessage = params => {
params.method = 'entmicro.api.dracImMessage.findAllByCondition' params.method = 'entmicro.api.dracImMessage.findAllByCondition'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -106,7 +125,7 @@ const dracImMessage = params => { ...@@ -106,7 +125,7 @@ const dracImMessage = params => {
const listChannelCodeBill = params => { const listChannelCodeBill = params => {
params.method = 'entmicro.api.code.listChannelCodeBill' params.method = 'entmicro.api.code.listChannelCodeBill'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -116,7 +135,7 @@ const listChannelCodeBill = params => { ...@@ -116,7 +135,7 @@ const listChannelCodeBill = params => {
const addConfig = params => { const addConfig = params => {
params.method = 'entmicro.api.dracImConfig.addConfig' params.method = 'entmicro.api.dracImConfig.addConfig'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -126,7 +145,7 @@ const addConfig = params => { ...@@ -126,7 +145,7 @@ const addConfig = params => {
const findConfig = params => { const findConfig = params => {
params.method = 'entmicro.api.dracImConfig.findConfig' params.method = 'entmicro.api.dracImConfig.findConfig'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -136,7 +155,17 @@ const findConfig = params => { ...@@ -136,7 +155,17 @@ const findConfig = params => {
const updateConfig = params => { const updateConfig = params => {
params.method = 'entmicro.api.dracImConfig.updateConfig' params.method = 'entmicro.api.dracImConfig.updateConfig'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
const customerPage = params => {
params.method = 'entmicro.api.dracIm.customer.search.page'
params.sessionId = session
return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -146,6 +175,8 @@ const updateConfig = params => { ...@@ -146,6 +175,8 @@ const updateConfig = params => {
export default { export default {
getCoupon, getCoupon,
getMerchant, getMerchant,
merchantOpen,
merchant,
getCard, getCard,
getPackage, getPackage,
getActivity, getActivity,
...@@ -157,5 +188,6 @@ export default { ...@@ -157,5 +188,6 @@ export default {
findById, findById,
updateConfig, updateConfig,
findConfig, findConfig,
addConfig addConfig,
customerPage
} }
\ No newline at end of file \ No newline at end of file
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
* @param {*} params * @param {*} params
* @returns * @returns
*/ */
import { http } from '@/main' import { http,http_custom } from '@/main'
let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop' let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
const codeDefault = params => { const codeDefault = params => {
params.method = 'entmicro.api.drac.statistic.code.default' params.method = 'entmicro.api.drac.statistic.code.default'
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -19,7 +19,7 @@ const codeDefault = params => { ...@@ -19,7 +19,7 @@ const codeDefault = params => {
} }
const listStaff = params => { const listStaff = params => {
params.method = 'entmicro.api.drac.statistic.code.detail.list.staff' params.method = 'entmicro.api.drac.statistic.code.detail.list.staff'
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -28,7 +28,7 @@ const listStaff = params => { ...@@ -28,7 +28,7 @@ const listStaff = params => {
} }
const listTime = params => { const listTime = params => {
params.method = 'entmicro.api.drac.statistic.code.detail.list.time' params.method = 'entmicro.api.drac.statistic.code.detail.list.time'
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -37,7 +37,7 @@ const listTime = params => { ...@@ -37,7 +37,7 @@ const listTime = params => {
} }
const detailTotal = params => { const detailTotal = params => {
params.method = 'entmicro.api.drac.statistic.code.detail.total' params.method = 'entmicro.api.drac.statistic.code.detail.total'
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -47,7 +47,7 @@ const detailTotal = params => { ...@@ -47,7 +47,7 @@ const detailTotal = params => {
const codeSearch = params => { const codeSearch = params => {
params.method = 'entmicro.api.drac.statistic.code.search' params.method = 'entmicro.api.drac.statistic.code.search'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -57,7 +57,7 @@ const codeSearch = params => { ...@@ -57,7 +57,7 @@ const codeSearch = params => {
const codeTrend = params => { const codeTrend = params => {
params.method = 'entmicro.api.drac.statistic.code.trend' params.method = 'entmicro.api.drac.statistic.code.trend'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -67,7 +67,7 @@ const codeTrend = params => { ...@@ -67,7 +67,7 @@ const codeTrend = params => {
const dayTrend = params => { const dayTrend = params => {
params.method = 'entmicro.api.drac.statistic.day.trend' params.method = 'entmicro.api.drac.statistic.day.trend'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -77,7 +77,7 @@ const dayTrend = params => { ...@@ -77,7 +77,7 @@ const dayTrend = params => {
const overview = params => { const overview = params => {
params.method = 'entmicro.api.drac.statistic.overview' params.method = 'entmicro.api.drac.statistic.overview'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -87,7 +87,7 @@ const overview = params => { ...@@ -87,7 +87,7 @@ const overview = params => {
const findMessageStatic = params => { const findMessageStatic = params => {
params.method = 'entmicro.api.dracIm.findMessageStatic' params.method = 'entmicro.api.dracIm.findMessageStatic'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -98,7 +98,7 @@ const findMessageStatic = params => { ...@@ -98,7 +98,7 @@ const findMessageStatic = params => {
const viewChart = params => { const viewChart = params => {
params.method = 'entmicro.api.drac.statistic.getCustomerStatisticCodeTrend' params.method = 'entmicro.api.drac.statistic.getCustomerStatisticCodeTrend'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -108,7 +108,7 @@ const viewChart = params => { ...@@ -108,7 +108,7 @@ const viewChart = params => {
const findAllMessageByPage = params => { const findAllMessageByPage = params => {
params.method = 'entmicro.api.dracIm.findAllMessageByPage' params.method = 'entmicro.api.dracIm.findAllMessageByPage'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
* @param {*} params * @param {*} params
* @returns * @returns
*/ */
import { http } from '@/main' import { http,http_custom } from '@/main'
let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop' let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
const importsUpload = params => { const importsUpload = params => {
params.method = 'entmicro.api.imports.upload' params.method = 'entmicro.api.imports.upload'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -21,7 +21,7 @@ const importsUpload = params => { ...@@ -21,7 +21,7 @@ const importsUpload = params => {
const downloadModel = params => { const downloadModel = params => {
params.method = 'entmicro.api.imports.download.model' params.method = 'entmicro.api.imports.download.model'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -31,7 +31,7 @@ const downloadModel = params => { ...@@ -31,7 +31,7 @@ const downloadModel = params => {
const importsRecord = params => { const importsRecord = params => {
params.method = 'entmicro.api.imports.record.page' params.method = 'entmicro.api.imports.record.page'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -41,7 +41,7 @@ const importsRecord = params => { ...@@ -41,7 +41,7 @@ const importsRecord = params => {
const importsCount = params => { const importsCount = params => {
params.method = 'entmicro.api.imports.count' params.method = 'entmicro.api.imports.count'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -51,7 +51,7 @@ const importsCount = params => { ...@@ -51,7 +51,7 @@ const importsCount = params => {
const importsKey = params => { const importsKey = params => {
params.method = 'entmicro.api.imports.record.key' params.method = 'entmicro.api.imports.record.key'
params.sessionId = session params.sessionId = session
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -60,7 +60,7 @@ const importsKey = params => { ...@@ -60,7 +60,7 @@ const importsKey = params => {
} }
const findLoginCount = params => { const findLoginCount = params => {
params.method = 'entmicro.api.common.findLoginCount' params.method = 'entmicro.api.common.findLoginCount'
return http({ return http_custom({
url: 'rop-scrm-entmicro/router', url: 'rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
......
...@@ -171,4 +171,16 @@ img { ...@@ -171,4 +171,16 @@ img {
} }
.el-message-box--center { .el-message-box--center {
padding: 0px; padding: 0px;
}
.el-message--info {
height: 40px;
background: #e6e9ff;
border: 1px solid #5850ff;
border-radius: 4px;
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
}
.el-message .el-icon-info {
color: #5850ff;
font-size: 16px;
} }
\ No newline at end of file \ No newline at end of file
<template>
<div
class="scrm-footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<slot></slot>
</div>
</template>
<script>
export default {
name: 'glsx-footer',
props: {
className: {
type: String,
default: '.base-container-right'
}
},
data() {
return {
footerLeft: 0,
footerWidth: 0
}
},
methods: {
resize() {
this.footerLeft = document.querySelector(this.className).offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
}
},
destroyed() {
window.removeEventListener('resize', this.resize)
},
mounted() {
this.resize()
window.addEventListener('resize', this.resize)
}
}
</script>
<style lang="scss">
.scrm-footer-panel {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
bottom: 0px;
height: 64px;
background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
</style>
...@@ -11,8 +11,10 @@ import Vue from 'vue' ...@@ -11,8 +11,10 @@ import Vue from 'vue'
// 导入权限按钮 // 导入权限按钮
import _button from '@/components/glsx-button/index' import _button from '@/components/glsx-button/index'
import _title from '@/components/basic-title/index' import _title from '@/components/basic-title/index'
// import _footer from '@/components/glsx-footer/index'
Vue.component('basic-dialog', () => Vue.component('basic-dialog', () =>
import('./basic-dialog/index.vue')) import('./basic-dialog/index.vue'))
Vue.component('GLButton', _button) Vue.component('GLButton', _button)
Vue.component('GLTitle', _title) Vue.component('GLTitle', _title)
// Vue.component('GLFooter', _footer)
// Vue.component('glsx-table', glsxTable) // Vue.component('glsx-table', glsxTable)
\ No newline at end of file \ No newline at end of file
<template> <template>
<div class="ly-emotion" > <div class="ly-emotion">
<slot></slot> <slot></slot>
</div> </div>
</template> </template>
<script> <script>
import emoji from '@/utils/emo'
export default { export default {
name: 'ly-emotion', name: 'ly-emotion',
mounted () { mounted() {
const name = this.$el.innerHTML const name = this.$el.innerHTML
const list = ['微笑', '撇嘴', '色', '发呆', '得意', '流泪', '害羞', '闭嘴', '睡', '大哭', '尴尬', '发怒', '调皮', '呲牙', '惊讶', '难过', '酷', '冷汗', '抓狂', '吐', '偷笑', '可爱', '白眼', '傲慢', '饥饿', '困', '惊恐', '流汗', '憨笑', '大兵', '奋斗', '咒骂', '疑问', '嘘', '晕', '折磨', '衰', '骷髅', '敲打', '再见', '擦汗', '抠鼻', '鼓掌', '糗大了', '坏笑', '左哼哼', '右哼哼', '哈欠', '鄙视', '委屈', '快哭了', '阴险', '亲亲', '吓', '可怜', '菜刀', '西瓜', '啤酒', '篮球', '乒乓', '咖啡', '饭', '猪头', '玫瑰', '凋谢', '示爱', '爱心', '心碎', '蛋糕', '闪电', '炸弹', '刀', '足球', '瓢虫', '便便', '月亮', '太阳', '礼物', '拥抱', '强', '弱', '握手', '胜利', '抱拳', '勾引', '拳头', '差劲', '爱你', 'NO', 'OK', '爱情', '飞吻', '跳跳', '发抖', '怄火', '转圈', '磕头', '回头', '跳绳', '挥手', '激动', '街舞', '献吻', '左太极', '右太极'] const list = emoji.flat(Infinity)
let index = list.indexOf(name) let index = parseInt(list.indexOf(name)) + 1
let imgHTML = `<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/${index}.gif">` if (index < 10) {
index = '00' + index
} else if (index >= 10 && index < 100) {
index = '0' + index
}
let imgHTML = `<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/${index}.png">`
this.$nextTick(() => { this.$nextTick(() => {
this.$el.innerHTML = imgHTML this.$el.innerHTML = imgHTML
}) })
}, }
} }
</script> </script>
<style scoped> <style scoped>
.ly-emotion { .ly-emotion {
display: inline-block display: inline-block;
} }
.ly-static-emotion { .ly-static-emotion {
width: 24px; width: 24px;
......
...@@ -9,22 +9,23 @@ ...@@ -9,22 +9,23 @@
<el-tab-pane label="权益套餐" name="4"></el-tab-pane> <el-tab-pane label="权益套餐" name="4"></el-tab-pane>
<el-tab-pane label="商城券" name="2"></el-tab-pane> <el-tab-pane label="商城券" name="2"></el-tab-pane>
<el-tab-pane label="秒杀活动" name="5"></el-tab-pane> <el-tab-pane label="秒杀活动" name="5"></el-tab-pane>
<el-tab-pane label="精品券" name="1"></el-tab-pane> <el-tab-pane label="无忧服务" name="1" v-if="openFlag"></el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
<div class="model-item-panel" v-if="modelList.length > 0" v-loading="loading"> <div class="model-item-panel" v-if="modelList.length > 0" v-loading="loading">
<div class="model-item" :class="{ checked: selectItem == item }" v-for="(item, index) in modelList" :key="index" @click="handleSelectItem(item)"> <div class="model-item" :class="{ checked: selectItem == item }" v-for="(item, index) in modelList" :key="index" @click="handleSelectItem(item)">
<div class="model-item-title" :title="item.equityName" v-show="activeName == 3">{{ item.equityName }}</div> <div class="model-item-title" :title="item.equityName" v-show="activeName == 3">{{ item.equityName }}</div>
<div class="model-item-title" :title="item.couponName" v-show="activeName == 2">{{ item.couponName }}</div> <div class="model-item-title" :title="item.couponName" v-show="activeName == 2">{{ 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.couponName" v-show="activeName == 1">{{ item.equityName }}</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">剩余数量:{{ item.remainAmount }}</div>
<div class="model-item-content" v-show="activeName == 3">领取方式:免费领用</div> <div class="model-item-content" v-show="activeName == 3">领取方式:免费领用</div>
<div class="model-item-content" v-show="activeName == 4">领取方式:付费购买</div> <div class="model-item-content" v-show="activeName == 4">领取方式:付费购买</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 == 1">获取方式:需先购买无忧服务套餐</div>
<div class="model-item-content" v-show="activeName == 1">获取限制:每个服务套餐限领一次</div>
<div class="model-item-content" v-show="activeName == 3"></div> <div class="model-item-content" v-show="activeName == 3"></div>
<div class="model-item-content model-item-contents" v-show="activeName == 3"> <div class="model-item-content model-item-contents" v-show="activeName == 3">
...@@ -36,8 +37,8 @@ ...@@ -36,8 +37,8 @@
{{ item.useChannel == 1 ? '线上商品' : '到店核销' }} {{ 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>{{effectiveType == 2 ? item.effectiveDay + '天' : '永久有效' }}</span>
</div> </div>
<div class="model-item-content" v-show="activeName == 4 || activeName == 5"></div> <div class="model-item-content" v-show="activeName == 4 || activeName == 5"></div>
<div class="model-item-content model-item-contents" v-show="activeName == 4"> <div class="model-item-content model-item-contents" v-show="activeName == 4">
...@@ -90,6 +91,7 @@ export default { ...@@ -90,6 +91,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 12, pageSize: 12,
tableTotal: 0, tableTotal: 0,
openFlag: 0,
selectItem: { selectItem: {
id: '' id: ''
} }
...@@ -112,7 +114,7 @@ export default { ...@@ -112,7 +114,7 @@ export default {
return return
} }
this.dialogVisible = false this.dialogVisible = false
this.$emit('selectActivity', { marketingId: this.selectItem.id, marketingType: this.activeName, marketingName: this.activeName == 3 ? this.selectItem.equityName : this.activeName == 4 ? this.selectItem.packageName : this.activeName == 5 ? this.selectItem.activityName : this.selectItem.couponName }) this.$emit('selectActivity', { marketingId: this.selectItem.id ? this.selectItem.id : this.selectItem.equityClassId, marketingType: this.activeName, marketingName: this.activeName == 3 ? this.selectItem.equityName : this.activeName == 4 ? this.selectItem.packageName : this.activeName == 5 ? this.selectItem.activityName : this.activeName == 2 ? this.selectItem.couponName : this.selectItem.equityName })
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.pageSize = val this.pageSize = val
...@@ -144,7 +146,7 @@ export default { ...@@ -144,7 +146,7 @@ export default {
let market = '' let market = ''
switch (this.activeName) { switch (this.activeName) {
case '1': case '1':
market = 'getCoupon' market = 'merchant'
break break
case '2': case '2':
market = 'getMerchant' market = 'getMerchant'
...@@ -175,9 +177,12 @@ export default { ...@@ -175,9 +177,12 @@ export default {
params.currentPage = this.pageNum params.currentPage = this.pageNum
params.activityStatus = 2 params.activityStatus = 2
} }
if (this.activeName == 1) {
params.merchantId = this.$globalState.session.merchantId
}
this.$apis.marketing[market](params) this.$apis.marketing[market](params)
.then(res => { .then(res => {
if (this.activeName == 3) { if (this.activeName == 3 || this.activeName == 1) {
this.modelList = res this.modelList = res
} else { } else {
this.modelList = res.list ? res.list : res.data this.modelList = res.list ? res.list : res.data
...@@ -189,14 +194,20 @@ export default { ...@@ -189,14 +194,20 @@ export default {
this.loading = false this.loading = false
}) })
}, },
merchantOpen() {
this.$apis.marketing.merchantOpen({ merchantId: this.$globalState.session.merchantId }).then(res => {
this.openFlag = res.openFlag
})
},
init() { init() {
this.merchantOpen()
this.couponMenu = false this.couponMenu = false
this.activityMenu = false this.activityMenu = false
this.memberMenu = false this.memberMenu = false
const menu = JSON.parse(sessionStorage['SCRM_BASE_MENULIST']) const menu = JSON.parse(sessionStorage['SCRM_BASE_MENULIST'])
menu.forEach(item => { menu.forEach(item => {
if (item.name == 'marketing') { if (item.name == 'marketing') {
if(!item.children) { if (!item.children) {
return return
} }
item.children.forEach(itm => { item.children.forEach(itm => {
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
</template> </template>
<script> <script>
import emoji from '@/utils/emo'
import Emotion from './Emotion' import Emotion from './Emotion'
export default { export default {
props: { props: {
...@@ -19,19 +20,7 @@ export default { ...@@ -19,19 +20,7 @@ export default {
}, },
data() { data() {
return { return {
list: [ list: emoji
['微笑', '撇嘴', '色', '发呆', '得意', '流泪', '害羞', '闭嘴'],
['饥饿', '困', '惊恐', '流汗', '憨笑', '大兵', '奋斗', '咒骂'],
['疑问', '嘘', '晕', '折磨', '衰', '骷髅', '敲打', '再见'],
['擦汗', '抠鼻', '鼓掌', '糗大了', '坏笑', '左哼哼', '右哼哼', '哈欠'],
['鄙视', '委屈', '快哭了', '阴险', '亲亲', '吓', '可怜', '菜刀'],
['西瓜', '啤酒', '篮球', '乒乓', '咖啡', '饭', '猪头', '玫瑰'],
['凋谢', '示爱', '爱心', '心碎', '蛋糕', '闪电', '炸弹', '刀'],
['足球', '瓢虫', '便便', '月亮', '太阳', '礼物', '拥抱', '强'],
['弱', '握手', '胜利', '抱拳', '勾引', '拳头', '差劲', '爱你'],
['NO', 'OK', '爱情', '飞吻', '跳跳', '发抖', '怄火', '转圈'],
['磕头', '回头', '跳绳', '挥手', '激动', '街舞', '左太极', '右太极']
]
} }
}, },
methods: { methods: {
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
</template> </template>
<script> <script>
import emoji from '@/utils/emo'
export default { export default {
name: 'wTextarea', name: 'wTextarea',
data() { data() {
...@@ -218,121 +219,16 @@ export default { ...@@ -218,121 +219,16 @@ export default {
this.updateData(target.innerHTML) this.updateData(target.innerHTML)
} }
let htm = target.innerHTML let htm = target.innerHTML
const list = [ const list = emoji.flat(Infinity)
'微笑', const cutImg = htm.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '')
'撇嘴', const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
'色', let s = list[parseInt(str.split('.')[0]) - 1]
'发呆',
'得意',
'流泪',
'害羞',
'闭嘴',
'睡',
'大哭',
'尴尬',
'发怒',
'调皮',
'呲牙',
'惊讶',
'难过',
'酷',
'冷汗',
'抓狂',
'吐',
'偷笑',
'可爱',
'白眼',
'傲慢',
'饥饿',
'困',
'惊恐',
'流汗',
'憨笑',
'大兵',
'奋斗',
'咒骂',
'疑问',
'嘘',
'晕',
'折磨',
'衰',
'骷髅',
'敲打',
'再见',
'擦汗',
'抠鼻',
'鼓掌',
'糗大了',
'坏笑',
'左哼哼',
'右哼哼',
'哈欠',
'鄙视',
'委屈',
'快哭了',
'阴险',
'亲亲',
'吓',
'可怜',
'菜刀',
'西瓜',
'啤酒',
'篮球',
'乒乓',
'咖啡',
'饭',
'猪头',
'玫瑰',
'凋谢',
'示爱',
'爱心',
'心碎',
'蛋糕',
'闪电',
'炸弹',
'刀',
'足球',
'瓢虫',
'便便',
'月亮',
'太阳',
'礼物',
'拥抱',
'强',
'弱',
'握手',
'胜利',
'抱拳',
'勾引',
'拳头',
'差劲',
'爱你',
'NO',
'OK',
'爱情',
'飞吻',
'跳跳',
'发抖',
'怄火',
'转圈',
'磕头',
'回头',
'跳绳',
'挥手',
'激动',
'街舞',
'献吻',
'左太极',
'右太极'
]
const cutImg = htm.replaceAll('<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/', '')
const replaceImg = cutImg.replace(/(\d){1,2}.gif">/g, function (str) {
let s = list[str.split('.')[0]]
return `[${s}]` return `[${s}]`
}) })
console.log(replaceImg)
let Textnode = document.createElement('div') let Textnode = document.createElement('div')
Textnode.innerHTML = replaceImg Textnode.innerHTML = replaceImg
this.currentText = Textnode.innerText.substring(0,600) this.currentText = Textnode.innerText.substring(0, 600)
this.$emit('updateText', this.currentText) this.$emit('updateText', this.currentText)
}, },
placeCaretAtEnd(el) { placeCaretAtEnd(el) {
...@@ -357,122 +253,15 @@ export default { ...@@ -357,122 +253,15 @@ export default {
this.updateData(target.innerHTML) this.updateData(target.innerHTML)
let htm = target.innerHTML let htm = target.innerHTML
console.log(htm) console.log(htm)
const list = [ const list = emoji.flat(Infinity)
'微笑', const cutImg = htm.replaceAll('<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/', '')
'撇嘴', const replaceImg = cutImg.replace(/(\d){3}.png">/g, function (str) {
'色', let s = list[parseInt(str.split('.')[0]) - 1]
'发呆',
'得意',
'流泪',
'害羞',
'闭嘴',
'睡',
'大哭',
'尴尬',
'发怒',
'调皮',
'呲牙',
'惊讶',
'难过',
'酷',
'冷汗',
'抓狂',
'吐',
'偷笑',
'可爱',
'白眼',
'傲慢',
'饥饿',
'困',
'惊恐',
'流汗',
'憨笑',
'大兵',
'奋斗',
'咒骂',
'疑问',
'嘘',
'晕',
'折磨',
'衰',
'骷髅',
'敲打',
'再见',
'擦汗',
'抠鼻',
'鼓掌',
'糗大了',
'坏笑',
'左哼哼',
'右哼哼',
'哈欠',
'鄙视',
'委屈',
'快哭了',
'阴险',
'亲亲',
'吓',
'可怜',
'菜刀',
'西瓜',
'啤酒',
'篮球',
'乒乓',
'咖啡',
'饭',
'猪头',
'玫瑰',
'凋谢',
'示爱',
'爱心',
'心碎',
'蛋糕',
'闪电',
'炸弹',
'刀',
'足球',
'瓢虫',
'便便',
'月亮',
'太阳',
'礼物',
'拥抱',
'强',
'弱',
'握手',
'胜利',
'抱拳',
'勾引',
'拳头',
'差劲',
'爱你',
'NO',
'OK',
'爱情',
'飞吻',
'跳跳',
'发抖',
'怄火',
'转圈',
'磕头',
'回头',
'跳绳',
'挥手',
'激动',
'街舞',
'献吻',
'左太极',
'右太极'
]
const cutImg = htm.replaceAll('<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/', '')
console.log(cutImg)
const replaceImg = cutImg.replace(/(\d){1,2}.gif">/g, function (str) {
let s = list[str.split('.')[0]]
return `[${s}]` return `[${s}]`
}) })
let Textnode = document.createElement('div') let Textnode = document.createElement('div')
Textnode.innerHTML = replaceImg Textnode.innerHTML = replaceImg
this.currentText = Textnode.innerText.substring(0,600) this.currentText = Textnode.innerText.substring(0, 600)
this.$emit('updateText', this.currentText) this.$emit('updateText', this.currentText)
}, },
handleDelete(e) { handleDelete(e) {
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-show="emotionStatus" class="emotion-panel"><emotion class="emotion-panel-box" @emotion="handleEmotion" :height="280"></emotion></div> <div v-show="emotionStatus" class="emotion-panel"><emotion class="emotion-panel-box" @emotion="handleEmotion" :height="376"></emotion></div>
<div class="tips-text"> <div class="tips-text">
<img src="@/assets/img/guestCustom/tips.png" class="tips-icon" alt /> <img src="@/assets/img/guestCustom/tips.png" class="tips-icon" alt />
...@@ -75,7 +75,7 @@ const ATT_TYPE = { ...@@ -75,7 +75,7 @@ const ATT_TYPE = {
FILE: 6, FILE: 6,
ACTIVITY: 7 ACTIVITY: 7
} }
// import E from 'wangeditor' import emoji from '@/utils/emo'
import ActivityModel from './activityModel' import ActivityModel from './activityModel'
import Emotion from './emotionWords' import Emotion from './emotionWords'
import wTextarea from './tag-textarea' import wTextarea from './tag-textarea'
...@@ -152,115 +152,14 @@ export default { ...@@ -152,115 +152,14 @@ export default {
}, },
handleEmotion(i) { handleEmotion(i) {
this.emotionStatus = false this.emotionStatus = false
const list = [ const list = emoji.flat(Infinity)
'微笑', let index = list.indexOf(i) + 1
'撇嘴', if (index < 10) {
'色', index = '00' + index
'发呆', } else if (index >= 10 && index < 100) {
'得意', index = '0' + index
'流泪', }
'害羞', this.$refs.textContent.addImg(`https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/${index}.png`)
'闭嘴',
'睡',
'大哭',
'尴尬',
'发怒',
'调皮',
'呲牙',
'惊讶',
'难过',
'酷',
'冷汗',
'抓狂',
'吐',
'偷笑',
'可爱',
'白眼',
'傲慢',
'饥饿',
'困',
'惊恐',
'流汗',
'憨笑',
'大兵',
'奋斗',
'咒骂',
'疑问',
'嘘',
'晕',
'折磨',
'衰',
'骷髅',
'敲打',
'再见',
'擦汗',
'抠鼻',
'鼓掌',
'糗大了',
'坏笑',
'左哼哼',
'右哼哼',
'哈欠',
'鄙视',
'委屈',
'快哭了',
'阴险',
'亲亲',
'吓',
'可怜',
'菜刀',
'西瓜',
'啤酒',
'篮球',
'乒乓',
'咖啡',
'饭',
'猪头',
'玫瑰',
'凋谢',
'示爱',
'爱心',
'心碎',
'蛋糕',
'闪电',
'炸弹',
'刀',
'足球',
'瓢虫',
'便便',
'月亮',
'太阳',
'礼物',
'拥抱',
'强',
'弱',
'握手',
'胜利',
'抱拳',
'勾引',
'拳头',
'差劲',
'爱你',
'NO',
'OK',
'爱情',
'飞吻',
'跳跳',
'发抖',
'怄火',
'转圈',
'磕头',
'回头',
'跳绳',
'挥手',
'激动',
'街舞',
'献吻',
'左太极',
'右太极'
]
let index = list.indexOf(i)
this.$refs.textContent.addImg(`https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/${index}.gif`)
}, },
updateText(val) { updateText(val) {
this.textInput(val) this.textInput(val)
...@@ -425,117 +324,16 @@ export default { ...@@ -425,117 +324,16 @@ export default {
this.eventBus.$emit('update', this.previewList) this.eventBus.$emit('update', this.previewList)
const obj = val.find(item => item.attType == 1) const obj = val.find(item => item.attType == 1)
let attContent = obj.attContent.replaceAll('[@昵称]', '<wise id="1">@昵称</wise>') let attContent = obj.attContent.replaceAll('[@昵称]', '<wise id="1">@昵称</wise>')
const htm = attContent.replace(/\[[\u4E00-\u9FA5]{1,3}]/gi, function (res) { const htm = attContent.replace(/\[[\u4E00-\u9FA56]{1,4}]/gi, function (res) {
let word = res.replace(/\[|\]/gi, '') let word = res.replace(/\[|\]/gi, '')
const list = [ const list = emoji.flat(Infinity)
'微笑', let index = parseInt(list.indexOf(word)) + 1
'撇嘴', if (index < 10) {
'色', index = '00' + index
'发呆', } else if (index >= 10 && index < 100) {
'得意', index = '0' + index
'流泪', }
'害羞', return `<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/${index}.png">`
'闭嘴',
'睡',
'大哭',
'尴尬',
'发怒',
'调皮',
'呲牙',
'惊讶',
'难过',
'酷',
'冷汗',
'抓狂',
'吐',
'偷笑',
'可爱',
'白眼',
'傲慢',
'饥饿',
'困',
'惊恐',
'流汗',
'憨笑',
'大兵',
'奋斗',
'咒骂',
'疑问',
'嘘',
'晕',
'折磨',
'衰',
'骷髅',
'敲打',
'再见',
'擦汗',
'抠鼻',
'鼓掌',
'糗大了',
'坏笑',
'左哼哼',
'右哼哼',
'哈欠',
'鄙视',
'委屈',
'快哭了',
'阴险',
'亲亲',
'吓',
'可怜',
'菜刀',
'西瓜',
'啤酒',
'篮球',
'乒乓',
'咖啡',
'饭',
'猪头',
'玫瑰',
'凋谢',
'示爱',
'爱心',
'心碎',
'蛋糕',
'闪电',
'炸弹',
'刀',
'足球',
'瓢虫',
'便便',
'月亮',
'太阳',
'礼物',
'拥抱',
'强',
'弱',
'握手',
'胜利',
'抱拳',
'勾引',
'拳头',
'差劲',
'爱你',
'NO',
'OK',
'爱情',
'飞吻',
'跳跳',
'发抖',
'怄火',
'转圈',
'磕头',
'回头',
'跳绳',
'挥手',
'激动',
'街舞',
'献吻',
'左太极',
'右太极'
]
let index = list.indexOf(word)
return `<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/${index}.gif">`
}) })
document.querySelector('.w-textarea_input').focus() document.querySelector('.w-textarea_input').focus()
setTimeout(() => { setTimeout(() => {
...@@ -554,7 +352,7 @@ export default { ...@@ -554,7 +352,7 @@ export default {
height: 0px; height: 0px;
&-box { &-box {
position: absolute; position: absolute;
top: -320px; top: -415px;
} }
} }
.content-bg { .content-bg {
......
...@@ -19,4 +19,6 @@ start() ...@@ -19,4 +19,6 @@ start()
export { bootstrap, mount, unmount } export { bootstrap, mount, unmount }
from '@/setup' from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
export const http_common = params => Vue.prototype.$http_common(params)
\ No newline at end of file \ No newline at end of file
export const http_common = params => Vue.prototype.$http_common(params)
export const http_tag = params => Vue.prototype.$http_tag(params)
export const http_custom = params => Vue.prototype.$http_custom(params)
\ No newline at end of file \ No newline at end of file
...@@ -29,6 +29,11 @@ const staticRoutes = Object.freeze([{ ...@@ -29,6 +29,11 @@ const staticRoutes = Object.freeze([{
component: resolve => require([`@/views/square/import.vue`], resolve), component: resolve => require([`@/views/square/import.vue`], resolve),
meta: {} meta: {}
}, { }, {
name: 'customDetail',
path: '/square/customDetail',
component: resolve => require([`@/views/square/customDetail.vue`], resolve),
meta: {}
}, {
name: 'importResult', name: 'importResult',
path: '/square/importResult/:id', path: '/square/importResult/:id',
component: resolve => require([`@/views/square/importResult.vue`], resolve), component: resolve => require([`@/views/square/importResult.vue`], resolve),
...@@ -45,10 +50,20 @@ const staticRoutes = Object.freeze([{ ...@@ -45,10 +50,20 @@ const staticRoutes = Object.freeze([{
meta: {} meta: {}
}, { }, {
name: 'config', name: 'config',
path: '/market/config/:id?', path: '/market/config',
component: resolve => require([`@/views/market/config.vue`], resolve), component: resolve => require([`@/views/market/config.vue`], resolve),
meta: {} meta: {}
}, { }, {
name: 'configDetail',
path: '/market/configDetail/:id?',
component: resolve => require([`@/views/market/configDetail.vue`], resolve),
meta: {}
}, {
name: 'effect',
path: '/market/effect/:id?',
component: resolve => require([`@/views/market/effect.vue`], resolve),
meta: {}
}, {
name: 'overview', name: 'overview',
path: '/overview/index', path: '/overview/index',
component: resolve => require([`@/views/overview/index.vue`], resolve), component: resolve => require([`@/views/overview/index.vue`], resolve),
......
...@@ -2,11 +2,12 @@ import Vue from 'vue' ...@@ -2,11 +2,12 @@ import Vue from 'vue'
// import { message } from '@/plugins/element.js' // import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config' import { fetchConfig } from '@/config'
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
import { GLTable,GLButton} from 'glsx-components' //权限按钮 (根据权限动态创建) import { GLTable, GLButton, GLFooter } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router' import { getRoutes } from '@/router'
import render from './render' import render from './render'
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
Vue.use(GLFooter)
// import GLTable from '@/components/glsx-table/index' // import GLTable from '@/components/glsx-table/index'
// Vue.component('GLTable', GLTable) // Vue.component('GLTable', GLTable)
// import 'glsx-components/src/theme/theme.scss' // import 'glsx-components/src/theme/theme.scss'
...@@ -15,18 +16,20 @@ import '@/assets/css/common.scss' ...@@ -15,18 +16,20 @@ import '@/assets/css/common.scss'
let routes = [] let routes = []
let router = null let router = null
let instance = null let instance = null
export async function bootstrap({ name, id, history, common, messenger, globalState,routerBase }) { export async function bootstrap({ name, id, history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret, request_common, sign_common } = await fetchConfig() const { response, request, sign, secret, request_common, sign_common, request_tag, request_custom } = await fetchConfig()
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_tag = new common.Http({ response, request: request_tag, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_custom = new common.Http({ response, request: request_custom, sign, secret, alert: ElementUI.Message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } }) Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData) routes = getRoutes(routesData)
subscribe({ messenger }) subscribe({ messenger })
Vue.use(GLButton, { routes, routerBase}) Vue.use(GLButton, { routes, routerBase })
} }
export async function mount(props) { export async function mount(props) {
console.log('11111', props) console.log('11111', props)
......
const emoji = [
['微笑', '撇嘴', '色', '发呆', '得意', '流泪', '害羞', '闭嘴'],
['睡', '大哭', '尴尬', '发怒', '调皮', '呲牙', '惊讶', '难过'],
['酷', '囧', '抓狂', '吐', '微笑', '愉快', '白眼', '傲慢'],
['饥饿', '困', '惊恐', '流汗', '憨笑', '大兵', '奋斗', '咒骂'],
['疑问', '嘘', '晕', '折磨', '衰', '骷髅', '敲打', '再见'],
['擦汗', '抠鼻', '鼓掌', '糗大了', '坏笑', '左哼哼', '右哼哼', '哈欠'],
['鄙视', '委屈', '快哭了', '阴险', '亲亲', '吓', '可怜', '菜刀'],
['西瓜', '啤酒', '篮球', '乒乓', '咖啡', '饭', '猪头', '玫瑰'],
['凋谢', '示爱', '爱心', '心碎', '蛋糕', '闪电', '炸弹', '刀'],
['足球', '瓢虫', '便便', '月亮', '太阳', '礼物', '拥抱', '强'],
['弱', '握手', '胜利', '抱拳', '勾引', '拳头', '差劲', '爱你'],
['NO', 'OK', '爱情', '飞吻', '跳跳', '发抖', '怄火', '转圈'],
['磕头', '回头', '跳绳', '投降', '挥手', '激动', '街舞', '左太极'],
['右太极', '嘿哈', '捂脸', '奸笑', '机智', '皱眉', '耶', '社会社会'],
['让我看看', '666', '红包', '蜡烛', '烟花', '福', '庆祝', '爆竹'],
]
export default emoji
\ No newline at end of file \ No newline at end of file
...@@ -83,16 +83,11 @@ ...@@ -83,16 +83,11 @@
</div> </div>
</div> </div>
</div> </div>
<div <GLFooter
class="footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
> >
<el-button type="primary" @click="handleSave">提交</el-button> <el-button type="primary" @click="handleSave">提交</el-button>
<el-button @click="goback">取消</el-button> <el-button @click="goback">取消</el-button>
</div> </GLFooter>
<select-emp @selectTable="selectTable" ref="selectEmpForm"></select-emp> <select-emp @selectTable="selectTable" ref="selectEmpForm"></select-emp>
<select-tag ref="selectTagForm" @tagSelected="tagSelected"></select-tag> <select-tag ref="selectTagForm" @tagSelected="tagSelected"></select-tag>
</div> </div>
...@@ -302,17 +297,15 @@ export default { ...@@ -302,17 +297,15 @@ export default {
}) })
}) })
}, },
resize() { // resize() {
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
} // }
},
destroyed() {
window.removeEventListener('resize', this.resize)
}, },
// destroyed() {
// window.removeEventListener('resize', this.resize)
// },
mounted() { mounted() {
this.resize()
window.addEventListener('resize', this.resize)
const { id, codeUuid } = this.$route.params const { id, codeUuid } = this.$route.params
if (id) { if (id) {
this.codeId = id this.codeId = id
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
</template> </template>
<template slot="customerName" slot-scope="scope"> <template slot="customerName" slot-scope="scope">
<div class="form-row"> <div class="form-row">
<img :src="scope.scope.avatar" v-if="scope.scope.avatar">
{{ scope.scope.customerName }} {{ scope.scope.customerName }}
<span style="color: #5850ff">{{ scope.scope.type == 1 ? '@微信' : '@企微' }}</span> <span style="color: #5850ff">{{ scope.scope.type == 1 ? '@微信' : '@企微' }}</span>
</div> </div>
...@@ -78,7 +79,8 @@ export default { ...@@ -78,7 +79,8 @@ export default {
{ {
label: '客户名称', label: '客户名称',
prop: 'customerName', prop: 'customerName',
addHtml: 'customerName' addHtml: 'customerName',
align: 'left'
}, },
{ {
label: '客户性别', label: '客户性别',
...@@ -86,20 +88,23 @@ export default { ...@@ -86,20 +88,23 @@ export default {
formatter: cellValue => { formatter: cellValue => {
console.log(cellValue) console.log(cellValue)
return cellValue.customerSex == 1 ? '男' : '女' return cellValue.customerSex == 1 ? '男' : '女'
} },
width: '80px',
}, },
{ {
label: '状态', label: '状态',
prop: 'status', prop: 'status',
addHtml: 'status' addHtml: 'status',
width: '80px',
}, },
{ {
label: '跟进员工', label: '跟进员工',
prop: 'followStaff' prop: 'followStaff',
width: '80px',
}, },
{ {
label: '添加时间', label: '添加时间',
prop: 'addTime' prop: 'addTime',
}, },
{ {
label: '操作', label: '操作',
...@@ -255,4 +260,11 @@ export default { ...@@ -255,4 +260,11 @@ export default {
} }
} }
} }
.form-row {
img {
width: 50px;
height: 50px;
vertical-align: middle;
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
<template> <template>
<div class="channel-main"> <div class="channel-main">
{{aaa}}
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="渠道码列表" name="first"></el-tab-pane> <el-tab-pane label="渠道码列表" name="first"></el-tab-pane>
<el-tab-pane label="数据统计" name="second"></el-tab-pane> <el-tab-pane label="数据统计" name="second"></el-tab-pane>
...@@ -10,23 +11,54 @@ ...@@ -10,23 +11,54 @@
</template> </template>
<script> <script>
import channelList from "./components/channelList"; import channelList from './components/channelList'
import channelStatistics from "./components/channelStatistics"; import channelStatistics from './components/channelStatistics'
export default { export default {
name: "channel", name: 'channel',
components: { components: {
channelList, channelList,
channelStatistics, channelStatistics
}, },
data() { data() {
return { return {
activeName: "first", activeName: 'first'
}; }
}, },
methods: { methods: {
handleClick() {}, jumpWx() {
this.$history.push('/settings/enterpriseWechat/index')
},
wxTips() {
const menu = JSON.parse(sessionStorage['SCRM_BASE_MENULIST'])
menu.forEach(item => {
if (!item.children) {
return
}
item.children.forEach(itm => {
if (itm.path == '/enterpriseWechat/index') {
this.$apis.channel.getStatus({}).then(res => {
if (res.status != 'SUCCESS') {
const h = this.$createElement
this.$message({
showClose: true,
duration: 0,
message: h('p', null, [h('span', null, '此功能需完成【企业微信授权】后方可使用! '), h('span', { on: { click: this.jumpWx }, style: { marginRight: '150px', cursor: 'pointer', color: '#5850ff' } }, ['企业微信授权 ', h('i', { class: 'el-icon-d-arrow-right' }, '')])])
})
}
})
}
})
})
},
handleClick() {}
},
beforeDestroy() {
this.$message.closeAll()
}, },
}; mounted() {
this.wxTips()
}
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
<template>
<div>
<div class="form-panel scrm-box-f">
<el-form :inline="true" :model="tableSearchForm" class="follow-form-item">
<el-row>
<el-form-item size="small" label="手机号">
<el-input size="small" v-model="tableSearchForm.phone" placeholder="请输入手机号"></el-input>
</el-form-item>
<el-form-item size="small" label="发送状态" style="margin-left: 20px">
<el-select v-model="tableSearchForm.status" placeholder="请选择">
<el-option v-for="item in optionstatus" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item size="small" label="客户姓名" style="margin-left: 20px">
<el-input size="small" v-model="tableSearchForm.customerName" placeholder="请输入客户姓名"></el-input>
</el-form-item>
<el-form-item size="small" style="float: right">
<el-button @click="handleReset">重置</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-row>
</el-form>
<GLTable v-loading="loading" ref="table" @refreshTable="handleSearch" :searchForm="tableSearchForm" :layout="layout" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">短信内容</el-button>
</div>
</GLTable>
</div>
</div>
</template>
<script>
import util from '@/utils/util'
export default {
name: 'customList',
data() {
return {
loading: false,
tableSearchForm: {},
tableData: [],
optionstatus: [
{
value: '',
label: '全部'
},
{
value: '0',
label: '未发送'
},
{
value: '1',
label: '已发送'
}
],
tableParams: {
listName: 'data',
tableOption: false,
tableColumns: [
{
label: '手机号',
prop: 'phone'
},
{
label: '客户姓名',
prop: 'customerName'
},
{
label: '发送状态',
prop: 'statusName'
},
{
label: '发送时间',
prop: 'sendTime'
},
{
label: '操作',
prop: 'optionBtns',
width: '140px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
},
layout: 'sizes, prev, pager, next, jumper, ->, total',
tableTotal: 0,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' }
}
},
methods: {
handleDetail(scope) {
this.$alert(scope.content, { center: true })
},
handleSearch() {
this.listChannelCodeByPage()
},
handleReset() {
this.tableSearchForm = {}
this.listChannelCodeByPage()
},
listChannelCodeByPage() {
const { id } = this.$route.params
const params = {
...JSON.parse(JSON.stringify(this.tableSearchForm)),
pageSize: this.$refs.table.page.pageSize,
pageNum: this.$refs.table.page.pageNum,
id
}
this.loading = true
this.$apis.marketing.customerPage(params).then(res => {
this.loading = false
if (res) {
this.tableData = res.data
this.tableData.forEach(item => {
this.$set(item, 'taggingList', [])
const tagging = eval(item.tagging)
if (tagging && tagging.length > 0) {
tagging.forEach(itm => {
let name = itm.name.split(',')
name.forEach((tag, index) => {
item.taggingList.push({ name: tag })
})
})
}
})
this.tableTotal = res.count
}
})
}
},
mounted() {
this.listChannelCodeByPage()
}
}
</script>
<style>
.el-popover {
max-width: 800px;
}
</style>
<style lang="scss" scoped>
.popover-panel {
width: 1000px;
}
.form-header {
margin-bottom: 20px;
}
.form-panel {
padding: 20px;
margin-bottom: 60px;
/deep/ .el-popover {
max-width: 1000px;
}
}
.download-link {
cursor: pointer;
margin-top: 6px;
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 20px;
}
.codeRemark {
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
}
.tag-panel {
.tag-item {
border-radius: 4px;
border: 1px solid #e8e8ea;
display: inline-block;
padding: 4px 6px;
margin-right: 3px;
margin-bottom: 3px;
}
}
.allTagsWrap {
position: relative;
display: -webkit-box;
// max-height: 56px;
overflow: hidden;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
padding-bottom: -2px;
box-sizing: border-box;
// &:hover {
// -webkit-line-clamp: 9999;
// // .tag-box-wrap {
// // margin-bottom: 10px;
// // }
// }
.tag-box-wrap {
display: inline-block;
margin-right: 10px;
// margin-bottom: 2px;
padding: 0 10px;
box-sizing: border-box;
min-width: 76px;
max-width: 200px;
height: 26px;
line-height: 26px;
border-radius: 4px;
border: 1px solid #e8e8ea;
background: #fafbfe;
text-align: center;
font-size: 14px;
font-weight: 400;
color: #666666;
max-width: 245px;
cursor: pointer;
margin-bottom: 3px;
// &:first-child{
// margin-bottom: 4px;
// }
}
// .tag-box-wrap + .tag-box-wrap {
// margin-bottom: 4px;
// }
.expande-button-wrap {
position: absolute;
right: 0;
bottom: 0;
.expande-button {
color: #fafbfe;
cursor: pointer;
i {
height: 8px;
}
span {
height: 20px;
font-size: 14px;
font-weight: 400;
color: #fafbfe;
line-height: 20px;
}
}
}
}
.link-dialog {
text-decoration: underline;
cursor: pointer;
}
.accountType-row {
text-align: left;
position: relative;
font-size: 14px;
line-height: 14px;
padding-left: 15px;
border-radius: 4px;
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
margin-bottom: 5px;
margin-right: 5px;
&-tag {
display: inline-block;
border: 1px solid #e8e8ea;
background: #fafbfe;
text-align: center;
font-size: 14px;
font-weight: 400;
color: #666;
max-width: 150px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
i {
color: #75acff;
margin-right: 3px;
}
// &::before {
// content: '';
// position: absolute;
// width: 6px;
// height: 6px;
// background: #5850ff;
// border-radius: 8px;
// left: 0px;
// top: 7px;
// }
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="channel-main">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="营销配置" name="first"></el-tab-pane>
<el-tab-pane label="客户列表" name="second"></el-tab-pane>
</el-tabs>
<component :is="activeName == 'first'?configInfo:customList"></component>
<GLFooter
>
<el-button type="primary" @click="goback">返回</el-button>
</GLFooter>
</div>
</template>
<script>
import configInfo from "./components/configInfo";
import customList from "./components/customList";
export default {
name: "config",
components: {
configInfo,
customList,
},
data() {
return {
activeName: "first",
customList: 'customList',
configInfo: 'configInfo'
};
},
methods: {
goback() {
this.$router.push('/market/index')
},
},
};
</script>
<style lang="scss" scoped>
.channel-main {
/deep/ {
.el-tabs__nav-wrap::after {
height: 0px;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="form-panel scrm-box-f">
<el-form :inline="true" :model="tableSearchForm" class="follow-form-item">
<el-form-item size="small" label="客户名称">
<el-input size="small" v-model="tableSearchForm.phone" placeholder="请输入客户名称"></el-input>
</el-form-item>
<el-form-item size="small" label="手机号">
<el-input size="small" v-model="tableSearchForm.phone" placeholder="请输入手机号"></el-input>
</el-form-item>
<el-form-item size="small" label="领取状态">
<el-select v-model="tableSearchForm.status" placeholder="请选择">
<el-option v-for="item in optionstatus" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<el-form-item size="small" style="float: right">
<el-button type="primary" @click="handleSearch">导出</el-button>
<el-button @click="handleReset">重置</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-form>
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">客户详情</el-button>
<el-button type="text" @click="handleDetail(scope.scope)">短信内容</el-button>
</div>
</GLTable>
</div>
</template>
<script>
export default {
name: 'effect',
data() {
return {
totalCount: 0,
percentage: 0,
optionstatus: [
{
value: '',
label: '全部'
},
{
value: '0',
label: '未发送'
},
{
value: '1',
label: '已发送'
}
],
tableSearchForm: {},
getListApi: this.$apis.overview.findAllMessageByPage,
tableParams: {
mutiSelectUniqueKey: 'id',
mutiSelectName: 'emp',
listName: 'data',
tableOption: false,
tableColumns: [
{
label: '客户名称',
prop: 'phone'
},
{
label: '手机号',
prop: 'phone'
},
{
label: '是否加企微',
prop: 'phone'
},
{
label: '手机号',
prop: 'phone'
},
{
label: '跟进员工',
prop: 'statusName'
},
{
label: '领取状态',
prop: 'phone'
},
{
label: '领取时间',
prop: 'sendTime'
},
{
label: '核销状态',
prop: 'phone'
},
{
label: '核销时间',
prop: 'sendTime'
},
{
label: '操作',
prop: 'optionBtns',
width: '160px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
baseData: {
allMerchantList: [],
roleList: [],
staffStatusList: []
}
}
},
methods: {
findMessageStatic() {
this.$apis.overview.findMessageStatic({}).then(res => {
this.totalCount = res.totalCount
this.percentage = res.percentage
})
},
handleReset() {
this.tableSearchForm = {}
this.handleSearch()
},
handleSearch() {
this.$refs.employeeRef.refreshTable()
},
handleDetail(scope) {
this.$alert(scope.content, { center: true })
}
},
mounted() {
this.findMessageStatic()
}
}
</script>
<style lang="scss" scoped>
.form-header {
margin-bottom: 20px;
}
.form-panel {
padding: 20px;
.statistics-panel {
display: flex;
&-item {
width: 33.33%;
.statistics-title-h {
font-size: 20px;
font-weight: 600;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
margin-bottom: 20px;
}
.statistics-title {
font-size: 16px;
font-weight: 500;
color: #424242;
line-height: 22px;
img {
width: 14px;
height: 14px;
margin-left: 10px;
margin-top: 4px;
}
}
.circle-box {
margin: 20px 0px;
display: flex;
align-items: center;
.circle-box-item {
margin-left: 10px;
font-size: 14px;
font-weight: 400;
color: rgba(0, 0, 0, 0.65);
line-height: 22px;
.circle-item-num {
font-size: 22px;
font-weight: 600;
color: #333333;
line-height: 30px;
}
}
}
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -33,7 +33,8 @@ ...@@ -33,7 +33,8 @@
</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">
<GLButton :disabled="scope.scope.imStatus!=1" type="text" @click="handleDetail(scope.scope)" fn="智能营销配置">营销配置</GLButton> <GLButton type="text" @click="handleDetail(scope.scope)" fn="智能营销配置">查看配置</GLButton>
<!-- <GLButton :disabled="scope.scope.imStatus!=1" type="text" @click="handleStatistics(scope.scope)" fn="营销统计">营销统计</GLButton> -->
</div> </div>
</GLTable> </GLTable>
</div> </div>
...@@ -99,7 +100,7 @@ export default { ...@@ -99,7 +100,7 @@ export default {
{ {
label: '操作', label: '操作',
prop: 'optionBtns', prop: 'optionBtns',
width: '100px', width: '180px',
addHtml: 'optionBtns', addHtml: 'optionBtns',
fixed: 'right' fixed: 'right'
} }
...@@ -138,7 +139,10 @@ export default { ...@@ -138,7 +139,10 @@ export default {
this.$router.push('/market/config') this.$router.push('/market/config')
}, },
handleDetail(scope) { handleDetail(scope) {
this.$router.push('/market/config/' + scope.id) this.$router.push('/market/configDetail/' + scope.id)
},
handleStatistics(scope) {
this.$router.push('/market/effect/' + scope.id)
} }
} }
} }
......
<template>
<div class="form-panel scrm-box-f">
<div class="form-header"><el-button type="primary" size="small" @click="goback">返回</el-button></div>
<el-form :inline="true" :model="tableSearchForm" class="follow-form-item">
<el-form-item size="small" label="客户名称">
<el-input size="small" v-model="tableSearchForm.phone" placeholder="请输入客户名称"></el-input>
</el-form-item>
<el-form-item size="small" label="电话号码">
<el-input size="small" v-model="tableSearchForm.phone" placeholder="请输入电话号码"></el-input>
</el-form-item>
<el-form-item size="small" label="是否添加企微">
<el-select v-model="tableSearchForm.status" placeholder="请选择">
<el-option v-for="item in optionstatus" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
<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-form-item>
<el-form-item size="small" style="float: right; margin-right: 0px">
<el-button @click="handleReset">重置</el-button>
<el-button type="primary" @click="handleSearch">导出</el-button>
<el-button type="primary" @click="handleSearch">查询</el-button>
</el-form-item>
</el-form>
<GLTable ref="employeeRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">客户详情</el-button>
</div>
</GLTable>
</div>
</template>
<script>
export default {
name: 'customDetail',
data() {
return {
pickerOptions: {
disabledDate: time => {
return time.getTime() > Date.now()
}
},
createTime: '',
totalCount: 0,
percentage: 0,
optionstatus: [
{
value: '',
label: '全部'
},
{
value: '0',
label: '是'
},
{
value: '1',
label: '否'
}
],
tableSearchForm: {},
getListApi: this.$apis.overview.findAllMessageByPage,
tableParams: {
mutiSelectUniqueKey: 'id',
mutiSelectName: 'emp',
listName: 'data',
tableOption: false,
otherOptions: {
label: '启用开关'
},
tableColumns: [
{
label: '客户名称',
prop: 'phone'
},
{
label: '手机号',
prop: 'phone'
},
{
label: '性别',
prop: 'phone'
},
{
label: '是否加企微',
prop: 'statusName'
},
{
label: '来源',
prop: 'sendTime',
align: 'left'
},
{
label: '跟进员工',
prop: 'phone'
},
{
label: '首次添加企微',
prop: 'sendTime'
},
{
label: '操作',
prop: 'optionBtns',
width: '140px',
addHtml: 'optionBtns',
fixed: 'right'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
baseData: {
allMerchantList: [],
roleList: [],
staffStatusList: []
}
}
},
watch: {
createTime(value) {
if (value) {
this.tableSearchForm.startTime = value[0] + ' 00:00:00'
this.tableSearchForm.endTime = value[1] + ' 23:59:59'
} else {
delete this.tableSearchForm.startTime
delete this.tableSearchForm.endTime
}
}
},
methods: {
findMessageStatic() {
this.$apis.overview.findMessageStatic({}).then(res => {
this.totalCount = res.totalCount
this.percentage = res.percentage
})
},
goback() {
this.$router.go('-1')
},
handleReset() {
this.tableSearchForm = {}
this.handleSearch()
},
handleSearch() {
this.$refs.employeeRef.refreshTable()
},
handleDetail(scope) {
this.$alert(scope.content, { center: true })
}
},
mounted() {
this.findMessageStatic()
}
}
</script>
<style lang="scss" scoped>
.form-header {
margin-bottom: 20px;
}
.form-panel {
padding: 20px;
.follow-form-item {
/deep/ {
.el-form-item {
margin-right: 20px;
}
.el-input__inner {
width: 215px;
}
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -207,16 +207,11 @@ ...@@ -207,16 +207,11 @@
</div> </div>
</div> </div>
</div> </div>
<div <GLFooter
class="footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
> >
<el-button type="primary" @click="handleSave" v-if="editStatus">提交</el-button> <el-button type="primary" @click="handleSave" v-if="editStatus">提交</el-button>
<el-button @click="goback">取消</el-button> <el-button @click="goback">取消</el-button>
</div> </GLFooter>
<select-emp ref="selectEmpForm" @selectTable="selectTable"></select-emp> <select-emp ref="selectEmpForm" @selectTable="selectTable"></select-emp>
<select-tag ref="selectTagForm" @tagSelected="tagSelected"></select-tag> <select-tag ref="selectTagForm" @tagSelected="tagSelected"></select-tag>
<message-model ref="selectMessageForm" @selectItem="selectItem"></message-model> <message-model ref="selectMessageForm" @selectItem="selectItem"></message-model>
...@@ -595,17 +590,9 @@ export default { ...@@ -595,17 +590,9 @@ export default {
} }
}) })
}, },
resize() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
}
}, },
mounted() { mounted() {
this.resize()
this.findConfig() this.findConfig()
window.addEventListener('resize', () => {
this.resize()
})
} }
} }
</script> </script>
......
...@@ -39,11 +39,11 @@ ...@@ -39,11 +39,11 @@
<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>
<div class="custom-count-num">{{ detailInfo.waitAddEntmicroNumber }}人</div> <div class="custom-count-num" @click="jumpDetail">{{ detailInfo.waitAddEntmicroNumber }}人</div>
</div> </div>
<div class="custom-count-item"> <div class="custom-count-item">
<div class="custom-count-title">人群累计人数</div> <div class="custom-count-title">人群累计人数</div>
<div class="custom-count-num">{{ detailInfo.waitAddEntmicroTotal }}人</div> <div class="custom-count-num" @click="jumpDetail">{{ detailInfo.waitAddEntmicroTotal }}人</div>
</div> </div>
</div> </div>
<div class="custom-wrap-content">当前客户池中,尚未匹配到企微账号的数量。推荐使用以下营销策略,吸引用户添加企微。</div> <div class="custom-wrap-content">当前客户池中,尚未匹配到企微账号的数量。推荐使用以下营销策略,吸引用户添加企微。</div>
...@@ -56,11 +56,11 @@ ...@@ -56,11 +56,11 @@
<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>
<div class="custom-count-num">{{ detailInfo.waitRenewalNumber }}人</div> <div class="custom-count-num" @click="jumpDetail">{{ detailInfo.waitRenewalNumber }}人</div>
</div> </div>
<div class="custom-count-item"> <div class="custom-count-item">
<div class="custom-count-title">人群累计人数</div> <div class="custom-count-title">人群累计人数</div>
<div class="custom-count-num">{{ detailInfo.waitTotal }}人</div> <div class="custom-count-num" @click="jumpDetail">{{ detailInfo.waitTotal }}人</div>
</div> </div>
</div> </div>
<div class="custom-wrap-content">提前给车险快到期的用户自动推荐适合该客户的优惠服务,提高客户续保率。</div> <div class="custom-wrap-content">提前给车险快到期的用户自动推荐适合该客户的优惠服务,提高客户续保率。</div>
...@@ -73,11 +73,11 @@ ...@@ -73,11 +73,11 @@
<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>
<div class="custom-count-num">{{ detailInfo.waitRegularMaintainNumber }}人</div> <div class="custom-count-num" @click="jumpDetail">{{ detailInfo.waitRegularMaintainNumber }}人</div>
</div> </div>
<div class="custom-count-item"> <div class="custom-count-item">
<div class="custom-count-title">人群累计人数</div> <div class="custom-count-title">人群累计人数</div>
<div class="custom-count-num">{{ detailInfo.waitRegularMaintainTotal }}人</div> <div class="custom-count-num" @click="jumpDetail">{{ detailInfo.waitRegularMaintainTotal }}人</div>
</div> </div>
</div> </div>
<div class="custom-wrap-content">智能提醒用户回店首保,提高用户返店率。</div> <div class="custom-wrap-content">智能提醒用户回店首保,提高用户返店率。</div>
...@@ -104,6 +104,9 @@ export default { ...@@ -104,6 +104,9 @@ export default {
jumpDrainage() { jumpDrainage() {
this.$router.push('/square/drainage') this.$router.push('/square/drainage')
}, },
jumpDetail() {
this.$router.push('/square/customDetail')
},
importsKey() { importsKey() {
this.importData = this.$store.getters.square.importData this.importData = this.$store.getters.square.importData
let { id } = this.$route.params let { id } = this.$route.params
...@@ -253,6 +256,7 @@ export default { ...@@ -253,6 +256,7 @@ export default {
font-weight: 500; font-weight: 500;
color: rgba(0, 0, 0, 0.85); color: rgba(0, 0, 0, 0.85);
line-height: 34px; line-height: 34px;
cursor: pointer;
} }
} }
.custom-wrap-content { .custom-wrap-content {
......
...@@ -9,15 +9,30 @@ ...@@ -9,15 +9,30 @@
<div class="square-num-box"> <div class="square-num-box">
<div class="square-num-item"> <div class="square-num-item">
<div class="square-num-title">客户总数</div> <div class="square-num-title">客户总数</div>
<div class="square-num-count">{{ countAll.totalCount }}</div> <div class="square-num-count">
<span class="detail-content">
{{ countAll.totalCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div> </div>
<div class="square-num-item"> <div class="square-num-item">
<div class="square-num-title">企微客户数</div> <div class="square-num-title">企微客户数</div>
<div class="square-num-count">{{ countAll.qyCount }}</div> <div class="square-num-count">
<span class="detail-content">
{{ countAll.qyCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div> </div>
<div class="square-num-item"> <div class="square-num-item">
<div class="square-num-title">魔方导入客户数</div> <div class="square-num-title">魔方导入客户数</div>
<div class="square-num-count">{{ countAll.magicCount }}</div> <div class="square-num-count">
<span class="detail-content">
{{ countAll.magicCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div> </div>
</div> </div>
<div class="square-title">客户分群营销</div> <div class="square-title">客户分群营销</div>
...@@ -28,7 +43,12 @@ ...@@ -28,7 +43,12 @@
<echart-circle bgColor="#6395FA" coustomId="coustomId_1" :lineData="[countAll.unQyCount, countAll.totalCount - countAll.unQyCount]"></echart-circle> <echart-circle bgColor="#6395FA" coustomId="coustomId_1" :lineData="[countAll.unQyCount, countAll.totalCount - countAll.unQyCount]"></echart-circle>
<div class="coustom-echart-desc"> <div class="coustom-echart-desc">
<div class="coustom-echart-title">人群占比</div> <div class="coustom-echart-title">人群占比</div>
<div class="coustom-echart-num">{{ countAll.unQyCount }}/{{ countAll.totalCount }}</div> <div class="coustom-echart-num">
<span class="detail-content">
{{ countAll.unQyCount }}/{{ countAll.totalCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div> </div>
</div> </div>
<div class="coustom-box-content">当前客户池中,尚未匹配到企微账号的数量。推荐使用以下营销策略,吸引用户添加企微。</div> <div class="coustom-box-content">当前客户池中,尚未匹配到企微账号的数量。推荐使用以下营销策略,吸引用户添加企微。</div>
...@@ -40,7 +60,12 @@ ...@@ -40,7 +60,12 @@
<echart-circle bgColor="#5AD8A6" coustomId="coustomId_2" :lineData="[countAll.unInfoCount, countAll.totalCount - countAll.unInfoCount]"></echart-circle> <echart-circle bgColor="#5AD8A6" coustomId="coustomId_2" :lineData="[countAll.unInfoCount, countAll.totalCount - countAll.unInfoCount]"></echart-circle>
<div class="coustom-echart-desc"> <div class="coustom-echart-desc">
<div class="coustom-echart-title">人群占比</div> <div class="coustom-echart-title">人群占比</div>
<div class="coustom-echart-num">{{ countAll.unInfoCount }}/{{ countAll.totalCount }}</div> <div class="coustom-echart-num">
<span class="detail-content">
{{ countAll.unInfoCount }}/{{ countAll.totalCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div> </div>
</div> </div>
<div class="coustom-box-content">当前客户池中,有企微客户尚未维护手机号码。建议批量通知对应的销售顾问维护此类客户信息。</div> <div class="coustom-box-content">当前客户池中,有企微客户尚未维护手机号码。建议批量通知对应的销售顾问维护此类客户信息。</div>
...@@ -52,7 +77,12 @@ ...@@ -52,7 +77,12 @@
<echart-circle bgColor="#5D7092" coustomId="coustomId_3" :lineData="[countAll.unRenewCount, countAll.totalCount - countAll.unRenewCount]"></echart-circle> <echart-circle bgColor="#5D7092" coustomId="coustomId_3" :lineData="[countAll.unRenewCount, countAll.totalCount - countAll.unRenewCount]"></echart-circle>
<div class="coustom-echart-desc"> <div class="coustom-echart-desc">
<div class="coustom-echart-title">人群占比</div> <div class="coustom-echart-title">人群占比</div>
<div class="coustom-echart-num">{{ countAll.unRenewCount }}/{{ countAll.totalCount }}</div> <div class="coustom-echart-num">
<span class="detail-content">
{{ countAll.unRenewCount }}/{{ countAll.totalCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div> </div>
</div> </div>
<div class="coustom-box-content">提前给车险快到期的用户自动推荐适合该客户的优惠服务,提高客户续保率。</div> <div class="coustom-box-content">提前给车险快到期的用户自动推荐适合该客户的优惠服务,提高客户续保率。</div>
...@@ -64,7 +94,12 @@ ...@@ -64,7 +94,12 @@
<echart-circle bgColor="#5B8FF9" coustomId="coustomId_4" :lineData="[countAll.unRegularCount, countAll.totalCount - countAll.unRegularCount]"></echart-circle> <echart-circle bgColor="#5B8FF9" coustomId="coustomId_4" :lineData="[countAll.unRegularCount, countAll.totalCount - countAll.unRegularCount]"></echart-circle>
<div class="coustom-echart-desc"> <div class="coustom-echart-desc">
<div class="coustom-echart-title">人群占比</div> <div class="coustom-echart-title">人群占比</div>
<div class="coustom-echart-num">{{ countAll.unRegularCount }}/{{ countAll.totalCount }}</div> <div class="coustom-echart-num">
<span class="detail-content">
{{ countAll.unRegularCount }}/{{ countAll.totalCount }}
<GLButton @click="jumpDetail" class="detail-btn" fn="客户明细" mode="label"></GLButton>
</span>
</div>
</div> </div>
</div> </div>
<div class="coustom-box-content">智能提醒用户回店首保,提高用户返店率。</div> <div class="coustom-box-content">智能提醒用户回店首保,提高用户返店率。</div>
...@@ -88,10 +123,17 @@ ...@@ -88,10 +123,17 @@
</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 slot="importNumber" slot-scope="scope"> <div slot="importNumber" slot-scope="scope">
<div class="number-form"><span>{{ scope.scope.entmicroNumber }}</span> | <span>{{ scope.scope.importNumber }}</span></div> <div class="number-form">
<span>{{ scope.scope.entmicroNumber }}</span>
|
<span>{{ scope.scope.importNumber }}</span>
</div>
</div> </div>
<div slot="newCostomerNumber" slot-scope="scope"> <div slot="newCostomerNumber" slot-scope="scope">
<div class="number-form"><span>{{ scope.scope.newCustomerNumber }}</span> | <span>{{ scope.scope.importNumber }}</span> <div class="number-form">
<span>{{ scope.scope.newCustomerNumber }}</span>
|
<span>{{ scope.scope.importNumber }}</span>
</div> </div>
</div> </div>
<div class="table-btns" slot="optionBtns" slot-scope="scope"> <div class="table-btns" slot="optionBtns" slot-scope="scope">
...@@ -174,8 +216,7 @@ export default { ...@@ -174,8 +216,7 @@ export default {
}, },
{ {
label: '导入人员', label: '导入人员',
prop: 'importStaffName', prop: 'importStaffName'
width: '130px'
}, },
{ {
label: '操作', label: '操作',
...@@ -207,9 +248,6 @@ export default { ...@@ -207,9 +248,6 @@ export default {
}, },
methods: { methods: {
importsCount() { importsCount() {
let params = {
merchantId: '1'
}
this.$apis.square.importsCount({}).then(res => { this.$apis.square.importsCount({}).then(res => {
console.log(res) console.log(res)
this.countAll = res this.countAll = res
...@@ -235,6 +273,9 @@ export default { ...@@ -235,6 +273,9 @@ export default {
handleImport() { handleImport() {
this.$router.push('/square/import') this.$router.push('/square/import')
}, },
jumpDetail() {
this.$router.push('/square/customDetail')
},
findLogin() { findLogin() {
this.$apis.square.findLoginCount({ loginType: 1005 }).then(res => { this.$apis.square.findLoginCount({ loginType: 1005 }).then(res => {
if (res) { if (res) {
...@@ -251,6 +292,26 @@ export default { ...@@ -251,6 +292,26 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.detail-content {
position: relative;
}
.detail-btn {
display: inline-block;
position: absolute;
cursor: pointer;
opacity: 0;
width: 100%;
height: 100%;
left: 0px;
top: 0px;
}
.detail-btn::after {
content: '';
position: absolute;
width: 100%;
height: 100%;
background: brown;
}
.number-form { .number-form {
span { span {
display: inline-block; display: inline-block;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!