(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/ns-goods-recommend/ns-goods-recommend"],{"0091":function(t,n,e){"use strict";e.r(n);var o=e("01de"),i=e.n(o);for(var s in o)"default"!==s&&function(t){e.d(n,t,(function(){return o[t]}))}(s);n["default"]=i.a},"01de":function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("4c22"));function i(t){return t&&t.__esModule?t:{default:t}}var s=function(){e.e("components/ns-loading/ns-loading").then(function(){return resolve(e("b14a"))}.bind(null,e)).catch(e.oe)},a=function(){Promise.all([e.e("common/vendor"),e.e("components/ns-goods-item/ns-goods-item-row")]).then(function(){return resolve(e("7c7c"))}.bind(null,e)).catch(e.oe)},u={name:"ns-goods-recommend",components:{nsLoading:s,nsGoodsItemRow:a},data:function(){return{list:[],page:1,isAll:!0,isClick:!0,showLoading:!1}},mixins:[o.default],props:{isLike:{type:Boolean,default:!0},size:{type:[Number,String],default:10},auto:{type:Boolean,default:!0},load:{type:Boolean,default:!0}},mounted:function(){this.auto&&this.getLikeList()},methods:{init:function(){this.list=[],this.page=1},toDetail:function(t){var n={sku_id:t.sku_id};this.$util.redirectTo("/pages/goods/detail/detail",n)},getLikeList:function(t){var n=this,e=this;if(this.isClick&&this.isAll)return this.isClick=!1,this.page>1&&(this.showLoading=!0),new Promise((function(o,i){e.$api.sendRequest({url:"/api/goodssku/recommend",data:{page:n.page,page_size:n.auto?n.size:t},success:function(t){n.showLoading=!1,n.isClick=!0,0==t.code&&(1==n.page&&(n.list=[]),n.list=n.list.concat(t.data.list),n.list.length==t.data.count&&(n.isAll=!1),n.page+=1,o(t.data.list))}})}))},imageError:function(t){this.list[t].sku_image=this.$util.getDefaultImage().default_goods_img,this.$forceUpdate()}}};n.default=u},"3ccb":function(t,n,e){"use strict";var o={nsLoading:function(){return e.e("components/ns-loading/ns-loading").then(e.bind(null,"b14a"))}},i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.$lang("common.goodsRecommendTitle"));t.$mp.data=Object.assign({},{$root:{m0:e}})},s=[];e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return s})),e.d(n,"a",(function(){return o}))},"89cf":function(t,n,e){},cb14:function(t,n,e){"use strict";var o=e("89cf"),i=e.n(o);i.a},ebb8:function(t,n,e){"use strict";e.r(n);var o=e("3ccb"),i=e("0091");for(var s in i)"default"!==s&&function(t){e.d(n,t,(function(){return i[t]}))}(s);e("cb14");var a,u=e("f0c5"),c=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],a);n["default"]=c.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/ns-goods-recommend/ns-goods-recommend-create-component',
    {
        'components/ns-goods-recommend/ns-goods-recommend-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("ebb8"))
        })
    },
    [['components/ns-goods-recommend/ns-goods-recommend-create-component']]
]);
