require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_goods_collection/index"],{"031f":function(t,e,o){"use strict";(function(t){var l=o("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,c=l(o("7ca3")),n=o("c302"),s=o("8f59"),u=o("d7f8"),a=l(o("0cf0")),d=o("9ad6"),r=(i={components:{recommend:function(){Promise.all([o.e("common/vendor"),o.e("components/recommend/index")]).then(function(){return resolve(o("492d"))}.bind(null,o)).catch(o.oe)},authorize:function(){o.e("components/Authorize").then(function(){return resolve(o("636c"))}.bind(null,o)).catch(o.oe)},home:function(){Promise.all([o.e("common/vendor"),o.e("components/home/index")]).then(function(){return resolve(o("05b1"))}.bind(null,o)).catch(o.oe)}},mixins:[a.default],data:function(){return{imgHost:d.HTTP_REQUEST_URL,ids:[],hostProduct:[],checkbox_show:!1,loadTitle:this.$t("加载更多"),loading:!1,loadend:!1,collectProductList:[],count:0,limit:15,page:1,isAuto:!1,isShowAuth:!1,hotScroll:!1,hotPage:1,hotLimit:10,isAllSelect:!1}},computed:(0,s.mapGetters)(["isLogin"]),onLoad:function(){this.isLogin?(this.loadend=!1,this.page=1,this.collectProductList=[],this.getUserCollectProduct()):(0,u.toLogin)()},onShow:function(){this.loadend=!1,this.page=1,this.$set(this,"collectProductList",[]),this.getUserCollectProduct()},onReachBottom:function(){this.getUserCollectProduct()},methods:{showRadio:function(){this.checkbox_show=!this.checkbox_show},checkboxChange:function(t){t.detail.value.length0?this.setAllSelectValue(1):this.setAllSelectValue(0)},setAllSelectValue:function(t){var e=this,o=[],l=e.collectProductList;if(l.length>0){var i=l.map((function(l){return t?(l.checked=!0,o.push(l.pid),e.isAllSelect=!0):(l.checked=!1,e.isAllSelect=!1),l}));e.$set(e,"collectProductList",i),e.$set(e,"ids",o)}},jump:function(e){e.is_show?t.navigateTo({url:"/pages/goods_details/index?id="+e.pid}):this.$util.Tips({title:this.$t("该商品已下架")})},onLoadFun:function(){this.loadend=!1,this.page=1,this.$set(this,"collectProductList",[]),this.getUserCollectProduct()},authColse:function(t){this.isShowAuth=t},getUserCollectProduct:function(){var t=this,e=this;this.loading||this.loadend||(e.loading=!0,e.loadTitle="",(0,n.getCollectUserList)({page:e.page,limit:e.limit}).then((function(o){t.count=o.data.count;var l=o.data.list;l.map((function(t){t.checked=!1}));var i=l.length1,a=t.checkbox_show&&t.collectProductList.length,d=a?t.$t("全选"):null,r=a?t.ids.length:null,h=a?t.$t("取关"):null;t.$mp.data=Object.assign({},{$root:{g0:o,m0:l,m1:i,m2:c,m3:n,l0:s,g2:u,g3:a,m5:d,g4:r,m6:h}})},i=[]},c736:function(t,e,o){"use strict";(function(t,e){var l=o("47a9");o("2ea2");l(o("3240"));var i=l(o("17ff"));t.__webpack_require_UNI_MP_PLUGIN__=o,e(i.default)}).call(this,o("3223")["default"],o("df3c")["createPage"])},de9a:function(t,e,o){"use strict";o.r(e);var l=o("031f"),i=o.n(l);for(var c in l)["default"].indexOf(c)<0&&function(t){o.d(e,t,(function(){return l[t]}))}(c);e["default"]=i.a}},[["c736","common/runtime","common/vendor"]]]);