require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_company/order/productShowDetails"],{849:function(t,n,e){"use strict";(function(t,n){var r=e(4);e(26);r(e(25));var c=r(e(850));t.__webpack_require_UNI_MP_PLUGIN__=e,n(c.default)}).call(this,e(1)["default"],e(2)["createPage"])},850:function(t,n,e){"use strict";e.r(n);var r=e(851),c=e(853);for(var o in c)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return c[t]}))}(o);e(855);var u,i=e(34),d=Object(i["default"])(c["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],u);d.options.__file="pages_company/order/productShowDetails.vue",n["default"]=d.exports},851:function(t,n,e){"use strict";e.r(n);var r=e(852);e.d(n,"render",(function(){return r["render"]})),e.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),e.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),e.d(n,"components",(function(){return r["components"]}))},852:function(t,n,e){"use strict";var r;e.r(n),e.d(n,"render",(function(){return c})),e.d(n,"staticRenderFns",(function(){return u})),e.d(n,"recyclableRender",(function(){return o})),e.d(n,"components",(function(){return r}));var c=function(){var t=this,n=t.$createElement,e=(t._self._c,t.banner.length),r=t.utils.getDictLabelName("storeProductType",t.product.productType);t.$mp.data=Object.assign({},{$root:{g0:e,g1:r}})},o=!1,u=[];c._withStripped=!0},853:function(t,n,e){"use strict";e.r(n);var r=e(854),c=e.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(o);n["default"]=c.a},854:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=e(172),c=e(229),o={components:{},data:function(){return{banner:[],productId:null,product:{price:0,otPrice:0},activeBanner:0}},onLoad:function(t){this.getDicts(),this.productId=t.productId},onShow:function(){this.getProductDetails()},methods:{getDicts:function(){(0,r.getDicts)().then((function(n){200==n.code&&t.setStorageSync("dicts",JSON.stringify(n))}),(function(t){}))},showImg:function(){t.previewImage({urls:this.banner,current:this.banner[0]})},getProductDetails:function(){var n=this,e={productId:this.productId};(0,c.getProductDetails)(e).then((function(e){200==e.code?(n.product=e.product,n.product.otPrice=n.product.otPrice.toFixed(2),n.product.price=n.product.price.toFixed(2),null!=n.product.sliderImage?n.banner=n.product.sliderImage.split(","):n.banner=[]):(t.showToast({icon:"none",title:e.msg}),setTimeout((function(){t.reLaunch({url:"/pages/home/index"})}),2e3))}),(function(t){}))},swiperChange:function(t){this.activeBanner=t.detail.current+1}}};n.default=o}).call(this,e(2)["default"])},855:function(t,n,e){"use strict";e.r(n);var r=e(856),c=e.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return r[t]}))}(o);n["default"]=c.a},856:function(t,n,e){}},[[849,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages_company/order/productShowDetails.js.map