(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6cec4f9e"],{2439:function(t,e,i){t.exports=i.p+"h5/img/noCollection.46d9f620.png"},d000:function(t,e,i){"use strict";var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"bg-color-red",staticStyle:{height:"0.7rem",position:"fixed","z-index":"999",top:"0",width:"100%"}},[i("div",{staticStyle:{width:"100%",display:"flex","line-height":"0.7rem","font-size":"0.35rem"}},[i("div",{staticClass:"iconfont icon-xiangzuo",staticStyle:{color:"#FFFFFF","font-size":"0.35rem","padding-left":"10px"},on:{click:t.returns}}),i("div",{staticStyle:{color:"#FFFFFF","font-weight":"400",flex:"auto","text-align":"center","padding-right":"30px"}},[t._v("\n        "+t._s(t.titles)+"\n      ")])])]),i("div",{staticStyle:{height:"0.7rem"}})])},c=[],l={name:"NavBar",props:{title:String},data:function(){return{titles:""}},mounted:function(){void 0==this.title?this.titles=this.$route.meta.title:this.titles=this.title},methods:{returns:function(){this.$router.back()}}},n=l,a=i("2877"),s=Object(a["a"])(n,o,c,!1,null,null,null);e["a"]=s.exports},fa64:function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{ref:"container"},[i("NavBar",{attrs:{title:"我的收藏"}}),t.collectProductList.length>0?i("div",{staticClass:"collectionGoods"},t._l(t.collectProductList,(function(e,o){return i("router-link",{key:o,staticClass:"item acea-row row-between-wrapper",attrs:{to:{path:"/detail/"+e.pid}}},[i("div",{staticClass:"pictrue"},[i("img",{attrs:{src:e.image}})]),i("div",{staticClass:"text acea-row row-column-between"},[i("div",{staticClass:"infor line1"},[t._v(t._s(e.store_name))]),i("div",{staticClass:"acea-row row-between-wrapper"},[i("div",{staticClass:"money font-color-red"},[t._v("￥"+t._s(e.price))]),i("div",{staticClass:"delete",on:{click:function(e){return e.preventDefault(),t.delCollection(o)}}},[t._v("删除")])])])])})),1):t._e(),i("Loading",{attrs:{loaded:t.loadend,loading:t.loading}}),t.collectProductList.length<1&&t.page>1?i("div",{staticClass:"noCommodity",staticStyle:{"background-color":"#fff"}},[t._m(0),i("Recommend")],1):t._e()],1)},c=[function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"noPictrue"},[o("img",{staticClass:"image",attrs:{src:i("2439")}})])}],l=i("f410"),n=i("c24f"),a=i("3a5e"),s=i("d000"),r={name:"GoodsCollection",components:{Recommend:l["a"],Loading:a["a"],NavBar:s["a"]},props:{},data:function(){return{page:1,limit:20,collectProductList:[],loadTitle:"",loading:!1,loadend:!1}},mounted:function(){var t=this;this.get_user_collect_product(),this.$scroll(this.$refs.container,(function(){!t.loading&&t.get_user_collect_product()}))},methods:{get_user_collect_product:function(){var t=this;t.loading||t.loadend||(t.loading=!0,Object(n["o"])(t.page,t.limit).then((function(e){t.loading=!1,t.collectProductList.push.apply(t.collectProductList,e.data),t.loadend=e.data.length<t.limit,t.page=t.page+1})))},delCollection:function(t){var e=this,i=e.collectProductList[t].pid,o=e.collectProductList[t].category;Object(n["n"])(i,o).then((function(){e.$dialog.toast({mes:"删除收藏成功!",callback:function(){e.collectProductList.splice(t,1),e.$set(e,"collectProductList",e.collectProductList)}})}))}}},d=r,u=i("2877"),f=Object(u["a"])(d,o,c,!1,null,null,null);e["default"]=f.exports}}]);
//# sourceMappingURL=chunk-6cec4f9e.a7065d60.js.map