(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/index"],{267:function(n,e,t){"use strict";(function(n,e){var o=t(4);t(26);o(t(25));var u=o(t(268));n.__webpack_require_UNI_MP_PLUGIN__=t,e(u.default)}).call(this,t(1)["default"],t(2)["createPage"])},268:function(n,e,t){"use strict";t.r(e);var o=t(269),u=t(271);for(var r in u)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return u[n]}))}(r);t(274);var i,c=t(34),s=Object(c["default"])(u["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],i);s.options.__file="pages/user/index.vue",e["default"]=s.exports},269:function(n,e,t){"use strict";t.r(e);var o=t(270);t.d(e,"render",(function(){return o["render"]})),t.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(e,"components",(function(){return o["components"]}))},270:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return u})),t.d(e,"staticRenderFns",(function(){return i})),t.d(e,"recyclableRender",(function(){return r})),t.d(e,"components",(function(){return o}));try{o={uniBadge:function(){return t.e("uni_modules/uni-badge/components/uni-badge/uni-badge").then(t.bind(null,1038))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var u=function(){var n=this,e=n.$createElement,t=(n._self._c,""!=n.user.phone?n.utils.parsePhone(n.user.phone):null);n.$mp.data=Object.assign({},{$root:{g0:t}})},r=!1,i=[];u._withStripped=!0},271:function(n,e,t){"use strict";t.r(e);var o=t(272),u=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(r);e["default"]=u.a},272:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(273),u=t(163),r=function(){Promise.all([t.e("common/vendor"),t.e("components/likeProduct")]).then(function(){return resolve(t(1045))}.bind(null,t)).catch(t.oe)},i={components:{likeProduct:r},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(e){n.getUserInfo(),n.getOrderCount()}))},onReachBottom:function(){console.log("onReachBottom"),this.$refs.product.getGoodsProducts()},methods:{loginOUt:function(){this.utils.loginOut(),this.getUserInfo()},openPersonInfo:function(){this.utils.isLogin().then((function(e){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(e){200==e.code&&(n.count0=e.count0,n.count1=e.count1,n.count2=e.count2,n.afterSalesCount=e.afterSalesCount)}),(function(n){}))},toManager:function(){this.utils.checkCompanyUserLoginState()?n.navigateTo({url:"/pages_company/index"}):n.navigateTo({url:"/pages_company/auth/login"})},openH5:function(e){n.getStorageSync("requestPath");n.navigateTo({url:"../home/h5?type="+e})},getUserInfo:function(){var e=this;(0,u.getUserInfo)().then((function(t){200==t.code?null!=t.user?e.user=t.user:e.utils.loginOut():n.showToast({icon:"none",title:"请求失败"})}),(function(n){}))},navgetTo:function(e){this.utils.isLogin().then((function(t){t&&n.navigateTo({url:e})}))},showOrder:function(e){n.navigateTo({url:"/pages_user/user/storeOrder?status="+e})}}};e.default=i}).call(this,t(2)["default"])},274:function(n,e,t){"use strict";t.r(e);var o=t(275),u=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(r);e["default"]=u.a},275:function(n,e,t){}},[[267,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/user/index.js.map