Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
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
10483aff
authored
Jul 02, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
213213
parent
855e12e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
Application/Home/View/QuotePrice/inquirydetail.html
dist/js/chat/index.js
Application/Home/View/QuotePrice/inquirydetail.html
View file @
10483aff
...
...
@@ -143,7 +143,7 @@
num
:
"100,000"
,
hq
:
"现货"
,
}
Util
.
setCookie
(
'template'
,
JSON
.
stringify
(
obj
),
1
)
Util
.
setCookie
(
'template'
,
JSON
.
stringify
(
obj
),
1
,
cookieHostname
)
window
.
location
.
href
=
'/chat'
})
</script>
...
...
dist/js/chat/index.js
View file @
10483aff
...
...
@@ -7,7 +7,6 @@ $(function () {
this
.
ieFun
()
this
.
connection
();
this
.
connListen
();
this
.
bindFunction
();
this
.
getUserInfo
();
},
...
...
@@ -46,14 +45,14 @@ $(function () {
},
)
$
.
ajax
({
type
:
'post'
,
url
:
'http://a1.easemob.com/
1113190618181018/icsales
/token'
,
url
:
'http://a1.easemob.com/
'
+
self
.
orgName
+
'/'
+
self
.
appName
+
'
/token'
,
data
:
data
,
contentType
:
"application/json"
,
success
:
function
(
data
)
{
var
token
=
data
.
access_token
;
$
.
ajax
({
type
:
'get'
,
url
:
'http://a1.easemob.com/
1113190618181018/icsales
/users/'
+
user
,
url
:
'http://a1.easemob.com/
'
+
self
.
orgName
+
'/'
+
self
.
appName
+
'
/users/'
+
user
,
headers
:
{
Authorization
:
'Bearer '
+
token
},
...
...
@@ -86,7 +85,7 @@ $(function () {
if
(
JSON
.
stringify
(
templateObj
)
!==
'{}'
)
{
this
.
addUser
(
templateObj
.
userId
,
false
)
this
.
sendCmd
(
templateObj
);
Util
.
delCookie
(
'template'
);
Util
.
delCookie
(
'template'
,
cookieHostname
);
}
...
...
@@ -129,7 +128,7 @@ $(function () {
https
:
typeof
WebIM
.
config
.
https
===
'boolean'
?
WebIM
.
config
.
https
:
location
.
protocol
===
'https:'
,
url
:
WebIM
.
config
.
xmppURL
,
isAutoLogin
:
tru
e
,
isAutoLogin
:
fals
e
,
heartBeatWait
:
WebIM
.
config
.
heartBeatWait
,
autoReconnectNumMax
:
WebIM
.
config
.
autoReconnectNumMax
,
autoReconnectInterval
:
WebIM
.
config
.
autoReconnectInterval
...
...
@@ -385,6 +384,7 @@ $(function () {
// listern,添加回调函数;
self
.
conn
.
listen
({
onOpened
:
function
(
message
)
{
console
.
log
(
'登入成功'
)
self
.
defaultUser
();
self
.
singleChat
();
},
...
...
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