app-goods-price.js 4.3 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/goods/app-goods-price"],{"3d60":function(e,n,t){"use strict";t.r(n);var r=t("5673"),o=t.n(r);for(var i in r)"default"!==i&&function(e){t.d(n,e,(function(){return r[e]}))}(i);n["default"]=o.a},"471d":function(e,n,t){"use strict";t.r(n);var r=t("d688"),o=t("3d60");for(var i in o)"default"!==i&&function(e){t.d(n,e,(function(){return o[e]}))}(i);t("8ff0");var c,u=t("f0c5"),a=Object(u["a"])(o["default"],r["b"],r["c"],!1,null,"1a497c65",null,!1,r["a"],c);n["default"]=a.exports},5673:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=t("2f62");function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){c(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function c(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var u=function(){t.e("components/page-component/goods/app-price").then(function(){return resolve(t("e82c"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/page-component/app-member-mark/app-member-mark").then(function(){return resolve(t("0989"))}.bind(null,t)).catch(t.oe)},p=function(){t.e("components/page-component/app-share-qr-code-poster/app-share-qr-code-poster").then(function(){return resolve(t("f31a"))}.bind(null,t)).catch(t.oe)},s=function(){t.e("components/page-component/app-join-member/app-join-member").then(function(){return resolve(t("ac8a"))}.bind(null,t)).catch(t.oe)},f=function(){t.e("components/page-component/goods/app-goods-quick-share").then(function(){return resolve(t("ccb1"))}.bind(null,t)).catch(t.oe)},l=function(){t.e("components/page-component/app-sup-vip/app-sup-vip").then(function(){return resolve(t("a8ec"))}.bind(null,t)).catch(t.oe)},d={components:{"app-price":u,"app-member-mark":a,"app-share-qr-code":p,"app-join-member":s,"app-sup-vip":l,appGoodsQuickShare:f},props:{goods:Object,is_vip_goods:{type:Number,default:function(){return 0}},discount:{type:String,default:function(){return null}},selectAttr:{type:Object,default:function(){return{}}},shareUrl:{type:String,default:function(){return""}},is_vip_card_user:{type:Number,default:function(){return 0}},is_show_member:{type:Boolean,default:function(){return!0}}},data:function(){return{quickShareShow:!1,shareShow:!1}},computed:i(i({},(0,r.mapState)({theme:function(e){return e.mallConfig.theme},isUnderlinePrice:function(e){return e.mallConfig.mall.setting.is_underline_price}})),{},{goodsPrice:function(){if(!this.goods)return{};var e=this.goods,n=e.price_member_max,t=e.price_member_min,r=e.price,o=e.price_max,i=e.price_min,c=e.original_price,u={};return u=1===this.goods.level_show?{max:n,min:t,defaultPrice:r,original_price:r}:{max:o,min:i,defaultPrice:r,original_price:c},u},newShareUrl:function(){return this.shareUrl?this.shareUrl:this.goods?this.$api.poster.goods+"&goods_id="+this.goods.id:""}}),methods:{quickShare:function(e){this.$emit("quickShare",e)},shareClick:function(){this.$user.isLogin()?this.goods.extra_quick_share?this.quickShareShow=!0:this.shareShow=!0:this.$user.getInfo().then((function(){}))}}};n.default=d},8722:function(e,n,t){},"8ff0":function(e,n,t){"use strict";var r=t("8722"),o=t.n(r);o.a},d688:function(e,n,t){"use strict";var r;t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){return r}));var o=function(){var e=this,n=e.$createElement;e._self._c},i=[]}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'components/page-component/goods/app-goods-price-create-component',
  4. {
  5. 'components/page-component/goods/app-goods-price-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("471d"))
  7. })
  8. },
  9. [['components/page-component/goods/app-goods-price-create-component']]
  10. ]);