(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/index"],{"1af8":function(n,t,e){},"1d6d":function(n,t,e){"use strict";e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return i})),e.d(t,"a",(function(){return o}));var o={uniBadge:function(){return e.e("uni_modules/uni-badge/components/uni-badge/uni-badge").then(e.bind(null,"618d"))}},u=function(){var n=this.$createElement,t=(this._self._c,""!=this.user.phone?this.utils.parsePhone(this.user.phone):null);this.$mp.data=Object.assign({},{$root:{g0:t}})},i=[]},"239e":function(n,t,e){"use strict";e.r(t);var o=e("96c7"),u=e.n(o);for(var i in o)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(i);t["default"]=u.a},4010:function(n,t,e){"use strict";e.r(t);var o=e("1d6d"),u=e("239e");for(var i in u)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(i);e("6204");var a=e("828b"),r=Object(a["a"])(u["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=r.exports},6204:function(n,t,e){"use strict";var o=e("1af8"),u=e.n(o);u.a},"96c7":function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=e("98ea"),u=e("41e9"),i={components:{likeProduct:function(){Promise.all([e.e("common/vendor"),e.e("components/likeProduct")]).then(function(){return resolve(e("05d4"))}.bind(null,e)).catch(e.oe)}},data:function(){return{count0:0,count1:0,count2:0,afterSalesCount:0,user:{isPromoter:0,isWeixinAuth:0,phone:"",nickname:"请登录",avatarUrl:"/static/images/detault_head.png"},statusBarHeight:n.getStorageSync("menuInfo").statusBarHeight,msgNum:0}},onLoad:function(){console.log("onload")},onShow:function(){console.log("onshow");var n=this;this.utils.isLogin().then((function(t){n.getUserInfo(),n.getOrderCount()}))},onReachBottom:function(){console.log("onReachBottom"),this.$refs.product.getGoodsProducts()},methods:{openPersonInfo:function(){this.utils.isLogin().then((function(t){n.navigateTo({url:"/pages_user/user/personInfo"})}))},callService:function(){n.makePhoneCall({phoneNumber:"4000717770",success:function(){console.log("拨打电话成功")},fail:function(){console.log("打电话失败了")}})},getOrderCount:function(){var n=this;(0,o.getOrderCount)().then((function(t){200==t.code&&(n.count0=t.count0,n.count1=t.count1,n.count2=t.count2,n.afterSalesCount=t.afterSalesCount)}),(function(n){}))},toManager:function(){this.utils.checkCompanyUserLoginState()?n.navigateTo({url:"/pages_company/index"}):n.navigateTo({url:"/pages_company/auth/login"})},openH5:function(t){var e=n.getStorageSync("requestPath");n.setStorageSync("url",e+t),n.navigateTo({url:"../home/h5"})},getUserInfo:function(){var t=this;(0,u.getUserInfo)().then((function(e){200==e.code?null!=e.user?t.user=e.user:t.utils.loginOut():n.showToast({icon:"none",title:"请求失败"})}),(function(n){}))},navgetTo:function(t){this.utils.isLogin().then((function(e){e&&n.navigateTo({url:t})}))},showOrder:function(t){n.navigateTo({url:"/pages_user/user/storeOrder?status="+t})}}};t.default=i}).call(this,e("df3c")["default"])},e24b:function(n,t,e){"use strict";(function(n,t){var o=e("47a9");e("584a");o(e("3240"));var u=o(e("4010"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(u.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])}},[["e24b","common/runtime","common/vendor"]]]);