var is_no_more=!1,is_loading=!1,p=2;Page({data:{hide:1,qrcode:"",scrollLeft:0,scrollTop:0},onLoad:function(t){getApp().page.onLoad(this,t),this.systemInfo=getApp().core.getSystemInfoSync();var e=getApp().core.getStorageSync(getApp().const.STORE);this.setData({store:e});is_loading=is_no_more=!1,p=2,this.loadOrderList(t.status||-1);var o=0;o=2<=t.status?600:0,this.setData({scrollLeft:o})},onReady:function(t){getApp().page.onReady(this)},onShow:function(t){getApp().page.onShow(this)},onHide:function(t){getApp().page.onHide(this)},onUnload:function(t){getApp().page.onUnload(this)},onPullDownRefresh:function(t){getApp().page.onPullDownRefresh(this)},loadOrderList:function(e){null==e&&(e=-1);var o=this;o.setData({status:e}),getApp().core.showLoading({title:"正在加载",mask:!0}),getApp().request({url:getApp().api.group.order.list,data:{status:o.data.status},success:function(t){0==t.code&&o.setData({order_list:t.data.list}),o.setData({show_no_data_tip:0==t.data.list.length}),4!=e&&o.countDown()},complete:function(){getApp().core.hideLoading()}})},countDown:function(){var s=this;setInterval(function(){var t=s.data.order_list;for(var e in t){var o=new Date(t[e].limit_time_ms[0],t[e].limit_time_ms[1]-1,t[e].limit_time_ms[2],t[e].limit_time_ms[3],t[e].limit_time_ms[4],t[e].limit_time_ms[5])-new Date,a=parseInt(o/1e3/60/60/24,10),i=parseInt(o/1e3/60/60%24,10),r=parseInt(o/1e3/60%60,10),n=parseInt(o/1e3%60,10);a=s.checkTime(a),i=s.checkTime(i),r=s.checkTime(r),n=s.checkTime(n),t[e].limit_time={days:a,hours:0