|
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/index"],{"069f":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=getApp(),o=function(){n.e("tabbarComponent/tabbar").then(function(){return resolve(n("594c"))}.bind(null,n)).catch(n.oe)},u={data:function(){return{tabbar:{},userInfo:{},CustomBar:a.globalData.CustomBar,menuHeight:a.globalData.menuHeight,navHeight:a.globalData.navHeight,menuTop:a.globalData.menuTop,demandCounts:0,supplyCounts:0,authStatus:0,authType:0,completeState:"",currentTabIndex:4}},components:{tabbar:o},props:{},onLoad:function(t){this.getInfo()},onShow:function(){},onPullDownRefresh:function(){this.getInfo()},methods:{tabBarClick:function(t){this.currentTabIndex=t},getInfo:function(){var e=this;a.http("get","userinfo").then((function(n){n.data.success&&(e.setData({userInfo:n.data.data}),t.setStorageSync("userInfo",n.data.data),e.getOrderCount(),e.isAuthentication(),t.stopPullDownRefresh())}))},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})}))},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;a.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 n=e.currentTarget.dataset.type;t.navigateTo({url:"/pages/user/needsManage/index?type="+n})},toResourcesManage:function(e){var n=e.currentTarget.dataset.type;t.navigateTo({url:"/pages/user/resourcesManage/index?type="+n})},goMyOrder:function(t){this.$yrouter.push({path:"/pages/order/MyOrder/index",query:{type:t}})},toReleaseGoods:function(){null!==this.userInfo.store?this.$yrouter.push({path:"/pages/life/addGoods/index"}):t.showToast({title:"请先点最右边按钮去开店!",icon:"none",duration:200})},goReturnList:function(){null!==this.userInfo.store?this.$yrouter.push("/pages/order/ReturnList/index"):t.showToast({title:"请先点最右边按钮去开店!",icon:"none",duration:200})},toGoodsManage:function(){null!==this.userInfo.store?this.$yrouter.push("/pages/user/goodsManage/index"):t.showToast({title:"请先点最右边按钮去开店!",icon:"none",duration:200})},toOrderManage:function(){this.$yrouter.push("/pages/user/orderManage/index")},toOpenShop:function(){this.$yrouter.push("/pages/user/openStore/index")},toMyShop:function(){this.$yrouter.push("/pages/user/myShop/index")}}};e.default=u}).call(this,n("543d")["default"])},"2df9":function(t,e,n){"use strict";n.r(e);var a=n("069f"),o=n.n(a);for(var u in a)"default"!==u&&function(t){n.d(e,t,(function(){return a[t]}))}(u);e["default"]=o.a},"4a8c":function(t,e,n){"use strict";n.r(e);var a=n("64df"),o=n("2df9");for(var u in o)"default"!==u&&function(t){n.d(e,t,(function(){return o[t]}))}(u);n("7504");var r,s=n("f0c5"),i=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],r);e["default"]=i.exports},"64df":function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return a}));var o=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){return t.$yrouter.push({path:"/pages/user/addServiceCode/index"})})},u=[]},7504:function(t,e,n){"use strict";var a=n("a4f7"),o=n.n(a);o.a},"955b":f
|