Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 3be5b6f6
authored
Aug 07, 2023
by
怪兽?别跑
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
获客助手调试
1 parent
1cfaa047
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
3 deletions
vue3-lw-pc/src/views/drainageCode/customerAssistant/add.vue
vue3-lw-pc/src/views/drainageCode/customerAssistant/add.vue
View file @
3be5b6f
...
...
@@ -80,7 +80,28 @@
</div>
</template>
<
template
v-else
>
<div></div>
<div
class=
"page"
>
<div
class=
"code-wrapper"
>
<div
class=
"code-success"
>
<el-button
type=
"success"
icon=
"el-icon-check"
circle
></el-button>
</div>
<div
class=
"code-text"
>
获客链接创建成功,支持复制链接即可使用
</div>
<el-form
label-width=
"140px"
style=
"display: inline-block;"
>
<el-form-item
label=
"获客链接:"
>
<div
style=
"text-align: left;"
>
{{
detail
.
linkUrl
}}
<el-button
type=
"text"
@
click=
"copyFn(detail.linkUrl)"
>
复制
</el-button>
</div>
</el-form-item>
<el-form-item
label=
"获客短链:"
>
<div
style=
"text-align: left;"
>
{{
detail
.
linkShortUrl
}}
<el-button
type=
"text"
@
click=
"copyFn(detail.linkShortUrl)"
>
复制
</el-button>
</div>
</el-form-item>
</el-form>
</div>
</div>
</
template
>
</div>
<div
class=
"g-card ac"
>
...
...
@@ -117,7 +138,7 @@
data
()
{
return
{
id
:
''
,
active
:
0
,
active
:
1
,
loading
:
false
,
tagList
:
[],
userList
:
[],
...
...
@@ -155,6 +176,16 @@
}
},
methods
:
{
copyFn
(
text
)
{
const
input
=
document
.
createElement
(
'input'
)
input
.
style
.
cssText
=
'opacity: 0;'
input
.
type
=
'text'
input
.
value
=
text
// 修改文本框的内容
document
.
body
.
appendChild
(
input
)
input
.
select
()
// 选中文本
document
.
execCommand
(
'copy'
)
// 执行浏览器复制命令
this
.
$message
({
message
:
'复制成功'
,
type
:
'success'
})
},
submit
()
{
this
.
$refs
[
'form'
].
validate
((
validate
)
=>
{
if
(
validate
)
{
...
...
@@ -207,7 +238,7 @@
this
.
dialogVisibleSelectUser
=
true
},
selectedUser
(
data
)
{
if
(
data
.
length
>
1
)
{
if
(
data
.
length
>
1
00
)
{
this
.
msgError
(
'最多选择100名成员'
)
return
}
...
...
@@ -372,4 +403,13 @@
font-weight
:
400
;
color
:
var
(
--font-black-6
);
}
.code-wrapper
{
text-align
:
center
;
.code-success,
.code-text,
.code-actions
{
padding
:
20px
0
;
}
}
</
style
>
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