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
28cc39bc
authored
Oct 27, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
93ace456
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
room/liveRoom.html
room/liveRoom.html
View file @
28cc39bc
...
...
@@ -480,7 +480,7 @@ $(function () {
var
sendType
=
1
;
var
guardShowOk
=
null
;
var
richType
=
1
var
layzT
=
true
;
3
var
layzT
=
true
;
liveList
(
1
)
$
(
window
).
on
(
"scroll"
,
function
(){
if
(
layzT
==
true
){
...
...
@@ -2286,16 +2286,20 @@ $(function () {
pageID
:
localStorage
.
canvasCode
},
success
:
function
(
data
){
//
console.log('獲取任務列表',data)
console
.
log
(
'獲取任務列表'
,
data
)
if
(
data
.
code
!=
1
)
return
;
var
html
=
[]
var
taskIconArr
=
[
''
,
''
,
''
,
'big-diamond.png'
,
'rich-icon.png'
,
'dew.png'
,
'pin.png'
,
'pin.png'
]
for
(
var
i
=
0
;
i
<
data
.
tasks
[
0
].
tasklist
.
length
;
i
++
){
var
list
=
data
.
tasks
[
0
].
tasklist
[
i
];
if
(
list
.
state
==
3
)
continue
;
if
(
list
.
state
==
3
&&
list
.
pid
!=
'50007'
)
continue
;
html
+=
'
<
li
>
';
html+='
<
p
>
'+list.taskName+'
<
span
><
img
src
=
"images/dew.png"
alt
=
""
>+
'+list.award+'
<
/span></
p
>
';
html+='
<
p
>
'+list.taskDescription+'
<
/p>'
;
html+='
<
p
>
'+list.taskName+'
<
span
><
img
src
=
"images/dew.png"
alt
=
""
>+
'+list.award+'
<
/span></
p
>
';
if(list.pid!='
50007
'||list.state!=3)html+='
<
p
>
'+list.taskDescription+'
<
/p>'
;
else
{
var
date1
=
new
Date
().
getTime
()
+
3600000
;
html
+=
'
<
p
>
'+timeGet(date1)[3]+'
:
00
可再次領取
<
/p>'
;
}
if
(
list
.
state
==
0
||
list
.
state
==
1
)
html
+=
'
<
img
class
=
"task-btn task-btn1"
src
=
"images/task1.png"
alt
=
""
>
';
else if(list.state==2)html+='
<
img
data
-
type
=
"'+list.tid+'"
class
=
"task-btn task-btn2"
src
=
"images/task2.png"
alt
=
""
>
';
else if(list.state==3)html+='
<
img
class
=
"task-btn task-btn2"
src
=
"images/task3.png"
alt
=
""
>
';
...
...
@@ -2332,7 +2336,12 @@ $(function () {
if
(
data
.
code
==
1
){
layer
.
msg
(
"領取成功"
)
_self
.
attr
(
"src"
,
'images/task3.png'
)
_self
.
unbind
(
"click"
)
if
(
_self
.
attr
(
'data-type'
)
!=
'50007'
)
_self
.
unbind
(
"click"
)
else
{
var
date1
=
new
Date
().
getTime
()
+
3600000
;
_self
.
siblings
(
"p"
).
eq
(
1
).
text
(
''
+
timeGet
(
date1
)[
3
]
+
':00可再次領取'
)
}
}
}
})
...
...
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