(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-dydetail"],{"0b5b":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".uni-load-more[data-v-5516c8de]{display:flex;flex-direction:row;height:%?80?%;align-items:center;justify-content:center}.uni-load-more__text[data-v-5516c8de]{font-size:%?28?%;color:#999}.uni-load-more__img[data-v-5516c8de]{height:24px;width:24px;margin-right:10px}.uni-load-more__img>.load[data-v-5516c8de]{position:absolute}.uni-load-more__img>.load .item[data-v-5516c8de]{width:6px;height:2px;border-top-left-radius:1px;border-bottom-left-radius:1px;background:#999;position:absolute;opacity:.2;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:load-data-v-5516c8de 1.56s ease infinite;animation:load-data-v-5516c8de 1.56s ease infinite}.uni-load-more__img>.load .item[data-v-5516c8de]:nth-child(1){-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.uni-load-more__img>.load .item[data-v-5516c8de]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.uni-load-more__img>.load .item[data-v-5516c8de]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.uni-load-more__img>.load .item[data-v-5516c8de]:nth-child(4){top:11px;left:0}.load1[data-v-5516c8de],\n.load2[data-v-5516c8de],\n.load3[data-v-5516c8de]{height:24px;width:24px}.load2[data-v-5516c8de]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-5516c8de]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 .item[data-v-5516c8de]:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s}.load2 .item[data-v-5516c8de]:nth-child(1){-webkit-animation-delay:.13s;animation-delay:.13s}.load3 .item[data-v-5516c8de]:nth-child(1){-webkit-animation-delay:.26s;animation-delay:.26s}.load1 .item[data-v-5516c8de]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 .item[data-v-5516c8de]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 .item[data-v-5516c8de]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 .item[data-v-5516c8de]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 .item[data-v-5516c8de]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 .item[data-v-5516c8de]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 .item[data-v-5516c8de]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 .item[data-v-5516c8de]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 .item[data-v-5516c8de]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-5516c8de{0%{opacity:1}100%{opacity:.2}}",""]),t.exports=e},"1ca2":function(t,e,a){"use strict";var i=a("c02f"),n=a.n(i);n.a},4098:function(t,e,a){"use strict";function i(t){var e=/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)/;return!1!==e.test(t)||(console.log(t),!1)}function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;"string"==typeof t&&(t=(+t).toFixed(2)),"number"==typeof t&&(t=t.toFixed(2));var e=t.split(""),a=e.reverse().map((function(t,e,a){return e%3==0&&e/3>1&&e!=a.length?t+",":t}));return a=a.reverse().join(""),a}function o(t){var e=(new Date).getTime(),a=t-e;a<0&&(a*=-1);var i=Math.floor(a/1e3/60/60/24),n=Math.floor(a/1e3/60/60%24),o=Math.floor(a/1e3/60%60),d=Math.floor(a/1e3%60);return{hours:n,minutes:o,seconds:d,day:i}}function d(t){return new Promise((function(t,e){wx.getSetting({success:function(a){a.authSetting["scope.userLocation"]?t():wx.showModal({title:"提示",content:"请求获取位置权限",success:function(a){if(0==a.confirm)return e(),!1;wx.openSetting({success:function(e){e.authSetting["scope.userLocation"]?t():wx.showToast({title:"此功能需获取位置信息,请重新设置",duration:3e3,icon:"none"})}})}})}})}))}function r(t){for(var e=13-(t+"").length,a=1,i=0;i0?a("v-uni-view",{staticClass:"jj-top"},[a("v-uni-text",{staticClass:"sh"}),t._v("文章资讯")],1):t._e(),a("v-uni-view",[t._l(t.list,(function(e,i){return a("v-uni-view",{key:i,staticClass:"art-list"},[1==e.image_input.length?a("v-uni-view",{staticClass:"art-item-one flex art-item",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.goToDetail(e.id)}}},[a("v-uni-view",{staticClass:"art-left flex"},[a("v-uni-view",{staticClass:"art-tit clamp2"},[t._v(t._s(e.title))]),a("v-uni-view",{staticClass:"art-time"},[0!=e.comment?a("v-uni-text",{staticClass:"pl"},[t._v(t._s(e.comment)+"评论")]):t._e(),a("v-uni-text",{staticClass:"creat-time"},[t._v(t._s(t._f("showTime")(e.add_time)))])],1)],1),a("v-uni-view",{staticClass:"art-right"},[a("v-uni-image",{attrs:{src:e.image_input,mode:""}})],1)],1):t._e(),0==e.image_input.length?a("v-uni-view",{staticClass:"art-item-zero flex art-item",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.goToDetail(e.id)}}},[a("v-uni-view",{staticClass:"art-tit clamp2"},[t._v(t._s(e.title))]),a("v-uni-view",{staticClass:"art-time"},[0!=e.comment?a("v-uni-text",{staticClass:"pl"},[t._v(t._s(e.comment)+"评论")]):t._e(),a("v-uni-text",{staticClass:"creat-time"},[t._v(t._s(t._f("showTime")(e.add_time)))])],1)],1):t._e(),e.image_input.length>1?a("v-uni-view",{staticClass:"art-item-three art-item flex",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.goToDetail(e.id)}}},[a("v-uni-view",{staticClass:"art-tit clamp2"},[t._v(t._s(e.title))]),a("v-uni-view",{staticClass:"art-img-list"},t._l(e.image_input,(function(t,e){return a("v-uni-image",{attrs:{src:t,mode:""}})})),1),a("v-uni-view",{staticClass:"art-time"},[0!=e.comment?a("v-uni-text",{staticClass:"pl"},[t._v(t._s(e.comment)+"评论")]):t._e(),a("v-uni-text",{staticClass:"creat-time"},[t._v(t._s(t._f("showTime")(e.add_time)))])],1)],1):t._e()],1)})),a("uni-load-more",{attrs:{status:t.loadingType}})],2)],2)},o=[]},"9ed6":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"uni-load-more",props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"}}}},data:function(){return{}}};e.default=i},b831:function(t,e,a){"use strict";a.r(e);var i=a("543c"),n=a("be57");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("1ca2");var d,r=a("f0c5"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"5516c8de",null,!1,i["a"],d);e["default"]=s.exports},be57:function(t,e,a){"use strict";a.r(e);var i=a("9ed6"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},c02f:function(t,e,a){var i=a("0b5b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("c9625ed0",i,!0,{sourceMap:!1,shadowMode:!1})},c720:function(t,e,a){"use strict";var i=a("65cf"),n=a.n(i);n.a},cd01:function(t,e,a){"use strict";var i=a("4ea4");a("99af"),a("e25e"),a("ac1f"),a("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("b831")),o=i(a("ef55")),d=a("e0f1"),r=(a("4098"),a("4a61")),s={components:{empty:o.default,uniLoadMore:n.default},data:function(){return{isDy:!1,id:"",page:1,limit:10,list:[],loadingType:"more",info:""}},filters:{showTime:function(t){t*=1e3;var e=6e4,a=60*e,i=24*a,n=7*i,o=30*i,d=(new Date).getTime(),r=new Date(t),s=d-r;if(!(s<0)){var l=s/e,u=s/a,c=s/i,f=s/n,m=s/o,g="";if(console.log(m,f,c,u,l),m>=1&&m<=3)g=" "+parseInt(m)+"月前";else if(f>=1&&f<=4)g=" "+parseInt(f)+"周前";else if(c>=1&&c<=7)g=" "+parseInt(c)+"天前";else if(u>=1&&u<=24)g=" "+parseInt(u)+"小时前";else if(l>=1&&l<=60)g=" "+parseInt(l)+"分钟前";else if(s>=0&&s<=e)g="刚刚";else{var v=new Date;v.setTime(r);var h=v.getFullYear(),p=v.getMonth()+1<10?"0"+(v.getMonth()+1):v.getMonth()+1,b=v.getDate()<10?"0"+v.getDate():v.getDate();v.getHours()<10?v.getHours():v.getHours(),v.getMinutes()<10?v.getMinutes():v.getMinutes(),v.getSeconds()<10?v.getSeconds():v.getSeconds();g=h+"-"+p+"-"+b}return g}}},onLoad:function(t){this.id=t.id,this.loadData()},onReachBottom:function(){this.loadData()},methods:{goToDetail:function(t){uni.navigateTo({url:"/pages/user/article?id="+t})},navto:function(t){uni.navigateTo({url:t})},loadData:function(){var t=this,e=this;"noMore"!=this.loadingType&&"loading"!=this.loadingType&&(this.loadingType="loading",(0,d.enDetails)({id:this.id,page:this.page,rows:this.limit}).then((function(a){var i=a.data;t.info=i.content.list[0],t.info.introduce&&(t.info.introduce=t.info.introduce.replace(/