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
3eff5c53
authored
Jul 11, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
11
parent
693d61dd
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
45 deletions
Application/Home/View/Search/index.html
dist/js/chat/index.js
dist/js/home/index.js
dist/js/quoteprice/inquiry.js
dist/js/quoteprice/quote.js
Application/Home/View/Search/index.html
View file @
3eff5c53
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<span
class=
"icon iconfont iconjuxing"
></span>
<span
class=
"icon iconfont iconjuxing"
></span>
<input
type=
"text"
placeholder=
"请输入要搜索的内容"
>
<input
type=
"text"
placeholder=
"请输入要搜索的内容"
>
</div>
</div>
<div
class=
"input_btn fl btn_48 btn bold"
>
<div
class=
"input_btn fl btn_48 btn bold
btn_blue
"
>
搜索
搜索
</div>
</div>
</div>
</div>
...
...
dist/js/chat/index.js
View file @
3eff5c53
...
@@ -14,7 +14,7 @@ $(function () {
...
@@ -14,7 +14,7 @@ $(function () {
var
self
=
this
;
var
self
=
this
;
IcController
.
getData
(
apis
.
authme
,
'POST'
,
null
,
function
(
res
)
{
IcController
.
getData
(
apis
.
authme
,
'POST'
,
null
,
function
(
res
)
{
if
(
res
.
err_code
==
0
)
{
if
(
res
.
err_code
==
0
)
{
self
.
testUser
(
res
.
data
.
mobil
e
,
res
.
data
.
im_password
)
self
.
login
(
res
.
data
.
im_usernam
e
,
res
.
data
.
im_password
)
}
else
{
}
else
{
console
.
log
(
'获取用户名失败'
)
console
.
log
(
'获取用户名失败'
)
}
}
...
@@ -39,45 +39,6 @@ $(function () {
...
@@ -39,45 +39,6 @@ $(function () {
};
};
self
.
conn
.
registerUser
(
options
);
self
.
conn
.
registerUser
(
options
);
},
},
testUser
:
function
(
user
,
password
)
{
//检测用户是否登入
var
self
=
this
;
var
data
=
JSON
.
stringify
({
"grant_type"
:
"client_credentials"
,
"client_id"
:
"YXA6UWJlUJGNEemA0XUSlr6mDA"
,
"client_secret"
:
"YXA6n8pckF065e7FPtukjJHAoa-4G74"
},
)
$
.
ajax
({
type
:
'post'
,
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/'
+
self
.
orgName
+
'/'
+
self
.
appName
+
'/users/'
+
user
,
headers
:
{
Authorization
:
'Bearer '
+
token
},
success
:
function
(
data
)
{
//用户已注册,主动帮用户登入
self
.
login
(
user
,
password
)
},
error
:
function
(
err
)
{
if
(
err
.
status
==
'404'
)
{
//主动帮用户注册
self
.
registerUser
(
user
,
password
);
}
else
{
layer
.
msg
(
'网络出现问题,请重试!'
);
}
}
});
},
error
:
function
()
{
layer
.
msg
(
'网络出现问题,请重试!'
);
}
});
},
defaultUser
:
function
()
{
defaultUser
:
function
()
{
//默认客服
//默认客服
this
.
addUser
(
'18664936975'
,
true
)
this
.
addUser
(
'18664936975'
,
true
)
...
...
dist/js/home/index.js
View file @
3eff5c53
...
@@ -31,7 +31,7 @@ $(function () {
...
@@ -31,7 +31,7 @@ $(function () {
layui
.
laytpl
(
getTpl
).
render
(
arr
,
function
(
html
)
{
layui
.
laytpl
(
getTpl
).
render
(
arr
,
function
(
html
)
{
$
(
".goods_data_list"
).
empty
().
html
(
html
);
$
(
".goods_data_list"
).
empty
().
html
(
html
);
});
});
}
else
if
(
res
.
errcode
==
105001
)
{
}
else
if
(
res
.
errcode
==
type
==
1
?
105013
:
105001
)
{
layui
.
laytpl
(
getTpl
).
render
([],
function
(
html
)
{
layui
.
laytpl
(
getTpl
).
render
([],
function
(
html
)
{
$
(
".goods_data_list"
).
empty
().
html
(
html
);
$
(
".goods_data_list"
).
empty
().
html
(
html
);
...
...
dist/js/quoteprice/inquiry.js
View file @
3eff5c53
$
(
function
()
{
$
(
function
()
{
var
inquiry
=
{
var
inquiry
=
{
params
:
{
params
:
{
"offset"
:
1
,
"offset"
:
7
,
"p"
:
1
,
"p"
:
1
,
"token"
:
Util
.
getCookie
(
'token'
)
||
""
"token"
:
Util
.
getCookie
(
'token'
)
||
""
},
},
...
@@ -44,7 +44,7 @@ $(function () {
...
@@ -44,7 +44,7 @@ $(function () {
elem
:
'pagination'
,
elem
:
'pagination'
,
theme
:
'#1080d0'
,
theme
:
'#1080d0'
,
count
:
res
.
total
,
count
:
res
.
total
,
limit
:
1
,
limit
:
7
,
curr
:
page
,
curr
:
page
,
jump
:
function
(
obj
,
first
)
{
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
if
(
!
first
)
{
...
...
dist/js/quoteprice/quote.js
View file @
3eff5c53
...
@@ -59,7 +59,7 @@ $(function () {
...
@@ -59,7 +59,7 @@ $(function () {
}
}
});
});
});
});
}
else
if
(
res
.
errcode
==
1050
01
)
{
}
else
if
(
res
.
errcode
==
1050
13
)
{
self
.
listData
=
[];
self
.
listData
=
[];
layui
.
laytpl
(
getTpl
).
render
([],
function
(
html
)
{
layui
.
laytpl
(
getTpl
).
render
([],
function
(
html
)
{
$
(
".quote_content .inquiry_data"
).
empty
().
html
(
html
);
$
(
".quote_content .inquiry_data"
).
empty
().
html
(
html
);
...
...
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