require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_company/storeProductPackageDetails"],{775:function(e,n,t){"use strict";(function(e,n){var a=t(4);t(26);a(t(25));var o=a(t(776));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},776:function(e,n,t){"use strict";t.r(n);var a=t(777),o=t(779);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);t(781);var c,i=t(34),s=Object(i["default"])(o["default"],a["render"],a["staticRenderFns"],!1,null,null,null,!1,a["components"],c);s.options.__file="pages_company/storeProductPackageDetails.vue",n["default"]=s.exports},777:function(e,n,t){"use strict";t.r(n);var a=t(778);t.d(n,"render",(function(){return a["render"]})),t.d(n,"staticRenderFns",(function(){return a["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return a["recyclableRender"]})),t.d(n,"components",(function(){return a["components"]}))},778:function(e,n,t){"use strict";var a;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return c})),t.d(n,"recyclableRender",(function(){return r})),t.d(n,"components",(function(){return a}));var o=function(){var e=this,n=e.$createElement,t=(e._self._c,e.banner.length),a=null!=e.package?e.package.payMoney.toFixed(2):null,o=null!=e.package?e.package.money.toFixed(2):null;e.$mp.data=Object.assign({},{$root:{g0:t,g1:a,g2:o}})},r=!1,c=[];o._withStripped=!0},779:function(e,n,t){"use strict";t.r(n);var a=t(780),o=t.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(r);n["default"]=o.a},780:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=t(273),o=t(772),r={data:function(){return{count0:0,messageShow:!1,banner:[],packageId:null,package:null,products:[],activeBanner:1}},onLoad:function(n){if(n.hasOwnProperty("q")&&n.q){var t=decodeURIComponent(n.q);this.url=t;var a=this.utils.urlToObj(t);this.packageId=a.packageId,this.companyId=a.companyId,this.companyUserId=a.companyUserId}else this.packageId=n.packageId,this.companyId=n.companyId,this.companyUserId=n.companyUserId;e.showShareMenu({withShareTicket:!0,menus:["shareAppMessage","shareTimeline"]})},onShareAppMessage:function(e){return{title:this.package.title,path:"/pages_company/storeProductPackageDetails?packageId=".concat(this.package.packageId)+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId,imageUrl:this.package.imgUrl}},onShareTimeline:function(e){return{title:this.package.title,query:"packageId="+this.package.packageId+"&companyId="+this.companyId+"&companyUserId="+this.companyUserId,imageUrl:this.package.imgUrl}},onShow:function(){console.log("onshow"),this.utils.isLogin()&&this.getOrderCount(),this.getStoreProductPackageDetails()},methods:{getOrderCount:function(){var e=this;(0,a.getOrderCount)().then((function(n){200==n.code&&(e.count0=n.count0,e.count0>0&&(e.messageShow=!0))}),(function(e){}))},showOrder:function(){this.utils.isLogin().then((function(n){n&&e.navigateTo({url:"/pages_user/user/storeOrder?status=0"})}))},closeOrder:function(){this.messageShow=!1},showImg:function(){e.previewImage({urls:this.banner,current:this.banner[0]})},getStoreProductPackageDetails:function(){var n=this,t={packageId:this.packageId};(0,o.getStoreProductPackageDetails)(t).then((function(t){200==t.code?(n.package=t.data,null!=n.package.images?n.banner=n.package.images.split(","):n.banner=[],n.products=JSON.parse(n.package.products)):e.showToast({icon:"none",title:"请求失败"})}),(function(e){}))},swiperChange:function(e){this.activeBanner=e.detail.current+1},buy:function(){var n=this;this.utils.isLogin().then((function(t){t&&e.navigateTo({url:"/pages/shopping/confirmPackageOrder?packageId="+n.packageId+"&companyUserId="+n.companyUserId})}))},goHome:function(){e.switchTab({url:"/pages/home/index"})},navgetTo:function(n){this.utils.isLogin().then((function(t){t&&e.navigateTo({url:n})}))}}};n.default=r}).call(this,t(2)["default"])},781:function(e,n,t){"use strict";t.r(n);var a=t(782),o=t.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(r);n["default"]=o.a},782:function(e,n,t){}},[[775,"common/runtime","common/vendor","pages_company/common/vendor"]]]);
//# sourceMappingURL=../../.sourcemap/mp-weixin/pages_company/storeProductPackageDetails.js.map