(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_goods_collection-index"],{"0436":function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{style:t.colorStyle},[t.collectProductList.length?i("v-uni-view",{staticClass:"collectionGoods"},[i("v-uni-view",{staticClass:"title-admin"},[i("v-uni-view",[t._v(t._s(t.$t("当前共"))+" "),i("v-uni-text",{staticClass:"text"},[t._v(" "+t._s(t.count)+" ")]),t._v(" "+t._s(t.$t("件商品")))],1),i("v-uni-view",{staticClass:"admin",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showRadio.apply(void 0,arguments)}}},[t._v(t._s(t.checkbox_show?t.$t("取消"):t.$t("管理")))])],1),i("v-uni-checkbox-group",{on:{change:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.checkboxChange.apply(void 0,arguments)}}},[t._l(t.collectProductList,(function(e,o){return i("v-uni-view",{key:o,staticClass:"item acea-row"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-checkbox",{directives:[{name:"show",rawName:"v-show",value:t.checkbox_show,expression:"checkbox_show"}],attrs:{value:e.pid.toString(),checked:e.checked}}),i("v-uni-view",{staticClass:"pictrue",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.jump(e)}}},[i("v-uni-image",{attrs:{src:e.image}}),e.is_show?t._e():i("v-uni-view",{staticClass:"invalid acea-row row-center-wrapper"},[t._v(" 已下架 ")])],1)],1),i("v-uni-view",{staticClass:"text acea-row row-column-between",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.jump(e)}}},[i("v-uni-view",{staticClass:"name line2"},[t._v(t._s(e.store_name))]),i("v-uni-view",{staticClass:"acea-row row-between-wrapper"},[i("v-uni-view",{staticClass:"money font-color"},[t._v(t._s(t.$t("¥"))+t._s(e.price))])],1)],1)],1)})),i("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[i("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==t.loading}}),t._v(t._s(t.loadTitle)+" ")],1)],2)],1):!t.collectProductList.length&&t.page>1?i("v-uni-view",{staticClass:"noCommodity"},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{attrs:{src:t.imgHost+"/statics/images/noCollection.png"}})],1),i("recommend",{attrs:{hostProduct:t.hostProduct}})],1):t._e(),t.checkbox_show&&t.collectProductList.length?i("v-uni-view",{staticClass:"footer acea-row row-between-wrapper"},[i("v-uni-view",[i("v-uni-checkbox-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.checkboxAllChange.apply(void 0,arguments)}}},[i("v-uni-checkbox",{attrs:{value:"all",checked:!!t.isAllSelect}}),i("v-uni-text",{staticClass:"checkAll"},[t._v(t._s(t.$t("全选"))+"("+t._s(t.ids.length)+")")])],1)],1),i("v-uni-view",{staticClass:"button acea-row row-middle"},[i("v-uni-button",{staticClass:"bnt",attrs:{formType:"submit"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.subDel.apply(void 0,arguments)}}},[t._v(t._s(t.$t("取关")))])],1)],1):t._e(),i("home")],1)},n=[]},"0615":function(t,e,i){"use strict";var o=i("95f7"),n=i.n(o);n.a},"185b":function(t,e,i){var o=i("d86b");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=i("967d").default;n("19cc7a36",o,!0,{sourceMap:!1,shadowMode:!1})},"1ff4":function(t,e,i){"use strict";i.r(e);var o=i("f15d"),n=i.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);e["default"]=n.a},3260:function(t,e,i){"use strict";i("6a54");var o=i("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(i("39d8"));i("fd3c"),i("aa9c"),i("c223");var a,c=i("3cc5"),r=i("8f59"),s=i("088a"),l=o(i("ed06")),d=o(i("62c9")),u=o(i("6134")),f=i("a5c67"),h=(a={components:{recommend:l.default,home:d.default},mixins:[u.default],data:function(){return{imgHost:f.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,r.mapGetters)(["isLogin"]),onLoad:function(){this.isLogin?(this.loadend=!1,this.page=1,this.collectProductList=[],this.getUserCollectProduct()):(0,s.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,i=[],o=e.collectProductList;if(o.length>0){var n=o.map((function(o){return t?(o.checked=!0,i.push(o.pid),e.isAllSelect=!0):(o.checked=!1,e.isAllSelect=!1),o}));e.$set(e,"collectProductList",n),e.$set(e,"ids",i)}},jump:function(t){t.is_show?uni.navigateTo({url:"/pages/goods_details/index?id="+t.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,c.getCollectUserList)({page:e.page,limit:e.limit}).then((function(i){t.count=i.data.count;var o=i.data.list;o.map((function(t){t.checked=!1}));var n=o.length66&&(this.top=t.touches[0].clientY)},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){},beforeDestroy:function(){this.$store.commit("CLOSE_HOME")}};e.default=r}}]);