require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_company/storeProductPackageDetails"],{"0d96":function(e,a,t){"use strict";t.r(a);var n=t("d6ed"),o=t.n(n);for(var i in n)["default"].indexOf(i)<0&&function(e){t.d(a,e,(function(){return n[e]}))}(i);a["default"]=o.a},"1b79":function(e,a,t){"use strict";(function(e,a){var n=t("47a9");t("584a");n(t("3240"));var o=n(t("884b"));e.__webpack_require_UNI_MP_PLUGIN__=t,a(o.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},"4c70":function(e,a,t){"use strict";t.d(a,"b",(function(){return n})),t.d(a,"c",(function(){return o})),t.d(a,"a",(function(){}));var n=function(){var e=this.$createElement,a=(this._self._c,this.banner.length),t=null!=this.package?this.package.payMoney.toFixed(2):null,n=null!=this.package?this.package.money.toFixed(2):null;this.$mp.data=Object.assign({},{$root:{g0:a,g1:t,g2:n}})},o=[]},6958:function(e,a,t){},"884b":function(e,a,t){"use strict";t.r(a);var n=t("4c70"),o=t("0d96");for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(a,e,(function(){return o[e]}))}(i);t("fa9b");var c=t("828b"),s=Object(c["a"])(o["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);a["default"]=s.exports},d6ed:function(e,a,t){"use strict";(function(e){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=t("98ea"),o=t("379e"),i={data:function(){return{count0:0,messageShow:!1,banner:[],packageId:null,package:null,products:[],activeBanner:1}},onLoad:function(a){if(a.hasOwnProperty("q")&&a.q){var t=decodeURIComponent(a.q);this.url=t;var n=this.utils.urlToObj(t);this.packageId=n.packageId,this.companyId=n.companyId,this.companyUserId=n.companyUserId}else this.packageId=a.packageId,this.companyId=a.companyId,this.companyUserId=a.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,n.getOrderCount)().then((function(a){200==a.code&&(e.count0=a.count0,e.count0>0&&(e.messageShow=!0))}),(function(e){}))},showOrder:function(){this.utils.isLogin().then((function(a){a&&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 a=this,t={packageId:this.packageId};(0,o.getStoreProductPackageDetails)(t).then((function(t){200==t.code?(a.package=t.data,null!=a.package.images?a.banner=a.package.images.split(","):a.banner=[],a.products=JSON.parse(a.package.products)):e.showToast({icon:"none",title:"请求失败"})}),(function(e){}))},swiperChange:function(e){this.activeBanner=e.detail.current+1},buy:function(){var a=this;this.utils.isLogin().then((function(t){t&&e.navigateTo({url:"/pages/shopping/confirmPackageOrder?packageId="+a.packageId+"&companyUserId="+a.companyUserId})}))},goHome:function(){e.switchTab({url:"/pages/home/index"})},navgetTo:function(a){this.utils.isLogin().then((function(t){t&&e.navigateTo({url:a})}))}}};a.default=i}).call(this,t("df3c")["default"])},fa9b:function(e,a,t){"use strict";var n=t("6958"),o=t.n(n);o.a}},[["1b79","common/runtime","common/vendor","pages_company/common/vendor"]]]);