Commit 03b9dcd0 by crushh

Merge branch 'feature/活码' into master

parents 566251c3 aeb84db8
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -22,6 +22,8 @@ export default {
getUserLogin().then(res => {
if (res.errorCode === 0) {
this.userId = res.result && res.result.userId;
const wxaLinkFlag = res.result && res.result.wxaLinkFlag;
localStorage.setItem('wxaLinkFlag', wxaLinkFlag);
}
});
},
......
......@@ -35,3 +35,9 @@ export const getTransferLink = params => requests(GOODS_PREFIX + '/get-transfer-
// 获取短信签名和剩余条数
export const getSign = params => requests(MARKET_PREFIX + 'getEnterpriseSetting', params);
//企业列表
export const getEntepriseList = params => requests(MARKET_PREFIX + 'list-qywx-enteprise', params);
//短信模板-引流链接是否展示
export const needShowHmLink = params => requests(MARKET_PREFIX + '/need-show-hm-link', params);
......@@ -78,3 +78,9 @@ export const checkEcmSendCount = params => requests(PREFIX + 'check-ecm-send-cou
// 短信群发-删除前查询是否关联活动
export const queryBusiCommonCheck = params => requests('/api-plug/query-busi-common-check', params, true, false, 'get');
//引流链接列表
export const hmList = params => requests(PREFIX + '/list-hm-link', params);
//创建引流活码链接
export const hmLink = params => requests(PREFIX + '/build-hm-link', params);
......@@ -4,7 +4,7 @@
<i class="column-line"></i><span class="item-header-title">{{ title }}</span>
</header>
<div class="flex-wrap">
<div class="card-item" v-for="card in list" :key="card" @click="jump(card.jumpUrl)">
<div class="card-item" v-for="card in list" :key="card" @click="jump(card)">
<div class="remark-tag" v-if="card.activityRemark">{{ card.activityRemark }}</div>
<el-image style="width: 40px; height: 40px;margin-right:12px;border-radius:8px;" :src="card.activityImage" fit="cover" />
<div class="card-right">
......@@ -47,8 +47,15 @@ export default {
};
},
methods: {
jump(url = '') {
if (url) window.location.href = `${window.location.origin}/${url}`;
jump(card) {
const { jumpUrl } = card;
if (!jumpUrl) return;
if (card.activityCode == 'hb_m0206') {
const href = `${window.location.origin}/${jumpUrl}&hbPage=staffActCode`;
window.open(href);
} else {
window.location.href = `${window.location.origin}/${jumpUrl}`;
}
}
}
};
......
......@@ -90,7 +90,7 @@
</template>
<script>
import { page, rechargeCenter, stopActivityPlan, startActivityPlan, pageStatistics, aiAccountCheck } from '@/service/api/aiApi.js';
import { page, rechargeCenter, stopActivityPlan, startActivityPlan, pageStatistics, aiAccountCheck, aiDictList } from '@/service/api/aiApi.js';
import { formatDateTimeByType } from '@/utils/index.js';
import filterAvater from '@/mixins/filterAvater.js';
......@@ -205,34 +205,34 @@ export default {
}
}
],
cardContent: [
originCardContent: [
{
title: '客户生日',
scene: 1,
scene: '1',
iconName: 'icon-shengrizunxiang',
content: '针对生日客户进行营销,提高会员粘性'
},
{
title: '节日活动邀约',
scene: 2,
scene: '2',
iconName: 'icon-huodongyaoyue',
content: '节日活动邀约,会员专享权益,提升门店营业额'
},
{
title: '加企微好友',
scene: 3,
scene: '3',
iconName: 'icon-qiweihaoyou',
content: '针对未添加企微好友的客户进行营销,添加企微好友'
},
{
title: '客户复购',
scene: 4,
scene: '4',
iconName: 'icon-kehufugouguanli',
content: '针对消费过的客户进行营销,提升核心客户数量'
},
{
title: '其它场景',
scene: 0,
scene: '0',
iconName: 'icon-qitachangjing',
content: '自定义营销场景'
}
......@@ -247,6 +247,10 @@ export default {
label: '节日活动邀约'
},
{
value: 3,
label: '加企微好友'
},
{
value: 4,
label: '客户复购'
},
......@@ -285,15 +289,17 @@ export default {
3: 'dm-status--error',
4: 'dm-status--info',
5: 'dm-status--warning'
}
},
cardContent: []
};
},
created() {
if (window.location.host != 'gicdev.demogic.com' && !window.location.host.includes('localhost')) {
this.cardContent.splice(2, 1);
}
},
// created() {
// if (window.location.host != 'gicdev.demogic.com' && !window.location.host.includes('localhost')) {
// this.cardContent.splice(2, 1);
// }
// },
mounted() {
this.getAiDictList();
this.getTableData();
this.getRechargeCenter();
this.getAiAccountCheck();
......@@ -369,6 +375,13 @@ export default {
}
},
methods: {
getAiDictList() {
aiDictList({ dictType: 'marketing_activity_scene' }).then(res => {
let arr = res.result || [];
let codeArr = arr.map(item => item.dict_code);
this.cardContent = this.originCardContent.filter(item => codeArr.includes(item.scene));
});
},
create(scene, id) {
if (!this.canCreate) {
this.$confirm(`当前账户已无可用余额,请充值后再${id ? '复制' : '创建'}外呼任务`, '提示', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment