require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_company/index"],{"0c3f":function(n,o,e){"use strict";(function(n,o){var t=e("47a9");e("584a");t(e("3240"));var a=t(e("8703"));n.__webpack_require_UNI_MP_PLUGIN__=e,o(a.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},1432:function(n,o,e){"use strict";e.r(o);var t=e("cb44"),a=e.n(t);for(var c in t)["default"].indexOf(c)<0&&function(n){e.d(o,n,(function(){return t[n]}))}(c);o["default"]=a.a},"183f":function(n,o,e){},"25cf":function(n,o,e){"use strict";e.d(o,"b",(function(){return t})),e.d(o,"c",(function(){return a})),e.d(o,"a",(function(){}));var t=function(){var n=this.$createElement,o=(this._self._c,null!=this.user?this.utils.parsePhone(this.user.phonenumber):null);this.$mp.data=Object.assign({},{$root:{g0:o}})},a=[]},8703:function(n,o,e){"use strict";e.r(o);var t=e("25cf"),a=e("1432");for(var c in a)["default"].indexOf(c)<0&&function(n){e.d(o,n,(function(){return a[n]}))}(c);e("f127");var u=e("828b"),r=Object(u["a"])(a["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],void 0);o["default"]=r.exports},cb44:function(n,o,e){"use strict";(function(n){Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var t=e("0609"),a={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 o=this,e={token:n.getStorageSync("CompanyUserToken")};(0,t.getUserInfo)(e).then((function(e){200==e.code?o.user=e.data:403==e.code?(n.setStorageSync("CompanyUserToken",null),n.navigateBack({delta:-1})):n.showToast({icon:"none",title:e.msg})}),(function(n){}))},logout:function(){n.showModal({title:"提示",content:"确认退出登录吗?",showCancel:!0,cancelText:"取消",confirmText:"确定",success:function(o){o.confirm&&(n.setStorageSync("CompanyUserToken",null),n.navigateBack({delta:-1}))}})},navgetTo:function(o){this.utils.isLogin().then((function(e){e&&n.navigateTo({url:o})}))}}};o.default=a}).call(this,e("df3c")["default"])},f127:function(n,o,e){"use strict";var t=e("183f"),a=e.n(t);a.a}},[["0c3f","common/runtime","common/vendor","pages_company/common/vendor"]]]);