detail.js 2.5 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/detail"],{"17af":function(n,t,e){"use strict";e.r(t);var o=e("9653"),u=e.n(o);for(var i in o)"default"!==i&&function(n){e.d(t,n,(function(){return o[n]}))}(i);t["default"]=u.a},"3ce4":function(n,t,e){"use strict";var o,u=function(){var n=this,t=n.$createElement,e=(n._self._c,{type:"number",val:750});n.$mp.data=Object.assign({},{$root:{a0:e}})},i=[];e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return i})),e.d(t,"a",(function(){return o}))},"8fec":function(n,t,e){"use strict";(function(n){e("6cdc"),e("921b");o(e("66fd"));var t=o(e("bbcb"));function o(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("543d")["createPage"])},9653:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=e("d084"),u=function(){return Promise.all([e.e("common/vendor"),e.e("components/app-img")]).then(e.bind(null,"cb3c"))},i=function(){return e.e("components/app-swiper").then(e.bind(null,"150c"))},a=function(){return e.e("components/module/app-tag").then(e.bind(null,"1a62"))},c=function(){return e.e("components/module/app-trademark").then(e.bind(null,"ea75"))},r=function(){return e.e("pages/goods/components/buy-foot").then(e.bind(null,"2e3d"))},p=function(){return e.e("pages/goods/components/sel-popup").then(e.bind(null,"1262"))},s=function(){return e.e("pages/home/components/go-login").then(e.bind(null,"4c29"))},f={name:"goods-detail",components:{AppSwiper:i,AppTag:a,AppTrademark:c,BuyFoot:r,SelPopup:p,AppImg:u,GoLogin:s},data:function(){return{data:{},imgList:[],buyNum:1,popupShow:!1,loginShow:!1}},onLoad:function(n){},mounted:function(){},computed:{},methods:{init:function(){this._getDetail()},_getDetail:function(){var n=this;(0,o.getDetail)({id:this.option.id}).then((function(t){if(n.$util.isEmpty(t.data))return!1;n.data=t.data;var e=[];for(var o in t.data.imgList)e.push({img:t.data.imgList[o]});n.imgList=e}))},changeNum:function(n){this.buyNum=n.value},showPopup:function(){this.$util.isLogin()?this.popupShow=!0:this.loginShow=!0},hidePopup:function(){this.popupShow=!1}}};t.default=f},"9c9a":function(n,t,e){},bbcb:function(n,t,e){"use strict";e.r(t);var o=e("3ce4"),u=e("17af");for(var i in u)"default"!==i&&function(n){e.d(t,n,(function(){return u[n]}))}(i);e("c64f");var a,c=e("f0c5"),r=Object(c["a"])(u["default"],o["b"],o["c"],!1,null,"53ef76c0",null,!1,o["a"],a);t["default"]=r.exports},c64f:function(n,t,e){"use strict";var o=e("9c9a"),u=e.n(o);u.a}},[["8fec","common/runtime","common/vendor"]]]);