HHSLinkSLink/HSLink-app/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"],{6504:function(n,t,e){},"9fae":function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(e("1da1"));e("7960");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("7cee"))}.bind(null,e)).catch(e.oe)},r=function(){Promise.all([e.e("common/vendor"),e.e("components/noData/noData")]).then(function(){return resolve(e("c48a"))}.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"])},a154: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,"c48a"))}},a=function(){var n=this,t=n.$createElement;n._self._c},c=[]},b5ec:function(n,t,e){"use strict";(function(n){e("481f");o(e("66fd"));var t=o(e("b6ad"));function o(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("543d")["createPage"])},b6ad:function(n,t,e){"use strict";e.r(t);var o=e("a154"),a=e("fb75");for(var c in a)"default"!==c&&function(n){e.d(t,n,(function(){return a[n]}))}(c);e("f9aa");var r,u=e("f0c5"),i=Object(u["a"])(a["default"],o["b"],o["c"],!1,null,"4a5acee3",null,!1,o["a"],r);t["default"]=i.exports},f9aa:function(n,t,e){"use strict";var o=e("6504"),a=e.n(o);a.a},fb75:function(n,t,e){"use strict";e.r(t);var o=e("9fae"),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}},[["b5ec","common/runtime","common/vendor"]]]);