Commit 7e6345da by 杨明

fixed

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