1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/step/goods/goods"],{1670:function(e,n,o){"use strict";(function(e){o("8748");t(o("66fd"));var n=t(o("da8c"));function t(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,o("543d")["createPage"])},"2ca2":function(e,n,o){"use strict";var t,r=function(){var e=this,n=e.$createElement;e._self._c},c=[];o.d(n,"b",(function(){return r})),o.d(n,"c",(function(){return c})),o.d(n,"a",(function(){return t}))},"3faa":function(e,n,o){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=o("2f62");function r(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,t)}return o}function c(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach((function(n){a(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))}))}return e}function a(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}var i=function(){Promise.all([o.e("common/vendor"),o.e("components/page-component/goods/app-goods-banner")]).then(function(){return resolve(o("de38"))}.bind(null,o)).catch(o.oe)},s=function(){Promise.all([o.e("common/vendor"),o.e("components/page-component/goods/app-goods-service")]).then(function(){return resolve(o("be7d"))}.bind(null,o)).catch(o.oe)},p=function(){o.e("components/page-component/goods/app-goods-attr").then(function(){return resolve(o("e7a9"))}.bind(null,o)).catch(o.oe)},u=function(){Promise.all([o.e("common/vendor"),o.e("components/page-component/app-attr/app-attr")]).then(function(){return resolve(o("4761"))}.bind(null,o)).catch(o.oe)},l=function(){Promise.all([o.e("common/vendor"),o.e("components/page-component/goods/app-goods-marketing")]).then(function(){return resolve(o("b3c0"))}.bind(null,o)).catch(o.oe)},d=function(){Promise.all([o.e("common/vendor"),o.e("components/basic-component/app-rich/parse")]).then(function(){return resolve(o("ee52"))}.bind(null,o)).catch(o.oe)},f=function(){Promise.all([o.e("common/vendor"),o.e("components/page-component/app-comments/app-comments")]).then(function(){return resolve(o("3627"))}.bind(null,o)).catch(o.oe)},m=function(){o.e("components/page-component/app-recommended-product/app-recommended-product").then(function(){return resolve(o("be22"))}.bind(null,o)).catch(o.oe)},h=function(){Promise.all([o.e("common/vendor"),o.e("components/basic-component/app-jump-button/app-jump-button")]).then(function(){return resolve(o("9e5c"))}.bind(null,o)).catch(o.oe)},g=function(){o.e("components/page-component/app-share-qr-code-poster/app-share-qr-code-poster").then(function(){return resolve(o("9f9b"))}.bind(null,o)).catch(o.oe)},b={name:"goods",components:{appGoodsBanner:i,appShareQrCode:g,appService:s,appGoodsAttr:p,appAttr:u,appGoodsMarketing:l,appRichText:d,appComments:f,appRecommendedProduct:m,appJumpButton:h},data:function(){return{goods:null,selectAttr:null,recommend_list:null,shareShow:!1,shareUrl:null,previewUrl:null,submitUrl:null,iphone_x:!1,attrShow:0}},computed:c({},(0,t.mapState)({theme:function(e){return e.mallConfig.theme},mall:function(e){return e.mallConfig.mall}})),onLoad:function(n){var o=this;o.loadData(n.goods_id),o.previewUrl=o.$api.step.order_preview,o.submitUrl=o.$api.step.order_submit,e.getSystemInfo({success:function(e){(e.model.indexOf("iPhone X")>-1||e.model.indexOf("iPhone 11")>-1||e.model.indexOf("iPhone11")>-1||e.model.indexOf("iPhone12")>-1||e.model.indexOf("Unknown Device")>-1)&&(o.iphone_x=!0)}})},onShareAppMessage:function(){return this.$shareAppMessage({title:this.goods.app_share_title?this.goods.app_share_title:this.goods.name,imageUrl:this.goods.app_share_pic?this.goods.app_share_pic:this.goods.cover_pic,path:"/plugins/step/goods/goods",params:{goods_id:this.goods.id}})},methods:{loadData:function(n){var o=this;this.$showLoading(),this.$request({url:this.$api.step.goods_detail,data:{id:n}}).then((function(t){o.$hideLoading(),0===t.code?(o.goods=t.data.list,o.shareUrl=o.$api.step.goods_poster+"&goods_id="+n,o.goods.id=n):e.showModal({title:"提示",content:t.msg,showCancel:!1})})).catch((function(e){o.$hideLoading()}))},onAttr:function(e){this.selectAttr=e},shareClick:function(){this.shareShow=!0},back:function(){e.redirectTo({url:"/pages/index/index"})},clickAttr:function(){this.attrShow=Math.random()}}};n.default=b}).call(this,o("543d")["default"])},"8a36":function(e,n,o){"use strict";var t=o("ef47"),r=o.n(t);r.a},caa6:function(e,n,o){"use strict";o.r(n);var t=o("3faa"),r=o.n(t);for(var c in t)"default"!==c&&function(e){o.d(n,e,(function(){return t[e]}))}(c);n["default"]=r.a},da8c:function(e,n,o){"use strict";o.r(n);var t=o("2ca2"),r=o("caa6");for(var c in r)"default"!==c&&function(e){o.d(n,e,(function(){return r[e]}))}(c);o("8a36");var a,i=o("f0c5"),s=Object(i["a"])(r["default"],t["b"],t["c"],!1,null,"273b5c18",null,!1,t["a"],a);n["default"]=s.exports},ef47:function(e,n,o){}},[["1670","common/runtime","common/vendor"]]]);
|