(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/page-component/app-recommended-product/app-recommended-product-list"],{"0627":function(t,e,o){"use strict";var n=o("c72a"),r=o.n(n);r.a},"638a":function(t,e,o){"use strict";var n;o.d(e,"b",(function(){return r})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){return n}));var r=function(){var t=this,e=t.$createElement,o=(t._self._c,t.__map(t.catList,(function(e,o){var n=t.__get_orig(e),r=t.getLength(e.goodsList),i=t.isShowOriginalPrice(t.goods);return{$orig:n,m0:r,m1:i}})));t.$mp.data=Object.assign({},{$root:{l0:o}})},i=[]},b3ef:function(t,e,o){"use strict";o.r(e);var n=o("ece7"),r=o.n(n);for(var i in n)"default"!==i&&function(t){o.d(e,t,(function(){return n[t]}))}(i);e["default"]=r.a},c72a:function(t,e,o){},ece7:function(t,e,o){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o("2f62");function r(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function i(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?r(Object(o),!0).forEach((function(e){a(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function a(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var c=function(){Promise.all([o.e("common/vendor"),o.e("components/page-component/app-attr/app-attr")]).then(function(){return resolve(o("8b0c"))}.bind(null,o)).catch(o.oe)},u={name:"app-recommended-product-list",data:function(){return{scrollIndex:0,height:0,activeIndex:0,cartIndex:-1,show:!1,selectAttr:{},goods:{},disableColor:"#999999",disable:"disable",attrGoods:{goods:{},attrShow:0}}},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:Object,isUnderLinePrice:{type:Boolean,default:function(){return!1}},isBuy:{type:Boolean,default:!0},isShowAttr:{type:Boolean,default:!1},tagColor:{type:String},catSelectedColor:{type:String},catUnselectedColor:{type:String},catBgColor:{type:String}},computed:i(i(i({},(0,n.mapState)({appImg:function(t){return t.mallConfig.__wxapp_img.mall},appSetting:function(t){return t.mallConfig.mall.setting},platform:function(t){return t.gConfig.systemInfo.platform}})),(0,n.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},disableBtnStyle:function(){var t="";return 1===this.buyBtnStyle||3===this.buyBtnStyle?t+="background-color: ".concat(this.disableColor,";color: #ffffff;"):t+="border-color: ".concat(this.disableColor,";color: ").concat(this.disableColor,";"),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(e){var o=this;this.isBuy?this.isShowAttr?(this.attrGoods.goods=e,this.attrGoods.attrShow=Math.random()):(t.showLoading({text:"",mask:!0}),this.$request({url:this.$api.goods.attr,data:{id:e.id,mch_id:e.mch_id}}).then((function(n){if(t.hideLoading(),0===n.code){var r=Object.assign(e,n.data);o.$emit("buyProduct",{goods:r,attrShow:Math.random()})}else t.showToast({title:n.msg,icon:"none"})}))):this.jump_router(e)},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})},isShowOriginalPrice:function(t){return this.isUnderLinePrice&&1!==t.is_negotiable?1:0}},components:{"app-attr":c}};e.default=u}).call(this,o("543d")["default"])},f7ec:function(t,e,o){"use strict";o.r(e);var n=o("638a"),r=o("b3ef");for(var i in r)"default"!==i&&function(t){o.d(e,t,(function(){return r[t]}))}(i);o("0627");var a,c=o("f0c5"),u=Object(c["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],a);e["default"]=u.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__("f7ec"))
        })
    },
    [['components/page-component/app-recommended-product/app-recommended-product-list-create-component']]
]);
