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 6bdc8b62
authored
Jun 20, 2022
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
03a3bd4a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
20 deletions
linkwe-mobile/src/views/communityOperating/keywords/panel.vue
linkwe-pc/src/layout/components/Logo.vue
linkwe-pc/src/views/login.vue
linkwe-mobile/src/views/communityOperating/keywords/panel.vue
View file @
6bdc8b6
...
...
@@ -51,15 +51,15 @@ export default {
props
:
{
task
:
{
type
:
Object
,
required
:
true
}
required
:
true
,
}
,
},
data
()
{
return
{
showCopy
:
false
,
// 展示复制按钮
touchDelay
:
750
,
// 触发显示按钮的长按时常
copyEvent
:
null
,
touch
:
false
touch
:
false
,
}
},
methods
:
{
...
...
@@ -68,29 +68,24 @@ export default {
this
.
$toast
.
loading
({
message
:
'正在发送...'
,
duration
:
0
,
forbidClick
:
true
forbidClick
:
true
,
})
try
{
let
news
=
{
link
:
this
.
groupCodeUrl
,
title
:
this
.
task
.
taskName
,
desc
:
this
.
task
.
welcomeMsg
,
imgUrl
:
this
.
imgUrl
imgUrl
:
this
.
imgUrl
,
}
wx
.
invoke
(
'sendChatMessage'
,
{
msgtype
:
'news'
,
news
news
,
},
function
(
res
)
{
if
(
res
.
err_msg
==
'sendChatMessage:ok'
)
{
}
else
{
if
(
res
.
err_code
==
1
)
{
// 用户取消发送
}
else
{
_this
.
$dialog
({
message
:
'sendChatMessage失败:'
+
JSON
.
stringify
(
res
)
})
}
if
(
'sendChatMessage:cancel,sendChatMessage:ok'
.
indexOf
(
res
.
err_msg
)
<
0
)
{
_this
.
$dialog
({
message
:
'sendChatMessage失败:'
+
JSON
.
stringify
(
res
)
})
}
_this
.
$toast
.
clear
()
}
...
...
@@ -111,7 +106,7 @@ export default {
clearTimeout
(
this
.
copyEvent
)
if
(
this
.
touch
)
this
.
showCopy
=
true
this
.
touch
=
false
}
}
,
},
computed
:
{
keywords
()
{
...
...
@@ -123,16 +118,24 @@ export default {
let
groupCodeInfo
=
this
.
task
.
groupCodeInfo
if
(
window
.
location
.
hash
[
0
]
===
'#'
)
{
return
(
window
.
location
.
origin
+
window
.
location
.
pathname
+
'#/groupCode?id='
+
(
groupCodeInfo
&&
groupCodeInfo
.
id
)
window
.
location
.
origin
+
window
.
location
.
pathname
+
'#/groupCode?id='
+
(
groupCodeInfo
&&
groupCodeInfo
.
id
)
)
}
return
window
.
location
.
origin
+
window
.
location
.
pathname
+
'#/groupCode?id='
+
(
groupCodeInfo
&&
groupCodeInfo
.
id
)
return
(
window
.
location
.
origin
+
window
.
location
.
pathname
+
'#/groupCode?id='
+
(
groupCodeInfo
&&
groupCodeInfo
.
id
)
)
},
imgUrl
()
{
let
groupCodeInfo
=
this
.
task
.
groupCodeInfo
return
groupCodeInfo
&&
groupCodeInfo
.
codeUrl
?
groupCodeInfo
.
codeUrl
:
''
}
}
,
},
mounted
()
{
this
.
clipboard
=
new
ClipboardJS
(
'.copy-btn_'
+
this
.
task
.
taskId
)
...
...
@@ -144,7 +147,7 @@ export default {
this
.
clipboard
.
on
(
'error'
,
(
e
)
=>
{
this
.
showCopy
=
false
})
}
}
,
}
</
script
>
...
...
linkwe-pc/src/layout/components/Logo.vue
View file @
6bdc8b6
...
...
@@ -52,7 +52,8 @@ export default {
width
:
100%
;
&
.sidebar-logo
{
//
height
:
32px
;
max-height
:
35px
;
max-width
:
170px
;
vertical-align
:
middle
;
margin-right
:
12px
;
}
...
...
linkwe-pc/src/views/login.vue
View file @
6bdc8b6
...
...
@@ -167,7 +167,7 @@ export default {
this
.
getCode
()
this
.
getCookie
()
process
.
env
.
NODE_ENV
!==
'development'
&&
window
.
lwConfig
.
IS_PUBLISH_DIALOG
&&
this
.
$alert
(
'LinkWeChat V2.5 已正式发布,遇到使用上的问题欢迎提交 Issue,我们将光速修复。'
,
'提示'
,
...
...
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