|
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/Recommend"],{"1c0a":function(n,t,o){"use strict";var e;o.d(t,"b",(function(){return a})),o.d(t,"c",(function(){return u})),o.d(t,"a",(function(){return e}));var a=function(){var n=this,t=n.$createElement;n._self._c},u=[]},"481e":function(n,t,o){"use strict";o.r(t);var e=o("1c0a"),a=o("4a09");for(var u in a)"default"!==u&&function(n){o.d(t,n,(function(){return a[n]}))}(u);var c,i=o("f0c5"),d=Object(i["a"])(a["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],c);t["default"]=d.exports},"4a09":function(n,t,o){"use strict";o.r(t);var e=o("5843"),a=o.n(e);for(var u in e)"default"!==u&&function(n){o.d(t,n,(function(){return e[n]}))}(u);t["default"]=a.a},5843:function(n,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=o("fc49"),a=function(){o.e("components/Loading").then(function(){return resolve(o("df82"))}.bind(null,o)).catch(o.oe)},u={name:"Recommend",props:{recommendLoading:Boolean},components:{Loading:a},watch:{recommendLoading:function(n){n&&this.hostProducts()}},data:function(){return{hostProduct:[],page:1,limit:20,loadTitle:"",loading:!1,loadend:!1}},mounted:function(){this.hostProducts()},methods:{routerGo:function(n){this.$yrouter.push({path:"/pages/shop/GoodsCon/index",query:{id:n.id}})},hostProducts:function(){var n=this,t=this;t.loading||t.loadend||(t.loading=!0,(0,e.getHostProducts)(t.page,t.limit).then((function(o){t.loading=!1,t.hostProduct.push.apply(t.hostProduct,o.data),t.loadend=o.data.length<t.limit,t.page=t.page+1,n.$emit("changeRecommendLoading",!1)})))}}};t.default=u}}]);
|