(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageOne/indexs/detail"],{137:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(26);o(n(25));var i=o(n(138));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},138:function(e,t,n){"use strict";n.r(t);var o=n(139),i=n(141);for(var s in i)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(s);n(143);var c,a=n(32),r=Object(a["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],c);r.options.__file="pageOne/indexs/detail.vue",t["default"]=r.exports},139:function(e,t,n){"use strict";n.r(t);var o=n(140);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},140:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return c})),n.d(t,"recyclableRender",(function(){return s})),n.d(t,"components",(function(){return o}));try{o={uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,371))},lxcCountStyle:function(){return n.e("components/lxc-count-style/lxc-count-style").then(n.bind(null,364))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.images,(function(t,n){var o=e.__get_orig(t),i=e.$tools.oss(t);return{$orig:o,g0:i}}))),o=e.$tools.oss(e.detail.image);e.$mp.data=Object.assign({},{$root:{l0:n,g1:o}})},s=!1,c=[];i._withStripped=!0},141:function(e,t,n){"use strict";n.r(t);var o=n(142),i=n.n(o);for(var s in o)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(s);t["default"]=i.a},142:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(){Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-parse/u-parse")]).then(function(){return resolve(n(378))}.bind(null,n)).catch(n.oe)},i={components:{uParse:o},data:function(){return{min:1,nums:1,ids:"",detail:{},imageProp:"",images:[],select:0}},onLoad:function(e){this.ids=e.id,this.shopDetails()},onShow:function(){},onShareAppMessage:function(e){return{title:this.detail.name,imageUrl:this.$tools.oss(this.detail.image),path:"/pageOne/indexs/detail?id=".concat(this.ids)}},methods:{onSel:function(e){this.select=e},goConfirm:function(){this.$refs.popup.close(),this.$tools.goNext("/pageOne/indexs/confirm?id=".concat(this.ids,"&num=").concat(this.nums,"&img=").concat(this.detail.image,"&name=").concat(this.detail.name,"\n\t\t\t&price=").concat(this.detail.spec[this.select].price,"&skuName=").concat(this.detail.spec[this.select].name,"&skuId=").concat(this.detail.spec[this.select].id))},open:function(){this.$refs["popup"].open()},handleCount:function(e){this.nums=e},shopDetails:function(){var e=this;this.$tools.axiosFromToken("POST","shop/shopDetails",{id:this.ids}).then((function(t){e.detail=t.data,e.images=t.data.images}))},addshopcat:function(){var e=this;this.$tools.axiosFromToken("POST","shop/addCar",{shop_id:this.ids,num:this.nums,spec_id:this.detail.spec[this.select].id}).then((function(t){e.$tools.showtt(t.msg),1==t.code&&e.$refs.popup.close()}))},goshop:function(){this.$tools.goSwitchTab("/pages/tabbar/shop")},like:function(){var e=this;this.$tools.axiosFromToken("POST","shop/like",{id:this.detail.id}).then((function(t){e.$tools.showtt(t.msg),1==t.code&&e.shopDetails()}))}}};t.default=i},143:function(e,t,n){"use strict";n.r(t);var o=n(144),i=n.n(o);for(var s in o)["default"].indexOf(s)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(s);t["default"]=i.a},144:function(e,t,n){}},[[137,"common/runtime","common/vendor"]]]); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pageOne/indexs/detail.js.map