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
3.3 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/index"],{"069f":function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=getApp(),u=function(){a.e("tabbarComponent/tabbar").then(function(){return resolve(a("594c"))}.bind(null,a)).catch(a.oe)},o={data:function(){return{tabbar:{},userInfo:{},CustomBar:n.globalData.CustomBar,menuHeight:n.globalData.menuHeight,navHeight:n.globalData.navHeight,menuTop:n.globalData.menuTop,demandCounts:0,supplyCounts:0,authStatus:0,authType:0,completeState:"",currentTabIndex:4}},components:{tabbar:u},props:{},onLoad:function(t){},onShow:function(){this.getInfo()},methods:{tabBarClick:function(t){this.currentTabIndex=t},getInfo:function(){var e=this;n.http("get","userinfo").then((function(a){a.data.success&&(e.setData({userInfo:a.data.data}),e.getOrderCount(),e.isAuthentication(),t.stopPullDownRefresh())}))},isAuthentication:function(){var t=this;n.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})}))},toRelease:function(e){t.navigateTo({url:"/pages/release/index"})},toAuthInfo:function(){var e=this.authType;1==e?t.navigateTo({url:"/pages/release/perfectCompanyInfo/index?isEdit=1"}):t.navigateTo({url:"/pages/release/perfectPersonInfo/index?isEdit=1"})},toAuth:function(){t.navigateTo({url:"/pages/release/index"})},getOrderCount:function(){var t=this;n.http("GET","Communicate/getOrderCounts").then((function(e){e.data.success&&t.setData({demandCounts:e.data.data.demandCounts,supplyCounts:e.data.data.supplyCounts})}))},toMine:function(){this.userInfo.isVip?t.navigateTo({url:"/pages/user/mine/index"}):t.navigateTo({url:"/pages/user/agreement/index"})},toResourcesOrder:function(){t.navigateTo({url:"/pages/user/resourcesOrder/index"})},toNeedsOrder:function(){t.navigateTo({url:"/pages/user/needsOrder/index"})},toNeedsManage:function(e){var a=e.currentTarget.dataset.type;t.navigateTo({url:"/pages/user/needsManage/index?type="+a})},toResourcesManage:function(e){var a=e.currentTarget.dataset.type;t.navigateTo({url:"/pages/user/resourcesManage/index?type="+a})},goMyOrder:function(t){this.$yrouter.push({path:"/pages/order/MyOrder/index",query:{type:t}})}}};e.default=o}).call(this,a("543d")["default"])},"2df9":function(t,e,a){"use strict";a.r(e);var n=a("069f"),u=a.n(n);for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=u.a},"4a8c":function(t,e,a){"use strict";a.r(e);var n=a("7bfd"),u=a("2df9");for(var o in u)"default"!==o&&function(t){a.d(e,t,(function(){return u[t]}))}(o);a("7504");var r,s=a("f0c5"),i=Object(s["a"])(u["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],r);e["default"]=i.exports},7504:function(t,e,a){"use strict";var n=a("a4f7"),u=a.n(n);u.a},"7bfd":function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return u})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var u=function(){var t=this,e=t.$createElement;t._self._c},o=[]},"955b":function(t,e,a){"use strict";(function(t){a("ef82");n(a("66fd"));var e=n(a("4a8c"));function n(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,a("543d")["createPage"])},a4f7:function(t,e,a){}},[["955b","common/runtime","common/vendor"]]]);