Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-home
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bfc8b987
authored
May 22, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
60292c23
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
10 deletions
src/views/home/components/Marketing/ChatGPT.vue
src/views/home/components/Marketing/MarketingLeft.vue
src/views/home/components/Marketing/ChatGPT.vue
View file @
bfc8b98
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-16 10:20:01
* @Date: 2023-05-16 10:20:01
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-22 1
1:10:48
* @LastEditTime: 2023-05-22 1
5:10:15
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\ChatGPT.vue
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</div>
</div>
<div
class=
"gpt-header"
v-else
>
<div
class=
"gpt-header"
v-else
>
<div
class=
"import-panel"
>
<div
class=
"import-panel"
>
<el-button
type=
"primary"
size=
"small"
icon=
"el-icon-download"
>
导入企微魔方
</el-button>
<el-button
type=
"primary"
size=
"small"
icon=
"el-icon-download"
@
click=
"jumpUrl"
>
导入企微魔方
</el-button>
</div>
</div>
<div
class=
"import-illustrate"
>
<div
class=
"import-illustrate"
>
当前门店基盘客户为空,请通过企微魔方导入门店基盘客户数据。
当前门店基盘客户为空,请通过企微魔方导入门店基盘客户数据。
...
@@ -103,6 +103,9 @@ export default {
...
@@ -103,6 +103,9 @@ export default {
this
.
contentHtml
=
html
this
.
contentHtml
=
html
this
.
phrasesShow
=
false
this
.
phrasesShow
=
false
},
},
jumpUrl
()
{
this
.
$history
.
push
(
'/drainage/square/index'
)
},
//发送消息
//发送消息
sendMsg
()
{
sendMsg
()
{
console
.
log
(
this
.
calendarDataAll
)
console
.
log
(
this
.
calendarDataAll
)
...
...
src/views/home/components/Marketing/MarketingLeft.vue
View file @
bfc8b98
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:08:01
* @Date: 2023-05-15 15:08:01
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-2
0 17:50:00
* @LastEditTime: 2023-05-2
2 15:51:01
* @FilePath: \scrm-micro-home\src\views\home\components\marketing\MarketingLeft.vue
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<!-- 营销方案 -->
<!-- 营销方案 -->
<div
class=
"scheme-wrap"
>
<div
class=
"scheme-wrap"
>
<div
class=
"scrm-ml6 scrm-c3 scrm-f14 weight-6"
>
营销方案:
</div>
<div
class=
"scrm-ml6 scrm-c3 scrm-f14 weight-6"
>
营销方案:
</div>
<div
class=
"scheme-list"
>
<div
class=
"scheme-list"
v-infinite-scroll=
"scrollLoad"
>
<template
v-for=
"(item, index) in schemeListData"
>
<template
v-for=
"(item, index) in schemeListData"
>
<div
class=
"scheme-line scrm-c3 scrm-f14 flex"
:class=
"
{ select: item.hovering }" :key="index" @mouseenter="item.hovering = true" @mouseleave="item.hovering = false">
<div
class=
"scheme-line scrm-c3 scrm-f14 flex"
:class=
"
{ select: item.hovering }" :key="index" @mouseenter="item.hovering = true" @mouseleave="item.hovering = false">
<div
class=
"scheme-text one-line-ellipsis"
>
{{
item
.
activityName
}}
</div>
<div
class=
"scheme-text one-line-ellipsis"
>
{{
item
.
activityName
}}
</div>
...
@@ -63,8 +63,10 @@ export default {
...
@@ -63,8 +63,10 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
activityInfo
:{},
activityInfo
:
{},
schemeListData
:
[],
schemeListData
:
[],
schemeList
:
[],
total
:
0
,
dialogVisible
:
false
,
dialogVisible
:
false
,
themeList
:
[
themeList
:
[
{
{
...
@@ -80,13 +82,13 @@ export default {
...
@@ -80,13 +82,13 @@ export default {
hovering
:
false
hovering
:
false
}
}
],
],
currentPage
:
1
,
merchantInfo
:
this
.
$globalState
.
session
merchantInfo
:
this
.
$globalState
.
session
}
}
},
},
computed
:
{
computed
:
{
...
mapState
({
...
mapState
({
calendarData
:
state
=>
state
.
marketing
.
calendarData
,
calendarData
:
state
=>
state
.
marketing
.
calendarData
schemeList
:
state
=>
state
.
marketing
.
schemeList
})
})
},
},
watch
:
{
watch
:
{
...
@@ -99,10 +101,23 @@ export default {
...
@@ -99,10 +101,23 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
getSchemeList
()
this
.
getSchemeList
()
this
.
setSchemeListData
(
{
merchantId
:
this
.
$globalState
.
session
.
merchantId
,
pageSize
:
5
,
currentPage
:
1
}
)
//44211227 this.$globalState.session.merchantId
this
.
setSchemeListData
()
//44211227 this.$globalState.session.merchantId
},
},
methods
:
{
methods
:
{
...
mapActions
(
'marketing'
,
[
'setActivityInfo'
,
'setSchemeListData'
]),
...
mapActions
(
'marketing'
,
[
'setActivityInfo'
]),
setSchemeListData
()
{
this
.
$apis
.
activity
.
listByPage
({
merchantId
:
this
.
$globalState
.
session
.
merchantId
,
pageSize
:
5
,
currentPage
:
this
.
currentPage
}).
then
(
res
=>
{
if
(
res
)
{
this
.
schemeList
=
this
.
schemeList
.
concat
(
res
.
list
||
[])
this
.
total
=
res
.
total
}
})
},
scrollLoad
()
{
if
(
this
.
schemeList
.
length
==
this
.
total
)
return
this
.
currentPage
++
this
.
setSchemeListData
()
},
getView
(
val
)
{
getView
(
val
)
{
this
.
$apis
.
activity
.
findActivityInfo
({
activityId
:
val
.
id
}).
then
(
res
=>
{
this
.
$apis
.
activity
.
findActivityInfo
({
activityId
:
val
.
id
}).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
...
@@ -172,7 +187,7 @@ export default {
...
@@ -172,7 +187,7 @@ export default {
margin
:
8px
0
;
margin
:
8px
0
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
height
:
20
0px
;
height
:
19
0px
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
overflow-x
:
hidden
;
overflow-x
:
hidden
;
.scheme-line
{
.scheme-line
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment