2 lines
5.0 KiB
JavaScript
2 lines
5.0 KiB
JavaScript
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pageOne/indexs/detail"],{194:function(t,e,n){"use strict";(function(t,e){var o=n(4);n(26);o(n(25));var i=o(n(195));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},195:function(t,e,n){"use strict";n.r(e);var o=n(196),i=n(198);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n(200);var r,c=n(32),a=Object(c["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],r);a.options.__file="pageOne/indexs/detail.vue",e["default"]=a.exports},196:function(t,e,n){"use strict";n.r(e);var o=n(197);n.d(e,"render",(function(){return o["render"]})),n.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(e,"components",(function(){return o["components"]}))},197:function(t,e,n){"use strict";var o;n.r(e),n.d(e,"render",(function(){return i})),n.d(e,"staticRenderFns",(function(){return r})),n.d(e,"recyclableRender",(function(){return s})),n.d(e,"components",(function(){return o}));try{o={uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,457))},lxcCountStyle:function(){return n.e("components/lxc-count-style/lxc-count-style").then(n.bind(null,445))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.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 t=this,e=t.$createElement,n=(t._self._c,t.__map(t.images,(function(e,n){var o=t.__get_orig(e),i=t.$tools.oss(e);return{$orig:o,g0:i}}))),o=t.$tools.oss(t.detail.image);t.$mp.data=Object.assign({},{$root:{l0:n,g1:o}})},s=!1,r=[];i._withStripped=!0},198:function(t,e,n){"use strict";n.r(e);var o=n(199),i=n.n(o);for(var s in o)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(s);e["default"]=i.a},199:function(t,e,n){"use strict";var o=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(11));function s(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}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c=function(){Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-parse/u-parse")]).then(function(){return resolve(n(464))}.bind(null,n)).catch(n.oe)},a={components:{uParse:c},data:function(){return{min:1,nums:1,ids:"",detail:{},imageProp:"",images:[],select:0}},onLoad:function(t){this.ids=t.id,this.shopDetails()},onShow:function(){},onShareAppMessage:function(t){return{title:this.detail.name,imageUrl:this.$tools.oss(this.detail.image),path:"/pageOne/indexs/detail?id=".concat(this.ids)}},methods:{onSel:function(t){this.select=t},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(t){this.nums=t},shopDetails:function(){var t=this;this.$tools.axiosFromToken("POST","shop/shopDetails",{id:this.ids}).then((function(e){var n=r(r({},e.data),{},{content:"string"===typeof e.data.content?e.data.content.replace(/https?:\/\/yurongjiuye\.mmx0626\.com/g,"https://yrjy.yurongjiuye.cn"):e.data.content});t.detail=n,t.images=e.data.images}))},addshopcat:function(){var t=this;this.$tools.axiosFromToken("POST","shop/addCar",{shop_id:this.ids,num:this.nums,spec_id:this.detail.spec[this.select].id}).then((function(e){t.$tools.showtt(e.msg),1==e.code&&t.$refs.popup.close()}))},goshop:function(){this.$tools.goSwitchTab("/pages/tabbar/shop")},like:function(){var t=this;this.$tools.axiosFromToken("POST","shop/like",{id:this.detail.id}).then((function(e){t.$tools.showtt(e.msg),1==e.code&&t.shopDetails()}))}}};e.default=a},200:function(t,e,n){"use strict";n.r(e);var o=n(201),i=n.n(o);for(var s in o)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(s);e["default"]=i.a},201:function(t,e,n){}},[[194,"common/runtime","common/vendor"]]]);
|
||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pageOne/indexs/detail.js.map
|