Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-link
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 30b41a11
authored
Jul 09, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
27f69794
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
10 deletions
src/api/modules/marketing.js
src/mixins/draw.js
src/views/activityLink/components/Marketing.vue
src/views/activityLink/components/MarketingTask.vue
src/api/modules/marketing.js
View file @
30b41a1
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @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-0
7 18:22
:38
* @LastEditTime: 2023-07-0
9 14:15
:38
* @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
*/
*/
...
@@ -103,6 +103,16 @@ const activityDetail = params => {
...
@@ -103,6 +103,16 @@ const activityDetail = params => {
sign
:
true
sign
:
true
})
})
}
}
const
registerSso
=
params
=>
{
params
.
method
=
'scrm.api.busassistant.merchantCustomer.inviteCode'
return
http
({
url
:
'rop-scrm-busassistant/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
export
default
{
viewData
,
viewData
,
getChatGPTList
,
getChatGPTList
,
...
@@ -113,5 +123,6 @@ export default {
...
@@ -113,5 +123,6 @@ export default {
findMerchantStaffList
,
findMerchantStaffList
,
createSuperMarketing
,
createSuperMarketing
,
activityDetail
,
activityDetail
,
findActivityInfo
findActivityInfo
,
registerSso
}
}
src/mixins/draw.js
View file @
30b41a1
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-19 13:46:20
* @Date: 2023-05-19 13:46:20
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-09 1
2:59:17
* @LastEditTime: 2023-07-09 1
4:03:05
* @FilePath: \scrm-micro-home\src\mixins\gpt.js
* @FilePath: \scrm-micro-home\src\mixins\gpt.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
*/
*/
...
@@ -96,8 +96,8 @@ export default {
...
@@ -96,8 +96,8 @@ export default {
}
}
]
]
const
textList
=
[
const
textList
=
[
{
x
:
style1
.
x
,
y
:
style1
.
y
,
fontSize
:
style1
.
size
,
width
:
style1
.
width
,
text
:
style1
.
content
},
{
x
:
style1
.
x
,
y
:
style1
.
y
,
fontSize
:
style1
.
size
,
width
:
style1
.
width
,
text
:
style1
.
content
,
color
:
style1
.
color
},
{
x
:
style2
.
x
,
y
:
style2
.
y
,
fontSize
:
style2
.
size
,
width
:
style2
.
width
,
text
:
style2
.
content
}
{
x
:
style2
.
x
,
y
:
style2
.
y
,
fontSize
:
style2
.
size
,
width
:
style2
.
width
,
text
:
style2
.
content
,
color
:
style2
.
color
}
]
]
console
.
log
(
imageList
,
textList
)
console
.
log
(
imageList
,
textList
)
const
canvasBase64
=
await
drawfun
.
begin
({
const
canvasBase64
=
await
drawfun
.
begin
({
...
...
src/views/activityLink/components/Marketing.vue
View file @
30b41a1
...
@@ -41,6 +41,7 @@ export default {
...
@@ -41,6 +41,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
routeInfo
:
{},
tabList
:
[{
label
:
'营销任务'
},
{
label
:
'营销礼包'
},
{
label
:
'营销内容'
}],
tabList
:
[{
label
:
'营销任务'
},
{
label
:
'营销礼包'
},
{
label
:
'营销内容'
}],
caseList
:
[],
caseList
:
[],
activeName
:
'5'
,
activeName
:
'5'
,
...
@@ -115,6 +116,9 @@ export default {
...
@@ -115,6 +116,9 @@ export default {
}
}
}
}
},
},
mounted
()
{
this
.
routeInfo
=
this
.
$route
.
query
},
methods
:
{
methods
:
{
...
mapActions
(
'marketing'
,
[
'getActivityInfo'
]),
...
mapActions
(
'marketing'
,
[
'getActivityInfo'
]),
//数据看板
//数据看板
...
...
src/views/activityLink/components/MarketingTask.vue
View file @
30b41a1
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
</div>
</div>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<div
class=
"task-box-form"
>
<div
class=
"task-box-form"
v-if=
"!item.excelUrl"
>
<label>
导入文档:
</label>
<label>
导入文档:
</label>
<div
class=
"upload-btn"
>
<div
class=
"upload-btn"
>
<el-button
size=
"small"
>
<el-button
size=
"small"
>
...
@@ -45,6 +45,10 @@
...
@@ -45,6 +45,10 @@
</div>
</div>
<a
:href=
"importUrl"
>
下载数据模板
</a>
<a
:href=
"importUrl"
>
下载数据模板
</a>
</div>
</div>
<div
class=
"task-box-form"
v-else
>
<label>
导入文档:
</label>
成功导入客户数
</div>
<div
class=
"task-box-desc"
>
<div
class=
"task-box-desc"
>
<div
class=
"task-box-num"
>
导入客户
</div>
<div
class=
"task-box-num"
>
导入客户
</div>
<div
class=
"task-num-item flex-column-center"
>
<div
class=
"task-num-item flex-column-center"
>
...
@@ -63,7 +67,7 @@
...
@@ -63,7 +67,7 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
width=
"260"
>
<el-table-column
label=
"操作"
width=
"260"
>
<div
class=
"config-panel flex"
slot-scope=
"scope"
>
<div
class=
"config-panel flex"
slot-scope=
"scope"
>
<div
class=
"config-msg"
v-if=
"item.assignType == 1"
@
click=
"showRegister"
>
邀请人员注册
</div>
<div
class=
"config-msg"
v-if=
"item.assignType == 1
&& item.registerStatus === 0
"
@
click=
"showRegister"
>
邀请人员注册
</div>
<div
class=
"config-msg"
@
click=
"handleConfig(scope.row)"
>
配置话术 / 短信
</div>
<div
class=
"config-msg"
@
click=
"handleConfig(scope.row)"
>
配置话术 / 短信
</div>
</div>
</div>
</el-table-column>
</el-table-column>
...
@@ -86,11 +90,11 @@
...
@@ -86,11 +90,11 @@
<div
class=
"qrcode-body"
>
<div
class=
"qrcode-body"
>
<div
class=
"qrcode-link"
>
邀请跟进人注册链接
</div>
<div
class=
"qrcode-link"
>
邀请跟进人注册链接
</div>
<div
class=
"img"
v-loading=
"imgLoading"
>
<div
class=
"img"
v-loading=
"imgLoading"
>
<el-image
:src=
"
qrC
odeUrl"
alt=
""
></el-image>
<el-image
:src=
"
invite.qrc
odeUrl"
alt=
""
></el-image>
</div>
</div>
<div
class=
"qrcode-link"
>
<div
class=
"qrcode-link"
>
注册链接:{{
linkUrl
}}
注册链接:{{
invite.inviteUrl.substring(18)
}}
<span
@
click=
"handleSaveTxt(
linkUrl
)"
>
复制
</span>
<span
@
click=
"handleSaveTxt(
invite.inviteUrl.substring(18)
)"
>
复制
</span>
</div>
</div>
</div>
</div>
</GLDialog>
</GLDialog>
...
@@ -122,6 +126,7 @@ export default {
...
@@ -122,6 +126,7 @@ export default {
selectEmp
:
{},
selectEmp
:
{},
qrCodeUrl
:
''
,
qrCodeUrl
:
''
,
linkUrl
:
''
,
linkUrl
:
''
,
invite
:
{},
isQrcodeVisible
:
false
,
isQrcodeVisible
:
false
,
configVisible
:
false
,
configVisible
:
false
,
configForm
:
{},
configForm
:
{},
...
@@ -235,6 +240,7 @@ export default {
...
@@ -235,6 +240,7 @@ export default {
staffUuid
:
item
.
uuid
,
staffUuid
:
item
.
uuid
,
id
:
item
.
id
,
id
:
item
.
id
,
messageContent
:
item
.
messageContent
,
messageContent
:
item
.
messageContent
,
registerStatus
:
item
.
registerStatus
,
talkId
:
item
.
talkId
,
talkId
:
item
.
talkId
,
createdBy
:
item
.
createdBy
createdBy
:
item
.
createdBy
}
}
...
@@ -243,6 +249,9 @@ export default {
...
@@ -243,6 +249,9 @@ export default {
//邀请人员注册
//邀请人员注册
showRegister
()
{
showRegister
()
{
this
.
isQrcodeVisible
=
true
this
.
isQrcodeVisible
=
true
this
.
$apis
.
marketing
.
registerSso
({
staffLabel
:
1
,
merchantId
:
this
.
$globalState
.
session
.
merchantId
}).
then
(
res
=>
{
this
.
invite
=
res
})
},
},
//话术配置
//话术配置
handleConfig
(
row
)
{
handleConfig
(
row
)
{
...
...
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