Commit 26308025 by 前端

提示词

1 parent 263faf52
......@@ -17,6 +17,7 @@
"dayjs": "^1.10.5",
"glsx-common": "^2.1.0",
"lib-flexible": "^0.3.2",
"markdown-it": "^14.0.0",
"postcss-loader": "^6.2.0",
"sha1": "^1.1.1",
"storejs": "^1.1.0",
......
<template>
<van-dropdown-menu class="dropdown-menu">
<van-dropdown-item
ref="menu"
teleport="body"
>
<template #title>
<div class="sprite-icon icon-menu-active"></div>
<div class="sprite-icon icon-menu"></div>
</template>
<menu-checkbox
:single="single"
@confirm="confirm"
:title="title"
:data="data"
/>
</van-dropdown-item>
</van-dropdown-menu>
</template>
<script type='text/ecmascript-6'>
import MenuCheckbox from './MenuCheckbox.vue'
export default {
components: { MenuCheckbox },
name: 'DropdownMenu',
props: {
single: Boolean,
title: String,
data: {
type: Array,
default: () => []
}
},
data () {
return {
test: false,
}
},
mounted () {
},
methods: {
confirm (e) {
this.$emit('confirm', e)
}
}
}
</script>
<style scoped lang='scss'>
.dropdown-menu {
/deep/.van-dropdown-menu__bar {
width: 44px;
height: 44px !important;
.sprite-icon {
transition: all 0.25s;
}
.icon-menu-active {
display: none;
}
.van-dropdown-menu__title--active {
.icon-menu-active {
display: block;
}
.icon-menu {
display: none;
}
}
}
}
</style>
\ No newline at end of file
<template>
<div class="menu-checkbox">
<div class="menu-box">
<div class="menu-title">{{title}}:</div>
<div class="menu-grid">
<template v-for="(i,index) in list">
<div
:class="['item text-center',{'active':i.active}]"
:key="index"
@click="choose(i,index)"
>{{i.text}}</div>
</template>
</div>
</div>
<div class="menu-btn-box">
<van-button
block
round
@click="close(1)"
>
{{showReset?'重置':'取消'}}
</van-button>
<van-button
block
round
color="#3975C6"
@click="confirm"
>
确认
</van-button>
</div>
</div>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'MenuCheckbox',
props: {
single: Boolean,
title: String,
data: {
type: Array,
default: () => []
}
},
data () {
return {
showReset: false,
list: [],
}
},
mounted () {
this.list = this.data
},
methods: {
choose (e, index) {
let { list, single, showReset } = this
if (single || !e.value) {
list.map(i => i.active = false)
list[index].active = true
} else {
if (list[0].active) list[0].active = false
list[index].active = !e.active
this.check()
}
if (!showReset) this.showReset = true
},
check () {
let { list, single } = this
if (!single) {
try {
list.map(e => { if (e.active) throw false })
} catch (error) {
return
}
}
this.reset()
},
reset () {
let { list } = this
list.map(i => i.active = false)
list[0].active = true
this.showReset = false
},
confirm () {
let { list } = this
let chooseList = []
list.map(e => {
if (e.active && e.value) chooseList.push(e)
})
this.$emit('confirm', chooseList)
this.close()
},
close (click) {
let { showReset } = this
if (click && showReset) {
this.reset()
return
}
this.$parent.close()
}
}
}
</script>
<style scoped lang='scss'>
.menu-box {
padding: 14px 16px 0;
.menu-title {
color: #333333;
font-size: 14px;
}
.menu-grid {
display: flex;
flex-wrap: wrap;
padding: 12px 0 0 23px;
.item {
height: 26px;
border-radius: 4px;
border: 1px solid #e4e4e4;
padding: 0 12px;
color: #666;
font-size: 14px;
transition: all 0.25s;
margin:0 16px 16px 0;
}
.active {
border-color: var(--themeColor);
color: var(--themeColor);
}
}
}
.menu-btn-box {
height: 56px;
border-top: 1px solid rgba(220, 222, 224, 0.7);
padding: 10px 16px;
box-sizing: border-box;
display: grid;
grid-template-columns: repeat(2, 162px);
align-items: center;
justify-content: space-between;
.van-button {
height: 36px;
}
}
</style>
\ No newline at end of file
<template>
<div class="psd-item">
<div class="title flex">
{{ item.materialName }}
<template v-if="!hidePYQ">
<div class="sprite-icon icon-PYQ" @click="onEmit('share', item)"></div>
</template>
</div>
<div class="content">
<template v-if="item.materialType == 1">
<div class="sprite-icon icon-pdf"></div>
</template>
<!-- <template v-else-if="item.materialType == 2">链接</template> -->
<template v-else>
<div @click="goDetailPage(item)" class="gr-ctx">
<div class="sprite-icon icon-grctx"></div>
查看图文
</div>
</template>
<!-- <template v-else>
<div v-html="decodeURIComponent(item.materialUrl)" class="hide"></div>
</template> -->
</div>
<div class="bottom flex">
<div class="num flex">
<div class="sprite-icon icon-send"></div>
{{ item.sendNum }}
</div>
<div class="num flex">
<div class="sprite-icon icon-eye"></div>
{{ item.readNum }}
</div>
<van-button block round color="#3975C6" @click="onEmit('send', item)">发送</van-button>
</div>
</div>
</template>
<script type="text/ecmascript-6">
export default {
name: 'Psd',
props: {
item: null,
hidePYQ: Boolean
},
data () {
return {
}
},
mounted () {
},
methods: {
onEmit (name, item) {
this.$emit(name, item)
},
goDetailPage(i){
this.$router.push({
path: '/psd/detail',
query: {id:i.id,name:i.materialName}
})
}
}
}
</script>
<style scoped lang="scss">
.psd-item {
background: #ffffff;
box-shadow: 0px 4px 8px 0px rgba(224, 224, 224, 0.5);
border-radius: 4px;
.title {
min-height: 39px;
border-bottom: 1px solid rgba(195, 195, 195, 0.3);
padding: 10px 16px;
font-size: 14px;
font-weight: 500;
color: #282829;
box-sizing: border-box;
.icon-PYQ {
margin-left: auto;
flex-shrink: 0;
}
}
.content {
min-height: 60px;
box-sizing: border-box;
padding: 10px 16px;
font-size: 12px;
color: #999999;
.gr-ctx {
display: flex;
align-items: center;
font-size: 28rpx;
color: #3975c6;
.icon-grctx {
margin-right: 5px;
}
}
.hide {
max-height: 150px;
overflow-y: scroll;
/deep/img {
height: auto;
}
}
}
.bottom {
padding: 0 16px;
height: 32px;
background: #f8f8f8;
border-radius: 0px 0px 4px 4px;
.num {
font-size: 12px;
color: #999999;
margin-right: 24px;
.sprite-icon {
margin-right: 4px;
}
}
.van-button {
width: 60px;
height: 24px;
font-size: 12px;
margin-left: auto;
}
}
}
</style>
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-02-27 18:00:28
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-02-27 18:00:50
* @FilePath: \salesgpt-project\src\mixins\AudioToWord.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
export default {
data() {
return {
word: '',
isListening: false // 判断是否在语音监听中
}
},
methods: {
audioCHangeWord() {
var that = this
that.word = ''
// 创建SpeechRecognition对象
// eslint-disable-next-line no-undef
var recognition = new webkitSpeechRecognition()
console.log('recognition1', recognition)
if (!recognition) {
// eslint-disable-next-line no-undef
recognition = new SpeechRecognition()
}
console.log('recognition2', recognition)
console.log(11)
// 设置语言
recognition.lang = 'zh-CN'
console.log(22)
// 开始语音识别
recognition.start()
that.isListening = true
console.log(33)
// 监听识别结果
recognition.onresult = function (event) {
var result = event.results[0][0].transcript
console.log('监听结果:', result)
that.word = result
}
// 监听错误事件
recognition.onerror = function (event) {
that.isListening = false
that.$message('监听语音失败:' + event.error)
console.error(event.error)
}
// 监听结束事件(包括识别成功、识别错误和用户停止)
recognition.onend = function () {
that.isListening = false
console.log('语音识别停止')
}
},
goBack() {
this.$router.push({ path: '/entry' })
}
}
}
......@@ -2,16 +2,16 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-02-25 10:30:47
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-02-26 11:29:48
* @LastEditTime: 2024-02-27 15:38:16
* @FilePath: \dj-scrm-wx-work-attachment-psd\src\mixins\socket.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const Q_NUM = 9
export default {
data() {
return {
isEnd: true,
path: 'ws://salesgpt.dev.glsx.com.cn/ws/1',
path: 'ws://192.168.3.191:7864/ws/1',
isSend: true,
timer_chat: null,
timer_jump: null,
......@@ -34,6 +34,7 @@ export default {
this.socket.onerror = this.error
// 监听socket消息
this.socket.onmessage = this.getMessage
this.socket.onclose = this.close
},
open: function () {
console.log('socket连接成功')
......@@ -43,16 +44,19 @@ export default {
},
error: function () {
console.log('连接错误')
setTimeout(this.init, 1000)
},
getMessage: function (res) {
let msg = res.data
if (msg == '<rdfast stop>') {
this.isEnd = true
this.isSend = true
if (this.getEvaluate && this.contentList.length == 5) {
if (this.getEvaluate && this.contentList.length == Q_NUM && !this.timer_jump) {
this.timer_jump = setInterval(() => {
if (this.messageAll.length == 0) {
this.getEvaluate()
clearInterval(this.timer_jump)
this.timer_jump = null
}
}, 300)
}
......@@ -100,10 +104,15 @@ export default {
contentType: 2,
content: this.issue
})
let len = this.contentList.length,
question = this.issue
if (len == Q_NUM - 1 && type == 'sparring') {
question += ',在我回答后,接下来你做出简洁的总结性回复,并且回答内容必须包含“对练已结束”'
}
this.sendMessage(
JSON.stringify({
type,
question: this.issue,
question,
history: JSON.stringify(history)
})
)
......@@ -117,8 +126,12 @@ export default {
this.isSend = false
this.issue = ''
},
close: function () {
console.log('socket已经关闭')
close() {
this.socket.close() // 关闭 websocket
this.socket.onclose = function (e) {
console.log(e) //监听关闭事件
console.log('关闭')
}
},
toBottom() {
this.$nextTick(() => {
......@@ -128,6 +141,7 @@ export default {
},
beforeDestroy() {
// 销毁监听
this.socket.onclose = this.close
this.close()
clearInterval(this.timer_jump)
}
}
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-06-09 10:59:50
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-02-26 10:04:02
* @LastEditTime: 2024-02-27 14:42:07
*/
import Vue from 'vue'
import Router from 'vue-router'
......@@ -31,7 +31,6 @@ function createRouter() {
routes
})
}
// http://scrm.dev.glsx.com.cn/dj-scrm-wx-work-attachment-activity/
router.beforeEach((to, from, next) => {
/* 路由发生变化修改页面title */
if (to.meta.title) store.dispatch('setPageMeta', to.meta)
......
/*
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-02-26 14:10:00
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-02-27 14:23:49
* @FilePath: \salesgpt-project\src\router\routes.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
const pages = {
psd: [
{
name: 'index'
},
{
name: 'list'
},
{
name: 'detail'
}
],
ai: [
{
name: 'index'
},
{
name: 'chat'
},
{
name: 'questions'
},
{
name: 'car'
},
{
name: 'evaluate'
}
],
openEnterpriseChat: [
{
name: 'index',
meta: {
noAuth: true
}
}
],
Chat: [
},
{
name: 'library',
meta: {
title: '话术库'
}
name: 'car'
},
{
name: 'paper',
meta: {
title: '喜报早报记录'
}
name: 'index'
}
]
}
let routes = [
{
path: '/',
redirect: '/psd'
redirect: '/ai'
}
]
const keepAlives = []
......
......@@ -4,11 +4,11 @@
* @Author: limin
* @Date: 2021-06-15 14:41:02
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-02-26 11:53:26
* @LastEditTime: 2024-02-27 17:50:22
*/
export const STORE_USER_KEY = 'STORE_USER_KEY'
export const CAR_TYPE = [
{ type: '问界M5', scene: ['搬运货物'] },
{ type: '问界M5', scene: ['日常代步'] },
{ type: '问界M7', scene: ['上下班代步、短途自驾', '商务出行、搬运货物'] },
{ type: '问界M9', scene: ['长途旅行', '商务出行'] }
]
......@@ -19,7 +19,7 @@ export const CAR_TYPE_SCENE = [
是否已试驾:否
本次是否愿意试驾:否
计划购车时间:不定
竞品车型:奔驰GLS
竞品车型:汉兰达
购车客户的工作:程序员
}`,
`
......@@ -29,7 +29,7 @@ export const CAR_TYPE_SCENE = [
是否已试驾:是
本次是否愿意试驾:是
计划购车时间:今年
竞品车型:宝马M3
竞品车型:理想L8
}`,
`
{
......@@ -38,7 +38,7 @@ export const CAR_TYPE_SCENE = [
是否已试驾:是
本次是否愿意试驾:否
计划购车时间:这周
竞品车型:保时捷718
竞品车型:理想L9
}`,
`
{
......@@ -47,7 +47,7 @@ export const CAR_TYPE_SCENE = [
是否已试驾:是
本次是否愿意试驾:是
计划购车时间:当月
竞品车型:宝马7系
竞品车型:小鹏G6
}`,
`
{
......@@ -56,7 +56,7 @@ export const CAR_TYPE_SCENE = [
是否已试驾:否
本次是否愿意试驾:是
计划购车时间:现在
竞品车型:别克GL8
竞品车型:比亚迪唐
}`
]
export const CAR_TYPE_DESC = [
......@@ -103,14 +103,15 @@ export const CAR_TYPE_DESC = [
export const CAR_TIPS = (custom, product) => {
return `
身份:
你是一名购车客户,你很想买一辆汽车来改变你的出行方式,构想买车咨询场景下请模拟购车客户的AI对4S店销售人员进行提问,对话风格尽量自然、简短,每次询问的信息点不超过2个,您作为购车客户AI只需要进行提问。
你需要扮演一个销售顾问,模拟与4S店销售人员对话。对话风格尽量自然、简短,每次提问的信息点不超过2个。
能力:
- 备课:
本次对练的客户画像如下:
${custom}
本次陪练涉及的产品参数如下:
${custom}
本次陪练涉及的产品参数如下:
${product}
- 对练:模拟不同客户特征,与销售员进行对话练习。
- 对练:模拟不同客户特征,与销售员进行对话练习
- 注意:是我和你模拟对话,不是你自己一个人模拟对话;首先由你发问,然后由我回答。
细节:
- 备课时,需提供知识库中相应产品的详细参数和销售场景。
- 对练时,AI将根据客户画像特征模拟对话,包括购车需求、预算等。
......@@ -118,3 +119,49 @@ ${custom}
以客户角色按照客户的需求提问的方式进行提问,每次只按照客户的需求提问一次,每次对话始终站在客户的角度提出的问题是:。
`
}
export const TIP_LIST = {
M5: [
'问界M5的发动机功率是200kW,如果您对问界M5感兴趣,我可以为您提供更详细的信息和购车指导。',
'油耗情况是百公里油耗低至8.98L,我们非常乐意为您安排试驾体验,让您亲自感受它的驾驶乐趣。',
'问界M5是中型SUV,如果您对M5感兴趣,我可以为您提供更多详细信息或帮助您预订试驾。',
'问界M5官方售价是25万元,我们会根据您的购车需求为您提供最合适的优惠方案。',
'问界M5的发动机排量为1.5升,我们诚邀您前来试驾,感受全新的驾驶体验和智能科技带来的便利。'
],
M7: [
'问界M7官方售价是24.98万元,我们会根据您的购车需求为您提供最合适的优惠方案。',
'油耗情况是百公里油耗低至7.2L,我们非常乐意为您安排试驾体验,让您亲自感受它的驾驶乐趣。',
'问界M7是一款华为旗下的高端智慧汽车品牌车型,与汉兰达相比,它在设计、内饰和配置方面都具有更时尚。',
'问界M7是一款商务多功能车,它确实拥有宽敞的车内空间和灵活的货物搬运能力,非常适合商务出行和搬运货物的需求。',
'问界M7的车身尺寸为5020mm长、1945mm宽、1760mm高,车内有效空间长度达到3338mm。',
'这款车型的后备箱容积为686L,如果您对问界M7感兴趣,我可以为您提供更详细的信息和购车指导。',
'非常抱歉,目前问界M7没有现车,需要等待大约两个月的时间才能提车。我们可以为您安排预订,确保您在车辆到达时优先选择。',
'具体的定金金额可能因地区和经销商而异,请允许我确认一下我们这里的预订政策和定金要求,以便为您提供准确的信息。',
'问界M7采用增程式动力,综合续航达1300公里,纯电续航超过240公里,我们诚邀您前来试驾,感受全新的驾驶体验和智能科技带来的便利。',
'问界M7在安全性方面具备高强度车身、智能驾驶辅助系统、多气囊系统、稳定控制系统和监控系统等多项先进特点,为驾乘者提供全方位的安全保障。'
],
M9: [
'问界M9分为纯电与增程两个动力版本,官方售价区间为46.98万-56.98万元,我们会根据您的购车需求为您提供最合适的优惠方案。',
'问界M9相比理想L8的优势在于更高的续航里程、更快的加速性能和更丰富的智能驾驶功能。',
'油耗情况是百公里油耗低至7.2L,我们非常乐意为您安排试驾体验,让您亲自感受它的驾驶乐趣。',
'问界M9在长途旅行中的续航表现非常出色。问界M9搭载了第4代增程平台,综合续航达到1362km,纯电续航达到225km。',
'问界M9的最高车速是200km/h,我们非常乐意为您安排试驾体验,让您亲自感受它的驾驶乐趣。',
'问界M9拥有业界首创的座靠分离技术的舒云双享座椅,提供了更加舒适的乘坐体验,如果您对M9感兴趣,我可以为您提供更多详细信息或帮助您预订试驾。'
]
}
export const Q_LIST = [
'关于问界M9这款车,我想了解一下它的官方售价是多少?同时,能对比一下它与理想L9的主要优势吗?',
'我想了解一下问界M9,它们在长途旅行中的续航表现如何?',
'我对问界M9很感兴趣,我计划今年购车,目前有哪些优惠政策?',
'm5 发动机排量是多大呢?',
'关于问界M9这款车,我想了解一下它的续航里程能够满足长途旅行的需求吗?',
'想了解一下它的发动机功率和油耗情况如何?',
'我对问界M7这款车很感兴趣,想了解一下它的空间大小是否适合商务出行和搬运货物?',
'我对问界M7很感兴趣,我想了解一下它的后排空间和载货能力如何?',
'我对问界M7这款车很感兴趣,想了解一下它的官方售价是多少?同时,能介绍一下它的续航里程吗?',
'我对问界M7这款车很感兴趣,想了解一下相比汉兰达,它在空间和动力性能上有何优势?',
'想了解一下问界M7这款车在油耗方面表现如何?我经常需要上下班代步。',
'我想知道问界M9在实际驾驶中的0-100加速时间和最高车速分别是多少?我还想了解一下它的综合油耗。 ',
'能具体告诉我一下这款车的尺寸吗?长宽高分别是多少? ',
'请问问界M7的续航里程是多少?还有,这款车的智能化功能是否适合程序员日常使用? ',
'我对问界M9这款车很感兴趣,能否介绍一下它的主要用车场景? '
]
<template>
<div class="layout">
<div class="sticky">
<search-box
@search="search"
placeholder="输入关键词搜索"
:showDropdown="false"
></search-box>
<template v-if="groupList.length">
<tab
:list="groupList"
@change="change"
>
</tab>
</template>
</div>
<template v-if="flag">
<template v-if="list.length">
<scroll-view
class="list-box"
@ReachBottom="onReachBottom"
ref="scrollView"
>
<div class="box">
<template v-for="(i,index) in list">
<div
class="item"
:key="index"
>
<div
v-html="decodeURIComponent(i.text)"
:class="['content',{'line-clamp':i.moreState}]"
></div>
<div class="chat-btns flex">
<template v-if="i.moreBtn">
<div
class="more"
@click="i.moreState = !i.moreState"
>{{ i.moreState ? '展开' :'收起' }}</div>
</template>
<van-button
class="send"
block
round
color="#3975C6"
:disabled="sendChatMessageDisabled"
@click="sendChatMessage(i.scriptContent)"
>发送</van-button>
</div>
</div>
</template>
</div>
</scroll-view>
</template>
<template v-else>
<nothing
class="nothing-box"
image="https://img01.glsx.com.cn/weapp/resource/scrm-mobile/psd/list-nothing.png"
>暂无可用话术</nothing>
</template>
</template>
</div>
</template>
<script type='text/ecmascript-6'>
import { Notify } from 'vant'
import { wxConfig, marketingApi } from '@/api'
export default {
name: 'library',
data () {
return {
groupList: [],
flag: false,
list: [],
pageNum: 1,
sendChatMessageDisabled: false,//发送按钮权限
params: {
scriptGroup: '',
scriptContent: '',
pageNum: 1,
pageSize: 10
},
total: 0
}
},
async mounted () {
try {
await wxConfig.init(['sendChatMessage'])
} catch (error) {
this.sendChatMessageDisabled = true
}
this.getChatGroupList()
this.getChatLibraryList()
},
methods: {
/**发送 */
sendChatMessage (content) {
this.showLoading()
wxConfig
.sendChatMessage({
msgtype: 'text', //消息类型,必填
enterChat: true, //为true时表示发送完成之后顺便进入会话,仅移动端3.1.10及以上版本支持该字段
text: {
content
},
})
.then(res => {
this.hideLoading()
}).catch(err => {
console.log()
if (!err?.err_Info?.startsWith('cancel')) Notify(String(err))
this.hideLoading()
})
},
/**清空 */
clearData () {
this.list = []
this.flag = false
this.params.pageNum = 1
this.getChatLibraryList()
},
/**搜索 */
search (val) {
this.params.scriptContent = val
this.clearData()
},
/**切换tab */
change (index) {
const { groupList, params: { scriptGroup } } = this
if (scriptGroup == groupList[index] || (index == 0 && scriptGroup == '')) return
this.params.scriptGroup = index == 0 ? '' : groupList[index]
this.clearData()
},
/**话术组 */
async getChatGroupList () {
let res = await marketingApi.getChatGroupList() || [],
maxLength = 10
if (res.length > maxLength) res = res.splice(0, maxLength)
this.groupList = ['全部', ...res]
},
/**话术 */
async getChatLibraryList () {
this.showLoading()
try {
const { params, list } = this,
{ data, count } = await marketingApi.getChatLibraryList(params),
val = params.scriptContent || '',
rex = new RegExp(val, 'g')
data.length && data.map(e => {
let txt = e.scriptContent
if (e.scriptContent.length * 12 >= 1248) {
e.moreBtn = true
e.moreState = true
}
if (val) txt = txt.replace(rex, `<span>${val}</span>`)
e.text = encodeURIComponent(txt)
})
this.list = list.concat(data)
this.total = count
this.hideLoading()
} catch (error) {
this.hideLoading()
}
this.flag = true
},
/**触底分页加载 */
onReachBottom () {
let { total, params: { pageNum }, list, $refs: {
scrollView
} } = this
scrollView.loading = false
if (list.length == total) {
return scrollView.finished = true
}
if (Math.ceil(total / 10) > pageNum) {
this.params.pageNum = pageNum + 1
this.getChatLibraryList()
} else scrollView.finished = true
},
}
}
</script>
<style scoped lang='scss'>
.layout {
.list-box {
height: calc(100vh - 100px);
box-sizing: border-box;
.item {
background: #ffffff;
box-shadow: 0 2px 8px 0 #ced1de66, 0 2px 4px 0 #ced1de1f;
border-radius: 4px;
margin-bottom: 12px;
font-size: 12px;
color: #666666;
word-break: break-all;
position: relative;
.content {
padding: 14px 10px 0;
line-height: 20px;
/deep/span {
color: #3582ee;
}
}
.line-clamp {
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 4;
display: -webkit-box;
-webkit-box-orient: vertical;
}
.chat-btns {
height: 36px;
padding: 0 16px;
border-top: 1px solid rgba(195, 195, 195, 0.3);
margin-top: 13px;
.more {
color: #999999;
}
.van-button--block {
width: 60px;
height: 24px;
font-weight: 500;
font-size: 12px;
color: #ffffff;
margin-left: auto;
box-shadow: 0 2px 6px 2px #3975c61c;
}
}
}
}
}
</style>
\ No newline at end of file
<template>
<div class="layout">
<div class="sticky">
<div class="search">
<search-box
@search="search"
:showDropdown="false"
placeholder="输入4S店/群聊名称搜索"
></search-box>
<div
class="date-menu flex"
@click="showDatePopup = true"
>
<!-- <template v-if="params.startTime && params.endTime">
{{ params.startTime }} - {{ params.endTime }}
</template>
<template v-else> -->
自定义
<!-- </template> -->
</div>
</div>
<tab
:list="tabList"
@change="change"
title-class="tab-item"
:ellipsis="false"
>
</tab>
</div>
<template v-if="flag">
<template v-if="list.length">
<scroll-view
class="list-box"
@ReachBottom="onReachBottom"
ref="scrollView"
:disabledRefresh="false"
@onRefresh="clearData"
>
<div class="box">
<template v-for="(i,index) in list">
<div
class="item"
:key="index"
>
<div class="title flex">{{ i.merchantName }}</div>
<div class="content">
<template v-for="(item,ind) in contentItem">
<div
class="content-item"
:key="ind"
>
<div class="label">{{item.label}}:</div>
<div class="value">
<template v-if="item.format">
{{ item.format(i[item.key]) }}
</template>
<template v-else>
{{ i[item.key] }}
</template>
</div>
</div>
</template>
</div>
<div class="bottom flex">
推送类型:<span>{{ {
1:'早报',
2:'SA个人喜报',
3:'SA喜报',
4:'收款喜报',
}[i.pushType] }}</span>
<van-button
block
round
color="#3975C6"
class="bottom-btn"
@click="handleViewImage(i.fileUrl)"
>查看</van-button>
</div>
</div>
</template>
</div>
</scroll-view>
</template>
<template v-else>
<nothing
class="nothing-box"
image="https://img01.glsx.com.cn/weapp/resource/scrm-mobile/psd/list-nothing.png"
>暂无数据-</nothing>
</template>
</template>
<date-popup
:value.sync="showDatePopup"
@confirm="confirmDate"
></date-popup>
<van-overlay
:show="showImagePreview"
@click="showImagePreview = false"
z-index="99"
:lock-scroll="false"
>
<div class="image-wrapper">
<div
class="image-close"
@click="showImagePreview = false"
>
<img src="https://img01.glsx.com.cn/weapp/resource/scrm-mobile/psd/close.png">
</div>
<div
class="image-box"
@click.stop
>
<img :src="imageUrl" />
</div>
<div
class="image-tips flex"
@click.stop
>
<img src="https://img01.glsx.com.cn/weapp/resource/scrm-mobile/psd/longtap.png">
长按图片保存
</div>
</div>
</van-overlay>
</div>
</template>
<script type='text/ecmascript-6'>
import { entmicroApi } from '@/api'
import * as dayjs from 'dayjs'
export default {
name: 'paper',
data () {
return {
tabList: ['全部', '早报', 'SA个人喜报', 'SA喜报', '收款喜报'],
contentItem: [
{
label: '推送时间',
key: 'pushTime',
format: val => dayjs(val).format('YYYY-MM-DD HH:mm:ss')
},
{
label: '所属园区',
key: 'parkStoreName'
},
{
label: '推送群聊',
key: 'groupChatName'
}
],
showDatePopup: false,
list: [],
flag: false,
params: {
startTime: '',
endTime: '',
pushType: '',//早报(即战报)=1 SA个人喜报 = 2 SA喜 =3 收款喜报 = 4
searchName: '',
pageNum: 1,
pageSize: 10
},
total: 0,
showImagePreview: false,
imageUrl: ''
}
},
mounted () {
this.getActivityReportLogList()
},
methods: {
async getActivityReportLogList () {
this.showLoading()
try {
const { params, list } = this,
{ data, count } = await entmicroApi.getActivityReportLogList(params)
this.list = list.concat(data)
this.total = count
this.hideLoading()
} catch (error) {
this.hideLoading()
}
this.flag = true
},
handleViewImage (e) {
this.imageUrl = e
this.$nextTick(() => {
this.showImagePreview = true
})
},
clearData () {
this.list = []
this.flag = false
this.params.pageNum = 1
this.getActivityReportLogList()
},
search (val) {
this.params.searchName = val
this.clearData()
},
change (index) {
const {pushType} = this.params
if (pushType == index || (pushType == '' && index == 0)) return
this.params.pushType = index == 0 ? '' : index
this.clearData()
},
confirmDate (e) {
let { params } = this
this.params = {
...params,
...e
}
this.clearData()
},
/**触底分页加载 */
onReachBottom () {
let { total, params: { pageNum }, list, $refs: {
scrollView
} } = this
scrollView.loading = false
if (list.length == total) {
return scrollView.finished = true
}
if (Math.ceil(total / 10) > pageNum) {
this.params.pageNum = pageNum + 1
this.getActivityReportLogList()
} else scrollView.finished = true
},
}
}
</script>
<style scoped lang='scss'>
.search {
display: flex;
background-color: #fff;
.search-box {
flex: 1;
transition: all 1s;
}
/deep/.tab-item {
font-size: 14px;
color: #666666;
}
.date-menu {
flex-shrink: 0;
font-size: 12px;
color: #333333;
padding-right: 16px;
&::after {
border: 4px solid transparent;
border-top-color: #333;
content: '';
display: block;
transform: translateY(2px);
margin-left: 4px;
border-radius: 1px;
}
}
}
/deep/.van-search {
padding: 9px 16px;
}
.list-box {
height: calc(100vh - 100px);
box-sizing: border-box;
padding: 10px 16px;
.item {
margin-bottom: 10px;
background: #ffffff;
box-shadow: 0 4px 8px 0 #e0e0e080;
border-radius: 4px;
.title {
font-weight: 500;
font-size: 14px;
color: #282829;
padding: 0 16px;
height: 39px;
}
.content {
padding: 12px 16px;
border-top: 1px solid rgba(194, 194, 194, 0.3);
border-bottom: 1px solid rgba(194, 194, 194, 0.3);
font-size: 12px;
color: #999999;
&-item {
margin-bottom: 8px;
display: flex;
.label {
flex-shrink: 0;
}
.value {
line-height: 16px;
flex: 1;
}
&:last-of-type {
margin-bottom: 0;
}
}
}
.bottom {
font-size: 12px;
color: #999999;
height: 36px;
padding: 0 16px;
span {
color: #3975c6;
}
&-btn {
margin-left: auto;
width: 60px;
height: 24px;
font-weight: 500;
font-size: 12px;
box-shadow: 0 2px 6px 2px #3975c61c;
span {
color: #fff;
}
}
}
}
}
.nothing-box {
height: calc(100vh - 99px);
}
.image-wrapper {
user-select: none;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
.image-close {
position: absolute;
width: 28px;
height: 28px;
right: 0;
top: -44px;
}
.image-box {
width: 279px;
height: 400px;
// max-height: 454px;
background: #ffffff;
border-radius: 6px 6px 0 0;
padding: 16px;
box-sizing: border-box;
overflow-y: scroll;
img {
height: auto;
// object-fit: contain;
}
}
.image-tips {
width: 279px;
height: 45px;
background: #f7f8fa;
border-radius: 0 0 6px 6px;
justify-content: center;
font-weight: 500;
font-size: 16px;
color: #3975c6;
transform: translateY(-1px);
img {
margin-right: 6px;
width: 20px;
height: 20px;
}
}
}
</style>
\ No newline at end of file
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-02-23 09:47:18
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-02-25 17:55:42
* @LastEditTime: 2024-02-27 17:36:28
* @FilePath: \dj-scrm-wx-work-attachment-psd\src\views\ai\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -42,6 +42,7 @@ export default {
handleSelectCar(item) {
this.show = true
this.selectCar = item
this.selectCard = 0
},
handleSelectCard(item) {
this.selectCard = item
......@@ -107,7 +108,9 @@ export default {
&.checked {
border: 1px solid #127ce4;
background: #127ce4;
color: #fff;
.card-desc {
color: #fff;
}
}
.card-desc {
font-size: 16px;
......
......@@ -2,15 +2,17 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-02-23 09:47:18
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-02-26 11:41:59
* @LastEditTime: 2024-02-27 16:00:41
* @FilePath: \dj-scrm-wx-work-attachment-psd\src\views\ai\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="ai-container">
<tab :list="tabList" @change="change"></tab>
<template v-if="tabIndex == 0">
<!-- <div class="score-container">
<van-icon name="wap-home-o" @click="backHome" class="back-home" />
<!-- <tab :list="tabList" @change="change"></tab> -->
<div class="result-box" ref="contentView">
<template v-if="tabIndex == 0">
<!-- <div class="score-container">
<div class="score-box">
<div class="score-item" v-for="(item, index) in scoreList" :key="index">
<div class="score-num">55</div>
......@@ -18,31 +20,44 @@
</div>
</div>
</div> -->
<div class="score-container">
<div class="score-title">练习结果</div>
<div class="score-title" v-if="content" v-html="content"></div>
<van-loading class="loading" color="#3582EE" v-else />
</div>
<!-- <div class="score-container">
<div class="score-container">
<div class="score-title">练习结果</div>
<div class="score-title" v-if="content" v-html="md.render(content)"></div>
<div class="loading-dots" v-else>
<span></span>
<span></span>
<span></span>
</div>
</div>
<!-- <div class="score-container">
<div class="score-title">教官指导</div>
<div class="evaluate-item" v-for="(item, index) in evaluateList" :key="index">
{{ item.label }}:
<span>出色</span>
</div>
</div> -->
</template>
<template v-else>
<chat-list></chat-list>
</template>
</template>
<template v-else>
<div class="score-container">
<div class="score-title">练习建议</div>
<div class="score-title" v-if="advise" v-html="advise"></div>
</div>
<!-- <chat-list></chat-list> -->
</template>
</div>
</div>
</template>
<script>
import Socket from '@/mixins/socket'
import MarkdownIt from 'markdown-it'
export default {
mixins: [Socket],
data() {
return {
md: '',
resultAll: '',
content: '',
advise: '',
endStatus: true,
messageList: [],
timer: null,
......@@ -68,7 +83,9 @@ export default {
}
},
mounted() {
this.md = new MarkdownIt()
this.history = this.$route.params.history
this.content = this.content.replace(/\s{2,4}/g, '<br/>')
},
methods: {
/**切换tab */
......@@ -76,6 +93,10 @@ export default {
console.log(index)
this.tabIndex = index
},
backHome() {
this.close()
this.$router.push('/ai')
},
defaultFun() {
this.sendMessage(
JSON.stringify({
......@@ -88,27 +109,84 @@ export default {
endFun() {
this.endStatus = true
},
//总结换行
summarize(msg) {
this.messageList.push(msg)
if (!this.timer)
this.timer = setInterval(() => {
const len = this.content.length - 1
const i = this.messageList.shift()
if (this.messageList.length == 0) {
clearInterval(this.timer)
this.timer = null
}
this.content += i
}, 30)
this.resultAll += msg.replace(/\s/g, '')
if (/\=\s*\d{1,3}分$/.test(this.resultAll)) {
this.advise += msg
} else {
this.messageList.push(msg)
if (!this.timer)
this.timer = setInterval(() => {
const len = this.content.length - 1
const i = this.messageList.shift()
if (this.messageList.length == 0) {
clearInterval(this.timer)
this.timer = null
}
this.content += i
this.$nextTick(() => {
this.$refs.contentView.scrollTop = 999999999
})
}, 30)
}
}
}
}
</script>
<style scoped lang="scss">
.back-home {
position: fixed;
bottom: 60px;
right: 10px;
font-size: 40px;
padding: 6px;
background: #3582ee;
color: #fff;
border-radius: 50%;
z-index: 999;
}
.result-box {
// margin-top: 20px;
height: 100%;
overflow-y: auto;
}
.score-container {
background: #fff;
padding: 20px;
margin-top: 20px;
.loading-dots {
display: flex;
justify-content: center;
align-items: center;
}
.loading-dots span {
display: inline-block;
width: 6px;
height: 6px;
border-radius: 50%;
background-color: #000;
margin: 0 3px;
animation: dot-animation 1.5s infinite ease-in-out;
}
.loading-dots span:nth-child(2) {
animation-delay: 0.5s;
}
.loading-dots span:nth-child(3) {
animation-delay: 1s;
}
@keyframes dot-animation {
0%,
100% {
transform: scale(1);
}
50% {
transform: scale(1.5);
}
}
.score-box {
display: grid;
grid-template-columns: 1fr 1fr; /* 一行两列 */
......
......@@ -2,14 +2,14 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-02-23 09:47:18
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-02-25 15:53:48
* @LastEditTime: 2024-02-27 15:02:45
* @FilePath: \dj-scrm-wx-work-attachment-psd\src\views\ai\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="ai-container">
<div class="ai-box">
<div class="ai-btn" @click="jump">AI学习</div>
<div class="ai-btn" @click="jumpX">AI学习</div>
<div class="ai-btn" @click="jump">AI对练</div>
<div class="ai-btn" @click="jumpQuestion">AI问答</div>
</div>
......@@ -21,6 +21,15 @@ export default {
return {}
},
methods: {
jumpX() {
this.$router.push({
name: 'ai.evaluate',
params: {
second: 6,
history: []
}
})
},
jump() {
this.$router.push('ai/car')
},
......
......@@ -53,6 +53,7 @@
</div>
</template>
<script type="text/ecmascript-6">
import { Q_LIST } from '@/utils/constants'
import Socket from '@/mixins/socket'
export default {
mixins: [Socket],
......@@ -63,18 +64,7 @@ export default {
return {
contentList: [],
inputType: 1,
issuesList: [
'你们的膜价格太贵了,超出了我的贴膜预算?',
'我知道你们这个⾏业很暴利,你就给我便宜点呗?',
'我朋友说前挡影响视线,看东西发虚?',
'我买车的时候4s店的⼈说我的车玻璃⾃带隔热功能,就不⽤贴膜了?',
'贴完膜后,还需要保养吗?',
'你这个保险有点贵啊,好像别人那里都没有那么高的价格。',
'第三者怎么要买300万,我买200万/100万就可以了?',
'座位险/驾乘险可以不要吗?',
'我这个车用车比较少,车辆那么新,不会爆胎的。',
'我这个买2年的话,第二年你买其他保险也可以的吗?'
],
issuesList: Q_LIST,
showTips: true,
scriptLibraryAIId: '',
todayQuestionLeft: 0,
......@@ -147,7 +137,7 @@ export default {
}
},
send(i) {
if (i) {
if (i && this.isSend) {
this.issue = i
}
if (!this.issue || !this.isSend) {
......
<template>
</template>
<script type='text/ecmascript-6'>
import { wxConfig } from '@/api'
export default {
name: '',
data () {
return {
flag: false
}
},
activated () {
},
mounted () {
this.showLoading()
let { userId } = this.getQuery()
wxConfig.init(['openEnterpriseChat']).then(() => {
this.hideLoading()
wxConfig.openEnterpriseChat({
externalUserIds: [userId]
}).then(res => {
console.log(res)
})
})
},
methods: {
}
}
</script>
<style scoped lang='scss'>
</style>
\ No newline at end of file
<template>
<div class="layout" v-if="loaded">
<div>
<template v-if="(info.imageUrlList && info.imageUrlList.length) || info.videoUrl">
<van-swipe @change="changeSwiper" height="210" show-indicators>
<van-swipe-item v-if="info.videoUrl">
<video id="swiper_video" :autoplay="autoplay" controls controlslist="nodownload" disablepictureinpicture playsinline="true" :src="info.videoUrl"></video>
</van-swipe-item>
<van-swipe-item v-for="(item, index) in info.imageUrlList" :key="index">
<van-image width="100%" height="100%" fit="contain" :src="item" />
</van-swipe-item>
<template #indicator>
<div class="custom-indicator">{{ curIdx + 1 }}/{{ fileNum }}</div>
</template>
</van-swipe>
</template>
<div class="rich-text">
<div v-html="decodeURIComponent(info.materialUrl)" class="hide"></div>
</div>
</div>
<div class="bottom-send flex">
<div class="num flex">
<div class="sprite-icon icon-send"></div>
{{ info.sendNum }}
</div>
<div class="num flex">
<div class="sprite-icon icon-eye"></div>
{{ info.readNum }}
</div>
<van-button block round @click="shareToExternalMoments(info)">分享朋友圈</van-button>
<van-button block round color="#3975C6" @click="sendMessage(info)">转发</van-button>
</div>
</div>
</template>
<script type="text/ecmascript-6">
import { marketingApi } from '@/api'
import { shareMixin } from '@/mixins'
export default {
mixins: [shareMixin],
name: 'detail',
data() {
return {
curIdx: 0,
fileList: [],
autoplay: 3000,
materialUrl: '',
info: {},
fileNum: 0,
loaded: false,
poster: ''
}
},
beforeRouteEnter (to, from, next) {
let {query} = to
document.title = query.name || '详情'
next()
},
created() {
const { id } = this.getQuery()
// let id = 148
this.getDetail(id)
},
mounted() {
},
methods: {
changeSwiper(idx) {
this.curIdx = idx
},
getDetail(id) {
marketingApi.getTextDetail({ id, flag: 0 }).then(data => {
if(data){
// const fileList = []
// if (data.videoUrl) {
// fileList.push({ type: 'video', url: data.videoUrl })
// }
// if (data.imageUrlList && data.imageUrlList.length) {
// data.imageUrlList.forEach(item => {
// fileList.push({ type: 'image', url: item })
// })
// }
// this.fileList = fileList
this.fileNum = data.imageUrlList && data.imageUrlList.length ? data.imageUrlList.length: 0
if(data.videoUrl) this.fileNum = this.fileNum + 1
this.info = data
this.loaded = true
if(!data.videoUrl) return;
// this.getVideoFirstFrame(data.videoUrl).then(res => {
// this.poster = res.dataURL
// })
this.$nextTick(()=>{
const video = document.getElementById('swiper_video')
video.addEventListener('play', ()=> {
this.autoplay = 0
})
video.addEventListener('pause', ()=> {
this.autoplay = 3000
})
video.addEventListener('ended', ()=> {
this.autoplay = 3000
}, false)
})
}
})
}
}
}
</script>
<style lang="scss" scoped>
.layout {
background-color: #fff;
}
.van-swipe {
background-color: #f8f8f8;
padding-bottom: 20px;
}
.van-swipe-item {
height: 210px;
}
#swiper_video {
width: 100%;
height: 100%;
}
.custom-indicator {
display: inline-block;
text-align: center;
position: absolute;
top: 10px;
right: 10px;
width: 38px;
font-size: 11px;
color: #ffffff;
height: 24px;
line-height: 24px;
background: #666666;
border-radius: 12px;
}
.rich-text {
padding-bottom: 120px;
}
.hide img {
width: 100%;
height: unset;
}
.bottom-send {
padding: 0 16px 34px;
height: 82px;
background: #f8f8f8;
border-radius: 0px 0px 4px 4px;
position: fixed;
bottom: 0;
width: 100%;
box-sizing: border-box;
box-shadow: 0 0 0 0 #e9e9e9;
border-top: 1px solid #dcdee0;
.num {
font-size: 12px;
color: #999999;
margin-right: 10px;
.sprite-icon {
margin-right: 4px;
}
}
.van-button {
min-width: 100px;
height: 36px;
font-size: 12px;
margin-left: 10px;
}
}
</style>
<template>
<div class="layout">
<div class="tab">
<template v-if="tab.length">
<tab
:list="tab"
:updata="updata"
@change="change"
class="tab_style"
>
</tab>
</template>
<dropdown-menu
class="menu"
title="业务类型"
:data="businessList"
@confirm="businessConfirm"
></dropdown-menu>
</div>
<search-box
@search="search"
:keyword="materialName"
:option="option"
placeholder="输入关键词"
class="attachment"
@change="changeSort"
:index="sort"
></search-box>
<template v-if="flag">
<template v-if="list.length">
<scroll-view
class="list-box"
@ReachBottom="onReachBottom"
ref="scrollView"
>
<div class="box">
<template v-for="(i,index) in list">
<div
class="item"
:key="index"
>
<psd
:item="i"
@send="sendMessage"
hidePYQ
/>
</div>
</template>
</div>
</scroll-view>
</template>
<template v-else>
<nothing
class="nothing-box"
image="https://img01.glsx.com.cn/weapp/resource/scrm-mobile/psd/list-nothing.png"
>暂无可用素材</nothing>
</template>
</template>
</div>
</template>
<script type='text/ecmascript-6'>
import { psdMixin, businessMixin, pageMixin, shareMixin } from '@/mixins'
export default {
mixins: [psdMixin, businessMixin, pageMixin, shareMixin],
name: '',
data () {
return {
}
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.tab {
position: relative;
.menu {
position: absolute;
right: 0;
top: 3px;
background-color: #fff;
padding-right: 5px;
}
.tab_style{
width: calc(100% - 49px);
}
}
.list-box {
height: calc(100vh - 100px);
box-sizing: border-box;
padding: 10px 16px;
.item {
margin-bottom: 10px;
}
}
.nothing-box {
height: calc(100vh - 100px);
}
/deep/.van-search {
padding: 4.5px 16px;
}
</style>
\ No newline at end of file
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-06-08 10:20:23
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-02-23 09:43:26
* @FilePath: \dj-scrm-wx-work-attachment-psd\src\views\psd\list.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div>555</div>
</template>
......@@ -52,7 +52,7 @@ const spritesmithFunction = data => {
return `${shared}\n${perSprite}`
}
module.exports = {
publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main-yy/', // 本地调试时需登录时使用
publicPath: IS_PROD ? './' : '/dj-scrm-wx-work-main-ai/', // 本地调试时需登录时使用
// publicPath: './',
// publicPath: '/dj-scrm-wx-work-attachment-activity/', // 署应用包时的基本 URL。 vue-router history模式使用
outputDir: 'dist', // 生产环境构建文件的目录
......@@ -61,9 +61,9 @@ module.exports = {
productionSourceMap: false, // 如果不需要生产环境的 source map,可以将其设置为 false 以加速生产环境构建。
devServer: {
disableHostCheck: true,
port: 9527, // 端口
port: 9528, // 端口
open: false, // 启动后打开浏览器
public: 'http://scrm.dev.glsx.com.cn/dj-scrm-wx-work-main-yy/#/',
public: 'http://scrm.dev.glsx.com.cn/dj-scrm-wx-work-main-ai/#/',
overlay: {
// 当出现编译器错误或警告时,在浏览器中显示全屏覆盖层
warnings: false,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!