1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/book/goods/goods"],{"0d05":function(t,e,n){"use strict";n.r(e);var o=n("5bfe"),i=n("c976");for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("5ad4");var a,c=n("f0c5"),p=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"3211dd2c",null,!1,o["a"],a);e["default"]=p.exports},"5ad4":function(t,e,n){"use strict";var o=n("d110"),i=n.n(o);i.a},"5bfe":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.loading?Number(110):null);t.$mp.data=Object.assign({},{$root:{m0:n}})},r=[]},"7b45":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("2f62");function i(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?i(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){return l(t)||s(t)||u(t)||p()}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t,e){if(t){if("string"===typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function s(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function l(t){if(Array.isArray(t))return d(t)}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}var f=function(){n.e("components/page-component/goods/app-goods-banner").then(function(){return resolve(n("0248"))}.bind(null,n)).catch(n.oe)},m=function(){n.e("components/page-component/goods/app-goods-price").then(function(){return resolve(n("471d"))}.bind(null,n)).catch(n.oe)},g=function(){n.e("components/page-component/goods/app-goods-attr").then(function(){return resolve(n("c7d8"))}.bind(null,n)).catch(n.oe)},h=function(){n.e("components/page-component/app-attr/app-attr").then(function(){return resolve(n("58fd"))}.bind(null,n)).catch(n.oe)},b=function(){n.e("plugins/book/components/app-store").then(function(){return resolve(n("c69e"))}.bind(null,n)).catch(n.oe)},v=function(){n.e("components/page-component/app-related-suggestion-product/app-related-suggestion-product").then(function(){return resolve(n("bb17"))}.bind(null,n)).catch(n.oe)},_=function(){n.e("components/page-component/goods/app-goods-detail").then(function(){return resolve(n("eb92"))}.bind(null,n)).catch(n.oe)},y=function(){Promise.all([n.e("common/vendor"),n.e("components/page-component/app-quick-navigation/app-quick-navigation")]).then(function(){return resolve(n("e726"))}.bind(null,n)).catch(n.oe)},O=function(){n.e("components/page-component/app-iphonex-bottom/app-iphonex-bottom").then(function(){return resolve(n("4986"))}.bind(null,n)).catch(n.oe)},w=function(){n.e("components/basic-component/app-iphone-x/app-iphone-x").then(function(){return resolve(n("a339"))}.bind(null,n)).catch(n.oe)},j=function(){n.e("components/page-component/goods/app-goods-service").then(function(){return resolve(n("9a70"))}.bind(null,n)).catch(n.oe)},k=function(){n.e("components/page-component/app-vip-card/app-vip-card").then(function(){return resolve(n("3592"))}.bind(null,n)).catch(n.oe)},P=function(){n.e("components/page-component/app-goods-detail/app-name").then(function(){return resolve(n("2f38"))}.bind(null,n)).catch(n.oe)},$=function(){n.e("components/basic-component/app-empty-bottom/app-empty-bottom").then(function(){return resolve(n("208f"))}.bind(null,n)).catch(n.oe)},A={name:"details",components:{"app-goods-banner":f,"app-goods-price":m,"app-goods-attr":g,"app-attr":h,"app-store":b,"app-related-suggestion-product":v,"app-goods-detail":_,"app-quick-navigation":y,"app-iphone-bottom":O,"app-iphone-x":w,"app-goods-service":j,"app-name":P,"app-vip-card":k,"app-empty-bottom":$},data:function(){return{item:null,selectAttr:{},activeIndex:0,list:[],submitUrl:this.$api.book.order_submit,previewUrl:this.$api.book.order_preview,url:"",cartShow:!1,isCart:!1,is_vip:!1,is_vip_card_user:0,discount:null,show:0,loading:!1}},onShareAppMessage:function(){return this.$shareAppMessage({path:"/plugins/book/goods/goods",title:this.item.app_share_title?this.item.app_share_title:this.item.name,imageUrl:this.item.app_share_pic?this.item.app_share_pic:"",params:{goods_id:this.item.id}})},onLoad:function(e){var n=this;t.getLocation({type:"wgs84",success:function(t){var o=e.goods_id;n.$request({url:n.$api.book.detail,data:{goods_id:o,latitude:t.latitude,longitude:t.longitude}}).then((function(t){0===t.code&&(n.loading=!0,n.item=t.data.list,n.item.id=n.item.goods_id,n.url="".concat(n.$api.book.poster,"&goods_id=").concat(n.item.goods_id),n.requestFun(o),n.item.vip_card_appoint.discount>0&&(n.is_vip=!0,n.discount=n.item.vip_card_appoint.discount),n.is_vip_card_user=n.item.vip_card_appoint.is_vip_card_user)}))},fail:function(e){console.log(e),t.showModal({title:"提示",content:"请开启位置权限",success:function(){t.navigateBack()}})},complete:function(t){}})},methods:{attrtap:function(t){this.selectAttr=null!==t?t:{}},requestFun:function(t){var e=this;this.$request({url:this.$api.goods.new_recommend,data:{goods_id:t,page:this.page}}).then((function(t){0===t.code&&(t.data.list.length>0?e.list=[].concat(c(e.list),c(t.data.list)):e.over=!0)}))},reservationNow:function(){this.show=Math.random()}},computed:r(r({},(0,o.mapState)({mall:function(t){return t.mallConfig.mall}})),(0,o.mapState)("gConfig",{iphone:function(t){return t.iphone},iphoneHeight:function(t){return t.iphoneHeight}}))};e.default=A}).call(this,n("543d")["default"])},ae00:function(t,e,n){"use strict";(function(t){n("ecb4");o(n("66fd"));var e=o(n("0d05"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},c976:function(t,e,n){"use strict";n.r(e);var o=n("7b45"),i=n.n(o);for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},d110:function(t,e,n){}},[["ae00","common/runtime","common/vendor"]]]);
|