| 12345678910 |
- require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["subpackage/diyComponents/goodList"],{"08f4":function(t,e,n){"use strict";n.r(e);var o=n("34d9"),i=n.n(o);for(var l in o)["default"].indexOf(l)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(l);e["default"]=i.a},"1dd4":function(t,e,n){"use strict";n.r(e);var o=n("2ae6"),i=n("08f4");for(var l in i)["default"].indexOf(l)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(l);n("fd1a");var a=n("828b"),r=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=r.exports},"2ae6":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return o}));var o={easyLoadimage:function(){return n.e("components/easy-loadimage/easy-loadimage").then(n.bind(null,"9e02"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__get_style([t.bgRadius])),o=t.headerText||t.headerImg?t.__get_style([t.headerBoxStyle]):null,i=(t.headerText||t.headerImg)&&0==t.headerType?t.__get_style([t.titleTextStyle]):null,l=(t.headerText||t.headerImg)&&0!=t.headerType?t.__get_style([t.titleImgBoxStyle]):null,a=(t.headerText||t.headerImg)&&0!=t.headerType&&t.headerImg?t.__get_style([t.titleImgStyle]):null,r=t.tempArr.length,s=r>0&&0==t.styleConfig?t.__map(t.tempArr,(function(e,n){var o=t.__get_orig(e),i=t.__get_style([t.bgColor,t.bgRadius]),l=t.checkboxInfo.includes(0),a=l?t.__get_style([t.productStyle]):null,r=t.checkboxInfo.includes(1)&&e.label_list&&e.label_list.length,s=t.onlyShowPrice&&!t.showBtn&&0==t.btnStyle?t.__get_style([t.btnBgColor]):null,c=t.onlyShowPrice&&!t.showBtn&&0==t.btnStyle?t.$t("购买"):null,g=t.onlyShowPrice&&!t.showBtn&&0!=t.btnStyle&&1==t.btnStyle?t.__get_style([t.btnTextColor]):null,h=t.onlyShowPrice&&!t.showBtn&&0!=t.btnStyle&&1!=t.btnStyle?t.__get_style([t.btnTextColor]):null,u=t.onlyShowPrice?null:t.checkboxInfo.includes(2),d=t.onlyShowPrice?null:Number(e.vip_price)>0&&t.checkboxInfo.includes(5),f=!t.onlyShowPrice&&d?t.$t("¥"):null,y=t.onlyShowPrice?null:t.checkboxInfo.includes(3),b=!t.onlyShowPrice&&y?t.__get_style([t.uniStyle]):null,_=!t.onlyShowPrice&&y?t.$t("已售"):null,C=t.onlyShowPrice?null:t.checkboxInfo.includes(4),p=t.onlyShowPrice||t.showBtn||0!=t.btnStyle?null:t.__get_style([t.btnBgColor]),m=t.onlyShowPrice||t.showBtn||0!=t.btnStyle?null:t.$t("购买"),S=t.onlyShowPrice||t.showBtn||0==t.btnStyle||1!=t.btnStyle?null:t.__get_style([t.btnTextColor]),x=t.onlyShowPrice||t.showBtn||0==t.btnStyle||1==t.btnStyle?null:t.__get_style([t.btnTextColor]);return{$orig:o,s5:i,g1:l,s6:a,g2:r,s7:s,m0:c,s8:g,s9:h,g3:u,m1:d,m2:f,g4:y,s10:b,m3:_,g5:C,s11:p,m4:m,s12:S,s13:x}})):null,c=r>0&&1==t.goodStyleConfig?t.leftList.length:null,g=r>0&&1==t.goodStyleConfig&&c?t.__map(t.leftList,(function(e,n){var o=t.__get_orig(e),i=t.__get_style([t.bgColor,t.bgRadius]),l=t.__get_style([t.bgRadius2]),a=t.checkboxInfo.includes(0),r=a?t.__get_style([t.productStyle]):null,s=t.checkboxInfo.includes(1)&&e.label_list&&e.label_list.length,c=t.onlyShowPrice&&!t.showBtn&&0==t.btnStyle?t.__get_style([t.btnTextColor]):null,g=t.onlyShowPrice&&!t.showBtn&&0!=t.btnStyle?t.__get_style([t.btnTextColor]):null,h=t.onlyShowPrice?null:t.checkboxInfo.includes(2),u=t.onlyShowPrice?null:Number(e.vip_price)>0&&t.checkboxInfo.includes(5),d=!t.onlyShowPrice&&u?t.$t("¥"):null,f=t.onlyShowPrice?null:t.checkboxInfo.includes(3),y=!t.onlyShowPrice&&f?t.__get_style([t.uniStyle]):null,b=!t.onlyShowPrice&&f?t.$t("已售"):null,_=t.onlyShowPrice||t.showBtn||0!=t.btnStyle?null:t.__get_style([t.btnTextColor]),C=t.onlyShowPrice||t.showBtn||0==t.btnStyle?null:t.__get_style([t.btnTextColor]);return{$orig:o,s14:i,s15:l,g7:a,s16:r,g8:s,s17:c,s18:g,g9:h,m5:u,m6:d,g10:f,s19:y,m7:b,s20:_,s21:C}})):null,h=r>0&&1==t.goodStyleConfig?t.rightList.length:null,u=r>0&&1==t.goodStyleConfig&&h?t.__map(t.rightList,(function(e,n){var o=t.__get_orig(e),i=t.__get_style([t.bgColor,t.bgRadius]),l=t.__get_style([t.bgRadius2]),a=t.checkboxInfo.includes(0),r=a?t.__get_style([t.productStyle]):null,s=t.checkboxInfo.includes(1)&&e.label_list&&e.label_list.length,c=t.onlyShowPrice&&!t.showBtn&&0==t.btnStyle?t.__get_style([t.btnTextColor]):null,g=t.onlyShowPrice&&!t.showBtn&&0!=t.btnStyle?t.__get_style([t.btnTextColor]):null,h=t.onlyShowPrice?null:t.checkboxInfo.includes(2),u=t.onlyShowPrice?null:Number(e.vip_price)>0&&t.checkboxInfo.includes(5),d=!t.onlyShowPrice&&u?t.$t("¥"):null,f=t.onlyShowPrice?null:t.checkboxInfo.includes(3),y=!t.onlyShowPrice&&f?t.__get_style([t.uniStyle]):null,b=!t.onlyShowPrice&&f?t.$t("已售"):null,_=t.onlyShowPrice||t.showBtn||0!=t.btnStyle?null:t.__get_style([t.btnTextColor]),C=t.onlyShowPrice||t.showBtn||0==t.btnStyle?null:t.__get_style([t.btnTextColor]);return{$orig:o,s22:i,s23:l,g12:a,s24:r,g13:s,s25:c,s26:g,g14:h,m8:u,m9:d,g15:f,s27:y,m10:b,s28:_,s29:C}})):null,d=r>0&&3==t.goodStyleConfig?t.__get_style([t.bgRadius,t.bgColor]):null,f=r>0&&3==t.goodStyleConfig?t.__map(t.tempArr,(function(e,n){var o=t.__get_orig(e),i=t.__get_style([t.bgRadius]),l=t.checkboxInfo.includes(0),a=l?t.__get_style([t.productStyle]):null,r=t.checkboxInfo.includes(2);return{$orig:o,s31:i,g16:l,s32:a,g17:r}})):null,y=r>0&&2==t.goodStyleConfig?t.__get_style([t.bgColor,t.bgRadius]):null,b=r>0&&2==t.goodStyleConfig?t.__map(t.tempArr,(function(e,n){var o=t.__get_orig(e),i=t.__get_style([t.bgRadius]),l=t.checkboxInfo.includes(0),a=l?t.__get_style([t.productStyle]):null,r=t.checkboxInfo.includes(2),s=t.showBtn||0!=t.btnStyle?null:t.__get_style([t.btnTextColor]),c=t.showBtn||0==t.btnStyle?null:t.__get_style([t.btnTextColor]);return{$orig:o,s34:i,g18:l,s35:a,g19:r,s36:s,s37:c}})):null,_=r>0&&4==t.goodStyleConfig?t.__map(t.tempArr,(function(e,n){var o=t.__get_orig(e),i=t.__get_style([t.bgColor,t.bgRadius]),l=t.checkboxInfo.includes(0),a=l?t.__get_style([t.productStyle]):null,r=t.checkboxInfo.includes(1)&&e.label_list&&e.label_list.length,s=t.onlyShowPrice&&!t.showBtn&&0==t.btnStyle?t.__get_style([t.btnBgColor]):null,c=t.onlyShowPrice&&!t.showBtn&&0==t.btnStyle?t.$t("购买"):null,g=t.onlyShowPrice&&!t.showBtn&&0!=t.btnStyle&&1==t.btnStyle?t.__get_style([t.btnTextColor]):null,h=t.onlyShowPrice&&!t.showBtn&&0!=t.btnStyle&&1!=t.btnStyle?t.__get_style([t.btnTextColor]):null,u=t.onlyShowPrice?null:t.checkboxInfo.includes(2),d=t.onlyShowPrice?null:Number(e.vip_price)>0&&t.checkboxInfo.includes(5),f=!t.onlyShowPrice&&d?t.$t("¥"):null,y=t.onlyShowPrice?null:t.checkboxInfo.includes(3),b=!t.onlyShowPrice&&y?t.__get_style([t.uniStyle]):null,_=!t.onlyShowPrice&&y?t.$t("已售"):null,C=t.onlyShowPrice?null:t.checkboxInfo.includes(4),p=!t.onlyShowPrice&&C?t.$t("评分"):null,m=t.onlyShowPrice||t.showBtn||0!=t.btnStyle?null:t.__get_style([t.btnBgColor]),S=t.onlyShowPrice||t.showBtn||0!=t.btnStyle?null:t.$t("购买"),x=t.onlyShowPrice||t.showBtn||0==t.btnStyle||1!=t.btnStyle?null:t.__get_style([t.btnTextColor]),v=t.onlyShowPrice||t.showBtn||0==t.btnStyle||1==t.btnStyle?null:t.__get_style([t.btnTextColor]);return{$orig:o,s38:i,g20:l,s39:a,g21:r,s40:s,m11:c,s41:g,s42:h,g22:u,m12:d,m13:f,g23:y,s43:b,m14:_,g24:C,m15:p,s44:m,m16:S,s45:x,s46:v}})):null,C=r>0&&5==t.goodStyleConfig?t.__get_style([t.bgRadius,t.bgColor]):null,p=r>0&&5==t.goodStyleConfig?t.__map(t.tempArr,(function(e,n){var o=t.__get_orig(e),i=t.__get_style([t.bgRadius]),l=t.checkboxInfo.includes(0),a=l?t.__get_style([t.productStyle]):null,r=t.checkboxInfo.includes(2),s=t.showBtn||0!=t.btnStyle?null:t.__get_style([t.btnTextColor]),c=t.showBtn||0==t.btnStyle?null:t.__get_style([t.btnTextColor]);return{$orig:o,s48:i,g25:l,s49:a,g26:r,s50:s,s51:c}})):null;t.$mp.data=Object.assign({},{$root:{s0:n,s1:o,s2:i,s3:l,s4:a,g0:r,l0:s,g6:c,l1:g,g11:h,l2:u,s30:d,l3:f,s33:y,l4:b,l5:_,s47:C,l6:p}})},l=[]},"34d9":function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("7ca3")),l=n("8ede"),a=o(n("a81a")),r=(n("23a8"),n("8f59")),s=n("c28d"),c=n("8633");function g(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 h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){(0,i.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var u={name:"goodList",components:{productWindow:function(){n.e("components/productWindow/index").then(function(){return resolve(n("ba74"))}.bind(null,n)).catch(n.oe)},commonWrapper:function(){n.e("subpackage/diyComponents/commonWrapper").then(function(){return resolve(n("11450"))}.bind(null,n)).catch(n.oe)}},props:{dataConfig:{type:Object,default:function(){}},list:{type:Array,default:function(){return[]}},isSortType:{type:String|Number,default:0}},mixins:[a.default],data:function(){return{tempArr:[],type:0,attr:{cartAttr:!1,productAttr:[],productSelect:{}},id:0,productValue:[],attrValue:"",storeName:"",storeInfo:{},allList:[],leftList:[],rightList:[],mark:0,boxHeight:[]}},watch:{list:{handler:function(t){t&&t.length&&(this.tempArr=t)},deep:!0},tempArr:{handler:function(t,e){var n=this;(!this.tempArr.length||this.tempArr.length===this.updateNum&&this.tempArr.length<=this.allList.length)&&(this.allList=[],this.leftList=[],this.rightList=[],this.boxHeight=[],this.mark=0),this.tempArr.length&&(this.allList=this.tempArr,this.leftList=[],this.rightList=[],this.boxHeight=[],this.allList.forEach((function(t,e){(n.allList.length<3||n.allList.length<=7&&n.allList.length-e>1||n.allList.length>7&&n.allList.length-e>2)&&(e%2?n.rightList.push(t):n.leftList.push(t))})),this.allList.length<3?this.mark=this.allList.length+1:this.allList.length<=7?this.mark=this.allList.length-1:this.mark=this.allList.length-2,this.mark<this.allList.length&&this.waterFall())},immediate:!0,deep:!0},mark:function(){var t=this.allList.length;this.mark<t&&0!==this.mark&&this.boxHeight.length&&this.waterFall()},dataConfig:function(){this.productslist()}},computed:h(h(h({},(0,r.mapState)({cartNum:function(t){return t.indexData.cartNum}})),(0,r.mapGetters)(["isLogin","uid","cartNum"])),{},{showHeader:function(){return!0},headerType:function(){return this.dataConfig.headerType?this.dataConfig.headerType.tabVal:0},headerText:function(){return this.dataConfig.headerText?this.dataConfig.headerText.value:""},headerImg:function(){return this.dataConfig.headerImg?this.dataConfig.headerImg.url:""},headerBoxStyle:function(){var t=this.dataConfig.headerAlign?["left","center","right"][this.dataConfig.headerAlign.tabVal]:"left";return{"text-align":t,"margin-bottom":"20rpx",padding:"0 20rpx"}},titleTextStyle:function(){var t=this.dataConfig.headerAlign?["left","center","right"][this.dataConfig.headerAlign.tabVal]:"left",e=this.dataConfig.headerColor&&this.dataConfig.headerColor.color&&this.dataConfig.headerColor.color[0]?this.dataConfig.headerColor.color[0].item:"#333",n=this.dataConfig.headerFontSize?2*this.dataConfig.headerFontSize.val+"rpx":"32rpx",o=this.dataConfig.headerTextConfig&&0==this.dataConfig.headerTextConfig.tabVal?"bold":"normal",i=this.dataConfig.headerTextConfig&&2==this.dataConfig.headerTextConfig.tabVal?"italic":"normal";return{color:e,"font-size":n,"font-weight":o,"font-style":i,"text-align":t}},titleImgBoxStyle:function(){var t=this.dataConfig.headerAlign?["left","center","right"][this.dataConfig.headerAlign.tabVal]:"left";return{"text-align":t}},titleImgStyle:function(){return{height:"auto",display:"inline-block"}},configData:function(){return h({},this.dataConfig)},bgRadius:function(){var t="".concat(2*this.dataConfig.fillet.val,"rpx");return this.dataConfig.fillet.type&&(t="".concat(2*this.dataConfig.fillet.valList[0].val,"rpx ").concat(2*this.dataConfig.fillet.valList[1].val,"rpx ").concat(2*this.dataConfig.fillet.valList[3].val,"rpx ").concat(2*this.dataConfig.fillet.valList[2].val,"rpx")),{borderRadius:t}},bgRadius2:function(){var t="0 0 ".concat(2*this.dataConfig.fillet.val,"rpx ").concat(2*this.dataConfig.fillet.val,"rpx");return this.dataConfig.fillet.type&&(t="0 0 ".concat(2*this.dataConfig.fillet.valList[3].val,"rpx ").concat(2*this.dataConfig.fillet.valList[2].val,"rpx")),{borderRadius:t}},bgColor:function(){var t=this.dataConfig.moduleColor&&this.dataConfig.moduleColor.color?this.dataConfig.moduleColor.color[0].item:"#F5F5F5",e=this.dataConfig.moduleColor&&this.dataConfig.moduleColor.color?this.dataConfig.moduleColor.color[1].item:"#F5F5F5";return{background:"linear-gradient(90deg,".concat(t," 0%,").concat(e," 100%)")}},styleConfig:function(){return this.dataConfig.styleConfig.tabVal},imgStyle:function(){var t="".concat(2*this.dataConfig.filletImg.val,"rpx");1==this.dataConfig.styleConfig.tabVal&&(t="".concat(2*this.dataConfig.filletImg.val,"rpx ").concat(2*this.dataConfig.filletImg.val,"rpx 0 0")),this.dataConfig.filletImg.type&&(t="".concat(2*this.dataConfig.filletImg.valList[0].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[1].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[3].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[2].val,"rpx"),1==this.dataConfig.styleConfig.tabVal&&(t="".concat(2*this.dataConfig.filletImg.valList[0].val,"rpx ").concat(2*this.dataConfig.filletImg.valList[1].val,"rpx 0 0")));var e="".concat(2*this.dataConfig.fillet.val,"rpx ").concat(2*this.dataConfig.fillet.val,"rpx 0 0");return this.dataConfig.fillet.type&&(e="".concat(2*this.dataConfig.fillet.valList[0].val,"rpx ").concat(2*this.dataConfig.fillet.valList[1].val,"rpx 0 0")),"promotionList"==this.dataConfig.name?e:t},productStyle:function(){return{color:this.dataConfig.goodsNameColor.color[0].item,fontWeight:this.dataConfig.goodsName.tabVal?"normal":"bold"}},checkboxInfo:function(){return this.dataConfig.checkboxInfo.type},priceColor:function(){return this.dataConfig.toneCartConfig.tabVal?this.dataConfig.goodsPriceColor.color[0].item:"var(--view-theme)"},otPriceColor:function(){return this.dataConfig.goodsPriceColor.color[0].item},btnStyle:function(){return this.dataConfig.bntStyleConfig.tabVal},showBtn:function(){return this.dataConfig.cartConfig.tabVal},btnBgColor:function(){return{background:this.dataConfig.toneConfig.tabVal?"linear-gradient(90deg,".concat(this.dataConfig.bntBgColor.color[0].item," 0%,").concat(this.dataConfig.bntBgColor.color[1].item," 100%)"):"linear-gradient(90deg, var(--view-theme) 0%, var(--view-gradient) 100%)"}},btnTextColor:function(){return{color:"#FFFFFF",background:this.dataConfig.toneCartConfig.tabVal?"linear-gradient(90deg, ".concat(this.dataConfig.bntBgColor.color[0].item," 0%, ").concat(this.dataConfig.bntBgColor.color[1].item," 100%)"):"linear-gradient(90deg, var(--view-theme) 0%, var(--view-gradient) 100%)"}},uniStyle:function(){return{color:this.dataConfig.toneConfig.tabVal&&this.dataConfig.soldNumColor.color[0].item||"#999"}},numberConfig:function(){return this.dataConfig.numberConfig.val},goodStyleConfig:function(){return this.dataConfig.styleConfig.tabVal},goodsSort:function(){return this.dataConfig.goodsSort.tabVal},typeConfig:function(){return this.dataConfig.typeConfig.activeValue},bntConfig:function(){return this.dataConfig.bntConfig.tabVal},onlyShowPrice:function(){return"0,2"==this.checkboxInfo.toString()||"2,0"==this.checkboxInfo.toString()||"2"==this.checkboxInfo.toString()}}),created:function(){},mounted:function(){this.productslist()},methods:{observeVideo:function(){var e=this,n=t.createIntersectionObserver(this,{observeAll:!0});n.relativeToViewport().observe(".video",(function(n){n.intersectionRatio?t.createVideoContext(n.id,e).play():t.createVideoContext(n.id,e).pause()}))},productslist:function(){var t=this;if(this.list&&this.list.length)this.tempArr=this.list;else{this.$config.LIMIT;var e={};if(1==this.typeConfig){var n=this.dataConfig.goodsList.list||[],o=n.map((function(t){return t.id})).filter(Boolean).join(",");if(!o)return void(this.tempArr=[]);e={ids:o}}else 3==this.typeConfig?e={priceOrder:2==this.goodsSort?"desc":"",salesOrder:1==this.goodsSort?"desc":"",cate_id:this.dataConfig.classList.classVal?this.dataConfig.classList.classVal.join(","):"",limit:this.numberConfig}:4==this.typeConfig&&(e={priceOrder:2==this.goodsSort?"desc":"",salesOrder:1==this.goodsSort?"desc":"",store_label_id:this.dataConfig.goodsLabel.activeValue?this.dataConfig.goodsLabel.activeValue.join(","):"",limit:this.numberConfig});(0,l.getProductslist)(e).then((function(e){t.tempArr=e.data}))}},goDetail:function(e){(0,c.goShopDetail)(e,this.$store.state.app.uid).then((function(n){t.navigateTo({url:"/pages/goods_details/index?id=".concat(e.id)})}))},getAttrs:function(t){var e=this;(0,l.getAttr)(t,0).then((function(t){e.$set(e.attr,"productAttr",t.data.productAttr),e.$set(e,"productValue",t.data.productValue),e.$set(e,"storeInfo",t.data.storeInfo),e.DefaultSelect()}))},addCartChange:function(t,e){1==this.bntConfig?t.spec_type?this.goCartDuo(t):this.goCartDan(t,e):this.goDetail(t)},getCartNum:function(){var t=this;(0,s.getCartCounts)().then((function(e){t.$store.commit("indexData/setCartNum",e.data.count)}))},waterFall:function(){var t=this.mark;if(0==t)this.leftList.push(this.allList[t]),this.getViewHeight(0);else if(1==t)this.rightList.push(this.allList[t]),this.getViewHeight(1);else{if(this.boxHeight.length){var e=this.boxHeight[0]>this.boxHeight[1]?1:0;e?this.rightList.push(this.allList[t]):this.leftList.push(this.allList[t])}else this.rightList.length<this.leftList.length?this.rightList.push(this.allList[t]):this.leftList.push(this.allList[t]);this.getViewHeight()}},getViewHeight:function(){var e=this;this.$nextTick((function(){setTimeout((function(){t.createSelectorQuery().in(e).select("#right").boundingClientRect((function(n){n&&(e.boxHeight[1]=n.height),t.createSelectorQuery().in(e).select("#left").boundingClientRect((function(t){t&&(e.boxHeight[0]=t.height),e.mark=e.mark+1})).exec()})).exec()}),100)}))}}};e.default=u}).call(this,n("df3c")["default"])},c2b7:function(t,e,n){},fd1a:function(t,e,n){"use strict";var o=n("c2b7"),i=n.n(o);i.a}}]);
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'subpackage/diyComponents/goodList-create-component',
- {
- 'subpackage/diyComponents/goodList-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('df3c')['createComponent'](__webpack_require__("1dd4"))
- })
- },
- [['subpackage/diyComponents/goodList-create-component']]
- ]);
|