(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/release/index"],{"209b":function(t,e,a){"use strict";(function(t){a("ef82");n(a("66fd"));var e=n(a("b3de"));function n(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,a("543d")["createPage"])},"3e7d":function(t,e,a){"use strict";a.r(e);var n=a("ed30"),o=a.n(n);for(var u in n)"default"!==u&&function(t){a.d(e,t,(function(){return n[t]}))}(u);e["default"]=o.a},b3de:function(t,e,a){"use strict";a.r(e);var n=a("c149"),o=a("3e7d");for(var u in o)"default"!==u&&function(t){a.d(e,t,(function(){return o[t]}))}(u);a("f2c2");var s,i=a("f0c5"),c=Object(i["a"])(o["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],s);e["default"]=c.exports},c149:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return u})),a.d(e,"a",(function(){return n}));var o=function(){var t=this,e=t.$createElement;t._self._c},u=[]},ed30:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=getApp(),n={data:function(){return{userInfo:{},authStatus:0,authType:null,completeState:null,authInfo:{}}},components:{},props:{},onLoad:function(t){},onShow:function(){var e=t.getStorageSync("userInfo");if(console.log(e.phone&&""!=e.phone),e.phone&&""!=e.phone)this.isAuthentication();else{var a=getCurrentPages().pop();t.setStorageSync("redirect","/"+a.route),t.navigateTo({url:"/pages/authorization/index"})}},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},onShareAppMessage:function(){},methods:{back:function(){var e=getCurrentPages();e[e.length-2].route;t.switchTab({url:"/pages/user/index"})},toPersonlAuth:function(){if(0==this.authStatus)t.navigateTo({url:"/pages/release/personAuth/index"});else if(3==this.authStatus){var e=encodeURIComponent(JSON.stringify(this.authInfo));t.navigateTo({url:"/pages/release/personAuth/index?authInfo="+e})}else 1==this.authStatus&&t.showToast({title:"认证申请审核中,请等待!",icon:"none"})},toCompanyAuth:function(){if(0==this.authStatus)t.navigateTo({url:"/pages/release/companyAuth/index"});else if(3==this.authStatus){var e=encodeURIComponent(JSON.stringify(this.authInfo));t.navigateTo({url:"/pages/release/companyAuth/index?authInfo="+e})}else 1==this.authStatus&&t.showToast({title:"认证申请审核中,请等待!",icon:"none"})},isAuthentication:function(){var t=this;a.http("get","user/isAuthentication").then((function(e){e.data.success&&t.setData({authStatus:e.data.data.authenticationState,authType:e.data.data.authorizationType,completeState:e.data.data.completeState,authInfo:e.data.data.authInfo})}))},toResources:function(){console.log(this.authStatus,"authStatus"),console.log(this.authType,"authType"),console.log(this.completeState,"completeState"),2==this.authStatus&&1==this.authType&&1==this.completeState?t.navigateTo({url:"/pages/user/editNeeds/index?type=1"}):2==this.authStatus&&1==this.authType&&0==this.completeState?t.showModal({title:"提示!",content:"您还未完善企业信息,点击确定去完善吧~",success:function(e){e.confirm&&t.navigateTo({url:"/pages/release/perfectCompanyInfo/index"})}}):0!=this.authStatus||1!=this.authType&&0!=this.authType||0!=this.completeState||t.showModal({title:"提示!",content:"您还未完成企业认证,点击确定去认证吧~",success:function(e){e.confirm&&t.navigateTo({url:"/pages/release/companyAuth/index"})}})},toNeeds:function(){2!=this.authStatus||2!=this.authType&&1!=this.authType||1!=this.completeState?2!=this.authStatus||2!=this.authType&&0!=this.authType||0!=this.completeState?0!=this.authStatus||2!=this.authType&&0!=this.authType||0!=this.completeState||t.showModal({title:"提示!",content:"您还未完成认证,点击上方按钮去认证吧!"}):t.showModal({title:"提示!",content:"您还未完善个人信息,点击确定去完善吧~",success:function(e){t.navigateTo({url:"/pages/release/perfectPersonInfo/index"})}}):t.navigateTo({url:"/pages/user/editNeeds/index?type=2"})}}};e.default=n}).call(this,a("543d")["default"])},ee99:function(t,e,a){},f2c2:function(t,e,a){"use strict";var n=a("ee99"),o=a.n(n);o.a}},[["209b","common/runtime","common/vendor"]]]);