require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_company/index"],{741:function(n,e,t){"use strict";(function(n,e){var o=t(4);t(26);o(t(25));var r=o(t(742));n.__webpack_require_UNI_MP_PLUGIN__=t,e(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},742:function(n,e,t){"use strict";t.r(e);var o=t(743),r=t(745);for(var a in r)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(a);t(747);var u,c=t(34),i=Object(c["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],u);i.options.__file="pages_company/index.vue",e["default"]=i.exports},743:function(n,e,t){"use strict";t.r(e);var o=t(744);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"]}))},744:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return r})),t.d(e,"staticRenderFns",(function(){return u})),t.d(e,"recyclableRender",(function(){return a})),t.d(e,"components",(function(){return o}));var r=function(){var n=this,e=n.$createElement,t=(n._self._c,null!=n.user?n.utils.parsePhone(n.user.phonenumber):null);n.$mp.data=Object.assign({},{$root:{g0:t}})},a=!1,u=[];r._withStripped=!0},745:function(n,e,t){"use strict";t.r(e);var o=t(746),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(a);e["default"]=r.a},746:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(738),r={data:function(){return{user:null}},onLoad:function(){console.log("onload")},onShow:function(){console.log("onshow"),this.getUserInfo()},methods:{alipay:function(){n.navigateTo({url:"/pages_company/alipayImg"})},toCreateOrder:function(){n.navigateTo({url:"/pages_company/order/productList"})},toPay:function(){n.navigateTo({url:"/pages_user/user/pay?companyId="+this.user.companyId+"&companyUserId="+this.user.userId})},toOrder:function(){n.navigateTo({url:"/pages_company/storeOrder?companyId="+this.user.companyId+"&companyUserId="+this.user.userId})},toPackage:function(){n.navigateTo({url:"/pages_company/storeProductPackage?companyId="+this.user.companyId+"&companyUserId="+this.user.userId})},toCoupon:function(){n.navigateTo({url:"/pages_company/coupon"})},toCreateCoupon:function(){n.navigateTo({url:"/pages_company/order/coupon"})},toCreateOrderCoupon:function(){n.navigateTo({url:"/pages_company/order/coupon"})},getUserInfo:function(){var e=this,t={token:n.getStorageSync("CompanyUserToken")};(0,o.getUserInfo)(t).then((function(t){200==t.code?e.user=t.data:403==t.code?(n.setStorageSync("CompanyUserToken",null),n.navigateBack({delta:-1})):n.showToast({icon:"none",title:t.msg})}),(function(n){}))},logout:function(){n.showModal({title:"提示",content:"确认退出登录吗?",showCancel:!0,cancelText:"取消",confirmText:"确定",success:function(e){e.confirm&&(n.setStorageSync("CompanyUserToken",null),n.navigateBack({delta:-1}))}})},navgetTo:function(e){this.utils.isLogin().then((function(t){t&&n.navigateTo({url:e})}))}}};e.default=r}).call(this,t(2)["default"])},747:function(n,e,t){"use strict";t.r(e);var o=t(748),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(a);e["default"]=r.a},748:function(n,e,t){}},[[741,"common/runtime","common/vendor","pages_company/common/vendor"]]]);
//# sourceMappingURL=../../.sourcemap/mp-weixin/pages_company/index.js.map