Commit 7e6345da by 杨明

fixed

1 parent 0966a48d
......@@ -2,11 +2,11 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 16:16:03
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-09 14:15:38
* @LastEditTime: 2023-07-10 16:14:31
* @FilePath: \scrm-micro-link\src\api\modules\marketing.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { http, http_gpt, http_merchant } from '@/main'
import { http, http_gpt, http_merchant, http_no_session } from '@/main'
const url = '/rop-scrm-entmicro/router'
//客户概览
const viewData = params => {
......@@ -94,6 +94,17 @@ const findActivityInfo = params => {
sign: true
})
}
//获取小管家二维码
const EntWechatQrCode = params => {
params.method = 'marketing.api.supermarket.EntWechatQrCode'
return http_no_session({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
const activityDetail = params => {
params.method = 'scrm.api.shopmall.activity.detail'
return http({
......@@ -124,5 +135,6 @@ export default {
createSuperMarketing,
activityDetail,
findActivityInfo,
registerSso
registerSso,
EntWechatQrCode
}
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-07 14:32:24
* @LastEditTime: 2023-07-10 16:13:58
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
import Vue from 'vue'
......@@ -31,3 +31,4 @@ export const http = params => Vue.prototype.$http(params)
export const http_common = params => Vue.prototype.$http_common(params)
export const http_gpt = params => Vue.prototype.$http_gpt(params)
export const http_merchant = params => Vue.prototype.$http_merchant(params)
export const http_no_session = params => Vue.prototype.$http_no_session(params)
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-13 09:23:57
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-05 10:16:54
* @LastEditTime: 2023-07-10 16:13:41
* @FilePath: \scrm-micro-link\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -28,6 +28,7 @@ export async function bootstrap({ history, common, messenger, globalState }) {
Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_no_session = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: '' } })
Vue.prototype.$http_merchant = new common.Http({ response, request: request_merchant, 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 } })
Vue.prototype.$http_gpt = new common.Http({ response, request: request_gpt, sign, secret, alert: ElementUI.Message.error })
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-16 17:13:33
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-09 13:15:50
* @LastEditTime: 2023-07-10 15:53:51
* @FilePath: \scrm-micro-home\src\store\modules\marketing.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -18,7 +18,8 @@ export default {
GPTList: null,
packageList: {},
process: { 0: false, 1: false, 2: false },
activityInfo: null
activityInfo: null,
step: 1
},
mutations: {
SET_INIT(state, data) {
......@@ -30,6 +31,9 @@ export default {
state.activityInfo = Object.assign({})
}
},
SET_STEP(state, data) {
state.step = data
},
// 设置场景值
SET_SUBSCRIBE(state, data) {
state.subscribe = data
......
<template>
<div class="activity-container">
<div class="choseRow">
<div class="choseItem" :class="{ active: currentIndex == index + 1 }" v-for="(item, index) in tabList" :key="index" @click="tabClick(index + 1)">{{ item.label }}</div>
<div class="choseItem" :class="{ active: step == index + 1 }" v-for="(item, index) in tabList" :key="index" @click="tabClick(index + 1)">{{ item.label }}</div>
<div @click="showCase" class="show-case-btn">历史营销方案</div>
</div>
<div class="acitity-content">
<marketing-task v-show="currentIndex == 1"></marketing-task>
<marketing-gift v-show="currentIndex == 2"></marketing-gift>
<marketing-content v-show="currentIndex == 3"></marketing-content>
<marketing-task v-show="step == 1"></marketing-task>
<marketing-gift v-show="step == 2"></marketing-gift>
<marketing-content v-show="step == 3"></marketing-content>
</div>
<GLDialog mode="big" class="case-panel" bigTitle="历史营销方案" :hasFooter="false" :before-close="handleCaseClose" @onCancel="handleCaseClose" :visible.sync="caseVisible">
<div class="case-table">
......@@ -35,7 +35,7 @@
import marketingTask from './MarketingTask'
import marketingGift from './MarketingGift'
import marketingContent from './MarketingContent'
import { mapActions } from 'vuex'
import { mapActions, mapState, mapMutations } from 'vuex'
import PhoneView from './PhoneView.vue'
export default {
components: {
......@@ -51,7 +51,6 @@ export default {
caseList: [],
activeName: '5',
caseVisible: false,
currentIndex: 1,
// 表格按钮
tableButtonList: [
{
......@@ -124,8 +123,12 @@ export default {
mounted() {
this.routeInfo = this.$route.query
},
computed: {
...mapState('marketing', ['step'])
},
methods: {
...mapActions('marketing', ['getActivityInfo']),
...mapMutations('marketing', ['SET_STEP']),
//数据看板
handleJump(row) {
this.$router.push({
......@@ -155,7 +158,7 @@ export default {
})
},
tabClick(index) {
this.currentIndex = index
this.SET_STEP(index)
},
handleCaseClose() {
this.caseVisible = false
......
......@@ -213,7 +213,7 @@ export default {
console.log(item)
return {
couponId: item.id,
couponAmount: item.couponAmount || item.getAmount,
couponAmount: 1,
couponAnticipatedCost: item.denomination
}
})
......
......@@ -9,16 +9,16 @@
<div class="fes-waiting">不断更新中……</div>
</div>
<div class="scene-content">
<!-- <div class="scene-card">
<div class="scene-card" v-if="isShowCard">
<div class="scene-card-img">
<img src="" />
</div>
<div class="scene-card-content">
请扫码添加【XXXX】小管家,并组群获得支持
</div>
</div> -->
</div>
<div class="scene-item" v-for="(item, index) in sceneList" :key="index">
<div class="scene-item-box">
<div class="scene-item-box" @click="handleStep(index)" @mouseenter="isShowCard = true" @mouseleave="isShowCard = false">
<div class="scene-item-title">
<img :src="require(`@/assets/marketing/s${index + 1}.png`)" alt="" />
{{ item.title }}
......@@ -46,6 +46,7 @@ export default {
{ label: '售后众筹', type: 9 }
],
isShow: false,
isShowCard: false,
selectItem: {},
festivalList: [],
currentIndex: 5,
......@@ -79,6 +80,7 @@ export default {
},
mounted() {
this.calendarPage()
this.EntWechatQrCode()
this.routeInfo = this.$route.query
if (this.routeInfo.addOrEdit == 'edit') {
this.getInfo()
......@@ -96,11 +98,14 @@ export default {
},
methods: {
...mapActions('marketing', ['setSubscribe', 'getActivityInfo']),
...mapMutations('marketing', ['SET_INIT']),
...mapMutations('marketing', ['SET_INIT', 'SET_STEP']),
selectFes(item) {
this.selectItem = item
this.isShow = false
},
handleStep(index) {
if ([1, 2, 3].includes(index)) this.SET_STEP(index)
},
handleAdd() {
this.SET_INIT(true)
},
......@@ -114,6 +119,11 @@ export default {
}
this.setSubscribe(index)
},
EntWechatQrCode() {
this.$apis.marketing.EntWechatQrCode({}).then(res => {
console.log(res)
})
},
calendarPage() {
this.$apis.marketing.calendarPage({ pageSize: 100, pageNum: 1 }).then(res => {
this.festivalList = (res.data || []).filter(item => item.marketingType == 6)
......@@ -158,6 +168,7 @@ export default {
display: flex;
align-items: center;
&-box {
cursor: pointer;
width: calc(100% - 30px);
height: 0;
padding-bottom: 50%;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!