Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsalesProgram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bc11debd
authored
Aug 28, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
69e45351
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
components/chat/inputbar/suit/main/main.js
components/chat/inputbar/suit/main/main.js
View file @
bc11debd
...
...
@@ -55,9 +55,11 @@ Component({
sendMessage
()
{
if
(
this
.
data
.
isTopic
)
{
let
self
=
this
;
console
.
log
(
self
.
data
.
userMessage
)
this
.
triggerEvent
(
"newTextMsg"
,
{
type
:
'1'
msg
:
self
.
data
.
userMessage
},
{
bubbles
:
true
,
composed
:
true
...
...
@@ -74,7 +76,7 @@ Component({
if
(
customer
)
{
wx
.
removeStorageSync
(
'customer'
);
}
String
.
prototype
.
trim
=
function
()
{
String
.
prototype
.
trim
=
function
()
{
return
this
.
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
''
);
}
if
(
!
this
.
data
.
userMessage
.
trim
())
{
...
...
@@ -125,7 +127,7 @@ Component({
inputMessage
:
""
,
});
},
sendCmd
:
function
()
{
sendCmd
:
function
()
{
let
me
=
this
;
let
id
=
WebIM
.
conn
.
getUniqueId
();
let
msg
=
new
WebIM
.
message
(
msgType
.
CMD
,
id
);
...
...
@@ -150,13 +152,13 @@ Component({
to
:
me
.
data
.
username
.
your
,
action
:
"template"
,
ext
:
params
,
success
:
function
()
{
success
:
function
()
{
console
.
log
(
'发送模板成功'
)
console
.
log
(
me
.
data
.
username
.
your
)
// getApp().addChatMember(me.data.username.your)
// disp.fire('em.chat.sendSuccess', id);
},
fail
:
function
()
{
fail
:
function
()
{
console
.
log
(
'发送模板失败'
);
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment