Mi Community – Xiaomi

June 1, 2021

day in a row days in a row !one_day_in_a_row! !two_days_in_a_row! !five_days_in_a_row!

Today’s Mission

All missions completed today

  • Create a thread +4points
  • = taskMax){ // $(“.todayMissionBox”).hide(); $(“.allMissionComplete”).show(); }else{ $(“.todayMissionBox”).show(); $(“.allMissionComplete”).hide(); } } // Xiaomi.utils.jsonp({ url: SITEURL + ‘ajax.php?mod=ajaxtask&get=1’, dataType: ‘json’, successcallback: function(data) { if(data.errno == 0){ taskList = data.tasks; taskMax = taskList.length; for(var i = 0;iToday’s Mission‘ /*+’Close’*/ +”; // var listStr = ‘

    ‘; for(i = 0;i ‘; var btnblock = ”; switch(parseInt(taskList[i].taskstatus)){ case 0: /*if(i == 0){ // btnblock += ‘Do it now!’ }else{ // btnblock += ‘Do it now!’ }*/ btnblock += ‘Do it now!’ break; case 1: btnblock += ‘Claim reward’ break; case 2: btnblock += ‘‘ break; } listStr += ‘

    ‘+taskList[i].desc+’ +’+taskList[i].point+’ points

    ‘ listStr += btnblock listStr += “”; } listStr += ‘]]>

    ‘; testWindowStr += listStr; testWindowStr += ” showWindow(“taskWindow”,testWindowStr,”html”,null,{cover:true,zindex:0}); $(“.getAwardBtn”).click(function(){ //console.log(“–taskId–“,$(this).attr(“data-taskid”)); var self = $(this); var myp = $(this).parent(‘td’); Xiaomi.utils.jsonp({ url: SITEURL + ‘ajax.php?mod=ajaxtask&rewardtask=’+$(this).attr(“data-taskid”), dataType: ‘json’, successcallback: function(data) { //console.log(“–“,data); if(parseInt(data.errno) == 0){ showPrompt(null, null, ‘add ‘+data.point+’points ‘, 1500); // self.remove(); myp.append(‘‘); taskIndexStatus+=1; refreshMissionBtn(); } }, errorcallback: function(data) { alert(data.errmsg); } }) }) } }, errorcallback: function(data) { alert(data.errmsg); } }) }) }) // apply task $(document).on(‘click’, ‘.J_applyTask’, function() { var taskid = $(this).attr(‘data-taskid’); if (taskid) { Xiaomi.utils.jsonp({ url: SITEURL + ‘ajax.php?mod=ajaxapplytask&id=’ + taskid, dataType: ‘json’, successcallback: function(data) { location.reload(); }, errorcallback: function(data) { alert(data.errmsg); } }) } }); $(‘.J_task’).on({ mouseenter: function() { $(this).siblings(‘.J_taskDetail’).fadeIn(200); }, mouseleave: function() { $(this).siblings(‘.J_taskDetail’).fadeOut(200); } }); })(jQuery);

    Rankings

    Weekly stars

    Monthly stars

    New members

    • Muz_paray

      Muz_paray

      Super moderator

      1

    • Optimus21

      2

    • Julil358

      3

    • AP1972

      4

    • ultron15

      ultron15

      Grand Master Bunny

      5

    Mi Comm APP

    Mi Community App

    Stay updated on Mi Products and MIUI



    Source