12345678910 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/advance/components/detail-price-share"],{"003d":function(e,t,r){"use strict";var n=r("9712"),a=r.n(n);a.a},"1d2e":function(e,t,r){"use strict";r.r(t);var n=r("8ba7"),a=r("2d91");for(var i in a)"default"!==i&&function(e){r.d(t,e,(function(){return a[e]}))}(i);r("003d");var s,c=r("f0c5"),o=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,"d8617264",null,!1,n["a"],s);t["default"]=o.exports},"2d91":function(e,t,r){"use strict";r.r(t);var n=r("399b"),a=r.n(n);for(var i in n)"default"!==i&&function(e){r.d(t,e,(function(){return n[e]}))}(i);t["default"]=a.a},"399b":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("2f62");function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c=function(){r.e("components/page-component/app-share-qr-code-poster/app-share-qr-code-poster").then(function(){return resolve(r("c169"))}.bind(null,r)).catch(r.oe)},o={name:"detail-price-share",data:function(){return{price:0,status:0,de_price:0,de_status:0,swell_price:0,swell_status:0,de_price_min:0,de_price_max:0,swell_price_min:0,swell_price_max:0,shareShow:!1,member_price_min:0,member_price_max:0,member_price_status:0,start_end:""}},props:{price_min:Number,price_max:Number,attr:Array,original_price:String,url:String,level_show:Number,group_min_member_price:Number,group_max_member_price:Number,end_prepayment_at:String,pay_limit:Number,cats:Array,goodsId:Number,discount:{type:String},is_vip_card_user:{type:Number,default:function(){return 0}},theme:Object,posterConfig:String,posterGenerate:String,hasPosterNav:{type:Boolean,default:function(){return!1}},goods:Object},mounted:function(){this.price_min===this.price_max?this.status=0:this.status=1;for(var e=[],t=[],r=0;r<this.attr.length;r++)e.push(this.attr[r].deposit),t.push(this.attr[r].swell_deposit);var n=Math.max.apply(null,e),a=Math.min.apply(null,e),i=Math.max.apply(null,t),s=Math.min.apply(null,t);n===a?(this.de_price=a,this.de_status=0):(this.de_status=1,this.de_price_min=a,this.de_price_max=n),s===i?(this.swell_price=s,this.swell_status=0):(this.swell_status=1,this.swell_price_min=s,this.swell_price_max=i),this.group_min_member_price===this.group_max_member_price?this.member_price_status=0:this.member_price_status=1},computed:i(i({set_time:function(){return-1===this.pay_limit?"".concat(this.getDate(this.end_prepayment_at)," ~ 无期限"):(this.addDate(this.end_prepayment_at,this.pay_limit),"".concat(this.getDate(this.end_prepayment_at)," ~ ").concat(this.addDate(this.end_prepayment_at,this.pay_limit)))}},(0,n.mapGetters)("mallConfig",{vip:"getVip"})),(0,n.mapState)({mall:function(e){return e.mallConfig.mall},isUnderlinePrice:function(e){return e.mallConfig.mall.setting.is_underline_price}})),methods:{shareAppMessage:function(e){this.$emit("share",e)},addDate:function(e,t){void 0!=t&&""!=t||(t=1);e=new Date(e.replace(/-/g,"/"));e.setDate(e.getDate()+t);var r=e.getMonth()+1,n=e.getDate(),a="'"+r+"'",i="'"+n+"'";3==a.length&&(r="0"+r),3==i.length&&(n="0"+n);var s=e.getHours(),c=e.getMinutes(),o=e.getSeconds();0===o?(o=59,0===c?(c=59,0===s?(s=23,n="0"+Number(n)-1):s-=1):c-=1):o-=1,o="".concat(o),c="".concat(c),s="".concat(s),1===s.length&&(s="0".concat(s)),1===c.length&&(c="0".concat(c)),1===o.length&&(o="0".concat(o));var u=e.getFullYear()+"."+r+"."+n+" "+s+":"+c+":"+o;return u},getDate:function(e){var t=new Date(e.replace(/-/g,"/"));t.setDate(t.getDate());var r=t.getMonth()+1,n=t.getDate(),a="'"+r+"'",i="'"+n+"'",s=t.getHours(),c=t.getMinutes(),o=t.getSeconds();o="".concat(o),c="".concat(c),s="".concat(s),3==a.length&&(r="0"+r),3==i.length&&(n="0"+n),1===s.length&&(s="0".concat(s)),1===c.length&&(c="0".concat(c)),1===o.length&&(o="0".concat(o));var u=t.getFullYear()+"."+r+"."+n+" "+s+":"+c+":"+o;return u},share_show:function(){this.$user.isLogin()?this.shareShow=!0:this.$user.getInfo()}},components:{"app-share-qr-code":c}};t.default=o},"8ba7":function(e,t,r){"use strict";var n;r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return n}));var a=function(){var e=this,t=e.$createElement;e._self._c},i=[]},9712:function(e,t,r){}}]);
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'plugins/advance/components/detail-price-share-create-component',
- {
- 'plugins/advance/components/detail-price-share-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('543d')['createComponent'](__webpack_require__("1d2e"))
- })
- },
- [['plugins/advance/components/detail-price-share-create-component']]
- ]);
|