You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
7.6 KiB
1 lines
7.6 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{636:function(t,o,e){var content=e(661);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,e(23).default)("4ac57d0f",content,!0,{sourceMap:!1})},660:function(t,o,e){"use strict";e(636)},661:function(t,o,e){var n=e(22),r=e(36),c=e(44),l=n(!1),d=r(c);l.push([t.i,"*{margin:0;border:none;padding:0}html{height:100%}body{position:relative;min-width:320px;min-height:100%;background:#fff;font-family:MicrosoftYaHei;font-size:0}body .outer-container{min-width:1258px}body .outer-container.isMobile{min-width:auto}body .outer-container.isMobile .content-container{padding:60px 0 62px;width:100%}body .outer-container.isMobile .content-container .left-content{display:block!important;margin-right:0!important;width:100%!important}body .outer-container.isMobile .content-container .footer-outer{position:absolute!important;min-width:auto!important}body .outer-container.isMobile .content-container .load-more{width:100%!important}body .outer-container.isMobile .content-container .common-flex{display:block!important}body .outer-container.isMobile .content-container .common-other-content{margin:0!important}body .outer-container.isMobile .content-container .common-other-content h6{margin-bottom:10px!important;font-size:20px!important;line-height:28px!important}body .outer-container.isMobile .content-container .common-other-content .font-content b,body .outer-container.isMobile .content-container .common-other-content .font-content h5,body .outer-container.isMobile .content-container .common-other-content .font-content h6,body .outer-container.isMobile .content-container .common-other-content .font-content p{margin-bottom:8px!important;font-size:16px!important;line-height:24px!important;word-break:break-all}body .outer-container.isMobile .content-container .common-other-content .font-content h5{font-size:18px!important}body .outer-container.isMobile.hasLoginBottom{padding-bottom:calc(env(safe-area-inset-bottom) + 55px)}body .outer-container.isMobile.hasLoginBottom .bottom-outer,body .outer-container.isMobile.hasLoginBottom .footer-outer{bottom:calc(constant(safe-area-inset-bottom) + 55px);bottom:calc(env(safe-area-inset-bottom) + 55px)}body .outer-container.isMobile.hasLoginBottom .fixed-box{bottom:calc(constant(safe-area-inset-bottom) + 65px)!important;bottom:calc(env(safe-area-inset-bottom) + 65px)!important}body .content-container{margin:0 auto;width:1080px}body img{vertical-align:top;-o-object-fit:cover;object-fit:cover}body a{text-decoration:none}body .text-ellipsis{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}body .left-content{display:inline-block;margin-right:32px;width:723px}body .right-content{float:right;display:inline-block;width:325px}body .common-flex{display:grid;grid-template-columns:repeat(4,25%)}body .load-more{margin:0 auto;width:357px;height:50px;background:#f5f5f8;border-radius:4px;font-size:18px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#939aa7;line-height:50px;text-align:center}body .footer-outer{position:fixed;bottom:0;left:0;width:100%;min-width:1258px;background:#f5f5f8;z-index:9}body .common-title{padding:20px 0 10px;text-align:left;font-size:24px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#001965;line-height:33px}body .common-title a{float:right;font-size:16px;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#5d6269}body .common-title a i{color:#001965}body p.go-follow{margin-bottom:23px;height:50px;background:#e6553f;border-radius:4px;text-align:center;cursor:pointer;font-size:18px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#fff;line-height:50px}body .common-other-content{margin:44px 0;padding:30px;box-sizing:border-box}body .common-other-content h6{margin-bottom:20px;font-size:24px;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#001965;line-height:33px}body .common-other-content .font-content b,body .common-other-content .font-content h5,body .common-other-content .font-content h6,body .common-other-content .font-content p{margin-bottom:12px;font-size:18px;color:#5d6269;line-height:30px}body .common-other-content .font-content h5{font-size:20px}body .el-message{top:50%!important}body .el-message i{font-size:16px}@media screen and (max-width:500px){body .el-message{min-width:200px;max-width:80%}}body .video-player-box .vjs-big-play-button{top:50%;left:50%;border:none;outline:none;width:68px;height:67px;transform:translate(-50%,-50%);background:url("+d+") 50% no-repeat;background-color:transparent!important;background-size:68px 67px}body .video-player-box .vjs-big-play-button .vjs-icon-placeholder:before{display:none}body .video-player-box .vjs-control-bar button{outline:none}body .el-avatar>img{width:100%}.user-page{padding-top:259px}",""]),t.exports=l},690:function(t,o,e){"use strict";e.r(o);e(25),e(19),e(24),e(37),e(20),e(38);var n=e(12),r=e(33),c=e(7);e(52),e(10),e(45),e(46),e(83);function l(object,t){var o=Object.keys(object);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(object);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),o.push.apply(o,e)}return o}function d(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(o){Object(n.a)(t,o,source[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(source,o))}))}return t}var m={name:"UserIndexPage",layout:"detail",middleware:"authenticated",asyncData:function(t){return Object(c.a)(regeneratorRuntime.mark((function o(){var e,n,c,l,m,f;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return e=t.req,n=t.$axios,o.next=3,Promise.all([n.$get("/user/collect-list?page=1",n.genSSROptions(e)),n.$get("/user/bean-num",n.genSSROptions(e))]);case 3:return c=o.sent,l=Object(r.a)(c,2),m=l[0],f=l[1],o.abrupt("return",d(d({},m.detail),f.detail));case 8:case"end":return o.stop()}}),o)})))()},data:function(){return{collectPage:2,collectLoading:!1}},head:{title:"糖尿病网-个人中心",meta:[{hid:"description",name:"description",content:""}]},mounted:function(){var t=this;this.baiduStat("我的账户页","show","我的账户页-访问"),this.$nextTick((function(){window.addEventListener("scroll",(function(){(document.documentElement.scrollTop||document.body.scrollTop)+(document.documentElement.clientHeight||document.body.clientHeight)>(document.documentElement.scrollHeight||document.body.scrollHeight)-50&&t.getCollectList()}))}))},methods:{getCollectList:function(){var t=this;return Object(c.a)(regeneratorRuntime.mark((function o(){var data;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!t.hasMore||t.collectLoading){o.next=9;break}return t.collectLoading=!0,o.next=4,t.$axios.$get("/user/collect-list?page="+t.collectPage);case 4:data=o.sent,t.hasMore=data.detail.hasMore,t.articleList=t.articleList.concat(data.detail.articleList),t.collectPage=t.collectPage+1,t.collectLoading=!1;case 9:case"end":return o.stop()}}),o)})))()}}},f=(e(660),e(11)),component=Object(f.a)(m,(function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{staticClass:"user-page"},[e("UserInfoCommon",{attrs:{"bean-num":t.beanNum,total:t.total,"has-more":t.hasMore,"article-list":t.articleList,"collect-loading":t.collectLoading}}),t._v(" "),e("BottomRightFixed")],1)}),[],!1,null,null,null);o.default=component.exports;installComponents(component,{UserInfoCommon:e(646).default,BottomRightFixed:e(418).default})}}]); |