(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/member/product/details"],{"10a3":function(t,e,n){"use strict";(function(t){var r=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n("7ca3")),c=n("8f59");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}var a={components:{carousel:function(){n.e("pages/component/carousel/carousel").then(function(){return resolve(n("b5fc"))}.bind(null,n)).catch(n.oe)}},data:function(){return{loadEnd:!1,productId:null,productInfo:{},carouselList:[]}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,c.mapState)({themeColor:function(t){return t.app.themeColor}})),onLoad:function(e){var n=this;this.productId=e.id,t.showLoading({title:"加载中"}),this.getProductDetails((function(){t.hideLoading(),n.loadEnd=!0}))},onShareAppMessage:function(){return{title:this.productInfo.name,path:"/pages/member/product/details?id="+this.productId,imageUrl:this.carouselList[0].image}},onShareTimeline:function(){return{title:this.productInfo.name,path:"/pages/member/product/details?id="+this.productId,imageUrl:this.carouselList[0].image}},methods:{pageChange:function(t){this.pageShow=t},getProductDetails:function(e){var n=this;this.$util.request("member.product.details",{id:this.productId}).then((function(r){e&&e(),1==r.code?(n.productInfo=r.data,n.carouselList=n.splitImages(r.data.images)):t.showToast({title:r.msg,icon:"none"})})).catch((function(t){e&&e(),console.error("获取产品详情",t)}))},splitImages:function(t){try{return t?t.split(","):[]}catch(e){return[]}}}};e.default=a}).call(this,n("df3c")["default"])},2696:function(t,e,n){"use strict";n.r(e);var r=n("c8c0"),o=n("30e2");for(var c in o)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(c);n("c37e");var i=n("828b"),a=Object(i["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=a.exports},"30e2":function(t,e,n){"use strict";n.r(e);var r=n("10a3"),o=n.n(r);for(var c in r)["default"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(c);e["default"]=o.a},"9d5c":function(t,e,n){},c37e:function(t,e,n){"use strict";var r=n("9d5c"),o=n.n(r);o.a},c8c0:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return r}));var r={mpHtml:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/mp-html/components/mp-html/mp-html")]).then(n.bind(null,"7717"))}},o=function(){var t=this.$createElement;this._self._c},c=[]},d92f:function(t,e,n){"use strict";(function(t,e){var r=n("47a9");n("aa6c");r(n("3240"));var o=r(n("2696"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["d92f","common/runtime","common/vendor"]]]);