Commit 60b3d6e4 by yy

end

1 parent 78f158a3
......@@ -6,12 +6,12 @@
* @param {*} params
* @returns
*/
import { http,http_tag,http_custom } from '@/main'
import { http,http_tag } from '@/main'
let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
const getListApi = params => {
params.method = 'entmicro.api.staff.listFollowerStaffByPage'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -21,7 +21,7 @@ const getListApi = params => {
const getFollower = params => {
params.method = 'entmicro.api.staff.listFollowerStaffByPage'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -41,7 +41,7 @@ const querylabeltree = params => {
const deleteChannelCodeBill = params => {
params.method = 'entmicro.api.code.deleteChannelCodeBill'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -51,7 +51,7 @@ const deleteChannelCodeBill = params => {
const getSubCodeChannelCodeBill = params => {
params.method = 'entmicro.api.code.getSubCodeChannelCodeBill'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -61,7 +61,7 @@ const getSubCodeChannelCodeBill = params => {
const saveChannelCodeBill = params => {
params.method = 'entmicro.api.code.saveChannelCodeBill'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -71,7 +71,7 @@ const saveChannelCodeBill = params => {
const updateChannelCodeBill = params => {
params.method = 'entmicro.api.code.updateChannelCodeBill'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -81,7 +81,7 @@ const updateChannelCodeBill = params => {
const listChannelCodeBill = params => {
params.method = 'entmicro.api.code.listChannelCodeBill'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -92,7 +92,7 @@ const listChannelCodeBill = params => {
const deleteChannelCode = params => {
params.method = 'entmicro.api.code.deleteChannelCode'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -102,7 +102,7 @@ const deleteChannelCode = params => {
const detailChannelCode = params => {
params.method = 'entmicro.api.code.detailChannelCode'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -112,7 +112,7 @@ const detailChannelCode = params => {
const listChannelCodeByPage = params => {
params.method = 'entmicro.api.code.listChannelCodeByPage'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -122,7 +122,7 @@ const listChannelCodeByPage = params => {
const saveChannelCode = params => {
params.method = 'entmicro.api.code.saveChannelCode'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -132,7 +132,7 @@ const saveChannelCode = params => {
const updateChannelCode = params => {
params.method = 'entmicro.api.code.updateChannelCode'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -140,9 +140,9 @@ const updateChannelCode = params => {
})
}
const getCustomer = params => {
params.method = 'entmicro.api.customer.page'
params.method = 'entmicro.api.customer.code.page'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -152,7 +152,7 @@ const getCustomer = params => {
const getChannelCodeStaffList = params => {
params.method = 'entmicro.api.code.getChannelCodeStaffList'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......
......@@ -6,7 +6,7 @@
* @param {*} params
* @returns
*/
import { http,http_custom } from '@/main'
import { http } from '@/main'
let session = 'mini-57c1c42e-8a0c-4fc3-959c-b62813a471cd-rop'
const getCoupon = params => {
params.method = 'scrm.api.boutiquecoupon.coupon.page'
......@@ -75,7 +75,7 @@ const getActivity = params => {
const findAllByPage = params => {
params.method = 'entmicro.api.dracIm.findAllByPage'
params.sessionId = session
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -85,7 +85,7 @@ const findAllByPage = params => {
const exportAdd = params => {
params.method = 'entmicro.api.dracIm.exportAdd'
params.sessionId = session
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -95,7 +95,7 @@ const exportAdd = params => {
const exportUpdate = params => {
params.method = 'entmicro.api.dracIm.exportUpdate'
params.sessionId = session
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -105,7 +105,7 @@ const exportUpdate = params => {
const findById = params => {
params.method = 'entmicro.api.dracIm.findById'
params.sessionId = session
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -115,7 +115,7 @@ const findById = params => {
const dracImMessage = params => {
params.method = 'entmicro.api.dracImMessage.findAllByCondition'
params.sessionId = session
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -125,7 +125,7 @@ const dracImMessage = params => {
const listChannelCodeBill = params => {
params.method = 'entmicro.api.code.listChannelCodeBill'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -135,7 +135,7 @@ const listChannelCodeBill = params => {
const addConfig = params => {
params.method = 'entmicro.api.dracImConfig.addConfig'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -145,7 +145,7 @@ const addConfig = params => {
const findConfig = params => {
params.method = 'entmicro.api.dracImConfig.findConfig'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -155,7 +155,7 @@ const findConfig = params => {
const updateConfig = params => {
params.method = 'entmicro.api.dracImConfig.updateConfig'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -165,7 +165,7 @@ const updateConfig = params => {
const customerPage = params => {
params.method = 'entmicro.api.dracIm.customer.search.page'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......
......@@ -6,11 +6,11 @@
* @param {*} params
* @returns
*/
import { http,http_custom } from '@/main'
import { http } from '@/main'
let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
const codeDefault = params => {
params.method = 'entmicro.api.drac.statistic.code.default'
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -19,7 +19,7 @@ const codeDefault = params => {
}
const listStaff = params => {
params.method = 'entmicro.api.drac.statistic.code.detail.list.staff'
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -28,7 +28,7 @@ const listStaff = params => {
}
const listTime = params => {
params.method = 'entmicro.api.drac.statistic.code.detail.list.time'
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -37,7 +37,7 @@ const listTime = params => {
}
const detailTotal = params => {
params.method = 'entmicro.api.drac.statistic.code.detail.total'
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -47,7 +47,7 @@ const detailTotal = params => {
const codeSearch = params => {
params.method = 'entmicro.api.drac.statistic.code.search'
params.sessionId = session
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -57,7 +57,7 @@ const codeSearch = params => {
const codeTrend = params => {
params.method = 'entmicro.api.drac.statistic.code.trend'
params.sessionId = session
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -67,7 +67,7 @@ const codeTrend = params => {
const dayTrend = params => {
params.method = 'entmicro.api.drac.statistic.day.trend'
params.sessionId = session
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -77,7 +77,7 @@ const dayTrend = params => {
const overview = params => {
params.method = 'entmicro.api.drac.statistic.overview'
params.sessionId = session
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -87,7 +87,7 @@ const overview = params => {
const findMessageStatic = params => {
params.method = 'entmicro.api.dracIm.findMessageStatic'
params.sessionId = session
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -98,7 +98,7 @@ const findMessageStatic = params => {
const viewChart = params => {
params.method = 'entmicro.api.drac.statistic.getCustomerStatisticCodeTrend'
params.sessionId = session
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -108,7 +108,7 @@ const viewChart = params => {
const findAllMessageByPage = params => {
params.method = 'entmicro.api.dracIm.findAllMessageByPage'
params.sessionId = session
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......
......@@ -6,12 +6,12 @@
* @param {*} params
* @returns
*/
import { http,http_custom } from '@/main'
import { http } from '@/main'
let session = 'mini-c38a80dd-cf48-4491-8933-fb2eb57fb4ca-rop'
const importsUpload = params => {
params.method = 'entmicro.api.imports.upload'
params.sessionId = session
return http_custom({
return http({
url: '/rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -21,7 +21,7 @@ const importsUpload = params => {
const downloadModel = params => {
params.method = 'entmicro.api.imports.download.model'
params.sessionId = session
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -31,7 +31,7 @@ const downloadModel = params => {
const importsRecord = params => {
params.method = 'entmicro.api.imports.record.page'
params.sessionId = session
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -41,7 +41,7 @@ const importsRecord = params => {
const importsCount = params => {
params.method = 'entmicro.api.imports.count'
params.sessionId = session
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -51,7 +51,7 @@ const importsCount = params => {
const importsKey = params => {
params.method = 'entmicro.api.imports.record.key'
params.sessionId = session
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......@@ -60,7 +60,7 @@ const importsKey = params => {
}
const findLoginCount = params => {
params.method = 'entmicro.api.common.findLoginCount'
return http_custom({
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
......
......@@ -9,23 +9,23 @@
<el-tab-pane label="权益套餐" name="4"></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="1" v-if="openFlag"></el-tab-pane>
<el-tab-pane label="无忧服务" name="6" v-if="openFlag"></el-tab-pane>
</el-tabs>
</div>
<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-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 == 1">{{ item.equityName }}</div>
<div class="model-item-title" :title="item.couponName" v-show="activeName == 6">{{ 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.activityName" v-show="activeName == 5">{{ item.activityName }}</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 == 2 && item.effectiveType == 1">有效期:{{ item.effectiveDays}}天</div>
<div class="model-item-content" v-show="activeName == 2 && item.effectiveType == 6">有效期:{{ 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 == 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 == 6">获取方式:需先购买无忧服务套餐</div>
<div class="model-item-content" v-show="activeName == 6">获取限制:每个服务套餐限领一次</div>
<div class="model-item-content" v-show="activeName == 3"></div>
<div class="model-item-content model-item-contents" v-show="activeName == 3">
......@@ -36,9 +36,9 @@
使用途径:
{{ item.useChannel == 1 ? '线上商品' : '到店核销' }}
</div>
<div class="model-item-content" v-show="activeName == 1">
<div class="model-item-content model-item-weight" v-show="activeName == 6">
赠送天数:
<span>{{effectiveType == 2 ? item.effectiveDay + '天' : '永久有效' }}</span>
<span>{{ effectiveType == 2 ? item.effectiveDay + '天' : '永久有效' }}</span>
</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">
......@@ -145,7 +145,7 @@ export default {
this.loading = true
let market = ''
switch (this.activeName) {
case '1':
case '6':
market = 'merchant'
break
case '2':
......@@ -177,12 +177,12 @@ export default {
params.currentPage = this.pageNum
params.activityStatus = 2
}
if (this.activeName == 1) {
if (this.activeName == 6) {
params.merchantId = this.$globalState.session.merchantId
}
this.$apis.marketing[market](params)
.then(res => {
if (this.activeName == 3 || this.activeName == 1) {
if (this.activeName == 3 || this.activeName == 6) {
this.modelList = res
} else {
this.modelList = res.list ? res.list : res.data
......@@ -354,6 +354,10 @@ export default {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
&.model-item-weight {
line-height: 20px;
height: 20px;
}
span {
color: #5850ff;
font-size: 20px;
......
......@@ -20,5 +20,4 @@ export { bootstrap, mount, unmount }
from '@/setup'
export const http = params => Vue.prototype.$http(params)
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
export const http_tag = params => Vue.prototype.$http_tag(params)
\ No newline at end of file
......@@ -17,14 +17,13 @@ let routes = []
let router = null
let instance = null
export async function bootstrap({ name, id, history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret, request_common, sign_common, request_tag, request_custom } = await fetchConfig()
const { response, request, sign, secret, request_common, sign_common, request_tag } = await fetchConfig()
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
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_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 } })
const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData)
......
<template>
<div>
<div id="channel-main" class="chart-line" v-show="lineStatus"></div>
<div class="chart-line-empty" v-show="!lineStatus">
<div id="channel-main" class="chart-line" v-show="lineStatus"></div>
<div class="chart-line-empty" v-show="!lineStatus">
<img src="@/assets/img/empty.png" />
<div class="chart-empty-d">暂无数据</div>
</div>
......@@ -27,6 +27,12 @@ export default {
let notAddEntMicroCount = lineData.map(item => {
return item.notAddEntMicroCount
})
const lengthC = entMicroCount.length - 1
if (notAddEntMicroCount.every(item => item == 0) && entMicroCount.every(item => item == 0)) {
this.lineStatus = false
return
}
this.lineStatus = true
let dateTime = lineData.map(item => {
return item.dayTime
})
......@@ -54,13 +60,13 @@ export default {
},
dataZoom: [
{
type: 'inside',
startValue: 0,
endValue: 29
startValue: lengthC-29,
endValue: lengthC
},
{
startValue: 0,
endValue: 29
type: 'inside',
startValue: lengthC-29,
endValue: lengthC
}
],
xAxis: {
......@@ -70,7 +76,7 @@ export default {
},
yAxis: {
type: 'value',
minInterval: 1,
minInterval: 1
},
series: [
{
......@@ -88,12 +94,7 @@ export default {
]
}
option && myChart.setOption(option)
if(notAddEntMicroCount.every(item => item == 0) && entMicroCount.every(item => item == 0)) {
this.lineStatus = false
}else {
this.lineStatus = true
}
option && myChart.setOption(option)
}
}
}
......
......@@ -2,7 +2,7 @@
<div class="overview-main">
<div class="overview-header">
<span>引流获客概览</span>
<el-popover placement="top" width="400" trigger="hover" content="引流获客通过整合活码营销、企微魔方,可分别针对到店用户及离店用户提供企微线上化方案。帮助门店迅速的形成企微客户池,为后续营销活动搭建起稳定高频的触达通道。">
<el-popover placement="top" width="400" trigger="hover" content="引流获客通过整合活码营销、数据魔方,可分别针对到店用户及离店用户提供企微线上化方案。帮助门店迅速的形成企微客户池,为后续营销活动搭建起稳定高频的触达通道。">
<img src="@/assets/img/question.png" slot="reference" class="count-item-question" />
</el-popover>
</div>
......@@ -41,7 +41,7 @@
<div class="store-item">
<div class="store-item-s">
<div class="store-item-title">离店用户线上化</div>
<el-button type="primary" size="small" @click="jumpSquare">企微魔方</el-button>
<el-button type="primary" size="small" @click="jumpSquare">数据魔方</el-button>
</div>
<div class="store-item-s">
<div class="store-item-icon">
......@@ -205,9 +205,7 @@ export default {
}
}
.user-panel {
display: flex;
&-line {
flex: 1;
padding: 20px;
.echart-title {
font-size: 20px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!