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 line
4.2 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/index"],{"11fe":function(e,t,n){"use strict";n.r(t);var a=n("d316"),o=n("95bc");for(var u in o)"default"!==u&&function(e){n.d(t,e,(function(){return o[e]}))}(u);n("fcec");var r,s=n("f0c5"),i=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],r);t["default"]=i.exports},2328:function(e,t,n){"use strict";(function(e){n("0371");a(n("66fd"));var t=a(n("11fe"));function a(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"95bc":function(e,t,n){"use strict";n.r(t);var a=n("e241"),o=n.n(a);for(var u in a)"default"!==u&&function(e){n.d(t,e,(function(){return a[e]}))}(u);t["default"]=o.a},a45b:function(e,t,n){},d316:function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return a}));var o=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){return e.$yrouter.push({path:"/pages/user/addServiceCode/index"})})},u=[]},e241:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=getApp(),o=function(){n.e("tabbarComponent/tabbar").then(function(){return resolve(n("6b2e"))}.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(e){this.getInfo()},onShow:function(){},onPullDownRefresh:function(){this.getInfo()},methods:{tabBarClick:function(e){this.currentTabIndex=e},getInfo:function(){var t=this;a.http("get","userinfo").then((function(n){n.data.success&&(t.setData({userInfo:n.data.data}),e.setStorageSync("userInfo",n.data.data),t.getOrderCount(),t.isAuthentication(),e.stopPullDownRefresh())}))},isAuthentication:function(){var e=this;a.http("get","user/isAuthentication").then((function(t){t.data.success&&e.setData({authStatus:t.data.data.authenticationState,authType:t.data.data.authorizationType,completeState:t.data.data.completeState})}))},toRelease:function(t){e.navigateTo({url:"/pages/release/index"})},toAuthInfo:function(){var t=this.authType;1==t?e.navigateTo({url:"/pages/release/perfectCompanyInfo/index?isEdit=1"}):e.navigateTo({url:"/pages/release/perfectPersonInfo/index?isEdit=1"})},toAuth:function(){e.navigateTo({url:"/pages/release/index"})},getOrderCount:function(){var e=this;a.http("GET","Communicate/getOrderCounts").then((function(t){t.data.success&&e.setData({demandCounts:t.data.data.demandCounts,supplyCounts:t.data.data.supplyCounts})}))},toMine:function(){this.userInfo.isVip?e.navigateTo({url:"/pages/user/mine/index"}):e.navigateTo({url:"/pages/user/agreement/index"})},toResourcesOrder:function(){e.navigateTo({url:"/pages/user/resourcesOrder/index"})},toNeedsOrder:function(){e.navigateTo({url:"/pages/user/needsOrder/index"})},toNeedsManage:function(t){var n=t.currentTarget.dataset.type;e.navigateTo({url:"/pages/user/needsManage/index?type="+n})},toResourcesManage:function(t){var n=t.currentTarget.dataset.type;e.navigateTo({url:"/pages/user/resourcesManage/index?type="+n})},goMyOrder:function(e){this.$yrouter.push({path:"/pages/order/MyOrder/index",query:{type:e}})},toReleaseGoods:function(){null!==this.userInfo.store?this.$yrouter.push({path:"/pages/life/addGoods/index"}):e.showToast({title:"请先点最右边按钮去开店!",icon:"none",duration:200})},goReturnList:function(){null!==this.userInfo.store?this.$yrouter.push("/pages/order/ReturnList/index"):e.showToast({title:"请先点最右边按钮去开店!",icon:"none",duration:200})},toGoodsManage:function(){null!==this.userInfo.store?this.$yrouter.push("/pages/user/goodsManage/index"):e.showToast({title:"请先点最右边按钮去开店!",icon:"none",duration:200})},toOrderManage:function(){this.$yrouter.push("/pages/user/orderManage/index")},toOpenShop:function(){this.$yrouter.push("/pages/use