(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/app-recommended-product/app-recommended-product-list"],{"35f8":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("2f62");function r(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 u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=function(){Promise.all([n.e("common/vendor"),n.e("components/page-component/app-attr/app-attr")]).then(function(){return resolve(n("4761"))}.bind(null,n)).catch(n.oe)},c=function(){n.e("components/page-component/app-member-mark/app-member-price").then(function(){return resolve(n("5f38"))}.bind(null,n)).catch(n.oe)},f=function(){n.e("components/page-component/app-sup-vip/app-sup-vip").then(function(){return resolve(n("a387"))}.bind(null,n)).catch(n.oe)},s={name:"app-recommended-product-list",data:function(){return{scrollIndex:0,height:0,activeIndex:0,cartIndex:-1,show:!1,selectAttr:{},goods:{}}},props:{catList:{type:Array,default:function(){return[]}},fill:{type:Number,default:function(){return 1}},buyBtnText:{type:String,default:function(){return"购买放电"}},buyBtnStyle:{type:Number,default:function(){return 4}},showBuyBtn:{type:Boolean,default:function(){return!0}},showGoodsPrice:{type:Boolean,default:function(){return!0}},buyBtn:{type:String,default:function(){return"cart"}},goodsStyle:{type:Number,default:function(){return 1}},goodsTagPicUrl:{type:String,default:function(){return"https://www.bangdian.net/plugins/diy/assets/images/goods-tag-rx.png"}},showGoodsTag:{type:Boolean,default:function(){return!0}},showGoodsName:{type:Boolean,default:function(){return!0}},buttonColor:{type:String,default:function(){return"#ff4544"}}},computed:u({},(0,o.mapState)({appImg:function(t){return t.mallConfig.__wxapp_img.mall},appSetting:function(t){return t.mallConfig.mall.setting}}),{},(0,o.mapGetters)("mallConfig",{getVideo:"getVideo"}),{btnStyle:function(){var t="";return 1===this.buyBtnStyle||3===this.buyBtnStyle?t+="background-color: ".concat(this.buttonColor,";color: #ffffff;"):t+="border-color: ".concat(this.buttonColor,";color: ").concat(this.buttonColor,";"),t}}),created:function(){var t=this;wx.getSystemInfo({success:function(e){t.height=750/e.windowWidth*e.windowHeight}})},methods:{getLength:function(t){return t.length-1},buyProduct:function(t){var e=this;0===t.mch_id?this.$request({url:this.$api.goods.detail,data:{id:t.id}}).then((function(t){0===t.code&&(e.goods=t.data.goods,e.show=Math.random())})):this.$request({url:this.$api.mch.goods_detail,data:{mch_id:t.mch_id,id:t.id}}).then((function(t){0===t.code&&(e.goods=t.data.goods,e.show=Math.random())}))},goClass:function(t){this.activeIndex=t},attr:function(t){},jump_router:function(e){e.video_url&&1==this.getVideo?t.navigateTo({url:"/pages/goods/video?goods_id=".concat(e.id,"&sign=").concat(e.sign)}):t.navigateTo({url:e.page_url})}},components:{"app-attr":i,"app-member-price":c,"app-sup-vip":f}};e.default=s}).call(this,n("543d")["default"])},"5f3b":function(t,e,n){},"8a0c":function(t,e,n){"use strict";n.r(e);var o=n("35f8"),r=n.n(o);for(var u in o)"default"!==u&&function(t){n.d(e,t,(function(){return o[t]}))}(u);e["default"]=r.a},"9f30":function(t,e,n){"use strict";var o=n("5f3b"),r=n.n(o);r.a},ab3c:function(t,e,n){"use strict";var o,r=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.catList,(function(e,n){var o=t.getLength(e.goodsList);return{$orig:t.__get_orig(e),m0:o}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},u=[];n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return o}))},eb39:function(t,e,n){"use strict";n.r(e);var o=n("ab3c"),r=n("8a0c");for(var u in r)"default"!==u&&function(t){n.d(e,t,(function(){return r[t]}))}(u);n("9f30");var a,i=n("f0c5"),c=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,"bfe122e2",null,!1,o["a"],a);e["default"]=c.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/page-component/app-recommended-product/app-recommended-product-list-create-component',
    {
        'components/page-component/app-recommended-product/app-recommended-product-list-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("eb39"))
        })
    },
    [['components/page-component/app-recommended-product/app-recommended-product-list-create-component']]
]);
