You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
3.8 KiB
10 lines
3.8 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/productWindow/index"],{"6e75":function(t,e,r){"use strict";r.d(e,"b",(function(){return u})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){}));var u=function(){var t=this,e=t.$createElement,r=(t._self._c,t.$t("¥")),u=t.is_vip>0&&t.attr.productSelect.vip_price?t.$t("¥"):null,i=t.isShow&&!t.type?t.$t("库存"):null,a=t.limitNum&&t.type?t.$t("库存"):null,n=t.__map(t.attr.productAttr,(function(e,r){var u=t.__get_orig(e),i=t.$t(e.attr_name),a=t.__map(e.attr_value,(function(e,r){var u=t.__get_orig(e),i=t.$t(e.attr);return{$orig:u,m5:i}}));return{$orig:u,m4:i,l0:a}})),c=t.is_virtual?null:t.$t("数量"),o=t.is_virtual||!t.limitNum||t.type?null:t.$t("限购"),l=!t.is_virtual&&t.minQty>1?t.$t("起购"):null,s=t.iSbnt&&t.attr.productSelect.product_stock>0&&t.attr.productSelect.quota>0?t.$t("我要参团"):null,d=t.iSbnt&&t.attr.productSelect.product_stock>0&&t.attr.productSelect.quota>0||!(t.iSbnt&&t.attr.productSelect.quota<=0||t.iSbnt&&t.attr.productSelect.product_stock<=0)?null:t.$t("已售罄"),m=t.iScart&&t.attr.productSelect.stock?t.$t("确定"):null,p=t.iScart&&t.attr.productSelect.stock||!t.iScart||t.attr.productSelect.stock?null:t.$t("已售罄");t.$mp.data=Object.assign({},{$root:{m0:r,m1:u,m2:i,m3:a,l1:n,m6:c,m7:o,m8:l,m9:s,m10:d,m11:m,m12:p}})},i=[]},"8c2a":function(t,e,r){},d91a:function(t,e,r){"use strict";(function(t){var u=r("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=u(r("66ca")),a={mixins:[i.default],props:{attr:{type:Object,default:function(){}},limitNum:{type:Number,value:0},minQty:{type:Number,value:0},isShow:{type:Number,value:0},iSbnt:{type:Number,value:0},iSplus:{type:Number,value:0},iScart:{type:Number,value:0},is_vip:{type:Number,value:0},is_virtual:{type:Number,value:0},type:{type:String,default:""},unitName:{type:String,default:""}},data:function(){return{}},mounted:function(){},methods:{getpreviewImage:function(){t.previewImage({urls:this.attr.productSelect.image.split(","),current:this.attr.productSelect.image})},goCat:function(){this.$emit("goCat")},bindCode:function(t){this.$emit("iptCartNum",t)},closeAttr:function(){this.$emit("myevent")},CartNumDes:function(){this.$emit("ChangeCartNum",!1)},CartNumAdd:function(){this.$emit("ChangeCartNum",!0)},tapAttr:function(t,e){this.$emit("attrVal",{indexw:t,indexn:e}),this.$set(this.attr.productAttr[t],"index",this.attr.productAttr[t].attr_values[e]);var r=this.getCheckedValue().join(",");this.$emit("ChangeAttr",r),1==this.limitNum&&(this.attr.productSelect.quota>0?this.attr.productSelect.cart_num=1:this.attr.productSelect.cart_num=0)},getCheckedValue:function(){for(var t=this.attr.productAttr,e=[],r=0;r<t.length;r++)for(var u=0;u<t[r].attr_values.length;u++)t[r].index===t[r].attr_values[u]&&e.push(t[r].attr_values[u]);return e},showImg:function(){this.$emit("getImg")}}};e.default=a}).call(this,r("543d")["default"])},e089:function(t,e,r){"use strict";r.r(e);var u=r("d91a"),i=r.n(u);for(var a in u)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return u[t]}))}(a);e["default"]=i.a},e642:function(t,e,r){"use strict";r.r(e);var u=r("6e75"),i=r("e089");for(var a in i)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(a);r("fd93");var n=r("f0c5"),c=Object(n["a"])(i["default"],u["b"],u["c"],!1,null,"64870282",null,!1,u["a"],void 0);e["default"]=c.exports},fd93:function(t,e,r){"use strict";var u=r("8c2a"),i=r.n(u);i.a}}]);
|
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
|
'components/productWindow/index-create-component',
|
|
{
|
|
'components/productWindow/index-create-component':(function(module, exports, __webpack_require__){
|
|
__webpack_require__('543d')['createComponent'](__webpack_require__("e642"))
|
|
})
|
|
},
|
|
[['components/productWindow/index-create-component']]
|
|
]);
|
|
|