pages-article-index.fe851866.js 9.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-article-index"],{"05e9":function(t,e,n){"use strict";var i=n("fe22"),r=n.n(i);r.a},"678d":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{},[n("v-uni-view",{staticClass:"u-sticky-wrap",class:[t.elClass],style:{height:t.fixed?t.height+"px":"auto",backgroundColor:t.bgColor}},[n("v-uni-view",{staticClass:"u-sticky",style:{position:t.fixed?"fixed":"static",top:t.stickyTop+"px",left:t.left+"px",width:"auto"==t.width?"auto":t.width+"px",zIndex:t.uZIndex,backgroundColor:t.bgColor}},[t._t("default")],2)],1)],1)},s=[]},"692d":function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是app内置的常用样式变量\r\n *\r\n * app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 水平间距 */\r\n/* 水平间距 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.u-sticky[data-v-1c0b87a0]{z-index:9999999999}',""]),t.exports=e},"71ae":function(t,e,n){var i=n("b09d");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("240ec031",i,!0,{sourceMap:!1,shadowMode:!1})},"76f4":function(t,e,n){"use strict";n.r(e);var i=n("9a56"),r=n("7c8c");for(var s in r)"default"!==s&&function(t){n.d(e,t,(function(){return r[t]}))}(s);n("de9e");var a,o=n("f0c5"),c=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,"7d1fc1f8",null,!1,i["a"],a);e["default"]=c.exports},"7c8c":function(t,e,n){"use strict";n.r(e);var i=n("f413"),r=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=r.a},8517:function(t,e,n){"use strict";n.r(e);var i=n("678d"),r=n("d5c2");for(var s in r)"default"!==s&&function(t){n.d(e,t,(function(){return r[t]}))}(s);n("05e9");var a,o=n("f0c5"),c=Object(o["a"])(r["default"],i["b"],i["c"],!1,null,"1c0b87a0",null,!1,i["a"],a);e["default"]=c.exports},"9a56":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var i={uiSticky:n("8517").default,uiSearch:n("c23e").default,uniIcons:n("1e47").default,uiEmpty:n("83fa").default},r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("ui-sticky",[n("ui-search",{attrs:{placeholder:"请输入关键字"},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.searchArticle.apply(void 0,arguments)}}})],1),t._l(t.articleList,(function(e,i){return n("v-uni-view",{key:i,staticClass:"ui-card article-item"},[n("v-uni-view",{staticClass:"row-between"},[n("v-uni-view",{staticClass:"title"},[t._v("分析人:"+t._s(e.user_name))]),n("v-uni-view",{staticClass:"time"},[t._v(t._s(e.create_time))])],1),n("v-uni-view",{staticClass:"text",class:e.toggle?"":"shadow"},[n("v-uni-rich-text",{attrs:{nodes:e.content}})],1),n("v-uni-view",{staticClass:"row-center more",class:e.toggle?"":"shadow",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toggleReadMore(i)}}},[t._v(t._s(e.toggle?"收起":"展开")),n("uni-icons",{attrs:{type:e.toggle?"top":"bottom",color:"#317afd",size:"16"}})],1)],1)})),0==t.articleList.length?n("ui-empty",{attrs:{text:"暂无分析信息"}}):t._e()],2)},s=[]},b09d:function(t,e,n){var i=n("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是app内置的常用样式变量\r\n *\r\n * app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 水平间距 */\r\n/* 水平间距 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.article-item[data-v-7d1fc1f8]{padding:%?26?% %?24?%;overflow:hidden}.article-item .title[data-v-7d1fc1f8]{font-size:%?32?%;font-weight:700;color:#317afd;line-height:%?44?%}.article-item .text[data-v-7d1fc1f8]{margin-top:%?10?%;margin-bottom:%?10?%;font-size:%?28?%;color:#666;line-height:%?40?%;overflow:hidden}.article-item .text.shadow[data-v-7d1fc1f8]{max-height:%?200?%}.article-item .more[data-v-7d1fc1f8]{font-size:%?26?%;color:#317afd;text-align:center}.article-item .more.shadow[data-v-7d1fc1f8]{position:relative;background-image:linear-gradient(-180deg,hsla(0,0%,100%,0),#fff 80%);padding-top:%?160?%;margin-top:%?-160?%}.article-item .time[data-v-7d1fc1f8]{padding:%?6?% %?15?%;font-size:%?28?%;color:#333;line-height:1;border-radius:%?4?%}',""]),t.exports=e},d210:function(t,e,n){"use strict";n("a9e3"),n("d3b7"),n("ac1f"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"ui-sticky",props:{offsetTop:{type:[Number,String],default:0},index:{type:[Number,String],default:""},enable:{type:Boolean,default:!0},h5NavHeight:{type:[Number,String],default:0},bgColor:{type:String,default:"#ffffff"},zIndex:{type:[Number,String],default:""}},data:function(){return{fixed:!1,height:"auto",stickyTop:0,elClass:"ui-sticky1",left:0,width:"auto"}},watch:{offsetTop:function(t){this.initObserver()},enable:function(t){0==t?(this.fixed=!1,this.disconnectObserver("contentObserver")):this.initObserver()}},computed:{uZIndex:function(){return this.zIndex?this.zIndex:10}},mounted:function(){this.initObserver()},methods:{$uGetRect:function(t,e){var n=this;return new Promise((function(i){uni.createSelectorQuery().in(n)[e?"selectAll":"select"](t).boundingClientRect((function(t){e&&Array.isArray(t)&&t.length&&i(t),!e&&t&&i(t)})).exec()}))},initObserver:function(){var t=this;this.enable&&(this.stickyTop=0!=this.offsetTop?uni.upx2px(this.offsetTop)+this.h5NavHeight:this.h5NavHeight,this.disconnectObserver("contentObserver"),this.$uGetRect("."+this.elClass).then((function(e){t.height=e.height,t.left=e.left,t.width=e.width,t.$nextTick((function(){t.observeContent()}))})))},observeContent:function(){var t=this;this.disconnectObserver("contentObserver");var e=this.createIntersectionObserver({thresholds:[.95,.98,1]});e.relativeToViewport({top:-this.stickyTop}),e.observe("."+this.elClass,(function(e){t.enable&&t.setFixed(e.boundingClientRect.top)})),this.contentObserver=e},setFixed:function(t){var e=t<this.stickyTop;e?this.$emit("fixed",this.index):this.fixed&&this.$emit("unfixed",this.index),this.fixed=e},disconnectObserver:function(t){var e=this[t];e&&e.disconnect()}},beforeDestroy:function(){this.disconnectObserver("contentObserver")}};e.default=i},d5c2:function(t,e,n){"use strict";n.r(e);var i=n("d210"),r=n.n(i);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=r.a},de9e:function(t,e,n){"use strict";var i=n("71ae"),r=n.n(i);r.a},f413:function(t,e,n){"use strict";var i=n("4ea4");n("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("2909"));n("96cf");var s=i(n("1da1")),a=n("1424"),o={data:function(){return{articleList:[],params:{key_word:"",start_time:"",end_time:"",article_type:3,page:1,page_size:10},total:0}},onLoad:function(t){var e=this;return(0,s.default)(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$onLaunched;case 2:e.params.article_type=null!==(i=t.type)&&void 0!==i?i:3,e.getArticleList();case 4:case"end":return n.stop()}}),n)})))()},onReachBottom:function(t){this.articleList.length>=this.total||(this.params.page+=1,this.getArticleList())},onPullDownRefresh:function(){this.refreshArticleList(),uni.stopPullDownRefresh()},methods:{searchArticle:function(t){this.params.key_word=t,this.refreshArticleList()},refreshArticleList:function(){this.params.page=1,this.articleList=[],this.getArticleList()},getArticleList:function(){var t=this;return(0,s.default)(regeneratorRuntime.mark((function e(){var n,i,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,a.getArticleList)(t.params);case 2:n=e.sent,i=n.total_num,s=n.data,t.articleList=[].concat((0,r.default)(t.articleList),(0,r.default)(s)),t.total=null!==i&&void 0!==i?i:0;case 7:case"end":return e.stop()}}),e)})))()},toggleReadMore:function(t){var e=this.articleList[t];e.toggle=!e.toggle,this.$set(this.articleList,t,e)}}};e.default=o},fe22:function(t,e,n){var i=n("692d");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=n("4f06").default;r("03216429",i,!0,{sourceMap:!1,shadowMode:!1})}}]);