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
854f87ee
authored
Jul 22, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
21212
parent
ceb5207d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
17 deletions
dist/js/chat/index.js
dist/js/index/search.js
dist/js/quoteprice/inquirydetail.js
dist/js/search/index.js
dist/js/chat/index.js
View file @
854f87ee
...
...
@@ -54,9 +54,10 @@ $(function () {
},
rendChatSection
:
function
(
data
)
{
this
.
addUser
(
this
.
defaultName
);
for
(
var
key
in
data
)
{
this
.
addUser
(
data
[
key
]);
};
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
this
.
addUser
(
data
[
i
].
im_username
)
}
},
singleChat
:
function
()
{
if
(
JSON
.
stringify
(
this
.
templateObj
)
==
'{}'
)
{
...
...
dist/js/index/search.js
View file @
854f87ee
...
...
@@ -57,19 +57,19 @@ $(function () {
$
(
'.zz'
).
on
(
'click'
,
'.fl'
,
function
()
{
var
index
=
$
(
this
).
index
();
var
spOrXj
=
1
;
var
time
=
new
Date
(
Util
.
getDay
(
0
)
);
var
time
=
Util
.
getDay
(
0
);
$
(
this
).
addClass
(
'active'
).
siblings
().
removeClass
(
'active'
);
if
(
$
(
'.search_xj'
).
hasClass
(
'active'
))
{
spOrXj
=
2
}
if
(
index
==
0
)
{
self
.
getData
(
spOrXj
,
time
.
getTime
()
/
1000
)
self
.
getData
(
spOrXj
,
time
)
}
else
if
(
index
==
1
)
{
time
=
new
Date
(
Util
.
getDay
(
-
3
)
);
self
.
getData
(
spOrXj
,
time
.
getTime
()
/
1000
)
time
=
Util
.
getDay
(
-
3
);
self
.
getData
(
spOrXj
,
time
)
}
else
{
time
=
new
Date
(
Util
.
getDay
(
-
7
)
);
self
.
getData
(
spOrXj
,
time
.
getTime
()
/
1000
)
time
=
Util
.
getDay
(
-
7
);
self
.
getData
(
spOrXj
,
time
)
}
})
}
...
...
dist/js/quoteprice/inquirydetail.js
View file @
854f87ee
...
...
@@ -88,7 +88,8 @@ $(function () {
num
=
parent
.
find
(
'.num'
).
find
(
'span'
).
text
(),
hq
=
parent
.
find
(
'.hq'
).
find
(
'span'
).
text
(),
time
=
parent
.
find
(
'.time'
).
find
(
'span'
).
text
(),
img
=
$
(
'.xj_img'
).
attr
(
'src'
);
img
=
$
(
'.xj_img'
).
attr
(
'src'
),
name
=
parent
.
find
(
'.name'
).
text
();
obj
=
{
userId
:
userId
,
type
:
type
,
...
...
@@ -98,8 +99,10 @@ $(function () {
num
:
num
,
hq
:
hq
,
time
:
time
,
image
:
img
image
:
img
,
userName
:
name
};
console
.
log
(
obj
)
Util
.
setCookie
(
'template'
,
JSON
.
stringify
(
obj
),
1
,
cookieHostname
)
window
.
location
.
href
=
'/chat'
}
else
{
...
...
dist/js/search/index.js
View file @
854f87ee
...
...
@@ -72,19 +72,19 @@ $(function () {
$
(
'.zz'
).
on
(
'click'
,
'.fl'
,
function
()
{
var
index
=
$
(
this
).
index
();
var
spOrXj
=
1
;
var
time
=
new
Date
(
Util
.
getDay
(
0
)
);
var
time
=
Util
.
getDay
(
0
);
$
(
this
).
addClass
(
'active'
).
siblings
().
removeClass
(
'active'
);
if
(
$
(
'.search_xj'
).
hasClass
(
'active'
))
{
spOrXj
=
2
}
if
(
index
==
0
)
{
self
.
getData
(
spOrXj
,
1
,
time
.
getTime
()
/
1000
)
self
.
getData
(
spOrXj
,
1
,
time
)
}
else
if
(
index
==
1
)
{
time
=
new
Date
(
Util
.
getDay
(
-
3
)
);
self
.
getData
(
spOrXj
,
1
,
time
.
getTime
()
/
1000
)
time
=
Util
.
getDay
(
-
3
);
self
.
getData
(
spOrXj
,
1
,
time
)
}
else
{
time
=
new
Date
(
Util
.
getDay
(
-
7
)
);
self
.
getData
(
spOrXj
,
1
,
time
.
getTime
()
/
1000
)
time
=
Util
.
getDay
(
-
7
);
self
.
getData
(
spOrXj
,
1
,
time
)
}
});
$
(
'.goods_data_list'
).
on
(
'click'
,
'.xj_item'
,
function
(){
...
...
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