HHSLinkSLink/HSLink-wx/unpackage/dist/build/mp-weixin/pages/tabbar/follow/follow.js

1 line
3.0 KiB
JavaScript
Raw Normal View History

2020-12-19 12:13:27 +08:00
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/tabbar/follow/follow"],{2196:function(n,t,e){},"262d":function(n,t,e){"use strict";e.d(t,"b",(function(){return a})),e.d(t,"c",(function(){return c})),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"))}},a=function(){var n=this,t=n.$createElement;n._self._c},c=[]},6583:function(n,t,e){"use strict";e.r(t);var o=e("262d"),a=e("75b4");for(var c in a)"default"!==c&&function(n){e.d(t,n,(function(){return a[n]}))}(c);e("82c2");var r,u=e("f0c5"),i=Object(u["a"])(a["default"],o["b"],o["c"],!1,null,"0802b833",null,!1,o["a"],r);t["default"]=i.exports},"75b4":function(n,t,e){"use strict";e.r(t);var o=e("8b19"),a=e.n(o);for(var c in o)"default"!==c&&function(n){e.d(t,n,(function(){return o[n]}))}(c);t["default"]=a.a},"82c2":function(n,t,e){"use strict";var o=e("2196"),a=e.n(o);a.a},"8b19":function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(e("7cc2"));e("ccb8");function a(n){return n&&n.__esModule?n:{default:n}}var c=function(){e.e("components/mehaotian-search/mehaotian-search").then(function(){return resolve(e("46ed"))}.bind(null,e)).catch(e.oe)},r=function(){Promise.all([e.e("common/vendor"),e.e("components/noData/noData")]).then(function(){return resolve(e("2c8c"))}.bind(null,e)).catch(e.oe)},u={components:{mSearch:c,noData:r},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()},cancelFollow:function(t){var e=this;n.showModal({title:"取消关注",content:"确认取消关注?",success:function(a){a.confirm?o.default.post("/hs/cancelFollow",{userId:n.getStorageSync("userInfo").user_id,followId:t.user_id}).then((function(n){console.log("取消关注",n),1===n.data&&e.getAllData()}),(function(n){console.log("err",n)})):a.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/getFollowList",{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=u}).call(this,e("543d")["default"])},"9d8a":function(n,t,e){"use strict";(function(n){e("813a");o(e("66fd"));var t=o(e("6583"));function o(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("543d")["createPage"])}},[["9d8a","common/runtime","common/vendor"]]]);