(wx.webpackJsonp=wx.webpackJsonp||[]).push([[2830],{5973:function(n,t,i){var s=i(5652),r=i(2555),a=i(3816),o="https://m.damai.cn/damai/order/list/index.html";Page({data:{isLogin:!0,orderListUrl:""},onReady:function(){var n=this;return(0,r.A)((0,s.A)().m((function t(){return(0,s.A)().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,a.A.isLogin();case 1:t.v?n.setData({isLogin:!0,orderListUrl:o}):n.goLogin();case 2:return t.a(2)}}),t)})))()},handleTapLogin:function(){var n=this;return(0,r.A)((0,s.A)().m((function t(){var i,r;return(0,s.A)().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,a.A.login();case 1:i=t.v,r=i.success,n.loginCallback({success:r});case 2:return t.a(2)}}),t)})))()},loginCallback:function(n){n.success&&this.setData({isLogin:!0,orderListUrl:o})},goLogin:function(){var n=this;a.A.login().then((function(t){t.success?n.setData({isLogin:!0,orderListUrl:o}):n.setData({isLogin:!1,orderListUrl:""})})).catch((function(){n.setData({isLogin:!1,orderListUrl:""})}))}})}},function(n){n.O(0,[6907,8096,2076],(function(){return t=5973,n(n.s=t);var t})),n.O()}]);