(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/app-recommended-product/app-recommended-product-list"],{1809:function(t,e,n){"use strict";var o=n("cb63"),r=n.n(o);r.a},"751a":function(t,e,n){"use strict";n.r(e);var o=n("ff48"),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},"7fba":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return o}));var r=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.catList,(function(e,n){var o=t.__get_orig(e),r=t.getLength(e.goodsList);return{$orig:o,m0:r}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},u=[]},8456:function(t,e,n){"use strict";n.r(e);var o=n("7fba"),r=n("751a");for(var u in r)"default"!==u&&function(t){n.d(e,t,(function(){return r[t]}))}(u);n("1809");var i,a=n("f0c5"),c=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],i);e["default"]=c.exports},cb63:function(t,e,n){},ff48: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){i(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 i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=function(){n.e("components/page-component/app-attr/app-attr").then(function(){return resolve(n("0e1c"))}.bind(null,n)).catch(n.oe)},c={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""}},showGoodsTag:{type:Boolean,default:function(){return!0}},showGoodsName:{type:Boolean,default:function(){return!0}},buttonColor:{type:String,default:function(){return""}},theme:String},computed:u(u(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":a}};e.default=c}).call(this,n("543d")["default"])}}]);
;(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__("8456"))
        })
    },
    [['components/page-component/app-recommended-product/app-recommended-product-list-create-component']]
]);
