(function(e){function n(n){for(var t,r,c=n[0],s=n[1],u=n[2],d=0,g=[];d1&&void 0!==arguments[1]?arguments[1]:1500,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";!1!==Boolean(e)&&uni.showToast({title:e,duration:n,mask:o,icon:t})},prePage:function(){var e=getCurrentPages(),n=e[e.length-2];if(!n)return null;var o=n.$vm;return o=n,o},request:function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=arguments.length>3?arguments[3]:void 0;return new Promise((function(a){l&&l.accessToken||(l=uni.getStorageSync("userInfo"));var r=l?l.accessToken:"",c=p.default.baseUrl;uni.request({url:c+"/m.api",data:(0,i.default)((0,i.default)({},o),{},{_gp:e,_mt:n}),method:"POST",header:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",ACCESSTOKEN:r},success:function(e){200===e.statusCode&&(200===e.data.errno?a(e.data):10001===e.data.errno?(t&&t(e.data),f||(f=!0,uni.showModal({title:"登录提示",content:"您尚未登录,是否立即登录?",showCancel:!0,confirmText:"登录",success:function(e){e.confirm&&uni.navigateTo({url:"/pages/public/login"})},fail:function(){},complete:function(){f=!1}}))):t?t(e.data):uni.showToast({title:e.data.errmsg,icon:"none"}))}})}))},uploadImg:function(e){l&&l.accessToken||(l=uni.getStorageSync("userInfo"));var n=l?l.accessToken:"",o=p.default.baseUrl;uni.chooseImage({sizeType:["compressed"],success:function(t){for(var a=0;a