Commit 6295ea34 by 胡悦

一键营销联调

1 parent b4833107
/*
* @Description:
* @Author: huyue
* @Date: 2022-06-06 14:26:32
* @LastEditors: huyue
* @LastEditTime: 2022-06-06 21:19:53
*/
const url = '/rop-scrm-marketing/router' const url = '/rop-scrm-marketing/router'
export default { export default {
/** /**
...@@ -41,7 +48,7 @@ export default { ...@@ -41,7 +48,7 @@ export default {
createdOcmarketing(data) { createdOcmarketing(data) {
data.method = 'marketing.api.solicit.ocmarketing.send' data.method = 'marketing.api.solicit.ocmarketing.send'
return window.$HTTP({ return window.$HTTP({
url, url: 'http://192.168.1.170:8065/rop-scrm-marketing/router',
data data
}) })
}, },
...@@ -50,7 +57,7 @@ export default { ...@@ -50,7 +57,7 @@ export default {
getocmarketingList(data) { getocmarketingList(data) {
data.method = 'marketing.api.solicit.ocmarketing.echo' data.method = 'marketing.api.solicit.ocmarketing.echo'
return window.$HTTP({ return window.$HTTP({
url, url: 'http://192.168.1.170:8065/rop-scrm-marketing/router',
data, data,
returnAll: true returnAll: true
}) })
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
{{ item.customerName }} {{ item.customerName }}
</label> </label>
<label class="origin">{{ item.type == 1 ? '@微信' : '@企微' }}</label> <label class="origin">{{ item.type == 1 ? '@微信' : item.type == 2 ? '@企微' : '' }}</label>
</div> </div>
</div> </div>
<div class="buttomLine"></div> <div class="buttomLine"></div>
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
methods: { methods: {
//初始化微信接口 //初始化微信接口
initWx() { initWx() {
wxConfig.init(['openEnterpriseChat']).then(() => {}) wxConfig.init(['openEnterpriseChat']).then(() => { })
}, },
//打开会话 //打开会话
gotoInfo(item) { gotoInfo(item) {
...@@ -70,6 +70,7 @@ export default { ...@@ -70,6 +70,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.tagContainer { .tagContainer {
.customerList { .customerList {
// background: #fff; // background: #fff;
.customer { .customer {
padding: 0 8px; padding: 0 8px;
...@@ -82,21 +83,26 @@ export default { ...@@ -82,21 +83,26 @@ export default {
width: 44px; width: 44px;
height: 44px; height: 44px;
padding: 12px 16px; padding: 12px 16px;
img { img {
width: 100%; width: 100%;
} }
} }
.customer-info { .customer-info {
padding: 16px 0; padding: 16px 0;
width: calc(100% - 130px); width: calc(100% - 130px);
.customer-info-name { .customer-info-name {
font-size: 16px; font-size: 16px;
line-height: 22px; line-height: 22px;
color: #333333; color: #333333;
display: flex; display: flex;
.name { .name {
max-width: 70%; max-width: 70%;
} }
.origin { .origin {
font-size: 14px; font-size: 14px;
color: #2cca74; color: #2cca74;
...@@ -106,6 +112,7 @@ export default { ...@@ -106,6 +112,7 @@ export default {
} }
} }
} }
.buttomLine { .buttomLine {
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -116,11 +123,13 @@ export default { ...@@ -116,11 +123,13 @@ export default {
background-color: #c3c3c3 !important; background-color: #c3c3c3 !important;
} }
} }
.tagContainer /deep/ .van-checkbox__icon--checked .van-icon { .tagContainer /deep/ .van-checkbox__icon--checked .van-icon {
color: #fff; color: #fff;
background-color: #3975c6 !important; background-color: #3975c6 !important;
border-color: #3975c6 !important; border-color: #3975c6 !important;
} }
.tagContainer /deep/.van-checkbox__icon .van-icon { .tagContainer /deep/.van-checkbox__icon .van-icon {
width: 16px; width: 16px;
height: 16px; height: 16px;
......
...@@ -10,9 +10,11 @@ ...@@ -10,9 +10,11 @@
</div> </div>
<tab-customer :list="['企微营销', '电话招揽']" @change="changeFollow" :index="follewIndex"> <tab-customer :list="['企微营销', '电话招揽']" @change="changeFollow" :index="follewIndex">
<scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView"> <scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView">
<template v-if="solicitationFollowData.weComMarketingList && solicitationFollowData.weComMarketingList.length > 0"> <template
v-if="solicitationFollowData.weComMarketingList && solicitationFollowData.weComMarketingList.length > 0">
<div class="follow-content"> <div class="follow-content">
<div class="follow-content-item m-b-12" v-for="(item, index) in solicitationFollowData.weComMarketingList" :key="index"> <div class="follow-content-item m-b-12" v-for="(item, index) in solicitationFollowData.weComMarketingList"
:key="index">
<div class="follow-content-item-top"> <div class="follow-content-item-top">
<div class="font-16 color-3 fw5 text-hide">{{ item.groupName }}</div> <div class="font-16 color-3 fw5 text-hide">{{ item.groupName }}</div>
<div class="m-t-8 flex-between fw7"> <div class="m-t-8 flex-between fw7">
...@@ -46,7 +48,7 @@ ...@@ -46,7 +48,7 @@
</div> </div>
</template> </template>
<script> <script>
import { mapState, mapMutations,mapActions } from 'vuex' import { mapState, mapMutations, mapActions } from 'vuex'
import { solicitApi } from '@/api' import { solicitApi } from '@/api'
import { Toast } from 'vant' import { Toast } from 'vant'
export default { export default {
...@@ -170,29 +172,36 @@ export default { ...@@ -170,29 +172,36 @@ export default {
.follow-statistics { .follow-statistics {
background: #fff; background: #fff;
height: 82px; height: 82px;
&-single { &-single {
padding: 12px 0; padding: 12px 0;
width: 33.3%; width: 33.3%;
div { div {
text-align: center; text-align: center;
} }
} }
} }
.content { .content {
height: calc(100vh - 232px); height: calc(100vh - 232px);
.follow-content { .follow-content {
padding: 16px 12px; padding: 16px 12px;
box-sizing: border-box; box-sizing: border-box;
&-item { &-item {
background: #f7f7f7; background: #f7f7f7;
border-radius: 8px; border-radius: 8px;
height: 140px; height: 140px;
&-top { &-top {
padding: 16px 16px 0 16px; padding: 16px 16px 0 16px;
border-bottom: 1px solid rgba(216, 216, 216, 0.3); border-bottom: 1px solid rgba(216, 216, 216, 0.3);
height: 96px; height: 96px;
box-sizing: border-box; box-sizing: border-box;
} }
.follow-btn { .follow-btn {
padding: 10px 52px; padding: 10px 52px;
box-sizing: border-box; box-sizing: border-box;
...@@ -201,6 +210,7 @@ export default { ...@@ -201,6 +210,7 @@ export default {
} }
} }
} }
.custom-image { .custom-image {
background: #fff; background: #fff;
height: 100%; height: 100%;
......
...@@ -22,12 +22,14 @@ ...@@ -22,12 +22,14 @@
<div class="marking-container-customer flex-between"> <div class="marking-container-customer flex-between">
<div class="font-16 color-3 fw5">发送客户</div> <div class="font-16 color-3 fw5">发送客户</div>
<div class="color-2f font-14 flex" @click="goTo('solicit.customer')"> <div class="color-2f font-14 flex" @click="goTo('solicit.customer')">
共{{ marketingDetails.customerInfoList.length }}人 共{{ marketingDetails.customerInfoList ? marketingDetails.customerInfoList.length : 0 }}人
<div class="sprite-icon icon-arrow m-l-8"></div> <div class="sprite-icon icon-arrow m-l-8"></div>
</div> </div>
</div> </div>
<div class="footer"> <div class="footer">
<div :class="{ 'marking-button': true, disabled: marketingDetails.customerInfoList.length == 0 }" @click="sendHandle">一键发送</div> <div
:class="{ 'marking-button': true, disabled: !marketingDetails.customerInfoList || marketingDetails.customerInfoList.length == 0 }"
@click="sendHandle">一键发送</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -47,7 +49,7 @@ export default { ...@@ -47,7 +49,7 @@ export default {
businessUuid: 'string', businessUuid: 'string',
businessDesc: 'string', businessDesc: 'string',
attContent: attContent:
' 把v下吧教科书空间上传开始接触烧烤聚会恐惧好快就好v了;是dhvs;绿茶会计核算的;健康v还都是恐惧和大家客户啊是看不见彼此间莫桑比克吃的空间舒适的空间回复出可视电话v 开始v看回放v空间发挥恐惧和抗拒款双肩包女教师的女,马摘星不你就看是的不吃vkjdsbvksjbvkjs。 的vsdvasdhlvjsh看女款和v看就dshvksjhvsdhvs;开局后大家看和vkjdhvkdjhvkjdshv看电视剧 把v下吧教科书空间上传开始接触烧烤聚会恐惧好快就好v了;是dhvs;绿茶会计核算的;健康v还都是恐惧和大家客户啊是看不见彼此间莫桑比克吃的空间舒适的空间回复出可视电话v 开始v看回放v空间发挥恐惧和抗拒款双肩包女教师的女,马摘星不你就看是的不吃vkjdsbvksjbvkjs。 的vsdvasdhlvjsh看女款和v看就dshvksjhvsdhvs;开局后大家看和vkjdhvkdjhvkjdshv看电视剧 ', ' 把v下吧教科书空间上传开始接触烧烤聚会恐惧好快就好v了;是dhvs;绿茶会计核算的;健康v还都是恐惧和大家客户啊是看不见彼此间莫桑比克吃的空间舒适的空间回复出可视电话v 开始v看回放v空间发挥恐惧和抗拒款双肩包女教师的女,马摘星不你就看是的不吃vkjdsbvksjbvkjs。 的vsdvasdhlvjsh看女款和v看就dshvksjhvsdhvs;开局后大家看和vkjdhvkdjhvkjdshv看电视剧 把v下吧教科书空间上传开始接触烧烤聚会恐惧好快就好v了;是dhvs;绿茶会计核算的;健康v还都是恐惧和大家客户啊是看不见彼此间莫桑比克吃的空间舒适的空间回复出可视电话v 开始v看回放v空间发挥恐惧和抗拒款双肩包女教师的女,马摘星不你就看是的不吃vkjdsbvksjbvkjs。 的vsdvasdhlvjsh看女款和v看就dshvksjhvsdhvs;开局后大家看和vkjdhvkdjhvkjdshv看电视剧 jlkajsdfaklsj\n大法师[困][饥饿][示爱]',
attType: 1, attType: 1,
attNum: 0, attNum: 0,
mediaId: 'string', mediaId: 'string',
...@@ -72,7 +74,8 @@ export default { ...@@ -72,7 +74,8 @@ export default {
} }
}, },
created() { created() {
this.groupId = this.getQuery().groupId ? this.getQuery().groupId : '' this.groupId = this.getQuery().groupId ? this.getQuery().groupId : 2
this.getocmarketingList()
}, },
computed: { computed: {
...mapState({ ...mapState({
...@@ -87,7 +90,7 @@ export default { ...@@ -87,7 +90,7 @@ export default {
//一键营销内容回显 //一键营销内容回显
getocmarketingList() { getocmarketingList() {
let params = { let params = {
activityId: this.activityId, id: this.activityId,
staffId: this.staffId, staffId: this.staffId,
groupId: this.groupId groupId: this.groupId
} }
...@@ -95,7 +98,8 @@ export default { ...@@ -95,7 +98,8 @@ export default {
solicitApi.getocmarketingList(params).then(({ code, data, message }) => { solicitApi.getocmarketingList(params).then(({ code, data, message }) => {
this.hideLoading() this.hideLoading()
if (code == '0') { if (code == '0') {
this.marketingDetails = data // this.marketingDetails = data
this.$set(this, 'marketingDetails', data)
this.SET_COUSTOMER_LIST({ customerInfoList: data.customerInfoList }) this.SET_COUSTOMER_LIST({ customerInfoList: data.customerInfoList })
} else { } else {
Notify(message) Notify(message)
...@@ -118,6 +122,7 @@ export default { ...@@ -118,6 +122,7 @@ export default {
staffId: this.staffId staffId: this.staffId
} }
solicitApi.createdOcmarketing(params).then(res => { solicitApi.createdOcmarketing(params).then(res => {
console.log(res)
if (res) { if (res) {
Toast('营销活动已创建,请及时在「企业微信-群发助手」中确认发送') Toast('营销活动已创建,请及时在「企业微信-群发助手」中确认发送')
this.$router.go(-1) this.$router.go(-1)
...@@ -136,25 +141,31 @@ export default { ...@@ -136,25 +141,31 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.marking-container { .marking-container {
padding: 16px; padding: 16px;
&-content { &-content {
background: #fff; background: #fff;
padding: 16px; padding: 16px;
.marking-image { .marking-image {
width: 248px; width: 248px;
height: 198px; height: 198px;
margin: 12px 32px 16px 32px; margin: 12px 32px 16px 32px;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
} }
.marking-empty { .marking-empty {
padding: 39px 0 24px 0 !important; padding: 39px 0 24px 0 !important;
/deep/ .van-empty__description { /deep/ .van-empty__description {
padding: 0; padding: 0;
} }
} }
} }
&-customer { &-customer {
height: 56px; height: 56px;
background: #ffffff; background: #ffffff;
...@@ -163,6 +174,7 @@ export default { ...@@ -163,6 +174,7 @@ export default {
padding: 0 16px; padding: 0 16px;
margin-bottom: 50px; margin-bottom: 50px;
} }
.footer { .footer {
width: 343px; width: 343px;
height: 58px; height: 58px;
...@@ -171,6 +183,7 @@ export default { ...@@ -171,6 +183,7 @@ export default {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
} }
.marking-button { .marking-button {
width: 343px; width: 343px;
height: 42px; height: 42px;
...@@ -181,8 +194,10 @@ export default { ...@@ -181,8 +194,10 @@ export default {
color: #ffffff; color: #ffffff;
line-height: 42px; line-height: 42px;
text-align: center; text-align: center;
margin-bottom: 16px;; margin-bottom: 16px;
;
} }
.disabled { .disabled {
background: #d5d8db !important; background: #d5d8db !important;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!