Commit 28cc39bc by libai

测试

parent 93ace456
Showing with 15 additions and 6 deletions
......@@ -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可再次領取')
}
}
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment