require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/user_merchant_collection/index"],{"49e1":function(t,e,i){"use strict";var n=i("ffd2"),o=i.n(n);o.a},6381:function(t,e,i){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i("28e0"),s=getApp(),a={data:function(){return{urlDomain:this.$Cache.get("imgHost"),delBtnWidth:160,storeList:[],isScroll:!0,theme:s.globalData.theme,windowHeight:0,page:1,limit:20,loading:!0,loadTitle:""}},components:{easyLoadimage:function(){Promise.all([i.e("common/vendor"),i.e("components/base/easy-loadimage")]).then(function(){return resolve(i("0dff"))}.bind(null,i)).catch(i.oe)},recommend:function(){Promise.all([i.e("common/vendor"),i.e("components/base/recommend")]).then(function(){return resolve(i("0d8d"))}.bind(null,i)).catch(i.oe)}},onLoad:function(e){var i=this;t.getSystemInfo({success:function(t){i.windowHeight=t.windowHeight-41}}),n.setNavigationBarTitle({title:"店铺收藏"}),this.getList()},methods:{returns:function(){n.navigateBack()},drawStart:function(t){var e=t.touches[0];for(var i in this.storeList)this.storeList[i].right=0;this.startX=e.clientX},drawMove:function(t){var e=t.touches[0],i=(this.storeList[t.currentTarget.dataset.index],this.startX-e.clientX);i>=20?(i>this.delBtnWidth&&(i=this.delBtnWidth),this.isScroll=!1,this.storeList[t.currentTarget.dataset.index].right=i):(this.isScroll=!1,this.storeList[t.currentTarget.dataset.index].right=0)},drawEnd:function(t){var e=this.storeList[t.currentTarget.dataset.index];e.right>=this.delBtnWidth/2?(this.isScroll=!0,this.storeList[t.currentTarget.dataset.index].right=this.delBtnWidth):(this.isScroll=!0,this.storeList[t.currentTarget.dataset.index].right=0)},goStore:function(t){n.navigateTo({url:"/pages/merchant/home/index?merId=".concat(t)})},getList:function(){var t=this;this.isScroll&&(this.loading=!0,this.loadTitle="",(0,o.getMerCollectListApi)({page:this.page,limit:this.limit}).then((function(e){t.isScroll=e.data.list.length>=t.limit;var i=e.data.list.length<t.limit;t.storeList=t.storeList.concat(e.data.list),t.loadend=i,t.loadTitle=0===t.storeList.length?"":i?"到底了~~":"显示更多",t.page+=1,t.loading=!1})).catch((function(e){return t.loading=!1,t.$util.Tips({title:e})})))},bindDetele:function(t,e){var i=this;(0,o.getMerCollectCancelApi)(t).then((function(t){n.showToast({title:"取消成功",icon:"none"}),i.storeList.splice(e,1)}))}},onReachBottom:function(){this.getList(),!this.storeList.length&&this.page>1&&this.$refs.recommendIndex.get_host_product()},onPageScroll:function(t){n.$emit("scroll")}};e.default=a}).call(this,i("3223")["default"],i("df3c")["default"])},"75ca":function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("1d3c");n(i("3240"));var o=n(i("fca12"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(o.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},a7b0:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=(this._self._c,this.storeList.length),i=!this.storeList.length&&this.page>1&&!this.loading;this.$mp.data=Object.assign({},{$root:{g0:e,g1:i}})},o=[]},ae3b:function(t,e,i){"use strict";i.r(e);var n=i("6381"),o=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=o.a},fca12:function(t,e,i){"use strict";i.r(e);var n=i("a7b0"),o=i("ae3b");for(var s in o)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(s);i("49e1");var a=i("828b"),r=Object(a["a"])(o["default"],n["b"],n["c"],!1,null,"318e5763",null,!1,n["a"],void 0);e["default"]=r.exports},ffd2:function(t,e,i){}},[["75ca","common/runtime","common/vendor"]]]);