detail.js 3.3 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/pt/detail/detail"],{5746:function(t,e,n){"use strict";n.r(e);var o=n("59e0"),r=n("ac1d");for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);n("da47");var i,u=n("f0c5"),c=Object(u["a"])(r["default"],o["b"],o["c"],!1,null,"862e8098",null,!1,o["a"],i);e["default"]=c.exports},"59e0":function(t,e,n){"use strict";var o,r=function(){var t=this,e=t.$createElement;t._self._c},a=[];n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}))},"62b0":function(t,e,n){},8841:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("2f62");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}function a(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){i(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}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(){n.e("plugins/pt/components/app-detail-top").then(function(){return resolve(n("bebc"))}.bind(null,n)).catch(n.oe)},c=function(){n.e("plugins/pt/components/app-group-avatar-short").then(function(){return resolve(n("d6b3"))}.bind(null,n)).catch(n.oe)},s=function(){Promise.all([n.e("common/vendor"),n.e("plugins/pt/components/app-product-list")]).then(function(){return resolve(n("be7f"))}.bind(null,n)).catch(n.oe)},l={name:"detail",data:function(){return{detail:null,url:"",list:[],id:null}},onLoad:function(t){this.id=t.id,this.request(t.id)},onShow:function(){this.$store.dispatch("gConfig/setTabBarBoolean",this.tabBarNavs.navs)},computed:a({},(0,o.mapGetters)("mallConfig",{tabBarNavs:"getNavBar"})),onShareAppMessage:function(){return this.$shareAppMessage({path:"/plugins/pt/detail/detail",title:this.detail.goods.app_share_title?this.detail.goods.app_share_title:this.detail.goods.goodsWarehouse.name,imageUrl:this.detail.goods.app_share_pic?this.detail.goods.app_share_pic:"",params:{id:this.id}})},methods:{attrTap:function(t){this.selectAttr=null!==t?t:{}},request:function(t){var e=this;this.$request({url:this.$api.pt.pt_detail,data:{id:t}}).then((function(n){0===n.code&&(e.detail=n.data.detail,e.url="".concat(e.$api.pt.order_poster,"&pintuan_group_id=").concat(t,"&goods_id=").concat(e.detail.goods_id))})).catch((function(){})),this.$request({url:this.$api.pt.goods}).then((function(t){0===t.code&&(e.list=t.data.list)}))}},components:{"app-detail-top":u,"app-group-short":c,"app-product-list":s}};e.default=l},ac1d:function(t,e,n){"use strict";n.r(e);var o=n("8841"),r=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=r.a},beab:function(t,e,n){"use strict";(function(t){n("8748");o(n("66fd"));var e=o(n("5746"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},da47:function(t,e,n){"use strict";var o=n("62b0"),r=n.n(o);r.a}},[["beab","common/runtime","common/vendor"]]]);