Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
footseen-large-website
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c17ec4b9
authored
Jun 24, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
35250897
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
yazhaiTest/search/index.html
yazhaiTest/search/index.html
View file @
c17ec4b9
...
@@ -127,7 +127,7 @@ $(function(){
...
@@ -127,7 +127,7 @@ $(function(){
if
(
data
.
search
!=
undefined
){
if
(
data
.
search
!=
undefined
){
var
searchData
=
decodeURI
(
location
.
href
.
split
(
"search="
)[
1
])
var
searchData
=
decodeURI
(
location
.
href
.
split
(
"search="
)[
1
])
$
(
".search-input"
).
val
(
searchData
)
$
(
".search-input"
).
val
(
searchData
)
searchGoUser
(
searchData
,
3
)
searchGoUser
(
searchData
,
3
,
'false'
)
searchGoVideo
(
searchData
,
12
)
searchGoVideo
(
searchData
,
12
)
if
(
noVideo
==
true
&&
noUser
==
true
){
if
(
noVideo
==
true
&&
noUser
==
true
){
$
(
".like-no-box p"
).
text
(
'找到'
+
searchData
+
'相關內容 0 個,相關用戶 0 人'
)
$
(
".like-no-box p"
).
text
(
'找到'
+
searchData
+
'相關內容 0 個,相關用戶 0 人'
)
...
@@ -140,7 +140,7 @@ $(function(){
...
@@ -140,7 +140,7 @@ $(function(){
$
(
".search-top-box div"
).
removeClass
(
"search-top-click"
)
$
(
".search-top-box div"
).
removeClass
(
"search-top-click"
)
_self
.
addClass
(
"search-top-click"
)
_self
.
addClass
(
"search-top-click"
)
if
(
_self
.
attr
(
"data-type"
)
==
1
){
if
(
_self
.
attr
(
"data-type"
)
==
1
){
searchGoUser
(
searchData
,
3
)
searchGoUser
(
searchData
,
3
,
'false'
)
searchGoVideo
(
searchData
,
12
)
searchGoVideo
(
searchData
,
12
)
$
(
".images-box"
).
hide
()
$
(
".images-box"
).
hide
()
if
(
noVideo
==
true
&&
noUser
==
true
){
if
(
noVideo
==
true
&&
noUser
==
true
){
...
@@ -151,7 +151,7 @@ $(function(){
...
@@ -151,7 +151,7 @@ $(function(){
$
(
".like-no-box"
).
hide
()
$
(
".like-no-box"
).
hide
()
}
}
else
if
(
_self
.
attr
(
"data-type"
)
==
2
){
else
if
(
_self
.
attr
(
"data-type"
)
==
2
){
searchGoUser
(
searchData
,
30
)
searchGoUser
(
searchData
,
30
,
'true'
)
$
(
".video-box"
).
hide
()
$
(
".video-box"
).
hide
()
$
(
".images-box"
).
hide
()
$
(
".images-box"
).
hide
()
if
(
noUser
==
true
){
if
(
noUser
==
true
){
...
@@ -184,7 +184,7 @@ $(function(){
...
@@ -184,7 +184,7 @@ $(function(){
$
(
".like-no-box"
).
hide
()
$
(
".like-no-box"
).
hide
()
}
}
})
})
function
searchGoUser
(
e
,
pageNum
){
function
searchGoUser
(
e
,
pageNum
,
asyncFlag
){
$
.
ajax
({
$
.
ajax
({
url
:
$ip
+
'search/queryUser'
,
url
:
$ip
+
'search/queryUser'
,
data
:{
data
:{
...
@@ -195,7 +195,7 @@ $(function(){
...
@@ -195,7 +195,7 @@ $(function(){
uid
:
localStorage
.
uid
,
uid
:
localStorage
.
uid
,
token
:
localStorage
.
token
token
:
localStorage
.
token
},
},
async
:
false
,
async
:
asyncFlag
,
success
:
function
(
data
){
success
:
function
(
data
){
console
.
log
(
'搜索用户'
,
data
)
console
.
log
(
'搜索用户'
,
data
)
var
html
=
[];
var
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