(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/favorites"],{"0114":function(t,n,e){"use strict";e.r(n);var o=e("922b"),c=e.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=c.a},"0453":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return c})),e.d(n,"a",(function(){}));var o=function(){var t=this.$createElement,n=(this._self._c,this.favoriteList.length);this.$mp.data=Object.assign({},{$root:{g0:n}})},c=[]},"367f":function(t,n,e){"use strict";(function(t,n){var o=e("4ea4");e("3e39");o(e("66fd"));var c=o(e("f8d6"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(c.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"813f":function(t,n,e){},"8e3f":function(t,n,e){"use strict";var o=e("813f"),c=e.n(o);c.a},"922b":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=e("5635"),c={components:{uniLoadMore:function(){e.e("components/uni-load-more/uni-load-more").then(function(){return resolve(e("eaf8"))}.bind(null,e)).catch(e.oe)},empty:function(){e.e("components/empty").then(function(){return resolve(e("afbc"))}.bind(null,e)).catch(e.oe)}},data:function(){return{tabCurrentIndex:0,favoriteList:"",delshow:!0}},onLoad:function(){this.loadData()},methods:{loadData:function(){var t=this;(0,o.getcollectList)({page:"1",limit:"10"}).then((function(n){t.favoriteList=n.data,console.log(t.favoriteList)})).catch((function(t){console.log(t)}))},toproduct:function(n){var e=n;t.navigateTo({url:"/pages/product/product?id=".concat(e)})},del:function(n){var e=this;t.showModal({title:"提示",content:"是否取消收藏该商品",success:function(c){c.confirm&&(0,o.delcollect)({id:n,category:"product"}).then((function(n){t.showToast({title:"已取消收藏",duration:1500}),e.loadData()})).catch((function(t){console.log(t)}))}})}}};n.default=c}).call(this,e("543d")["default"])},f8d6:function(t,n,e){"use strict";e.r(n);var o=e("0453"),c=e("0114");for(var a in c)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return c[t]}))}(a);e("8e3f");var i=e("f0c5"),u=Object(i["a"])(c["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=u.exports}},[["367f","common/runtime","common/vendor"]]]);