(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesPoints/goods/details"],{"0116":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var o={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"))}},i=function(){var t=this.$createElement;this._self._c},a=[]},"18a4":function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("aa6c");o(n("3240"));var i=o(n("6e0f"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"323c":function(t,e,n){"use strict";var o=n("5138"),i=n.n(o);i.a},"39dd":function(t,e,n){"use strict";n.r(e);var o=n("c095"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},5138:function(t,e,n){},"6e0f":function(t,e,n){"use strict";n.r(e);var o=n("0116"),i=n("39dd");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("323c");var r=n("828b"),s=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=s.exports},c095:function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("7ca3")),a=n("8f59");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var s={components:{carousel:function(){n.e("pages/component/carousel/carousel").then(function(){return resolve(n("b5fc"))}.bind(null,n)).catch(n.oe)},quantityModal:function(){n.e("pagesPoints/component/modal/quantity").then(function(){return resolve(n("929f"))}.bind(null,n)).catch(n.oe)}},data:function(){return{pageShow:!1,loadEnd:!1,goodsId:null,goodsInfo:{},carouselList:[]}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},(0,a.mapState)({themeColor:function(t){return t.app.themeColor}})),onLoad:function(e){var n=this;this.goodsId=e.id,t.showLoading({title:"加载中"}),this.getGoodsDetails((function(){t.hideLoading(),n.loadEnd=!0}))},onShareAppMessage:function(){return{title:this.goodsInfo.name,path:"/pagesPoints/goods/details?id="+this.goodsId,imageUrl:this.carouselList[0].image}},onShareTimeline:function(){return{title:this.goodsInfo.name,path:"/pagesPoints/goods/details?id="+this.goodsId,imageUrl:this.carouselList[0].image}},methods:{pageChange:function(t){this.pageShow=t},getGoodsDetails:function(e){var n=this;this.$util.request("points.goodsDetails",{id:this.goodsId}).then((function(o){e&&e(),1==o.code?(n.goodsInfo=o.data,n.carouselList=n.splitImages(o.data.slider_images)):t.showToast({title:o.msg,icon:"none"})})).catch((function(t){e&&e(),console.error("获取商品详情",t)}))},splitImages:function(t){try{return t?t.split(","):[]}catch(e){return[]}},toOrder:function(){t.getStorageSync("token")?this.$refs.quantityModal.open(1):t.navigateTo({url:"/pages/login/index",animationType:"fade-in"})},changeQuantity:function(t){var e={id:this.goodsInfo.id,name:this.goodsInfo.name,image:this.goodsInfo.image,points:this.goodsInfo.points,number:t};this.$store.commit("app/setPointsOrder",e),this.$util.toPage({mode:1,path:"/pagesPoints/goods/order"})}}};e.default=s}).call(this,n("df3c")["default"])}},[["18a4","common/runtime","common/vendor"]]]);