(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabbar/my/collection/collection"],{"0c8c":function(n,t,e){},3169:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(e("7cc2"));e("ccb8");function c(n){return n&&n.__esModule?n:{default:n}}var a=function(){e.e("components/mehaotian-search/mehaotian-search").then(function(){return resolve(e("46ed"))}.bind(null,e)).catch(e.oe)},i=function(){Promise.all([e.e("common/vendor"),e.e("components/noData/noData")]).then(function(){return resolve(e("2c8c"))}.bind(null,e)).catch(e.oe)},r={components:{mSearch:a,noData:i},data:function(){return{noData:!1,searchStr:"",noticeList:[]}},computed:{noticeListQuery:function(){var n=this;return this.noticeList.filter((function(t){return-1!=t.title.indexOf(n.searchStr)||-1!=t.type.indexOf(n.searchStr)||-1!=t.real_name.indexOf(n.searchStr)}))}},onLoad:function(){},onShow:function(){this.getAllData()},onPullDownRefresh:function(){this.getAllData()},methods:{goToUserInfo:function(t){n.navigateTo({url:"/pages/person-info-page/person-info-page?userId=".concat(t.user_id)})},update:function(){this.getAllData()},cancelCollection:function(t){var e=this;n.showModal({title:"取消收藏",content:"确认取消收藏？",success:function(c){c.confirm?o.default.post("/hs/cancelCollection",{userId:n.getStorageSync("userInfo").user_id,noticeId:t.id}).then((function(n){console.log("取消收藏",n),1===n.data&&e.getAllData()}),(function(n){console.log("err",n)})):c.cancel&&console.log("取消")}})},goToDetails:function(t){n.navigateTo({url:"/pages/tabbar/homepage/data-details?noticeId="+t.id})},getAllData:function(){var t=this;o.default.post("/hs/getCollectionList",{userId:n.getStorageSync("userInfo").user_id}).then((function(e){t.noticeList=e.data,n.startPullDownRefresh(),t.noData=0===t.noticeList.length,console.log("收藏页面数据",e.data)}),(function(n){console.log("err",n)}))}}};t.default=r}).call(this,e("543d")["default"])},"37ee":function(n,t,e){"use strict";e.r(t);var o=e("3169"),c=e.n(o);for(var a in o)"default"!==a&&function(n){e.d(t,n,(function(){return o[n]}))}(a);t["default"]=c.a},"591a":function(n,t,e){"use strict";var o=e("0c8c"),c=e.n(o);c.a},"6c3a":function(n,t,e){"use strict";e.r(t);var o=e("f2d3"),c=e("37ee");for(var a in c)"default"!==a&&function(n){e.d(t,n,(function(){return c[n]}))}(a);e("591a");var i,r=e("f0c5"),u=Object(r["a"])(c["default"],o["b"],o["c"],!1,null,"3461b052",null,!1,o["a"],i);t["default"]=u.exports},c226:function(n,t,e){"use strict";(function(n){e("813a");o(e("66fd"));var t=o(e("6c3a"));function o(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("543d")["createPage"])},f2d3:function(n,t,e){"use strict";e.d(t,"b",(function(){return c})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){return o}));var o={noData:function(){return Promise.all([e.e("common/vendor"),e.e("components/noData/noData")]).then(e.bind(null,"2c8c"))}},c=function(){var n=this,t=n.$createElement;n._self._c},a=[]}},[["c226","common/runtime","common/vendor"]]]);