Commit 03b06c3b by wuwx

新增群发助手详情众筹活动侧边栏样式,开启首页设置在线客服限制

1 parent 72501b56
......@@ -91,6 +91,16 @@ const getMaterialListApi = params => {
sign: true
})
}
// 众筹模式活动
const crowdfundingActivity = params => {
params.method = 'scrm.api.shopmall.crowdfunding.activity.page'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//模板列表
const templatePage = params => {
params.method = `${path}template.page.search`
......@@ -144,5 +154,6 @@ export default {
templatePage,
createdNameList,
templateUpdate,
templateSave
templateSave,
crowdfundingActivity
}
......@@ -18,9 +18,9 @@ module.exports = {
code_message_map: {}
},
request: {
// baseURL: 'http://scrm.test.glsx.com.cn/',
baseURL: 'http://scrm.test.glsx.com.cn/',
// baseURL: 'http://192.168.2.42:8064/',
baseURL: 'http://scrm.dev.glsx.com.cn/',
// baseURL: 'http://scrm.dev.glsx.com.cn/',
// 设置超时时间
timeout: 180000,
// 携带凭证
......
......@@ -19,9 +19,9 @@ export const fetchConfig = function (isEnv = true) {
// }
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
return new Http().get('https://oss-config.test.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
// return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=marketing').then(res => res.data)
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/619c87331072f92988f05a29/marketing/config')
}
export const config = {
install(vue, cfg) {
......
......@@ -273,6 +273,16 @@ export default {
params: {
merchantId: this.$globalState.session.merchantId
}
},
{
itemName: '众筹活动',
itemValue: 7,
itemType: 'crowdfunding',
getInterfaceApi: this.$apis.welcomeword.crowdfundingActivity,
params: {
currentPage: 1,
activityStatus: 2
}
}
]
},
......@@ -477,11 +487,14 @@ export default {
})
item.attContent = replaceImg.substring(0, 600)
} else if (item.attType == 7) {
if (item.attContent.title) {
item.attType = 4
params.crowdFunding = true
}
item.attContent = JSON.stringify(item.attContent)
}
return item
})
console.log(params)
params.attachmentList = attachmentList
if (params.sendType == 2) {
params.sendTimeStr = this.basicForm.sendTime + ' ' + this.basicForm.sendDate
......@@ -502,7 +515,7 @@ export default {
type: 'success',
message: '操作成功!'
})
this.$tracker.track(Object.assign({},{pageName:'群发助手',name:'新建客户群发',params}))
this.$tracker.track(Object.assign({}, { pageName: '群发助手', name: '新建客户群发', params }))
} else {
this.$message({
type: 'error',
......
......@@ -10,10 +10,11 @@
<template v-else-if="item.attType == 7">
<div class="preview-activity">
<div class="activity-name">{{ item.attContent.marketingName }}</div>
<img v-if="item.attContent.marketingType != 5 && item.attContent.marketingType != 6" class="activity-logo" src="@/assets/guestCustom/activity-logo.png" alt />
<img v-if="item.attContent.marketingType != 5 && item.attContent.marketingType != 6 && item.attContent.marketingType != 7" class="activity-logo" src="@/assets/guestCustom/activity-logo.png" alt />
<img v-if="item.attContent.marketingType == 5" class="activity-logo" src="@/assets/guestCustom/activity-spike.png" alt />
<img v-if="item.attContent.marketingType == 6" class="activity-logo" src="@/assets/guestCustom/activity-service.png" alt />
<div class="activity-footer">
<img v-if="item.attContent.marketingType == 7" class="link-logo" src="@/assets/guestCustom/link.png" alt />
<div class="activity-footer" v-if="item.attContent.marketingType != 7">
<img src="@/assets/guestCustom/applet-footer.png" alt />
</div>
</div>
......@@ -248,4 +249,10 @@ export default {
}
}
}
.link-logo {
width: 30px;
height: 30px;
margin-left: 131px;
margin-bottom: 5px;
}
</style>
......@@ -147,7 +147,7 @@
</el-radio>
<el-button v-show="!baseData.consultantList.length" type="text"></el-button>
<p style="color: #5850ff;margin-left: 22px;" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p>
<el-radio v-model="editForm.customerServerType" v-if="showGh" :label="2">
<el-radio v-model="editForm.customerServerType" :label="2">
<el-input style="width: 320px" placeholder="请输入链接" :disabled="editForm.customerServerType == 1" v-model="editForm.customerServerUrl" clearable></el-input>
</el-radio>
</div>
......@@ -230,7 +230,6 @@ export default {
userInfo: {},
// 查看大图
isImgVisible: false,
showGh: false,
state: '',
dialogObj: {
url: '',
......@@ -451,8 +450,6 @@ export default {
this.externalFormList[idx].editFormData[idxx].isHide = true
this.externalFormList[idxxx].editFormData[idxxxx].isHide = true
}
let href = window.location.host
this.showGh = href.indexOf('cgacar') != -1
},
methods: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!