Commit 3e531849 by 前端

fixed

1 parent 6f10f42c
Showing 43 changed files with 796 additions and 60 deletions
......@@ -3,15 +3,17 @@
"env": {
"node": true
},
"globals": {
"AMap": true
},
"extends": ["plugin:vue/essential", "@vue/prettier"],
"rules": {
"no-console": "off",
"no-unused-vars":"off",
"no-unused-vars": "off",
"prettier.endOfLine": "crlf",
"endOfLine":"auto"
"endOfLine": "auto"
},
"parserOptions": {
"parser": "babel-eslint"
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<script>
var obj = {
x: 1,
get y() {
console.log(888)
return 3
}
}
var newObj = Object.assign(obj, {})
console.log(newObj)
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="referrer" content="no-referrer">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta name="referrer" content="no-referrer" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<!-- 使用CDN的CSS文件 -->
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.css) { %>
<link href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" rel="preload" as="style" />
<link href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" rel="stylesheet" />
<% } %>
<!-- 使用CDN的JS文件 预加载 -->
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %>
<link href="<%= htmlWebpackPlugin.options.cdn.js[i] %>" rel="preload" as="script" />
<% } %>
<title>首页</title>
</head>
<link href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" rel="preload" as="style" />
<link href="<%= htmlWebpackPlugin.options.cdn.css[i] %>" rel="stylesheet" />
<% } %>
<!-- 使用CDN的JS文件 预加载 -->
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %>
<link href="<%= htmlWebpackPlugin.options.cdn.js[i] %>" rel="preload" as="script" />
<% } %>
<title>首页</title>
</head>
<body>
<body>
<noscript>
<strong>We're sorry but module-report doesn't work properly without JavaScript enabled. Please enable it to
continue.</strong>
</noscript>
<strong>We're sorry but module-report doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %>
<script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
<% } %>
</body>
</html>
\ No newline at end of file
<script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script>
<% } %>
</body>
</html>
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-13 16:38:54
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-05-12 16:18:55
* @FilePath: \scrm-micro-link\src\api\modules\giftBag.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import { http } from '@/main'
const getghDirectionalGiftListApi = params => {
// params.method = 'scrm.api.coupon.directional.gift.coupon.list'
params.method = 'scrm.api.coupon.directional.gift.coupon.list'
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
}
const getEquityListApi = params => {
params.method = 'scrm.api.coupon.equity.list.merchant'
return http({
url: 'rop-scrm-coupon/router',
method: 'GET',
data: params,
sign: true
})
}
const brandList = params => {
params.method = 'scrm.api.equity.goods.brand.list.all'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
const couponTemplate = params => {
params.method = 'scrm.api.coupon.template.page'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true
})
}
const couponTemplateDetails = params => {
params.method = 'scrm.api.coupon.template.details.page'
return http({
url: 'rop-scrm-coupon/router',
method: 'POST',
data: params,
sign: true
})
}
const equityMerchant = params => {
params.method = 'scrm.api.equity.service.merchant.config.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getghDirectionalGiftListApi, getEquityListApi, brandList, couponTemplate, couponTemplateDetails, equityMerchant }
......@@ -120,7 +120,14 @@ img {
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
}
.flex {
display: flex;
}
.flex-center {
display: flex;
justify-content: center;
align-items: center;
}
.glsx-table .line-ellipsis {
display: inline;
}
......
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:21:34
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-05-15 16:23:13
* @FilePath: \scrm-micro-home\src\components\glsx-combi-form\common.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
/**
* 时间控件-限制月份
*/
export const rangePickerOptions = {
disabledDate(date) {
if (date > new Date()) {
return true
}
return false
}
}
export const rangetimePickerOptions = {
disabledDate(date) {
let dateHour = new Date()
dateHour.setDate(date.getDate())
dateHour.setHours(8)
dateHour.setMinutes(0)
dateHour.setSeconds(0)
if (dateHour.getTime() < date.getTime() < new Date(2016, 9, 10, 20, 0).getTime()) {
return true
}
return false
}
}
export const beforeRangePickerOptions = {
disabledDate(date) {
if (date > new Date()) {
return true
}
return false
}
}
export const afterRangePickerOptions = {
disabledDate(date) {
const yesterday = new Date(new Date().setDate(new Date().getDate() - 1))
if (date < yesterday) {
return true
}
return false
}
}
<template>
<div class="map-box" :style="{ height: mapHeight + 'px', width: mapWidth + 'xp' }">
<div id="container">
<el-select v-model="input" class="map-input" filterable remote reserve-keyword placeholder="请输入" :remote-method="remoteMethod" @change="handleChangeAdr" :loading="loading">
<el-option v-for="item in adrList" :key="item.id" :label="item.address" :value="item.id"></el-option>
</el-select>
</div>
<div class="map-address">
<img class="icon-map" src="./images/icon-map.png" />
{{ address }}
</div>
</div>
</template>
<script>
let map, marker, placeSearch
export default {
name: 'map',
props: {
mapHeight: {
type: Number,
default: 460
},
mapWidth: {
type: Number,
default: 740
}
},
data() {
return {
input: [],
address: '',
adrList: [],
lnglat: [],
geocoderAddress: {}
}
},
mounted() {
this.mapInit()
},
methods: {
// initMap() {
// console.log(document.getElementsByTagName('head'))
// var script = document.createElement('script')
// script.type = 'text/javascript'
// script.src = 'https://webapi.amap.com/loader.js'
// document.getElementsByTagName('head')[0].appendChild(script)
// },
mapInit() {
/* eslint-disable */
AMapLoader.load({
/* eslint-enable */
key: '44cc16e43ad7ed3358df507bd0618181', // 申请好的Web端开发者Key,首次调用 load 时必填
version: '2.0', // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
// 需要使用的的插件列表
plugins: ['AMap.ToolBar', 'AMap.Scale', 'AMap.Geocoder'],
AMapUI: {
// 是否加载 AMapUI,缺省不加载
version: '1.1', // AMapUI 版本
plugins: ['overlay/SimpleMarker'] // 需要加载的 AMapUI ui插件
},
Loca: {
// 是否加载 Loca, 缺省不加载
version: '2.0' // Loca 版本
}
})
.then(AMap => {
map = new AMap.Map('container', {
zoom: 20,
autoFitView: true,
resizeEnable: true,
cursor: 'move'
})
if (this.lnglat.length) {
this.addMarker(this.lnglat)
}
map.addControl(new AMap.Scale())
map.addControl(new AMap.ToolBar())
this.geocoder = new AMap.Geocoder()
map.setDefaultCursor('pointer')
AMap.plugin(['AMap.PlaceSearch'], function() {
//构造地点查询类
placeSearch = new AMap.PlaceSearch({
pageSize: 8, // 单页显示结果条数
pageIndex: 1, // 页码
citylimit: false, //是否强制限制在设置的城市内搜索
// panel: "panel", // 结果列表将在此容器中进行展示。
autoFitView: true, // 是否自动调整地图视野使绘制的 Marker点都处于视口的可见范围
renderStyle: 'default'
})
})
map.on('click', this.getAddress)
})
.catch(e => {
console.error(e) //加载错误提示
})
},
remoteMethod(query) {
if (query == '') {
return true
}
let _this = this
placeSearch.search(query, function(status, result) {
if (status === 'complete' && result.poiList.pois.length) {
_this.adrList = result.poiList.pois
}
})
},
addMarker(lnglat) {
let position
if (lnglat.lng) {
position = [lnglat.lng, lnglat.lat]
} else {
position = lnglat
}
this.lnglat = position
marker = new AMap.Marker({
map: map,
icon: new AMap.Icon({
image: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png',
size: new AMap.Size(27, 34), //图标大小
imageSize: new AMap.Size(27, 34)
}),
// draggable: true,
position: position,
offset: new AMap.Pixel(-10, -10)
})
map.setCenter(position)
map.add(marker)
marker.setMap(map)
// this.map.setFitView()
},
getAddress(e) {
let self = this
let position
if (e.type == 'click') {
position = e.lnglat
} else {
let { lng, lat } = e
position = [lng, lat]
}
if (marker) {
map.remove(marker)
marker.setMap(null)
marker = null
}
self.addMarker(position)
AMap.plugin('AMap.Geocoder', () => {
const geocoder = new AMap.Geocoder()
geocoder.getAddress(position, (status, result) => {
self.address = result.regeocode.formattedAddress
geocoder.getLocation(self.address, (status, result) => {
if (status === 'complete' && result.info === 'OK') {
self.geocoderAddress = result.geocodes[0]
}
})
})
})
},
handleChangeAdr(val) {
if (val) {
var location = this.adrList.find(item => item.id == val)
this.getAddress(location.location)
this.input = ''
this.adrList = []
}
}
}
}
</script>
<style scoped lang="scss">
.map-box {
display: flex;
#container {
position: relative;
width: calc(100% - 284px - 16px);
height: 100%;
}
.map-input {
position: absolute;
top: 32px;
width: 60%;
left: 25%;
z-index: 2;
}
}
#panel {
position: absolute;
max-height: 90%;
overflow-y: auto;
top: 80px;
right: 10px;
width: 280px;
}
.map-address {
display: flex;
box-sizing: border-box;
width: 284px;
height: 100%;
background-color: #f9f9f9;
padding: 20px;
margin-left: 16px;
line-height: 20px;
.icon-map {
width: 16px;
height: 16px;
margin-right: 6px;
}
}
</style>
......@@ -3,8 +3,8 @@
* @version: 1.0.0
* @Author: limin
* @Date: 2021-09-06 10:10:44
* @LastEditors: limin
* @LastEditTime: 2021-09-06 10:11:49
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-05-15 15:24:20
* @FilePath: \scrm\scrm-sub-blog\src\components\index.js
*/
import Vue from 'vue'
......@@ -12,6 +12,8 @@ import Vue from 'vue'
import _button from '@/components/glsx-button/index'
import glsxTable from '@/components/glsx-table/index.vue'
import glsxPreview from '@/components/preview/index.vue'
import glsxCombiForm from '@/components/glsx-combi-form/index.vue'
Vue.component('glsx-button', _button)
Vue.component('glsx-preview', glsxPreview)
// Vue.component('glsx-table', glsxTable)
\ No newline at end of file
Vue.component('glsx-combi-form', glsxCombiForm)
// Vue.component('glsx-table', glsxTable)
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2022-12-22 14:29:51
* @LastEditTime: 2023-05-15 11:22:40
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
......@@ -17,8 +17,8 @@ export const fetchConfig = function(isEnv = true) {
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
return new Http().get('https://oss-config.test.glsx.com.cn/mock/616d28231072f92988f059fb/home/config')
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/616d28231072f92988f059fb/home/config')
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/616d28231072f92988f059fb/home/config')
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/616d28231072f92988f059fb/home/config')
}
export const config = {
install(vue, cfg) {
......
......@@ -3,14 +3,15 @@
* @version: 1.0.0
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @LastEditors: limin
* @LastEditTime: 2021-09-14 09:34:52
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-05-15 15:23:20
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
import Vue from 'vue'
import apis from './api'
import './public-path'
// import 'glsx-components/dist/glsx-components.css'
import '@/components'
import { start } from '@/setup'
Vue.config.productionTip = false
Vue.prototype.$apis = apis
......
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-07-22 18:15:13
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-05-16 09:48:45
* @FilePath: \scrm-micro-home\src\setup\qiankun.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import Vue from 'vue'
// import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
import ElementUI from 'element-ui'
import { GLButton, GLTable, GLFull } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { GLButton, GLTable, GLFull, GLDialog } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router'
import GLEditor from 'glsx-components/src/packages/Editor'
import render from './render'
......@@ -10,7 +18,7 @@ Vue.use(ElementUI)
Vue.use(GLTable)
Vue.use(GLEditor)
Vue.use(GLFull)
Vue.use(GLDialog)
// import GLTable from '@/components/glsx-table/index'
// Vue.component('GLTable', GLTable)
// import 'glsx-components/src/theme/theme.scss'
......@@ -20,14 +28,14 @@ let routes = []
let router = null
let instance = null
export async function bootstrap({ name, id, history, common, messenger, globalState, routerBase }) {
const { response, request, sign, secret, request_common, sign_common ,scene} = await fetchConfig()
const { response, request, sign, secret, request_common, sign_common, scene } = await fetchConfig()
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
Vue.prototype.$common = common
Vue.prototype.$http = new common.Http({ response, request, 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.$scene= scene
Vue.prototype.$scene = scene
const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData)
subscribe({ messenger })
......
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-16 10:20:01
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-05-16 11:50:00
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\ChatGPT.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="gpt-box">
<div class="gpt-header" v-if="importNum == 0">
<div class="import-panel">
<el-button type="primary" size="small" icon="el-icon-download">导入企微魔方</el-button>
</div>
<div class="import-illustrate">
当前门店基盘客户为空,请通过企微魔方导入门店基盘客户数据。
</div>
</div>
<div class="gpt-header" v-else>
<div class="import-item" v-for="(item, index) in importItem" :key="index">
{{ item.title }}:
<span>9</span>
</div>
</div>
<div class="gpt-body">
<div class="error-tips flex-center">
<i class="el-icon-error"></i>
<span>无法识别营销场景,请重新输入</span>
<i class="el-icon-close"></i>
</div>
</div>
<div class="gpt-footer">
<div class="input-box" contenteditable="true"></div>
<div class="input-operate">
<div class="select-box">
<el-button size="mini">常用语</el-button>
<div class="select-panel">
<div class="select-item">
创建一个
<label>端午节</label>
的营销活动,活动时间为
<label>6月份</label>
。
</div>
<div class="select-item">
创建一个
<label>端午节</label>
的营销活动,活动时间为
<label>6月份</label>
。
</div>
</div>
</div>
<el-button type="primary" size="small">发送</el-button>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
importNum: 1,
importItem: [
{
title: '基盘总客户数'
},
{
title: '企微客户数'
},
{
title: '未加企微客户数'
}
]
}
}
}
</script>
<style lang="scss" scoped>
.gpt-box {
box-sizing: border-box;
padding: 8px;
.gpt-header {
height: 48px;
background: #e4e3ff;
border-radius: 4px;
display: flex;
align-items: center;
color: #000000a6;
.import-illustrate {
margin-left: 10px;
}
}
.gpt-body {
height: 170px;
.error-tips {
width: 274px;
height: 40px;
background: #fce3e3;
border-radius: 4px;
margin: 32px auto;
font-size: 14px;
color: #000000a6;
span {
margin: 0 20px 0px 10px;
}
.el-icon-error {
color: #eb4e4e;
}
.el-icon-close {
color: #666666;
}
}
}
.gpt-footer {
height: 98px;
background: #f5f5f5;
border: 1px solid #e5e5e5;
border-radius: 4px;
padding: 8px;
.input-box {
height: 66px;
overflow: auto;
}
.input-operate {
display: flex;
justify-content: space-between;
align-items: center;
.select-box {
position: relative;
.select-panel {
z-index: 1000;
background: #fff;
position: absolute;
top: 28px;
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
border-radius: 4px;
width: 343px;
.select-item {
padding-left: 10px;
line-height: 36px;
color: #666666ff;
font-size: 14px;
cursor: pointer;
label {
color: #eb4e4e;
}
&:hover {
background: #f2f1ff;
}
}
}
}
}
}
}
</style>
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:08:01
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-05-15 15:13:18
* @FilePath: \scrm-micro-home\src\views\home\components\marketing\MarketingLeft.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div>
</div>
</template>
<script>
export default {
}
</script>
<style lang="scss" scoped>
</style>
\ No newline at end of file
<template>
<div class="container">
<div class="main-head">
<chat-gpt></chat-gpt>
</div>
<GPTAnalysis></GPTAnalysis>
</div>
</template>
<script>
import ChatGpt from './ChatGPT'
import GPTAnalysis from './GPTAnalysis'
export default {
data() {
return {}
},
components: {
ChatGpt,
GPTAnalysis
}
}
</script>
<style lang="scss" scoped></style>
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:08:32
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-05-15 15:32:26
* @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
-->
<template>
<div class="review-box"></div>
</template>
<script>
export default {}
</script>
<style lang="scss" scoped>
.review-box {
background: #fff;
}
</style>
......@@ -2,7 +2,40 @@
<div class="subscript-wrap scrm-box-f">
<p class="home-use-title">场景订阅商城</p>
<div class="home-use-box">
<div class="home-use-item">
<div class="home-use-item" v-for="item in sceneData" :key="item.type">
<div :class="[item.isShow ? 'blur' : '']">
<div class="use-item-icon"><img :src="require(`@/assets/img/home/${item.icon}.png`)" alt="" /></div>
<div class="use-item-title">{{ item.title }}</div>
<div class="use-item-content">{{ item.content }}</div>
<div class="use-item-config">
<div class="use-config-item" v-for="(citem, index) in item.config" :key="index">
<i class="el-icon-check"></i>
{{ citem }}
</div>
</div>
<div class="use-flex" v-if="item.isGPT">
<div class="use-operation" @click="useHandleGPT()">立即使用</div>
</div>
<div class="use-flex" v-else>
<div class="use-operation" @click="useHandle(item.type)">立即使用</div>
<div class="use-operation bgf" @click="scanningHandle(item)">扫码体验</div>
</div>
</div>
<div class="mask" v-if="item.isShow">
<div>
<p>门店端</p>
<img :src="$scene[item.icon][0]" alt="" />
<p class="share-text">分享活动链接</p>
</div>
<div>
<p>车主端</p>
<img :src="$scene[item.icon][1]" alt="" />
<p class="share-text">浏览并参与活动</p>
</div>
<div class="close" @click="scanningHandle(item)">+</div>
</div>
</div>
<!-- <div class="home-use-item">
<div :class="[isrenewal ? 'blur' : '']">
<div class="use-item-icon"><img src="@/assets/img/home/renewal.png" alt="" /></div>
<div class="use-item-title">续保招揽</div>
......@@ -75,7 +108,7 @@
<img :src="this.$scene.bail[1]" alt="" />
<p class="share-text">浏览并参与活动</p>
</div>
<div class="close" @click="scanningHandle('bail')">+</div>
<div class="close" @click="scanningHandle('bail')">+</div>
</div>
</div>
<div class="home-use-item">
......@@ -102,7 +135,7 @@
<div class="use-operation bgf" @click="scanningHandle('festivals')">扫码体验</div>
</div>
</div>
<div class="mask" v-show="isfestivals" >
<div class="mask" v-show="isfestivals">
<div>
<p>门店端</p>
<img :src="this.$scene.festivals[0]" alt="" />
......@@ -115,25 +148,32 @@
</div>
<div class="close" @click="scanningHandle('festivals')">+</div>
</div>
</div>
</div> -->
</div>
</div>
</template>
<script>
const sceneData = [
{ title: 'ChatGPT超级营销', content: '场景营销结合对话机器人ChatGPT,通过ChatGPT与丰富的节假日场景库预设动态,生成营销主题内容,更快为门店创建适用的活动落地页。', config: ['ChatGPT结合', '丰富的预设场景', '平台免费提供优惠券'], icon: 'ChatGPT', isGPT: true },
{ title: '续保招揽', content: '平台可将店内续保套餐线上化,链接化。员工可通过企微、微信等渠道的分发。并提供了二次线索跟进功能,进一步提高对意向客户的跟进能力。', config: [' 续保线索二次跟进', '续保套餐线上化', '套餐灵活打包'], icon: 'renewal', type: 6, isShow: false },
{ title: '定保招揽', content: '基于店内定保业务场景, 平台通过整合第三方的福利卡券,为门店带来异业联盟的新契机,让定保套餐在销售路径上更丰富,提高对消费者的吸引力。', config: [' 提高定保场景营销能力', ' 拓宽营销触点', '活动效果数据化'], icon: 'bail', type: 2, isShow: false },
{ title: '节假日关怀', content: '通过节日为契机,推送节日关怀链接并吸引用户购买相关服务。平台将提供贴合节日气氛的活动落地页,门店可根据业务需要整合服务或产品。', config: [' 促进门店节假日产值转化', '增加客户关怀', '实现软性营销'], icon: 'festivals', type: 5, isShow: false }
]
export default {
data() {
return {
isrenewal: false,
isbail: false,
isfestivals: false
sceneData
}
},
methods: {
scanningHandle(data) {
this['is' + data] = !this['is' + data]
data.isShow = !data.isShow
},
useHandle(value) {
this.$history.push(`/link/activityLink/editActivity?addOrEdit=add&subscribe=${value}&$title=新建活动`)
},
useHandleGPT() {
this.$router.push('/home/marketing')
}
}
}
......@@ -157,7 +197,6 @@ export default {
padding: 20px;
box-sizing: border-box;
flex: 1;
height: 371px;
border: 1px solid #e5e5e5;
}
.home-use-item + .home-use-item {
......@@ -180,18 +219,14 @@ export default {
.use-item-content {
font-size: 14px;
line-height: 20px;
height: 60px;
color: #666666;
letter-spacing: 0;
font-weight: 400;
}
.use-item-config {
display: flex;
flex-wrap: wrap;
height: 60px;
.use-config-item {
margin-top: 14px;
width: 50%;
font-size: 16px;
color: #333333;
letter-spacing: 0;
......@@ -208,10 +243,11 @@ export default {
.use-flex {
display: flex;
align-items: center;
justify-content: center;
margin-top: 30px;
}
.use-operation {
flex: 1;
width: calc(50% - 8px);
height: 36px;
background: #5850ff;
font-weight: 400;
......@@ -275,4 +311,4 @@ export default {
}
}
}
</style>
\ No newline at end of file
</style>
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-11 18:32:20
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-05-15 17:19:03
* @FilePath: \scrm-micro-home\src\views\home\marketing.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="full-box">
<div class="market-left">
<marketing-left></marketing-left>
</div>
<div class="market-m-r">
<div class="market-top">
<div class="market-header">
<div class="back-wrap" @click="goBack">
<i class="i i-back"></i>
<span class="back-text">返回</span>
<span class="sprator">|</span>
</div>
<div class="market-title">ChatGPT超级营销</div>
</div>
</div>
<div class="market-bottom">
<div class="market-middle">
<marketing-middle></marketing-middle>
</div>
<div class="market-right">
<marketing-right></marketing-right>
</div>
</div>
</div>
</div>
</template>
<script>
import MarketingLeft from './components/Marketing/MarketingLeft'
import MarketingMiddle from './components/Marketing/MarketingMiddle'
import MarketingRight from './components/Marketing/MarketingRight'
export default {
components: {
MarketingLeft,
MarketingMiddle,
MarketingRight
},
data() {
return {}
},
methods: {
goBack() {
this.$router.push('/home/index')
}
}
}
</script>
<style lang="scss" scoped>
.full-box {
position: fixed;
top: 0px;
left: 0px;
width: 100%;
min-height: 100%;
background: #f0f1f7;
z-index: 999;
display: flex;
.market-left {
width: 246px;
background: #fff;
}
.market-m-r {
margin-left: 8px;
flex: 1;
.market-bottom {
display: flex;
.market-middle {
flex: 1;
}
.market-right {
width: 303px;
margin-left: 8px;
}
}
}
.market-top {
.market-header {
height: 56px;
background: #ffffff;
display: flex;
align-items: center;
padding-left: 20px;
color: #333;
.back-wrap {
font-size: 12px;
cursor: pointer;
.sprator {
margin: 0 8px;
color: #c3c3c3;
}
}
.market-title {
font-weight: 500;
font-size: 16px;
}
}
}
}
</style>
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-07-22 18:15:13
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-05-15 15:41:06
* @FilePath: \scrm-micro-home\vue.config.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const path = require('path')
const packageName = require('./package.json').name
const node_env = process.env.NODE_ENV === 'production'
......@@ -6,7 +14,7 @@ const resolve = dir => path.join(__dirname, dir)
const CDN_DOMAIN = 'https://img02.glsx.com.cn/'
const cdn = {
css: [`${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/theme-chalk/index.css`],
js: [`${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`, `${CDN_DOMAIN}ajax/libs/vue-router/3.2.0/vue-router.min.js`, `${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/index.js`, `${CDN_DOMAIN}ajax/libs/vuex/3.6.2/vuex.min.js`, `${CDN_DOMAIN}ajax/libs/echarts/5.1.2/echarts.min.js`]
js: [`${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`, `${CDN_DOMAIN}ajax/libs/vue-router/3.2.0/vue-router.min.js`, `${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/index.js`, `${CDN_DOMAIN}ajax/libs/vuex/3.6.2/vuex.min.js`, `${CDN_DOMAIN}ajax/libs/echarts/5.1.2/echarts.min.js`, 'https://webapi.amap.com/loader.js']
}
module.exports = {
outputDir: `dist`,
......@@ -32,8 +40,8 @@ module.exports = {
'element-ui': 'ELEMENT',
'vue-router': 'VueRouter',
vuex: 'Vuex',
axios: 'axios',
echarts: 'echarts'
echarts: 'echarts',
AMap: 'AMap'
}
},
devServer: {
......@@ -67,4 +75,4 @@ module.exports = {
})
.end()
}
}
\ No newline at end of file
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!