Commit 72623d22 by 前端

Merge branch 'v3.15.0' into 'master'

V3.15.0

See merge request !14
2 parents 06db2325 68ad4800
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-13 09:23:56
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-05 10:23:20
* @LastEditTime: 2023-08-11 14:31:27
* @FilePath: \scrm-micro-link\src\api\modules\activity.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -99,6 +99,16 @@ const pageAllApi = params => {
sign: true
})
}
// 列表-导出
const activityExport = params => {
params.method = 'scrm.api.shopmall.all.bulge.activity.export'
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const pageApi = params => {
params.method = `scrm.api.shopmall.bulge.activity.page`
return http({
......@@ -149,5 +159,6 @@ export default {
pageAllApi,
updateApi,
getShared,
activityPage
activityPage,
activityExport
}
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 16:16:03
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-28 17:47:10
* @LastEditTime: 2023-08-10 16:14:32
* @FilePath: \scrm-micro-link\src\api\modules\marketing.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -152,6 +152,46 @@ const importModel = params => {
sign: true
})
}
const getSmsTemplate = params => {
params.method = `marketing.api.supermarket.bulge.getSmsTemplate`
return http({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
const findMarketingTask = params => {
params.method = `marketing.api.supermarket.findMarketingTask`
return http({
url: 'rop-scrm-marketing/router',
method: 'POST',
data: params,
sign: true
})
}
//创建/修改自定义套餐
const packageGetCode = params => {
params.method = `scrm.api.equity.service.package.customize.code.get`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
//获取服务项目列表
const servicePage = params => {
params.method = `scrm.api.equity.service.items.pages`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
export default {
viewData,
......@@ -168,5 +208,9 @@ export default {
registerSso,
EntWechatQrCode,
findMerchantDetailByMerchantNo,
importModel
importModel,
getSmsTemplate,
findMarketingTask,
servicePage,
packageGetCode
}

5.96 KB | W: | H:

2.77 KB | W: | H:

src/assets/marketing/scence-bg.png
src/assets/marketing/scence-bg.png
src/assets/marketing/scence-bg.png
src/assets/marketing/scence-bg.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -29,7 +29,10 @@ export default {
{
label: '名称',
prop: 'packageName',
width: 300
width: 300,
formatter: cellValue => {
return cellValue.packageName || cellValue.serviceName
}
},
{
label: '价格',
......
......@@ -7,7 +7,7 @@
<div @click="showCase" class="show-case-btn" v-if="routerInfo.addOrEdit == 'add'">历史营销方案</div>
</div>
<div class="acitity-content">
<marketing-task v-show="step == 1" v-if="routerInfo.addOrEdit != 'edit'"></marketing-task>
<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>
......@@ -179,7 +179,7 @@ export default {
})
},
tabClick(index) {
if (index == 1 && (this.routerInfo.addOrEdit == 'edit' || this.subscribe == 9)) {
if (index == 1 && this.subscribe == 9) {
return
}
this.SET_STEP(index)
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 21:24:27
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-20 18:23:30
* @LastEditTime: 2023-08-11 17:01:36
* @FilePath: \scrm-micro-link\src\views\activityLink\components\MarketingContent.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -310,16 +310,14 @@ export default {
if (info.mainImage || info.activityBigImg) {
this.$set(this.editForm, 'backgroundImage', info.mainImage || info.activityBigImg)
}
this.editForm.merchantAddress = info.activityAddressDetailName
if (info.starttime) {
this.$set(this.editForm, 'activityTime', [info.starttime.replace(/-/g, '/'), info.endtime.replace(/-/g, '/')])
}
if (info.startTime) {
this.$set(this.editForm, 'activityTime', [info.startTime.replace(/-/g, '/'), info.endTime.replace(/-/g, '/')])
}
if (info.merchantName) {
this.$set(this.editForm, 'merchantname', info.merchantName)
}
this.$set(this.editForm, 'merchantAddress', info.activityAddressDetailName || '')
this.$set(this.editForm, 'merchantname', info.merchantName || '')
// 地图
if (info.activityAddressProvinceName || info.activityAddressCityName) {
this.$refs.editFormRef.$refs.provinceForm[0].init(info.activityAddressProvinceName, info.activityAddressCityName)
......
......@@ -25,7 +25,7 @@
成功导入客户数
</span>
</div>
<div class="task-box-desc">
<div class="task-box-desc" v-if="item.customerNumTotal">
<div class="task-box-num">成功导入客户数 {{ item.customerNumTotal }}</div>
<div class="task-num-item flex-column-center">
<label>分配方式:</label>
......@@ -74,7 +74,7 @@
<el-table-column label="操作" width="260">
<div class="config-panel flex" slot-scope="scope">
<div class="config-msg" v-if="scope.row.registerStatus === 0" @click="showRegister">邀请人员注册</div>
<div class="config-msg" @click="handleConfig(item.batchNo, scope)">配置话术 / 短信</div>
<div class="config-msg" @click="handleConfig(item.batchNo, scope)">{{ (scope.row.talkId ? '已' : '') + '配置话术 / 短信' }}</div>
</div>
</el-table-column>
</el-table>
......@@ -88,14 +88,16 @@
</div>
</div>
</div>
<div class="task-add" @click="addTask">
<i class="el-icon-circle-plus-outline"></i>
新建营销任务
</div>
<div class="task-footer">
<el-button @click="handleCancel" size="medium">跳过营销任务</el-button>
<el-button type="primary" @click="handleConfirm" size="medium">保存营销任务</el-button>
</div>
<template v-if="routerInfo.addOrEdit != 'edit'">
<div class="task-add" @click="addTask">
<i class="el-icon-circle-plus-outline"></i>
新建营销任务
</div>
<div class="task-footer">
<el-button @click="handleCancel" size="medium">跳过营销任务</el-button>
<el-button type="primary" @click="handleConfirm" size="medium">保存营销任务</el-button>
</div>
</template>
<GLDialog class="qr-dialog" title="邀请人员注册" mode="mid" :hasFooter="false" :visible.sync="isQrcodeVisible" @onCancel="isQrcodeVisible = false">
<div class="qrcode-body">
<div class="qrcode-link">邀请跟进人注册链接</div>
......@@ -128,7 +130,9 @@
<script>
const taskData = { tableData: [], expand: true, assignType: 0, customerNumTotal: 0, lastFollowStaffList: [], staffList: [], excelUrl: '', isFinish: false }
import { mapActions, mapState, mapMutations } from 'vuex'
import marketing from '@/mixins/marketing'
export default {
mixins: [marketing],
data() {
return {
taskList: [{ batchNo: 1, ...taskData }],
......@@ -144,11 +148,11 @@ export default {
configVisible: false,
config: {
talkId: '',
messageContent: this.$messageModel
messageContent: ''
},
configForm: {
talkId: '',
messageContent: this.$messageModel
messageContent: ''
},
importModelUrl: {},
tableData: [],
......@@ -158,6 +162,7 @@ export default {
mounted() {
this.findMerchantStaffList()
this.importModel()
this.getSmsTemplate()
},
watch: {
process: {
......@@ -170,10 +175,18 @@ export default {
},
deep: true,
immediate: true
},
activityInfo: {
handler(val) {
const info = this.$common.utils.deepClone(val)
if (this.routerInfo.addOrEdit == 'edit') {
this.findMarketingTask(info.id)
}
}
}
},
computed: {
...mapState('marketing', ['subscribe', 'process']),
...mapState('marketing', ['subscribe', 'process', 'activityInfo']),
importUrl() {
const url = {
5: 'importModelXB',
......@@ -186,10 +199,26 @@ export default {
methods: {
...mapActions('marketing', ['setProcess']),
...mapMutations('marketing', ['SET_STEP']),
//获取短信模板
getSmsTemplate() {
this.$apis.marketing.getSmsTemplate({ merchantId: this.$globalState.session.merchantId, type: 1 }).then(res => {
const msg = res[0].content
this.config.messageContent = msg
this.config.configForm = msg
this.messageId = res[0].id
})
},
//获取任务详情
findMarketingTask(activityId) {
this.$apis.marketing.findMarketingTask({ activityId }).then(res => {
const { staffList = [], customerNum = 0, assignType = 1 } = res || {}
this.taskList = [{ ...taskData, isFinish: true, staffList, customerNumTotal: customerNum, assignType }]
console.log(this.taskList, 'taskList')
})
},
//获取客户导入模板
importModel() {
this.$apis.marketing.importModel({}).then(res => {
console.log(res)
this.importModelUrl = res
})
},
......@@ -332,7 +361,7 @@ export default {
handleCancelConfirm() {
this.configVisible = false
console.log(this.taskList[this.batchNo].tableData)
this.taskList[this.batchNo].tableData[this.selectIndex].talkId = this.configForm.talkId
this.$set(this.taskList[this.batchNo].tableData[this.selectIndex], 'talkId', this.configForm.talkId)
this.taskList[this.batchNo].tableData[this.selectIndex].messageContent = this.configForm.messageContent
console.log(this.taskList)
},
......@@ -368,9 +397,15 @@ export default {
merchantId: i.merchantNo,
staffPhone: i.staffPhone,
staffName: i.staffName,
messageContent: i.messageContent ? i.messageContent.replace(/^【\S+?】/, `【${this.$globalState.session.merchantName}】`) : '',
messageContent: i.messageContent
? i.messageContent
.replace(/^【\S+?】/, `【${this.$globalState.session.merchantName}】`)
.replace(/(【|#)活动名称(】|#)/, '{0}')
.replace(/(【|#)活动链接(】|#)/, '{1}')
: '',
registerStatus: i.registerStatus,
talkId: i.talkId,
messageId: this.messageId,
createdBy: i.createdBy
})
}
......@@ -471,7 +506,7 @@ export default {
box-sizing: border-box;
padding: 0px 20px;
&-form {
margin-top: 20px;
margin: 20px 0px;
font-size: 28rpx;
color: #333333;
> span {
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:08:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-20 17:47:39
* @LastEditTime: 2023-08-09 15:34:15
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\MarketingRight.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -223,7 +223,7 @@
<div class="review-equity" v-if="detailCoupon.selectedCarList && detailCoupon.selectedCarList.length">
<div class="service-item" v-for="(item, index) in detailCoupon.selectedCarList" :key="index">
<div class="service-time">{{ item.packageAmount }}</div>
<div class="service-title">{{ item.packageName }}</div>
<div class="service-title">{{ item.packageName || item.serviceName }}</div>
</div>
</div>
<div class="review-goods" v-if="detailCoupon.selectedGoodsList && detailCoupon.selectedGoodsList.length">
......
......@@ -216,8 +216,8 @@ export default {
padding-bottom: 80%;
background-image: url('../../../assets/marketing/scence-bg.png');
background-size: 100% 100%;
padding-left: 12%;
padding-right: 12%;
padding-left: 1.2vw;
padding-right: 1.2vw;
font-size: 1vw;
.scene-item-icon {
text-align: center;
......
......@@ -4,7 +4,7 @@
<img class="angle" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/rob.png?v=1.0.2" />
<div class="title">用车权益</div>
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-title">{{ item.packageName }}</div>
<div class="service-title">{{ item.packageName || item.serviceName }}</div>
<div class="service-time">
{{ item.packageAmount }}
<span>元</span>
......
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-07-08 09:40:43
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-14 16:06:09
* @LastEditTime: 2023-08-09 15:26:08
* @FilePath: \scrm-micro-link\src\views\activityLink\components\model\model_2\equity\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -11,7 +11,7 @@
<div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/rob.png" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-title">{{ item.packageName }}</div>
<div class="service-title">{{ item.packageName || item.serviceName }}</div>
<div class="service-time">
{{ item.packageAmount }}
<span>元</span>
......
......@@ -11,7 +11,7 @@
1
<span>元</span>
</div>
<div class="service-title">{{ item.packageName }}</div>
<div class="service-title">{{ item.packageName || item.serviceName }}</div>
</div>
</div>
</div>
......
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-07-08 09:40:45
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-08-09 15:26:22
* @FilePath: \scrm-micro-link\src\views\activityLink\components\model\model_4\equity\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="wrap" v-if="serviceList && serviceList.length > 0">
<div class="container-panel">
......@@ -7,7 +15,7 @@
1
<sapn>元</sapn>
</div>
<div class="service-title">{{ item.packageName }}</div>
<div class="service-title">{{ item.packageName || item.serviceName }}</div>
</div>
</div>
</div>
......@@ -54,7 +62,7 @@ export default {
left: 50%;
transform: translateX(-50%);
width: 160px;
height: 36px;
height: 36px;
}
.service-item {
......
......@@ -2121,7 +2121,7 @@ export default {
})
param.couponCreateRequests = couponLists.concat(selectedGoodsList) || []
const equityServices = this.selectedEquityList.map(i => i.packageCode)
if(!param.serviceMerchantPackageConfigDTOS) {
if (!param.serviceMerchantPackageConfigDTOS) {
delete param.serviceMerchantPackageConfigDTOS
}
param.equityServices = equityServices.join(',')
......
......@@ -7,7 +7,10 @@
<!-- 表格区域 开始 -->
<div class="live-table-header">
<h2>活动列表</h2>
<el-button :size="size" type="primary" @click="handleEdit('add')" v-if="loginpath">创建活动链接</el-button>
<div>
<el-button :size="size" type="primary" @click="activityExport" v-if="loginpath">导出</el-button>
<el-button :size="size" type="primary" @click="handleEdit('add')" v-if="loginpath">创建活动链接</el-button>
</div>
</div>
<GLTable ref="classifyRef" :getListApi="getListApi" :hasNum="false" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div class="sub-tabel" slot="giftInfo" slot-scope="scope">
......@@ -65,7 +68,7 @@
</div>
</template>
<script>
import { orderStatus, businessType, subscribe, downloadIamge } from '@/common/constant'
import { orderStatus, subscribe, downloadIamge, exportFn } from '@/common/constant'
import { cloneText } from '@/utils/index'
import url from '@/assets/empty.png'
export default {
......@@ -322,6 +325,12 @@ export default {
})
},
methods: {
activityExport() {
const params = this.getParams()
this.$apis.activity.activityExport(params).then(res => {
exportFn(res)
})
},
secondConfirm(title, txt, apiModule, apiName, apiParams, fn) {
this.$confirm(txt, title, {
confirmButtonText: '确定',
......
<!--
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-26 13:38:34
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-08-14 18:19:53
* @FilePath: \scrm-micro-link\src\views\activityLink\marketingActivity.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="marketing-container">
<div class="marketing-content">
......@@ -8,6 +16,18 @@
<div class="marketing-view">
<process></process>
</div>
<div class="full-wrap" v-if="isGuide">
<div :class="['full-wrap-body', `background-${step}`]">
<img class="full-body-bg" :src="`https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/guide-${step}.png?v=1.1`" />
<div class="full-footer">
<el-checkbox v-model="checked" class="select-tips">下次不在弹出引导提示</el-checkbox>
<div class="operate-tip">
<el-button :size="size" @click="closeGuide">关闭提示</el-button>
<el-button :size="size" @click="addGuide" v-if="step != 3">下一步</el-button>
</div>
</div>
</div>
</div>
</div>
</template>
......@@ -24,11 +44,28 @@ export default {
marketing,
process
},
data() {
return {
step: 1,
isGuide: false,
checked: false
}
},
methods: {
...mapMutations('marketing', ['SET_STATUS']),
...mapActions('marketing', ['getMerchantInfo'])
...mapActions('marketing', ['getMerchantInfo']),
closeGuide() {
if (this.checked) {
localStorage.setItem('GUIDE_STATUS', true)
}
this.isGuide = false
},
addGuide() {
this.step++
}
},
mounted() {
this.isGuide = this.$route.query.addOrEdit != 'edit' && !localStorage.getItem('GUIDE_STATUS')
this.getMerchantInfo({ merchantId: this.$globalState.session.merchantId })
this.SET_STATUS(this.$route.query.addOrEdit)
}
......@@ -46,4 +83,85 @@ export default {
width: 303px;
}
}
.full-wrap {
position: fixed;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
background: rgba($color: #000000, $alpha: 0.5);
z-index: 999;
.full-wrap-body {
position: absolute;
top: 48px;
left: 230px;
width: calc(100% - 230px);
height: calc(100% - 60px);
background: rgb(119, 120, 123);
.full-body-bg {
position: absolute;
top: 0px;
left: 0px;
height: calc(100% - 30px);
background-size: 100% 100%;
}
.full-footer {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 30px;
.select-tips {
color: #fff;
margin-bottom: 4px;
}
.operate-tip {
text-align: center;
}
}
}
}
// @media screen and (max-width: 1366px) {
// .background-1 {
// background: url('https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/g1-1366.png');
// }
// .background-2 {
// background: url('https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/g2-1366.png');
// }
// .background-3 {
// background: url('https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/g3-1366.png');
// }
// }
// @media screen and (min-width: 1400px) {
// .background-1 {
// background: url('https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/g1-1400.png');
// }
// .background-2 {
// background: url('https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/g2-1400.png');
// }
// .background-3 {
// background: url('https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/g3-1400.png');
// }
// }
// @media screen and (min-width: 1600px) {
// .background-1 {
// background: url('https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/g1-1600.png');
// }
// .background-2 {
// background: url('https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/g2-1600.png');
// }
// .background-3 {
// background: url('https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/g3-1600.png');
// }
// }
// @media screen and (min-width: 1920px) {
// // .background-1 {
// // background: url('https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/g1-1366.png');
// // }
// // .background-2 {
// // background: url('https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/g2-1366.png');
// // }
// // .background-3 {
// // background: url('https://img01.glsx.com.cn/weapp/resource/saas/scrm/activity/g3-1366.png');
// // }
// }
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!