"use strict";(self["webpackChunkninepage"]=self["webpackChunkninepage"]||[]).push([[993],{2993:function(t,e,s){s.r(e),s.d(e,{default:function(){return p}});var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"detail-head flexacenter"},[e("div",{staticClass:"detail-section",on:{click:function(e){return t.toAllSection()}}},[t._v(" 版块:"),e("span",{staticClass:"section-name"},[t._v(t._s(t.info.forum))])]),e("div",{staticClass:"detail-data flexacenter"},[e("div",{staticClass:"detail-data-item flexacenter"},[e("img",{staticClass:"detail-data-eye",attrs:{src:s(153)}}),t._v(t._s(t.info.views))]),e("div",{staticClass:"detail-data-item flexacenter"},[e("img",{staticClass:"detail-data-comment",attrs:{src:s(4455)}}),t._v(t._s(t.info.replies))])])]),e("div"),e("div",{staticClass:"detail-title-box"},[t.info.digest>0?e("div",{staticClass:"detail-title-item detail-title-jinghua flexcenter"},[t._v("精华")]):t._e(),t.info.typename?e("div",{staticClass:"detail-title-item detail-title-label flexcenter"},[t._v(t._s(t.info.typename))]):t._e(),t._v(" "+t._s(t.info.subject)+" ")]),e("div",{staticClass:"card flexcenter"},[e("div",{staticClass:"card-item shadow"},[e("div",{staticClass:"card-head flexacenter"},[e("img",{staticClass:"card-head-icon",attrs:{src:t.info.avatar}}),e("div",{staticClass:"card-head-content flex1 flexflex"},[e("div",{staticClass:"card-head-name flexflex"},[t._v(t._s(t.info.author||"匿名用户"))]),e("div",{staticClass:"card-head-time"},[t._v(t._s(t.$formattedDate(t.info.dateline||"")))])]),e("div",{staticClass:"card-head-fool"},[t._v("楼主")]),1==t.info.isauthor?e("a",{staticClass:"edit-box flexcenter",attrs:{href:`https://www.gter.net/bbs/post/edit.html?tid=${t.tid}&pid=${t.info.pid}`}},[e("img",{staticClass:"edit-icom",attrs:{src:s(627)}})]):t._e()]),5==t.type?[e("div",{staticClass:"summary-content"},[t._l(t.collegelist,(function(s,i){return e("div",{key:i,staticClass:"summary-content-item"},[e("div",{staticClass:"summary-offer-head flexacenter"},[e("span",{staticClass:"summary-offer-head-title"},[t._v("Offer "+t._s(i+1))]),e("a",{staticClass:"flexacenter",attrs:{href:s.url}},[t._v("详情"),e("svg-icon",{attrs:{"icon-class":"arrowsBlackLeft","class-name":"summary-offer-head-icon"}})],1)]),e("div",{staticClass:"summary-offer-box"},[t._l(t.offerinfoKey,(function(i,a){return[s[i.key]?e("div",{key:a,staticClass:"summary-offer-item flexacenter"},[e("div",{staticClass:"summary-offer-key flexacenter"},[t._v(t._s(i.name))]),e("div",{staticClass:"summary-offer-value flexacenter"},[t._v(t._s(s[i.key]))])]):t._e()]}))],2)])})),e("div",{staticClass:"summary-content-item"},[e("div",{staticClass:"summary-offer-head flexacenter"},[e("span",{staticClass:"summary-offer-head-title"},[t._v("总结")]),e("a",{staticClass:"flexacenter",attrs:{href:t.info.url}},[t._v("详情"),e("svg-icon",{attrs:{"icon-class":"arrowsBlackLeft","class-name":"summary-offer-head-icon"}})],1)]),e("div",{staticClass:"summary-wenzi",domProps:{innerHTML:t._s(t.info.message)}})]),e("a",{staticClass:"examine-btn flexcenter",attrs:{href:t.info.url}},[t._v(" 查看当前总结详情 "),e("div",{staticClass:"examine-btn-outside flexcenter"},[e("svg-icon",{attrs:{"icon-class":"arrowsRoundBlackLeft","class-name":"examine-btn-icon"}})],1)])],2)]:6==t.type?[e("div",{staticClass:"offer-content"},[e("div",{staticClass:"offer-content-box"},[t._l(t.offerinfoKey,(function(s,i){return[t.offerinfo[s.key]?e("div",{key:i,staticClass:"offer-content-item flexacenter"},[t.offerinfo[s.key]?e("div",{staticClass:"offer-content-key"},[t._v(t._s(s.name))]):t._e(),e("div",{staticClass:"offer-content-value"},[t._v(t._s(t.offerinfo[s.key]))])]):t._e()]}))],2),e("a",{staticClass:"examine-btn flexcenter",attrs:{href:t.offerinfo.url}},[t._v(" 查看当前捷报详情 "),e("div",{staticClass:"examine-btn-outside flexcenter"},[e("svg-icon",{attrs:{"icon-class":"arrowsRoundBlackLeft","class-name":"examine-btn-icon"}})],1)])])]:2==t.type?[e("div",{staticClass:"offer-content"},[e("div",{staticClass:"offer-content-box"},[t._l(t.interviewKey,(function(s,i){return[t.info[s.key]?e("div",{key:i,staticClass:"offer-content-item flexacenter"},[t.info[s.key]?e("div",{staticClass:"offer-content-key"},[t._v(t._s(s.name))]):t._e(),e("div",{staticClass:"offer-content-value",domProps:{innerHTML:t._s(t.info[s.key])}})]):t._e()]}))],2)])]:3==t.type?[e("div",{staticClass:"offer-content"},[e("div",{staticClass:"offer-content-box"},[t._l(t.tenementKey,(function(s,i){return[t.info[s.key]?e("div",{key:i,staticClass:"offer-content-item flexacenter"},[t.info[s.key]?e("div",{staticClass:"offer-content-key"},[t._v(t._s(s.name))]):t._e(),"school"!=s.key?e("div",{staticClass:"offer-content-value",domProps:{innerHTML:t._s(t.info[s.key])}}):e("div",{staticClass:"offer-content-value"},[t._l(t.info[s.key],(function(e){return[t._v(t._s(e.name))]}))],2)]):t._e()]}))],2),e("div",{staticClass:"vHtmlMessage",staticStyle:{margin:"0.52rem 0"},domProps:{innerHTML:t._s(t.info.message)}}),t._l(t.info.images,(function(t,s){return e("img",{key:s,staticClass:"tenement-img",attrs:{src:t}})}))],2)]:[e("div",{staticClass:"offer-content"},[e("div",{ref:"vHtmlMessage",staticClass:"vHtmlMessage",staticStyle:{"line-height":"normal"}})])]],2),0!=t.postList.list.length?t._l(t.postList.list,(function(i,a){return e("div",{key:a,staticClass:"card-item shadow"},[e("div",{staticClass:"card-head flexacenter"},[e("img",{staticClass:"card-head-icon",attrs:{src:i.avatar}}),e("div",{staticClass:"card-head-content flex1 flexflex"},[e("div",{staticClass:"card-head-name flexflex"},[t._v(" "+t._s(i.author||"匿名用户")+" "),1==i.isauthor?e("div",{staticClass:"landlord flexcenter"},[t._v("楼主")]):t._e()]),e("div",{staticClass:"card-head-time"},[t._v(t._s(t.$formattedDate(i.dateline)))])]),1==t.postList.page?e("div",{staticClass:"card-head-fool"},[t._v(t._s(`${(t.postList.page-1)*t.postList.limit+a+2}楼`))]):e("div",{staticClass:"card-head-fool"},[t._v(t._s(`${(t.postList.page-1)*t.postList.limit+a+1}楼`))]),1==i.ismyself?e("div",{staticClass:"edit-box flexcenter",on:{click:function(e){return e.stopPropagation(),t.openEditPop(i)}}},[e("img",{staticClass:"edit-icom",attrs:{src:s(627)}})]):t._e()]),e("div",{staticClass:"card-content flex1",domProps:{innerHTML:t._s(i.message)},on:{click:function(e){return e.stopPropagation(),t.handleReplyPop(i)}}})])})):t._e()],2),t.postList.count>t.postList.limit?e("div",{staticClass:"paging flexcenter"},[e("el-pagination",{attrs:{small:"",background:"",layout:"prev, pager, next","current-page":t.postList.page,"page-size":t.postList.limit,total:t.postList.count},on:{"current-change":t.currentChange,"update:currentPage":function(e){return t.$set(t.postList,"page",e)},"update:current-page":function(e){return t.$set(t.postList,"page",e)}}})],1):t._e(),e("div",{staticClass:"discuss-bottom flexflex flexacenter"},[e("div",{staticClass:"swiper"},[e("div",{staticClass:"bottom-item flexacenter"},[e("div",{staticClass:"bottom-comment flexacenter",on:{click:function(e){return t.setValue("popState","discussionSingle")}}},[e("svg-icon",{attrs:{"icon-class":"pen","class-name":"bottom-comment-icom"}}),t._v(" 想问啥,大胆问 "),t.islogin?t._e():e("div",{staticClass:"loginBtn",on:{click:function(e){return e.stopPropagation(),t.setValue("isloginBtnState",!0,"boolean")}}})],1)])]),e("div",{staticClass:"bottom-item flex1 flexacenter"},[e("div",{staticClass:"bottom-operation-box flex1 flexacenter"},[e("div",{staticClass:"bottom-operation-item flex1 flexcolumn flexcenter",on:{click:function(e){0==t.info.islike&&t.tapOperate("like")}}},[t.islogin?t._e():e("div",{staticClass:"loginBtn",on:{click:function(e){return e.stopPropagation(),t.setValue("isloginBtnState",!0,"boolean")}}}),0==t.info.islike?e("img",{staticClass:"bottom-operation-icom",class:{prepareLiskeAnimateState:t.prepareLiskeAnimateState},attrs:{src:s(3262)}}):e("img",{staticClass:"bottom-operation-icom",class:{prepareLiskeAnimateState:t.prepareLiskeAnimateState},attrs:{src:s(2969)}}),e("div",{staticClass:"bottom-operation-text"},[t._v(t._s(0==t.info.recommend_add?"":t.info.recommend_add)+"赞")])]),e("div",{staticClass:"bottom-operation-item flex1 flexcolumn flexcenter",on:{click:function(e){return t.tapOperate(0==t.info.isfav?"collect":"uncollect")}}},[t.islogin?t._e():e("div",{staticClass:"loginBtn",on:{click:function(e){return e.stopPropagation(),t.setValue("isloginBtnState",!0,"boolean")}}}),0==t.info.isfav?e("img",{staticClass:"bottom-operation-icom",attrs:{src:s(3490)}}):e("img",{staticClass:"bottom-operation-icom",attrs:{src:s(5196)}}),e("div",{staticClass:"bottom-operation-text"},[t._v("收藏")])]),e("div",{staticClass:"bottom-operation-item flex1 flexcolumn flexcenter transmit",attrs:{"data-clipboard-text":"Text to copy"},on:{click:function(e){return t.transmit()}}},[e("img",{staticClass:"bottom-operation-icom bottom-transmit-icom",attrs:{src:s(5842)}}),e("div",{staticClass:"bottom-operation-text"},[t._v("转发")])])])])]),e("detail-reply",{attrs:{"two-comment-data":t.twoCommentData,"comment-content":t.commentContent,"pop-state":t.popState}}),e("coins",{attrs:{"coin-config":t.coinConfig,mybalance:t.mybalance,"pop-state":t.popState,info:t.info}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.alert.state,expression:"alert.state"}],staticClass:"alert",class:{alertState:t.alert.state}},[e("el-alert",{attrs:{title:t.alert.message,type:"info",center:"","show-icon":"",closable:!1}})],1)],1)},a=[],n=(s(7658),s(4820)),o=s(1809),l=s(6799),r=s(8697),c={name:"detailIndex",data(){return{twoCommentData:null,editCommentPid:null,popState:"",coinConfig:{strategy:{button:"攒币指南",tips:"你的寄托币不够,快去发帖挣币吧",url:l.k}},islogin:!0,prepareLiskeAnimateState:!1,stat:{like:0},iscollect:0,ispostOfferLike:null,offerLikesumTimer:0,offerLikesumAnimateTimer:0,listlist:[],tid:0,info:{},type:0,token:"",offerinfo:{},offerinfoKey:[{key:"schoolname",name:"申请学校"},{key:"degree",name:"学位"},{key:"professional",name:"专业"},{key:"project",name:"项目"},{key:"apply_results",name:"申请结果"},{key:"semester",name:"入学学期"},{key:"noticedate",name:"通知时间"},{key:"useperformanceStr",name:"使用成绩"}],shareurl:"",collegelist:[],tenementKey:[{key:"typeText",name:"出租方式"},{key:"rent",name:"月租/"},{key:"property",name:"房屋类型"},{key:"floor",name:"所在楼层"},{key:"acreage",name:"面积(平方呎)"},{key:"locationText",name:"所在区域"},{key:"addressText",name:"地段/地址"},{key:"school",name:"附近学校"},{key:"gender",name:"性别要求"},{key:"rentaldurationText",name:"出租时长"},{key:"introduction",name:"房东或合租人介绍"},{key:"intermediary_text",name:"发布者身份"},{key:"telText",name:"电话"},{key:"wechatText",name:"微信"}],interviewKey:[{name:"学校",key:"school"},{name:"专业",key:"profession"},{name:"项目",key:"project"},{name:"毕业时间",key:"interviewtime"},{name:"面试过程及内容",key:"message"}],postList:{list:[],page:1,limit:20,count:0},loading:null,commentContent:"",operateState:!1,mybalance:0,islogin:!1,alert:{state:!1,message:""},isloginBtnState:!1}},watch:{popState(t,e){t?this.$pageStop():this.$pageMove()},"$store.state.user":{handler(t,e){"{}"!=JSON.stringify(t)&&(this.islogin=t.uid>0,this.tid=this.$route.query["tid"],this.postList.page=this.$route.query["page"]||1,this.getDetail())},immediate:!0},isloginBtnState(t,e){t&&this.$goTologin()}},mounted(){window.scrollTo(0,0)},methods:{getDetail(){this.$startupUnderLoading(this),this.$http.post("/api/thread",{tid:this.tid}).then((t=>{if(200!=t.code)return;let e=t.data,s=e.info;s["message"]=s["message"].trim();const i=new RegExp("\r\n","g");s["message"]=s["message"].replaceAll(i,"
"),s["message"]=s["message"].replace(/]*>/g,(t=>t.replace(/width="[^"]*"/g,"").replace(/height="[^"]*"/g,"")));let a=`