1 line
31 KiB
JavaScript
1 line
31 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-dec3fbdc"],{"06e33":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,"#voice_detail img{display:block;max-width:100%!important;height:auto!important}#voice_detail iframe{width:100%!important}#voice_detail li{list-style:inherit}",""]),t.exports=e},"12ae":function(t,e,i){t.exports=i.p+"static/app/img/loading.667696a0.gif"},1405:function(t,e,i){"use strict";i("2e06")},"253a":function(t,e,i){t.exports=i.p+"static/app/img/img_default.a608a24a.png"},"2e06":function(t,e,i){var a=i("06e33");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("499e").default;n("7eea1ad8",a,!0,{sourceMap:!1,shadowMode:!1})},3435:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".comment[data-v-2769d0b2]{background-color:#fff;padding-bottom:1.94rem}.comment .replyInp[data-v-2769d0b2]{width:100%;height:3.13rem;background-color:#fff;padding-left:.94rem;padding-right:1.28rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-shadow:-.01rem .09rem .91rem 0 hsla(0,0%,73.7%,.57);box-shadow:-.01rem .09rem .91rem 0 hsla(0,0%,73.7%,.57)}.comment .replyInp .userImg[data-v-2769d0b2],.comment .replyInp .userImg img[data-v-2769d0b2]{width:2.19rem;height:2.19rem;border-radius:100%}.comment .replyInp .inpNav[data-v-2769d0b2]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:1.88rem;background:#f5f5f5;border-radius:.94rem;padding-left:.97rem;margin-left:.66rem}.comment .replyInp .inpNav input[data-v-2769d0b2]{width:100%;height:100%;outline:none;border:none}.comment .title[data-v-2769d0b2]{font-size:1rem;color:#202020;text-align:left;padding-top:1.06rem;padding-left:.97rem;padding-bottom:1.16rem;-webkit-box-sizing:border-box;box-sizing:border-box}.comment .commentList[data-v-2769d0b2]{padding:1.13rem .94rem}.comment .commentList .firstComment .userTop[data-v-2769d0b2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.comment .commentList .firstComment .userTop .user[data-v-2769d0b2]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;height:100%}.comment .commentList .firstComment .userTop .user .userName[data-v-2769d0b2]{font-size:1rem;color:#2e2e2e}.comment .commentList .firstComment .userTop .user .dateDay[data-v-2769d0b2]{font-size:.63rem;color:#767676}.comment .commentList .firstComment .userTop .user .contenBox[data-v-2769d0b2]{margin-top:.88rem;width:100%}.comment .commentList .firstComment .userTop .user .contenBox .txt[data-v-2769d0b2]{font-size:.94rem;color:#2e2e2e;margin-bottom:.63rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.comment .commentList .firstComment .userTop .user .contenBox .contenImg[data-v-2769d0b2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start}.comment .commentList .firstComment .userTop .user .contenBox .contenImg img[data-v-2769d0b2]{width:3rem;height:3rem;background-color:#c1c1c1;border-radius:.13rem;margin:0;margin-right:.25rem}.comment .commentList .firstComment .userTop .image[data-v-2769d0b2]{width:2.5rem;height:2.5rem;background-color:#b5b5b5;border-radius:50%;margin-right:.63rem}.comment .commentList .firstComment .userTop .image img[data-v-2769d0b2]{width:2.5rem;height:2.5rem;border-radius:50%}.comment .commentList .firstComment .userTop .reply[data-v-2769d0b2]{font-size:.88rem;line-height:1.27rem;letter-spacing:.02rem;color:#f15353}.comment .commentList .firstComment .commentLis[data-v-2769d0b2]{margin-top:.94rem;margin-left:1.16rem}.comment .commentList .firstComment .commentLis .userTop[data-v-2769d0b2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.comment .commentList .firstComment .commentLis .userTop .user[data-v-2769d0b2]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left;height:100%}.comment .commentList .firstComment .commentLis .userTop .user .userName[data-v-2769d0b2]{font-size:.88rem;color:#2e2e2e}.comment .commentList .firstComment .commentLis .userTop .user .dateDay[data-v-2769d0b2]{font-size:.63rem;color:#767676}.comment .commentList .firstComment .commentLis .userTop .user .contenBox[data-v-2769d0b2]{margin-top:.88rem;width:100%}.comment .commentList .firstComment .commentLis .userTop .user .contenBox .txt[data-v-2769d0b2]{font-size:.88rem;color:#2e2e2e;margin-bottom:.63rem}.comment .commentList .firstComment .commentLis .userTop .user .contenBox .contenImg[data-v-2769d0b2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start}.comment .commentList .firstComment .commentLis .userTop .user .contenBox .contenImg img[data-v-2769d0b2]{width:3rem;height:3rem;background-color:#c1c1c1;border-radius:.13rem;margin:0;margin-right:.25rem}.comment .commentList .firstComment .commentLis .userTop .image[data-v-2769d0b2]{width:1.88rem;height:1.88rem;background-color:#b5b5b5;border-radius:50%;margin-right:.63rem}.comment .commentList .firstComment .commentLis .userTop .image img[data-v-2769d0b2]{width:1.88rem;height:1.88rem;border-radius:50%}.comment .commentList .firstComment .commentLis .userTop .reply[data-v-2769d0b2]{font-size:.69rem;line-height:1.27rem;letter-spacing:.02rem;color:#f15353}.foot[data-v-2769d0b2]{height:1.875rem}.foot h4[data-v-2769d0b2]{text-align:left;font-size:18px}.foot h4.like[data-v-2769d0b2],.foot h4.read[data-v-2769d0b2]{float:left;color:#8a8a8a;text-align:left;font-size:16px}.foot h4.read[data-v-2769d0b2]{padding-right:.625rem}.foot h4.link[data-v-2769d0b2],.foot h4.report[data-v-2769d0b2]{float:right}.foot h4.copy[data-v-2769d0b2],.foot h4.link[data-v-2769d0b2],.foot h4.report[data-v-2769d0b2]{padding-right:.625rem;color:#8a8a8a;text-align:left;font-size:16px}.foot h4.copy[data-v-2769d0b2]{float:left}.paddingbox[data-v-2769d0b2]{padding:0 1rem;background:#fff}.foot_advs[data-v-2769d0b2]{margin-bottom:1.25rem;height:auto;border:.0625rem solid #ddd;padding:.3125rem .3125rem;background:#fff;width:100%;border-radius:0}.foot_advs .advs_img_bg[data-v-2769d0b2]{width:100%;margin-bottom:.625rem;padding-top:.3125rem;padding-bottom:.3125rem}.foot_advs .advs_img[data-v-2769d0b2]{width:100%}.foot_advs .advs_desc[data-v-2769d0b2]{font-size:14px;color:#8a8a8a}.foot_advs .advs_desc[data-v-2769d0b2],.foot_advs p.advs_title[data-v-2769d0b2]{padding-left:.3125rem;padding-right:.3125rem;text-align:left}.foot_advs p.advs_title[data-v-2769d0b2]{height:1.875rem;line-height:1.875rem;font-size:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:700}#voice_detail #content .content_a[data-v-2769d0b2]{background:#fff;padding-bottom:.625rem}#voice_detail #content .content_a .banner[data-v-2769d0b2]{width:100%;height:auto;overflow:hidden;background:#f5f5f5}#voice_detail #content .content_a .banner img[data-v-2769d0b2]{width:100%;height:auto}#voice_detail #content .content_a .topA[data-v-2769d0b2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .875rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#voice_detail #content .content_a h1[data-v-2769d0b2]{font-size:16px;height:2.5rem;line-height:2.5rem;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#voice_detail #content .content_a .author[data-v-2769d0b2]{color:#867e7e;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}#voice_detail #content .content_a .audio-wrapper[data-v-2769d0b2]{background-color:#fcfcfc;margin:10px auto;width:100%;height:70px;border:1px solid #e0e0e0;color:#3e3e3e}#voice_detail #content .content_a .audio-left[data-v-2769d0b2]{float:left;text-align:center;width:18%;height:100%}#voice_detail #content .content_a .audio-left img[data-v-2769d0b2]{width:40px;position:relative;top:15px;margin:0;display:initial;cursor:pointer}#voice_detail #content .content_a .slider[data-v-2769d0b2]{width:80%;position:relative;height:30px;margin-top:20px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:none}#voice_detail #content .content_a .slider-track[data-v-2769d0b2]{position:absolute;height:2px;left:0;right:0;top:50%;margin-top:-1px;background-color:#bec2c1}#voice_detail #content .content_a .slider-fill[data-v-2769d0b2]{position:absolute;height:2px;width:100%;background-color:#28a4e9;left:0;top:50%;margin-top:-1px}#voice_detail #content .content_a .slider-thumb[data-v-2769d0b2]{position:absolute;top:50%;width:12px;height:12px;background-color:#28a4e9;color:#28a4e9;border-radius:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);cursor:pointer}#voice_detail #content .content_a .time[data-v-2769d0b2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#voice_detail #content .content_a .time_left[data-v-2769d0b2]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left}#voice_detail #content .content_a .time_right[data-v-2769d0b2]{-webkit-box-flex:0;-webkit-flex:0 0 3rem;-ms-flex:0 0 3rem;flex:0 0 3rem;padding-right:1rem}#voice_detail #content .content_b[data-v-2769d0b2]{background:#fff;margin-top:.625rem}#voice_detail #content .content_b h2[data-v-2769d0b2]{height:2.5rem;line-height:2.5rem;font-size:16px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .875rem}#voice_detail #content .content_b h2 span[data-v-2769d0b2]{font-size:14px;color:#8c8c8c;font-weight:400}#voice_detail #content .content_b .text[data-v-2769d0b2]{padding:.625rem 1.25rem;text-align:left;font-size:14px;color:#666}#voice_detail #content .content_c[data-v-2769d0b2]{background:#fff;margin-top:.625rem;padding-bottom:1.25rem}#voice_detail #content .content_c h3[data-v-2769d0b2]{height:2.5rem;line-height:2.5rem;font-size:16px;text-align:left;padding:0 .875rem}#voice_detail #content .content_c .code span[data-v-2769d0b2]{color:#8c8c8c}#voice_detail #content .content_c .code .img[data-v-2769d0b2]{width:7.5rem;height:7.5rem;overflow:hidden;background:#f5f5f5;margin:.625rem auto}#voice_detail #content .content_c .code .img img[data-v-2769d0b2]{width:100%}",""]),t.exports=e},3755:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"voice_detail"}},[a("c-title",{attrs:{hide:!1,text:"音频详情"}}),1===t.isShow?a("div",{attrs:{id:"content"}},[a("div",{staticClass:"content_a"},[a("div",{staticClass:"banner"},[t.dataInfo.thumb?a("div",{staticClass:"image"},[a("img",{attrs:{src:t.dataInfo.thumb}})]):t._e(),t.dataInfo.thumb?t._e():a("div",{staticClass:"image"},[a("img",{attrs:{src:i("253a")}})])]),a("div",{staticClass:"topA"},[a("h1",[t._v(t._s(t.dataInfo.title))]),a("div",{staticClass:"author"},[t._v("作者:"+t._s(t.dataInfo.author))])]),a("div",{staticClass:"audio-wrapper"},[a("audio",{ref:"audio",staticStyle:{display:"none"},attrs:{id:"audio",controls:"controls",src:t.dataInfo.audio_link},on:{pause:t.onPause,play:t.onPlay,timeupdate:t.onTimeupdate,loadedmetadata:t.onLoadedmetadata}},[t._v(" 您的浏览器不支持 audio 标签! ")]),a("div",{staticClass:"audio-left"},[t.isPlay&&t.readyState>0?a("img",{attrs:{src:i("c4bf")},on:{click:t.startPlayOrPause}}):t._e(),!t.isPlay&&t.readyState>0?a("img",{attrs:{src:i("63a5")},on:{click:t.startPlayOrPause}}):t._e(),t.readyState<1?a("img",{attrs:{src:i("12ae")}}):t._e()]),a("div",{ref:"slidre"+t.i,staticClass:"slider",on:{touchstart:function(e){return t.handleTouchStart(e,t.i)}}},[a("div",{staticClass:"slider-track"}),a("div",{staticClass:"slider-fill",style:"width:"+t.sliderTime+"%"}),a("div",{staticClass:"slider-thumb",style:"left:"+t.sliderTime+"%"})]),a("div",{staticClass:"time"},[a("div",{staticClass:"time_left"},[t._v(t._s(t._f("formatSecond")(t.audio.currentTime)))]),a("div",{staticClass:"time_right"},[t._v(t._s(t._f("formatSecond")(t.audio.maxTime)))])])])]),a("div",{staticClass:"content_b"},[a("h2",[t._v(" 【音频简介】"),a("span",[t._v(t._s(t.dataInfo.created_at))])]),a("div",{staticClass:"text",domProps:{innerHTML:t._s(t.dataInfo.content)}})]),a("div",{staticClass:"paddingbox"},[t.is_advs_type?a("div",{staticClass:"foot_advs",on:{click:function(e){return t.toAdvs()}}},[a("p",{staticClass:"advs_title"},[t._v(t._s(t.dataInfo.advs_title))]),t.dataInfo.advs_img?a("div",{staticClass:"advs_img_bg"},[a("img",{staticClass:"advs_img",attrs:{src:t.dataInfo.advs_img}})]):t._e(),t.dataInfo.advs_img?t._e():a("div",{staticClass:"advs_img_bg"},[a("img",{staticClass:"advs_img",attrs:{src:i("253a")}})]),a("div",{staticClass:"advs_desc"},[t._v(t._s(t.dataInfo.advs_title_footer))])]):t._e(),a("div",{staticClass:"foot"},[a("div",[a("h4",{staticClass:"read"},[t._v("阅读 "+t._s(t.read_num))]),a("h4",{staticClass:"like",on:{click:function(e){return t.like(t.like_num)}}},[t._v(t._s(t.is_liked?"已点赞":"点赞")+" "+t._s(t.like_num))]),t.comment?a("h4",{staticClass:"like",staticStyle:{"padding-left":"0.625rem"}},[t._v("评论("+t._s(t.commentNum)+")")]):t._e()]),t.is_report_enabled?a("div",[a("h4",{staticClass:"report",on:{click:function(e){return t.report()}}},[t._v("举报")])]):t._e(),t.is_link?a("div",[a("h4",{staticClass:"link",on:{click:function(e){return t.link()}}},[t._v("阅读原文")])]):t._e()])]),t.codeUrl?a("div",{staticClass:"content_c"},[a("h3",[t._v("【二维码】")]),a("div",{staticClass:"code"},[a("span",[t._v("长按识别二维码")]),a("div",{staticClass:"img"},[a("img",{attrs:{src:t.codeUrl}})])])]):t._e(),t.comment?a("div",{staticClass:"comment"},[a("div",{staticStyle:{width:"100%",height:"0.31rem",background:"#f2f2f2"}}),a("div",{staticClass:"title"},[t._v("评论详情")]),a("div",{staticClass:"commentList"},[t._l(t.commentList,(function(e,n){return a("div",{key:n,staticClass:"firstComment",on:{click:function(i){return i.stopPropagation(),t.delComment(e,n)}}},[a("div",{staticClass:"userTop"},[a("div",{staticClass:"image"},[a("img",{attrs:{src:e.head_image,alt:""}})]),a("div",{staticClass:"user"},[a("div",{staticClass:"userName"},[t._v(t._s(e.nick_name))]),a("div",{staticClass:"dateDay"},[t._v(t._s(e.created_at))]),a("div",{staticClass:"contenBox"},[a("div",{staticClass:"txt"},[t._v(t._s(e.content))]),e.comment_images.length>0?a("div",{staticClass:"contenImg",on:{click:function(i){return i.stopPropagation(),t.watchImg(e.comment_images)}}},[a("img",{attrs:{src:e.comment_images,alt:""}})]):t._e()])]),a("div",{staticClass:"reply",on:{click:function(i){return i.stopPropagation(),t.replyBtn(e.nick_name,e,n)}}},[t._v("回复")])]),t._l(e.child,(function(o,s){return a("div",{directives:[{name:"show",rawName:"v-show",value:e.child,expression:"item.child"}],key:s,staticClass:"commentLis",on:{click:function(e){return e.stopPropagation(),t.delComment(o,n,s,"child")}}},[a("div",{staticClass:"userTop"},[a("div",{staticClass:"image"},[o.head_image?a("img",{attrs:{src:o.head_image,alt:""}}):a("img",{attrs:{src:i("b17d"),alt:""}})]),a("div",{staticClass:"user"},[a("div",{staticClass:"userName"},[t._v(t._s(o.nick_name))]),a("div",{staticClass:"dateDay"},[t._v(t._s(o.updated_at))]),a("div",{staticClass:"contenBox"},[a("div",{staticClass:"txt"},["0"!=o.reply_id||o.reply_name?a("div",[t._v("回复"+t._s(o.reply_name)+":")]):t._e(),t._v(" "+t._s(o.content)+" ")]),a("div",{directives:[{name:"show",rawName:"v-show",value:o.comment_images,expression:"info.comment_images"}],staticClass:"contenImg",on:{click:function(e){return e.stopPropagation(),t.watchImg(o.comment_images)}}},[t._l(o.comment_images,(function(t,e){return[a("img",{key:e,attrs:{src:t,alt:""}})]}))],2)])]),a("div",{staticClass:"reply",on:{click:function(e){return e.stopPropagation(),t.replyBtn(o.nick_name,o,n)}}},[t._v("回复")])])])})),e.reply_num>0&&e.commentShow?a("div",{staticClass:"commentLis"},[a("div",{staticClass:"commentMore",on:{click:function(i){return i.stopPropagation(),t.moreCommentLis(e.id,n)}}},[t._v(" 显示展开"+t._s(e.reply_num)+"条回复 "),a("van-icon",{attrs:{name:"arrow-down"}})],1)]):t._e()],2)})),t.commentPage<t.last_page?a("div",{staticClass:"commentMore",on:{click:t.getMore}},[t._v(" 展开更多的评论 "),a("van-icon",{attrs:{name:"arrow-down"}})],1):t._e()],2),a("div",{staticClass:"replyInp"},[a("div",{staticClass:"userImg"},[a("img",{attrs:{src:t.commenMember.avatar_image,alt:""}})]),a("div",{staticClass:"inpNav",on:{click:t.subMainCommentBtn}},[a("input",{attrs:{disabled:"",type:"text",placeholder:"来都来了,留下点什么吧"}})])]),a("yz-comment-input",{attrs:{options:t.commentInputOptions},on:{confirm:t.subMainBtn},model:{value:t.showCommentInput,callback:function(e){t.showCommentInput=e},expression:"showCommentInput"}},["reply"==t.commentInputOptions.type?a("div",{staticClass:"commentInput-slot-style"},[t._v(" 回复"),a("span",{staticClass:"selcolor"},[t._v("@"+t._s(t.replyName))])]):t._e()])],1):t._e(),a("van-image-preview",{attrs:{images:t.imgList,"start-position":t.imgStart},model:{value:t.showImg,callback:function(e){t.showImg=e},expression:"showImg"}})],1):t._e()],1)},n=[],o=(i("e7e5"),i("d399")),s=i("53ca"),m=(i("fb6a"),i("9911"),i("99af"),i("a9e3"),i("e9c4"),i("a434"),i("b680"),i("6968")),d=i("cc54");function c(t){var e=Object(s["a"])(t);if("number"===e||"string"===e){t=parseInt(t);var i=Math.floor(t/3600);t-=3600*i;var a=Math.floor(t/60);return t-=60*a,i+":"+("0"+a).slice(-2)+":"+("0"+t).slice(-2)}return"0:00:00"}var r={data:function(){return{dataInfo:{audio_link:""},isShow:1,isPlay:!0,readyState:1,article_id:0,codeUrl:"",sliderTime:0,audio:{playing:!1,currentTime:0,maxTime:0,minTime:0,step:.1},is_advs_type:!1,like_num:0,read_num:0,is_liked:!1,is_link:!1,showCommentInput:!1,commentInputOptions:{},replyName:"",commentPage:1,commentList:[],last_page:1,commenMember:[],commentListMore:[],keyInd:0,comment_id:0,comment:!1,commentNum:0}},mounted:function(){this.$nextTick((function(){}))},activated:function(){this.init(),this.getData(),this.getQrCode()},methods:{init:function(){this.isPlay=!0,this.readyState=1,this.codeUrl="",this.isShow=1,this.article_id=this.$route.params.article_id,this.id=this.article_id},getQrCode:function(){var t=this;$http.get("member.member.getArticleQr",{},"").then((function(e){1===e.result&&(t.codeUrl=e.data)}),(function(t){}))},getData:function(){var t=this,e=this,i=this.fun.getKey("share_uid");i=this.fun.isTextEmpty(i)?"":i;var a={article_id:this.article_id,share_uid:i};$http.get("plugin.article.api.article.get-article",a,"").then((function(i){1===i.result?(e.dataInfo=i.data,e.fun.setWXTitle(e.dataInfo.title),e.is_advs_type=0!=i.data.advs_type,e.like_num=i.data.like_num+i.data.virtual_like_num,e.read_num=i.data.read_num+i.data.virtual_read_num,e.is_link=!e.fun.isTextEmpty(i.data.link),e.is_liked=0!=i.data.liked,i.data.comment&&(e.comment=i.data.comment,e.getComment()),t.fun.wxShare("",{mid:t.fun.getKeyByMid()},{title:e.fun.isTextEmpty(e.dataInfo.title)?"文章":e.dataInfo.title,imgUrl:e.fun.isTextEmpty(e.dataInfo.thumb)?"":e.dataInfo.thumb,description:e.fun.isTextEmpty(e.dataInfo.desc)?"简介":e.dataInfo.desc})):(t.isShow=0,e.$dialog.alert({message:i.msg}).then((function(){e.$router.go(-1)})))}),(function(t){}))},toAdvs:function(){!this.fun.isTextEmpty(this.dataInfo)&&this.fun.isTextEmpty(this.dataInfo.advs_link)||(window.location.href=this.fun.funHrefFilters(this.dataInfo.advs_link))},getComment:function(){var t=this;$http.post("plugin.article.api.comment.comment-list",{page:this.commentPage,article_id:this.id},"").then((function(e){if(1==e.result){t.commentList=e.data.list.data;for(var i=0;i<t.commentList.length;i++)t.commentList[i].reply_num>0?t.$set(t.commentList[i],"commentShow",!0):t.$set(t.commentList[i],"commentShow",!1),t.$set(t.commentList[i],"commenMorePage","1");t.last_page=e.data.list.last_page,t.commenMember=e.data.member,t.commentNum=e.data.num}else Object(o["a"])(e.msg)}))},watchImg:function(t){this.imgList=t,this.showImg=!0},getMore:function(){var t=this;this.commentPage=this.commentPage+1,$http.post("plugin.article.api.comment.comment-list",{page:this.commentPage,article_id:this.id},"").then((function(e){if(1==e.result){var i=e.data.list.data;t.commentList=t.commentList.concat(i);for(var a=0;a<t.commentList.length;a++)t.commentList[a].reply_num>0?t.$set(t.commentList[a],"commentShow",!0):t.$set(t.commentList[a],"commentShow",!1),t.$set(t.commentList[a],"commenMorePage",1);t.last_page=e.data.list.last_page}else Object(o["a"])(e.msg)}))},moreCommentLis:function(t,e){var i=this,a="plugin.article.api.comment.get-replys",n=Number(this.commentList[e].commenMorePage),s={page:n,comment_id:t};$http.post(a,s,"").then((function(t){if(1==t.result){var a=t.data.data;n>=1&&i.commentList[e].child&&(a=i.commentList[e].child.concat(a)),i.$set(i.commentList[e],"child",a);var s=i.commentList[e].reply_num-t.data.data.length;i.$set(i.commentList[e],"reply_num",s);var m=t.data.last_page;n>=m?n=1:n+=1,i.$set(i.commentList[e],"commenMorePage",n)}else Object(o["a"])(t.msg)}))},subMainBtn:function(t){t&&(this.showCommentInput=!1,this.getReplyComments(t))},getReplyComments:function(t){var e,i=this,a={images:JSON.stringify(t.imgs),content:t.text};"reply"==t.options.type?(e="plugin.article.api.comment.reply-comment",a.comment_id=i.replyId):"main"==t.options.type&&(e="plugin.article.api.comment.create-comment",a.article_id=i.id),$http.post(e,a,"").then((function(e){1==e.result?("main"==t.options.type?(i.commentPage=1,i.getComment()):i.updateInfo("getReply",e.data,i.keyInd),Object(o["a"])(e.msg)):Object(o["a"])(e.msg)}))},updateInfo:function(t,e,i){var a=[];a.push(e),this.commentList[i].child?this.commentList[i].child.unshift(a[0]):this.$set(this.commentList[i],"child",a)},subMainCommentBtn:function(){this.showCommentInput=!0,this.commentInputOptions={type:"main"}},replyBtn:function(t,e,i){this.keyInd=i,this.replyId="",this.replyId=e.id,this.comment_id=0==e.comment_id?e.comment_id:e.id,this.replyName=t,this.showCommentInput=!0,this.commentInputOptions={type:"reply",placeholder:"请输入你的回复吧"},this.commentManagement=!1},delComment:function(t,e,i,a){var n,o=window.localStorage.uid;n=t.id,t.uid==o&&this.delRequst(n,e,i,a)},delRequst:function(t,e,i,a){var n=this;this.$dialog.confirm({message:"是否删除评论?"}).then((function(){$http.post("plugin.article.api.comment.del",{comment_id:t},"").then((function(t){1==t.result?("child"==a?(n.commentList[e].child.splice(i,1),n.$set(n.commentList[e],"child",n.commentList[e].child)):n.commentList.splice(e,1),Object(o["a"])(t.data)):Object(o["a"])(t.msg)}))})).catch((function(){}))},report:function(){this.$router.push(this.fun.getUrl("noticeReport",{id:this.id}))},link:function(){window.location.href=this.fun.funHrefFilters(this.dataInfo.link)},like:function(t){var e=this,i={article_id:this.id};$http.get("plugin.article.api.article.like",i,"").then((function(i){1===i.result&&(1==i.data.liked?(e.is_liked=!0,e.like_num=t+1,Object(o["a"])("点赞成功")):(e.is_liked=!1,e.like_num=t-1,e.like_num<0&&(e.like_num=0),Object(o["a"])("取消点赞")))}),(function(t){}))},initShare:function(){var t=this,e=document.location.href,i={url:e,mid:this.fun.getKeyByMid()};$http.post("member.member.wxJsSdkConfig",i).then((function(e){1===e.result?t.share(e.data):t.$dialog.alert({message:e.msg})}),(function(t){}))},share:function(t){var e=this;wx.config(t.config),wx.ready((function(){var i=e.fun.isTextEmpty(e.dataInfo.title)?"文章":e.dataInfo.title,a=document.location.href;a=e.fun.isMid(a,t.info.uid);var n=e.fun.isTextEmpty(e.dataInfo.thumb)?"":e.dataInfo.thumb,s=e.fun.isTextEmpty(e.dataInfo.desc)?"简介":e.dataInfo.desc;wx.showOptionMenu(),wx.onMenuShareTimeline({title:i,link:a,imgUrl:n,success:function(){Object(o["a"])("分享成功")},cancel:function(){Object(o["a"])("取消分享")}}),wx.onMenuShareAppMessage({title:i,desc:s,link:a,imgUrl:n,type:"link",dataUrl:"",success:function(){Object(o["a"])("分享成功")},cancel:function(){Object(o["a"])("取消分享")}})}))},startPlayOrPause:function(){return this.readyState=this.$refs.audio.readyState,this.audio.playing?this.isPlay=!0:this.isPlay=!1,this.audio.playing?this.pause():this.play()},play:function(){this.$refs.audio.play()},pause:function(){this.$refs.audio.pause()},onPlay:function(){this.audio.playing=!0},onPause:function(){this.audio.playing=!1},handleFocus:function(){},error:function(t){this.$dialog.alert({message:"音频出错了"})},onLoadedmetadata:function(t){this.readyState=this.$refs.audio.readyState,this.audio.maxTime=parseInt(t.target.duration)},onTimeupdate:function(t){this.audio.currentTime=t.target.currentTime,this.sliderTime=parseInt(this.audio.currentTime/this.audio.maxTime*100)},formatProcessToolTip:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t=parseInt(this.audio.maxTime/100*t),"进度条: "+c(t)},handleTouchStart:function(t){this.setValue(t.touches[0]),document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("touchup",this.handleTouchEnd),document.addEventListener("touchend",this.handleTouchEnd),document.addEventListener("touchcancel",this.handleTouchEnd)},handleTouchMove:function(t){this.setValue(t.changedTouches[0])},handleTouchEnd:function(t){this.setValue(t.changedTouches[0]),document.removeEventListener("touchmove",this.handleTouchMove),document.removeEventListener("touchup",this.handleTouchEnd),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("touchcancel",this.handleTouchEnd)},setValue:function(t){var e=this.audio,i=e.maxTime,a=e.minTime,n=e.step,o=(t.clientX-this.$refs.slider.offsetLeft)/this.$refs.slider.offsetWidth*(i-a);o=Math.round(o/n)*n+a,o=parseFloat(o.toFixed(5)),o>i?o=i:o<a&&(o=a),this.$refs.audio.currentTime=o},changeCurrentTime:function(t){this.$refs.audio.currentTime=parseInt(t/100*this.audio.maxTime)}},filters:{formatSecond:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return c(t)}},components:{cTitle:m["a"],yzCommentInput:d["a"]}},l=r,u=l,f=(i("5aaf"),i("1405"),i("2877")),p=Object(f["a"])(u,a,n,!1,null,"2769d0b2",null);e["default"]=p.exports},"5aaf":function(t,e,i){"use strict";i("d6663")},"63a5":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAGIElEQVR4Xu1bTVYiSRD+orrU2Q1wgdH3GrajJ5A+wegJxKWwEE/QeoLGBbgUT9DcoPEE4hZ8T/oCUL0bbLpiXtafWQVFZf3oVIvstKoyM778IiMyfggv/Ct8eSxgY76vfcAuM3YBFADeJtC2PDWDxwCNARhEGJi/MMBP/dY42zFecon0EoMX2sNdjeiImatEJIRO/GPmARH1TeYbo1EZJB4o5MPMALB2evPnEQE1FaGZ8R0EseMAY5sIf0UJJ8BgoIunjZusmJEaACG49sf8lE00iQS9/T8G3xNrfZPQB7FhnJT7qwQtXI2qYCpojCqTWSXQ3wtjMgzS0DL/1S/TApEKgELn4YCYr4OCC6EZ1MVM76ZdoMWsrXmNwLUgGMwwmOjYqH/sRbEn7HkiAApXj9vE82sCqoH9vjGJulG7nHSxgh1kM+0f/wGKPpN+bJzs2CoV4xcbgGW7zsAtk15LsoAYa/VedTagS8C++8+kbIgFQKkz+gKg6U0K/GBQLQ0FkwDgfmNtBlgA8ac3DuF8clK+UB1XGYBSe3gNopok/C3P9IO0Oq660LD3xBlBW/OezAYwdyeNyrHK2EoABIUH42LSKJ+rTPBa75Tao3MQPnvzKYIQCUBQeJP52GhUuq8lWJx5Cu1hTSO6jgPCSgBK7YcWiE/dAfMsvHcuLICwmq2hAIg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YYA0RC+h56viE33vEU6JGclCG6rwHADqzjHleZ5kjUHy10yJrSMpanhy1s7zuAAsTYoqNdDJwpdIiwe7X4+eL6X/7HIkSP6+6MWImW1ap54vzAGsuhiZlpcM/PJUO5cjMvEgy2LT+O1xab5S+tKlHrl57VX+fzlqImayQOfNbUngV46j7z2Uo2VIX67pSYXIf7pAQkvJrLKyeVe4bhbMlcgsTPsvL5LiSVcaRJWYHGX2bIWi6wJhWjh5I2+8FfXJLUUukpKLDJXJySusceb9awHBL/Z4/K5fq8Quk9NSChVKLqmyWpdE48xjVrnpW+Bl/VeXyk69JzmAurUZuYebyoTpKSbrmqdXfKv9mZUATN1k//pMpac3Ux3maR/VmYsEgNy4Li/xmcADZhymSU3HofSqttPHE99mj7VWS16PGRkABYJRPC3/Fswnv6LIIeS8NXufHKLZo41pmLsKtEQA6NOBwG39pE2pBCArMK2/6XtuE0rqwLm29H46jcpxa5BiMUAvaPpoSoLg1+X7xqEtnMyp7QzuPAiq3E08ftavV6bGOXFWKREAARDNXpmIGqEHjgoIurAdAapkhuCjuY0/sK+GofrfqPSX7VIBoFRC1hhtTU5YvRidvfSUhpKI2kLwVVL1UK6sQx+YuWy+RpV0J0ZDjN1G2iM5NQABG+TT2e1JmVi9IA1eefraAQ8EWbvfESyfzcqH0os+yjvEeWbsgyGfxYVqllQekdDAyG2n3XhiIxiFXv6TV6fMJPb1I6Yo/Ra1kdlbYqcjINpJmfTc3NYYsGwS9ah6++e+w1xioAQpVUZ+AUt+gDAAQ1ZwdQVRF6M3HVuSXra+fwCqNdPQIzNzWQAAAABJRU5ErkJggg=="},d6663:function(t,e,i){var a=i("3435");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("499e").default;n("1a1b728e",a,!0,{sourceMap:!1,shadowMode:!1})}}]); |