Commit 27f69794 by 杨明

fixed

1 parent b5b3d2fc
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-16 17:13:33 * @Date: 2023-05-16 17:13:33
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-09 13:08:01 * @LastEditTime: 2023-07-09 13:15:50
* @FilePath: \scrm-micro-home\src\store\modules\marketing.js * @FilePath: \scrm-micro-home\src\store\modules\marketing.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<el-form ref="configForm" :model="configForm" label-width="200px"> <el-form ref="configForm" :model="configForm" label-width="200px">
<el-form-item label="AI人工智能外呼:" :size="size"> <el-form-item label="AI人工智能外呼:" :size="size">
<el-select v-model="configForm.talkId" placeholder="请选择"> <el-select v-model="configForm.talkId" placeholder="请选择">
<el-option v-for="item in roobList" :key="item.id" :label="item.label" :value="item.value"></el-option> <el-option v-for="item in roobList" :key="item.robotDefId" :label="item.robotName" :value="item.robotDefId"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="营销短信:" :size="size"> <el-form-item label="营销短信:" :size="size">
...@@ -253,13 +253,13 @@ export default { ...@@ -253,13 +253,13 @@ export default {
messageContent: '【门店名称】诚邀您参与{0},请尽快点击链接参与,谨防错过哦! {1} 谨防错过退订回T。' messageContent: '【门店名称】诚邀您参与{0},请尽快点击链接参与,谨防错过哦! {1} 谨防错过退订回T。'
} }
this.$apis.marketing.getRobotList({}).then(res => { this.$apis.marketing.getRobotList({}).then(res => {
console.log(res) this.roobList = res.list || []
}) })
}, },
handleCancelConfirm() { handleCancelConfirm() {
this.configVisible = false this.configVisible = false
this.selectEmp.talkId = this.configForm.talkId this.selectEmp.talkId = this.configForm.talkId
this.selectEmp.messageContent = this.configForm.messageContent this.selectEmp.messageContent = this.configForm.messageContent.replace(/门店名称/, this.$globalState.session.merchantName)
}, },
handleCancel() { handleCancel() {
this.setProcess({ 0: true }) this.setProcess({ 0: true })
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<div class="choseRow"> <div class="choseRow">
<div class="choseItem" :class="{ active: currentIndex == item.type }" v-for="(item, index) in tabList" :key="index" @click="tabClick(item.type)">{{ item.label }}</div> <div class="choseItem" :class="{ active: currentIndex == item.type }" v-for="(item, index) in tabList" :key="index" @click="tabClick(item.type)">{{ item.label }}</div>
</div> </div>
<div class="fes-box" v-if="currentIndex == 6"> <div class="fes-box" v-if="currentIndex == 6 && isShow">
<div class="fes-item" v-for="item in festivalList" :key="item.id">{{ item.title }}</div> <div :class="{ 'fes-item': true, checked: selectItem.id == item.id }" v-for="item in festivalList" :key="item.id" @click="selectFes(item)">{{ item.title }}</div>
<div class="fes-waiting">不断更新中……</div> <div class="fes-waiting">不断更新中……</div>
</div> </div>
<div class="scene-content"> <div class="scene-content">
...@@ -45,6 +45,8 @@ export default { ...@@ -45,6 +45,8 @@ export default {
{ label: '节日关怀', type: 6 }, { label: '节日关怀', type: 6 },
{ label: '售后众筹', type: 9 } { label: '售后众筹', type: 9 }
], ],
isShow: false,
selectItem: {},
festivalList: [], festivalList: [],
currentIndex: 5, currentIndex: 5,
sceneList: [ sceneList: [
...@@ -95,6 +97,10 @@ export default { ...@@ -95,6 +97,10 @@ export default {
methods: { methods: {
...mapActions('marketing', ['setSubscribe', 'getActivityInfo']), ...mapActions('marketing', ['setSubscribe', 'getActivityInfo']),
...mapMutations('marketing', ['SET_INIT']), ...mapMutations('marketing', ['SET_INIT']),
selectFes(item) {
this.selectItem = item
this.isShow = false
},
handleAdd() { handleAdd() {
this.SET_INIT(true) this.SET_INIT(true)
}, },
...@@ -103,7 +109,9 @@ export default { ...@@ -103,7 +109,9 @@ export default {
}, },
tabClick(index) { tabClick(index) {
this.currentIndex = index this.currentIndex = index
console.log(index) if (index == 6) {
this.isShow = true
}
this.setSubscribe(index) this.setSubscribe(index)
}, },
calendarPage() { calendarPage() {
...@@ -202,6 +210,9 @@ export default { ...@@ -202,6 +210,9 @@ export default {
font-size: 12px; font-size: 12px;
color: #666666; color: #666666;
margin-right: 10px; margin-right: 10px;
&.checked {
color: #5850ff;
}
} }
.fes-waiting { .fes-waiting {
font-size: 12px; font-size: 12px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!