You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
4.1 KiB
1 lines
4.1 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/release/index"],{"5f3c":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"])},9568:function(t,e,a){"use strict";a.r(e);var n=a("5f3c"),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},a942: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=[]},aad8:function(t,e,a){"use strict";var n=a("b65d"),o=a.n(n);o.a},b65d:function(t,e,a){},c934:function(t,e,a){"use strict";(function(t){a("0371");n(a("66fd"));var e=n(a("ceba"));function n(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,a("543d")["createPage"])},ceba:function(t,e,a){"use strict";a.r(e);var n=a("a942"),o=a("9568");for(var u in o)"default"!==u&&function(t){a.d(e,t,(function(){return o[t]}))}(u);a("aad8");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}},[["c934","common/runtime","common/vendor"]]]); |