(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/productWindow/index"],{"0ebe":function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.hotPointsStyle=e.default=void 0;var r=i("d057"),o=n(i("cb66")),u={iconStyle:{width:"32rpx",height:"32rpx"},priceStyle:{fontSize:"32rpx"},unitStyle:{fontSize:"28rpx"}};e.hotPointsStyle=u;var c={mixins:[o.default],components:{svipPrice:function(){Promise.all([i.e("common/vendor"),i.e("components/svipPrice")]).then(function(){return resolve(i("d4c6"))}.bind(null,i)).catch(i.oe)},PointsPrice:function(){i.e("components/PointsPrice").then(function(){return resolve(i("34a7"))}.bind(null,i)).catch(i.oe)}},props:{attr:{type:Object,default:function(){}},limitNum:{type:Number,value:0},isShow:{type:Number,value:0},iSbnt:{type:Number,value:0},iSplus:{type:Number,value:0},iScart:{type:Number,value:0},productType:{type:Number,value:0},marketingType:{type:Number,value:0},groupBuyActivityResponse:{default:function(){}},isMarketingGoods:{type:Boolean,default:function(){return!1}}},data:function(){return{gridShow:1,ProductTypeEnum:r.ProductTypeEnum,ProductMarketingTypeEnum:r.ProductMarketingTypeEnum,hotPointsStyle:u,svipPriceStyle:{svipBox:{height:"34rpx",borderRadius:"60rpx 56rpx 56rpx 20rpx"},icon:{fontSize:"23rpx",height:"34rpx",borderRadius:"16rpx 0 16rpx 2rpx"},price:{fontSize:"44rpx"},svipPrice:{fontSize:"27rpx"}},svipIconStyle:{svipBox:{height:"34rpx",borderRadius:"36rpx 40rpx 40rpx 0.4rpx"},price:{fontSize:"44rpx"},svipPrice:{fontSize:"22rpx"}},urlDomain:this.$Cache.get("imgHost"),checkedAttr:""}},mounted:function(){},computed:{attrHeight:function(){var t=this.attr.productAttr;if(!t.length)return"";var e=t.some((function(t){return t.isShowImage}));if(!e)return"";var i=t.length>1,n=t[0].optionList.length||0;return i||n>7?"fixed-height64":"fixed-height45"},isProductType:function(){return 5===this.productType},priceColor:function(){return{color:this.isMarketingGoods?"#e93323":""}},buyLimitNum:function(){if(this.groupBuyActivityResponse){var t=this.groupBuyActivityResponse.buyLimitCount,e=this.attr.productSelect.groupStock,i=this.attr.productSelect.stock,n=this.groupBuyActivityResponse.oncQuota,r=this.groupBuyActivityResponse.allQuota;0==n&&0!=r&&(n=r),0==n&&0==r&&(n=e,r=e),-1==t&&(t=e);var o=Math.min(t,e,n,i);return this.$emit("buyLimit",o),o}}},methods:{proviewImg:function(e){t.previewImage({current:0,urls:[e]})},toggleGridAttr:function(t){this.gridShow=t},goCat:function(){this.$emit("goCat")},bindCode:function(t){this.$emit("iptCartNum",this.attr.productSelect.cart_num)},closeAttr:function(){this.$emit("myevent")},CartNumDes:function(){this.$emit("ChangeCartNum",!1)},CartNumAdd:function(t){this.$emit("ChangeCartNum",!0,this.buyLimitNum,t)},tapAttr:function(t,e,i){this.$emit("attrVal",{indexw:t,indexn:e}),this.$set(this.attr.productAttr[t],"index",this.attr.productAttr[t].attrValues[e]);var n=this.getCheckedValue().join(",");this.checkedAttr=n,this.$emit("ChangeAttr",n)},showImg:function(){this.$emit("getImg")}}};e.default=c}).call(this,i("df3c")["default"])},"2c52":function(t,e,i){"use strict";i.r(e);var n=i("0ebe"),r=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=r.a},"34a1":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},r=[]},"671c":function(t,e,i){"use strict";var n=i("e4ae"),r=i.n(n);r.a},b617:function(t,e,i){"use strict";i.r(e);var n=i("34a1"),r=i("2c52");for(var o in r)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(o);i("671c");var u=i("828b"),c=Object(u["a"])(r["default"],n["b"],n["c"],!1,null,"465c4c2d",null,!1,n["a"],void 0);e["default"]=c.exports},e4ae:function(t,e,i){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/productWindow/index-create-component',
    {
        'components/productWindow/index-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("b617"))
        })
    },
    [['components/productWindow/index-create-component']]
]);
