text: (window.webpackJsonp=window.webpackJsonp||[]).push([[43,7,11],{1054:function(t,e,n){},1055:function(t,e,n){},1056:function(t,e,n){},1057:function(t,e,n){},1058:function(t,e,n){},1190:function(t,e,n){"use strict";n(1054)},1191:function(t,e,n){"use strict";n(1055)},1192:function(t,e,n){"use strict";n(1056)},1193:function(t,e,n){"use strict";n(1057)},1194:function(t,e,n){"use strict";n(1058)},1220:function(t,e,n){"use strict";n.r(e);var o=n(85),r=(n(13),n(5)),c=n(715),l={name:"Topic",mixins:[n.n(c).a],props:{userId:{type:String,default:""},threadData:{type:Array,default:function(){return[]}}},data:function(){return{threadsData:[],pageSize:10,pageNum:1,currentLoginId:this.$store.getters["session/get"]("userId"),loading:!1,hasMore:!1,currentAudioId:""}},mounted:function(){this.threadsData=this.threadData,0===this.threadsData.length&&this.loadThreads()},methods:{loadThreads:function(){var t=this;this.loading=!0;var e={"filter[isDeleted]":"no","filter[isDisplay]":"yes","filter[type]":"0,1,2,3,4,6",sort:"-createdAt",include:"user,user.groups,firstPost,firstPost.images,firstPost.postGoods,category,threadVideo,threadAudio,question,question.beUser,question.beUser.groups","page[number]":this.pageNum,"page[limit]":this.pageSize,"filter[isApproved]":1,"filter[userId]":this.userId};r.status.run((function(){return t.$store.dispatch("jv/get",["threads",{params:e}])})).then((function(e){t.loading=!1,t.hasMore=e.length===t.pageSize,t.threadsData=[].concat(Object(o.a)(t.threadsData),Object(o.a)(e)),e._jv&&(t.hasMore=t.threadsData.length<e._jv.json.meta.threadCount),t.pageNum+=1}),(function(e){t.handleError(e)})).finally((function(){t.loading=!1}))},loadMore:function(){this.hasMore&&this.loadThreads()},changelike:function(){this.$emit("changeLike",{userId:this.userId})},changetopiclike:function(){this.pageNum=1,this.threadsData=[],this.loadThreads()},audioPlay:function(t){this.currentAudioId&&this.currentAudioId!==t&&this.$refs["audio".concat(this.currentAudioId)][0].pause(),this.currentAudioId=t}}},d=(n(1190),n(11)),component=Object(d.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"topic"},[n("div",{staticClass:"post-list"},[t._l(t.threadsData,(function(e,o){return[4===e.type?n("post-item-pay",{key:o,ref:"audio"+(e&&e.threadAudio&&e.threadAudio._jv&&e.threadAudio._jv.id),refInFor:!0,attrs:{item:e,lazy:!1},on:{change:t.changelike,audioPlay:t.audioPlay}}):n("post-item-pay",{key:o,attrs:{item:e,lazy:!1},on:{change:t.changelike}})]})),t._v(" "),n("list-load-more",{attrs:{loading:t.loading,"has-more":t.hasMore,"page-num":t.pageNum,length:t.threadsData.length},on:{loadMore:t.loadMore}})],2)])}),[],!1,null,"86600ab4",null);e.default=component.exports;installComponents(component,{PostItem:n(758).default,PostItemPay:n(799).default,ListLoadMore:n(730).default})},1221:function(t,e,n){"use strict";n.r(e);var o=n(85),r=(n(13),n(5)),c=n(715),l={name:"Question",mixins:[n.n(c).a],props:{userId:{type:String,default:""},askthreadData:{type:Array,default:function(){return[]}}},data:function(){return{askthreadsData:[],pageSize:10,pageNum:1,currentLoginId:this.$store.getters["session/get"]("userId"),loading:!1,hasMore:!1}},mounted:function(){this.askthreadsData=this.askthreadData,0===this.askthreadsData.length&&this.loadThreads()},methods:{loadThreads:function(){var t=this;this.loading=!0;var e={"filter[isDeleted]":"no",sort:"-createdAt",include:"user,user.groups,firstPost,firstPost.images,firstPost.postGoods,category,threadVideo,threadAudio,question,question.beUser,question.beUser.groups","page[number]":this.pageNum,"page[limit]":this.pageSize,"filter[isApproved]":1,"filter[userId]":this.userId,"filter[type]":5,"filter[answer]":"yes"};r.status.run((function(){return t.$store.dispatch("jv/get",["threads",{params:e}])})).then((function(e){t.loading=!1,t.hasMore=e.length===t.pageSize,t.askthreadsData=[].concat(Object(o.a)(t.askthreadsData),Object(o.a)(e)),e._jv&&(t.hasMore=t.askthreadsData.length<e._jv.json.meta.threadCount),t.pageNum+=1}),(function(e){t.handleError(e)})).finally((function(){t.loading=!1}))},loadMore:function(){this.hasMore&&this.loadThreads()},changelike:function(){this.$emit("changeLike",{userId:this.userId})},changetopiclike:function(){this.pageNum=1,this.askthreadsData=[],this.loadThreads()}}},d=(n(1191),n(11)),component=Object(d.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"topic"},[n("div",{staticClass:"post-list"},[t._l(t.askthreadsData,(function(e,o){return n("post-item-pay",{key:o,attrs:{item:e,lazy:!1},on:{change:t.changelike}})})),t._v(" "),n("list-load-more",{attrs:{loading:t.loading,"has-more":t.hasMore,"page-num":t.pageNum,length:t.askthreadsData.length},on:{loadMore:t.loadMore}})],2)])}),[],!1,null,"2b6c69f2",null);e.default=component.exports;installComponents(component,{PostItem:n(758).default,PostItemPay:n(799).default,ListLoadMore:n(730).default})},1222:function(t,e,n){"use strict";n.r(e);var o=n(85),r=(n(13),n(5)),c=n(715),l={name:"Like",mixins:[n.n(c).a],props:{userId:{type:String,default:""},likethreadsData:{type:Array,default:function(){return[]}}},data:function(){return{data:[],pageSize:10,pageNum:1,currentLoginId:this.$store.getters["session/get"]("userId"),loading:!1,hasMore:!1,editThreadId:"",currentAudioId:""}},mounted:function(){this.data=this.likethreadsData,0===this.data.length&&this.loadlikes()},methods:{loadlikes:function(){var t=this;this.loading=!0;var e={include:"user,user.groups,firstPost,firstPost.images,firstPost.postGoods,category,threadVideo,threadAudio,question","page[number]":this.pageNum,"page[limit]":this.pageSize,"filter[isApproved]":1,"filter[user_id]":this.userId};r.status.run((function(){return t.$store.dispatch("jv/get",["threads/likes",{params:e}])})).then((function(e){t.loading=!1,t.hasMore=e.length===t.pageSize;var n=JSON.parse(JSON.stringify(e));t.data=[].concat(Object(o.a)(t.data),Object(o.a)(n)),e._jv&&(t.hasMore=t.data.length<e._jv.json.meta.threadCount),t.pageNum+=1}),(function(e){t.handleError(e)})).finally((function(){t.loading=!1}))},loadMore:function(){this.hasMore&&this.loadlikes()},changelike:function(){this.pageNum=1,this.data=[],this.$emit("changeFollow",{userId:this.userId}),this.loadlikes()},audioPlay:function(t){this.currentAudioId&&this.currentAudioId!==t&&this.$refs["audio".concat(this.currentAudioId)][0].pause(),this.currentAudioId=t}}},d=(n(1192),n(11)),component=Object(d.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"like"},[n("div",{staticClass:"post-list"},[t._l(t.data,(function(e,o){return[4===e.type?n("post-item-pay",{key:o,ref:"audio"+(e&&e.threadAudio&&e.threadAudio._jv&&e.threadAudio._jv.id),refInFor:!0,attrs:{item:e,lazy:!1},on:{change:t.changelike,audioPlay:t.audioPlay}}):n("post-item-pay",{key:o,attrs:{item:e,lazy:!1},on:{change:t.changelike}})]})),t._v(" "),n("list-load-more",{attrs:{loading:t.loading,"has-more":t.hasMore,"page-num":t.pageNum,length:t.data.length},on:{loadMore:t.loadMore}})],2)])}),[],!1,null,"00f0be9e",null);e.default=component.exports;installComponents(component,{PostItem:n(758).default,PostItemPay:n(799).default,ListLoadMore:n(730).default})},1223:function(t,e,n){"use strict";n.r(e);var o=n(85),r=(n(13),n(5)),c=n(715),l={name:"Following",mixins:[n.n(c).a],props:{userId:{type:String,default:""}},data:function(){return{value:"",inputVal:"",loadingType:"",followingList:[],pageSize:10,pageNum:1,currentLoginId:this.$store.getters["session/get"]("userId"),loading:!1,hasMore:!1,sort:"",options:[{label:this.$t("home.noLimit"),value:""},{label:"用户创建时间",value:"users.createdAt"}]}},mounted:function(){this.getFollowingList()},methods:{getFollowingList:function(t){var e=this;this.loading=!0;var n={include:"toUser,toUser.groups","filter[type]":1,sort:this.sort,"page[number]":this.pageNum,"page[limit]":this.pageSize,"filter[user_id]":this.userId,"filter[username]":"".concat(this.inputVal)};r.status.run((function(){return e.$store.dispatch("jv/get",["follow",{params:n}])})).then((function(n){e.loading=!1,e.hasMore=n.length===e.pageSize,e.followingList="change"===t?n:[].concat(Object(o.a)(e.followingList),Object(o.a)(n)),n._jv&&(e.hasMore=e.followingList.length<n._jv.json.meta.total),e.pageNum+=1}),(function(t){e.handleError(t)})).finally((function(){e.loading=!1}))},addFollow:function(t,e){var n=this;if(this.$store.getters["session/get"]("isLogin"))if(0===t.follow){var o={_jv:{type:"follow"},type:"user_follow",to_user_id:t.id};this.$store.dispatch("jv/post",o).then((function(t){n.userId===n.currentLoginId&&n.$emit("changeFollow",{userId:n.userId});var o=n.followingList[e],r=JSON.parse(JSON.stringify(o));r.toUser.follow=1===t.is_mutual?2:1,n.$set(n.followingList,e,r)}))}else this.deleteFollow(t,e)},deleteFollow:function(t,e){var n=this;this.$store.getters["session/get"]("isLogin")&&this.$store.dispatch("jv/delete","follow/".concat(t.id,"/1")).then((function(){n.userId===n.currentLoginId&&n.$emit("changeFollow",{userId:n.userId});var t=n.followingList[e],o=JSON.parse(JSON.stringify(t));o.toUser.follow=0,n.$set(n.followingList,e,o)}))},loadMore:function(){this.hasMore&&this.getFollowingList()},toUser:function(t){this.$router.push("/user/".concat(t))},confirm:function(t){this.sort=t,this.pageNum=1,this.followingList=[],this.getFollowingList("change")},onClickSearch:function(){this.pageNum=1,this.getFollowingList("change")}}},d=(n(1193),n(11)),component=Object(d.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"following"},[n("div",{staticClass:"ftop"},[n("el-select",{staticClass:"fselect",attrs:{placeholder:"排序",size:"small"},on:{change:t.confirm},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},t._l(t.options,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),t._v(" "),n("el-input",{staticClass:"h-search",attrs:{size:"small",placeholder:t.$t("manage.pleaseInputUserName")},on:{change:t.onClickSearch},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onClickSearch.apply(null,arguments)}},model:{value:t.inputVal,callback:function(e){t.inputVal=e},expression:"inputVal"}},[n("i",{staticClass:"el-icon-search el-input__icon",attrs:{slot:"suffix"},on:{click:t.onClickSearch},slot:"suffix"})])],1),t._v(" "),t._l(t.followingList,(function(e,o){return n("div",{key:o,staticClass:"user-item-container"},[n("div",{staticClass:"flex user-item",on:{click:function(n){return n.stopPropagation(),t.toUser(e.toUser.id)}}},[n("avatar",{attrs:{user:e.toUser,size:40,round:""}}),t._v(" "),n("div",{staticClass:"info"},[n("div",{staticClass:"flex"},[n("span",{staticClass:"name text-hidden"},[t._v(t._s(e.toUser.username))]),t._v(" "),e.toUser.groups&&e.toUser.groups[0]&&e.toUser.groups[0].isDisplay?n("span",{staticClass:"role"},[t._v(t._s(e.toUser&&e.toUser.groups&&e.toUser.groups[0]?e.toUser.groups[0].name:""))]):t._e()]),t._v(" "),n("div",{staticClass:"flex count"},[n("div",{staticClass:"count-item"},[t._v(t._s(t.$t("profile.topic"))+" "+t._s(e.toUser.threadCount||0))]),t._v(" "),n("div",{staticClass:"count-item"},[t._v(t._s(t.$t("profile.following"))+" "+t._s(e.toUser.followCount||0))]),t._v(" "),n("div",{staticClass:"count-item"},[t._v(t._s(t.$t("profile.followers"))+" "+t._s(e.toUser.fansCount||0))])])])],1),t._v(" "),(e.toUser&&e.toUser.id)!=t.currentLoginId?n("el-button",{staticClass:"follow",class:{active:1===e.toUser.follow||2===e.toUser.follow},attrs:{type:"text"},on:{click:function(n){return t.addFollow(e.toUser,o)}}},[1===e.toUser.follow||2===e.toUser.follow?n("svg-icon",{staticClass:"follow-icon",attrs:{type:"follow-heart"}}):t._e(),t._v("\n      \n      "+t._s(0==(e.toUser&&e.toUser.follow)?t.$t("profile.following"):1==(e.toUser&&e.toUser.follow)?t.$t("profile.followed"):t.$t("profile.mutualfollow"))+"\n    ")],1):t._e()],1)})),t._v(" "),n("list-load-more",{attrs:{loading:t.loading,"has-more":t.hasMore,"page-num":t.pageNum,length:t.followingList.length},on:{loadMore:t.loadMore}})],2)}),[],!1,null,"5b5fae20",null);e.default=component.exports;installComponents(component,{Avatar:n(254).default,SvgIcon:n(62).default,ListLoadMore:n(730).default})},1224:function(t,e,n){"use strict";n.r(e);var o=n(85),r=(n(13),n(5)),c=n(715),l={name:"Followers",mixins:[n.n(c).a],props:{userId:{type:String,default:""}},data:function(){return{value:"",inputVal:"",loadingType:"",followerList:[],pageSize:10,pageNum:1,currentLoginId:this.$store.getters["session/get"]("userId"),loading:!1,hasMore:!1,sort:"",options:[{label:this.$t("home.noLimit"),value:""},{label:"用户创建时间",value:"users.createdAt"}]}},mounted:function(){this.getFollowerList()},methods:{getFollowerList:function(t){var e=this;this.loading=!0;var n={include:["fromUser","fromUser.groups"],"filter[type]":2,sort:this.sort,"page[number]":this.pageNum,"page[limit]":this.pageSize,"filter[user_id]":this.userId,"filter[username]":"".concat(this.inputVal)};r.status.run((function(){return e.$store.dispatch("jv/get",["follow",{params:n}])})).then((function(n){e.loading=!1,e.hasMore=n.length===e.pageSize,e.followerList="change"===t?n:[].concat(Object(o.a)(e.followerList),Object(o.a)(n)),n._jv&&(e.hasMore=e.followerList.length<n._jv.json.meta.total),e.pageNum+=1}),(function(t){e.handleError(t)})).finally((function(){e.loading=!1}))},addFollow:function(t,e){var n=this;if(this.$store.getters["session/get"]("isLogin"))if(0===t.follow){var o={_jv:{type:"follow"},type:"user_follow",to_user_id:t.id};this.$store.dispatch("jv/post",o).then((function(t){n.userId===n.currentLoginId&&n.$emit("changeFollow",{userId:n.userId});var o=n.followerList[e],r=JSON.parse(JSON.stringify(o));r.fromUser.follow=1===t.is_mutual?2:1,n.$set(n.followerList,e,r)}),(function(t){return n.handleError(t)}))}else this.deleteFollow(t,e)},deleteFollow:function(t,e){var n=this;this.$store.getters["session/get"]("isLogin")&&this.$store.dispatch("jv/delete","follow/".concat(t.id,"/1")).then((function(){n.userId===n.currentLoginId&&n.$emit("changeFollow",{userId:n.userId});var t=n.followerList[e],o=JSON.parse(JSON.stringify(t));o.fromUser.follow=0,n.$set(n.followerList,e,o)}))},loadMore:function(){this.hasMore&&this.getFollowerList()},toUser:function(t){this.$router.push("/user/".concat(t))},confirm:function(t){this.sort=t,this.pageNum=1,this.followerList=[],this.getFollowerList("change")},onClickSearch:function(){this.pageNum=1,this.getFollowerList("change")}}},d=(n(1194),n(11)),component=Object(d.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"follwers"},[n("div",{staticClass:"ftop"},[n("el-select",{staticClass:"fselect",attrs:{placeholder:"排序",size:"small"},on:{change:t.confirm},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},t._l(t.options,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),t._v(" "),n("el-input",{staticClass:"h-search",attrs:{size:"small",placeholder:t.$t("manage.pleaseInputUserName")},on:{change:t.onClickSearch},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onClickSearch.apply(null,arguments)}},model:{value:t.inputVal,callback:function(e){t.inputVal=e},expression:"inputVal"}},[n("i",{staticClass:"el-icon-search el-input__icon",attrs:{slot:"suffix"},on:{click:t.onClickSearch},slot:"suffix"})])],1),t._v(" "),t._l(t.followerList,(function(e,o){return n("div",{key:o,staticClass:"user-item-container"},[n("div",{staticClass:"flex user-item",on:{click:function(n){return n.stopPropagation(),t.toUser(e.fromUser.id)}}},[n("avatar",{attrs:{user:e.fromUser,size:40,round:""}}),t._v(" "),n("div",{staticClass:"info"},[n("div",{staticClass:"flex"},[n("span",{staticClass:"name text-hidden"},[t._v(t._s(e.fromUser.username))]),t._v(" "),e.fromUser.groups&&e.fromUser.groups[0]&&e.fromUser.groups[0].isDisplay?n("span",{staticClass:"role"},[t._v(t._s(e.fromUser&&e.fromUser.groups&&e.fromUser.groups[0]?e.fromUser.groups[0].name:""))]):t._e()]),t._v(" "),n("div",{staticClass:"flex count"},[n("div",{staticClass:"count-item"},[t._v(t._s(t.$t("profile.topic"))+" "+t._s(e.fromUser.threadCount||0))]),t._v(" "),n("div",{staticClass:"count-item"},[t._v(t._s(t.$t("profile.following"))+" "+t._s(e.fromUser.followCount||0))]),t._v(" "),n("div",{staticClass:"count-item"},[t._v(t._s(t.$t("profile.followers"))+" "+t._s(e.fromUser.fansCount||0))])])])],1),t._v(" "),(e.fromUser&&e.fromUser.id)!=t.currentLoginId?n("el-button",{staticClass:"follow",class:{active:1===e.fromUser.follow||2===e.fromUser.follow},attrs:{type:"text"},on:{click:function(n){return t.addFollow(e.fromUser,o)}}},[1===e.fromUser.follow||2===e.fromUser.follow?n("svg-icon",{staticClass:"follow-icon",attrs:{type:"follow-heart"}}):t._e(),t._v("\n      \n      "+t._s(0==(e.fromUser&&e.fromUser.follow)?t.$t("profile.following"):1==(e.fromUser&&e.fromUser.follow)?t.$t("profile.followed"):t.$t("profile.mutualfollow"))+"\n    ")],1):t._e()],1)})),t._v(" "),n("list-load-more",{attrs:{loading:t.loading,"has-more":t.hasMore,"page-num":t.pageNum,length:t.followerList.length},on:{loadMore:t.loadMore}})],2)}),[],!1,null,"5c461418",null);e.default=component.exports;installComponents(component,{Avatar:n(254).default,SvgIcon:n(62).default,ListLoadMore:n(730).default})},719:function(t,e,n){},720:function(t,e,n){},721:function(t,e,n){"use strict";n.r(e);var o={name:"MessageBox",props:{width:{type:String,default:"820px"},title:{type:String,default:""},overflow:{type:String,default:"auto"}}},r=(n(796),n(11)),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Cover"),t._v(" "),n("div",{staticClass:"message-box",style:{overflow:t.overflow,width:t.width}},[n("div",{staticClass:"container-title"},[n("div",{staticClass:"title"},[t._v(t._s(t.title))]),t._v(" "),n("svg-icon",{staticStyle:{"font-size":"14px",cursor:"pointer",fill:"#6d6d6d"},attrs:{type:"close"},on:{click:function(e){return t.$emit("close")}}})],1),t._v(" "),t._t("default")],2)],1)}),[],!1,null,"05e0d157",null);e.default=component.exports;installComponents(component,{Cover:n(760).default,SvgIcon:n(62).default})},722:function(t,e,n){},723:function(t,e,n){},724:function(t,e,n){"use strict";n.r(e);n(253);var o=n(751),r={name:"SharePopover",props:{threadsId:{type:[String,Number],default:""},type:{type:String,default:""}},data:function(){return{qrcode:null,currentType:""}},methods:{copyLink:function(){var t=document.createElement("input");"topic"===this.type?t.value=window.location.href:t.value="".concat(window.location.protocol,"//").concat(window.location.host,"/thread/").concat(this.threadsId),t.id="copyInput",document.body.appendChild(t),t.select(),document.execCommand("Copy"),this.$message.success("链接复制成功"),setTimeout((function(){t.remove()}),100)},onShowPopover:function(){this.currentType=this.type;var path=window.location.href;path="topic"===this.type?window.location.href:"".concat(window.location.protocol,"//").concat(window.location.host,"/thread/").concat(this.threadsId),this.createQrcode(path)},createQrcode:function(link){var t=this;this.qrcode=null,this.$nextTick((function(){t.qrcode=new o(t.$refs.qrcode,{width:88,height:88,text:link})}))},closeCode:function(){this.$refs.qrcode.innerHTML=""}}},c=(n(744),n(745),n(11)),component=Object(c.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"share-container"},[n("el-popover",{attrs:{placement:"bottom",width:"120","min-width":"120",trigger:"click","popper-class":"custom-popover-width"},on:{show:t.onShowPopover,hide:t.closeCode}},[n("div",{staticClass:"share-cont"},[n("div",{staticClass:"copy",on:{click:t.copyLink}},[n("svg-icon",{staticClass:"copy-icon",attrs:{type:"copy-link"}}),t._v(" "),n("span",[t._v(t._s(t.$t("core.copyLink")))])],1),t._v(" "),n("div",{staticClass:"qrcode"},[n("div",{staticClass:"qrcode-text"},[n("svg-icon",{staticClass:"wechat-logo",attrs:{type:"wechat-logo"}}),t._v(" "),n("span",[t._v(t._s(t.$t("core.wxShare")))])],1),t._v(" "),n("div",{ref:"qrcode",staticClass:"qrcode-cont"})])]),t._v(" "),n("template",{slot:"reference"},[t._t("default")],2)],2)],1)}),[],!1,null,"010ad789",null);e.default=component.exports;installComponents(component,{SvgIcon:n(62).default})},725:function(t,e,n){},726:function(t,e,n){},727:function(t,e,n){"use strict";n(253);var o=n(0),r=(n(34),n(24),n(39),n(53),n(54),n(8)),c=n(111),l=n(112),d=n(43);function h(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function m(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?h(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):h(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var f=n.n(d).a;f.defaults=m(m(m({},f.defaults),{url:"",method:"GET",dataType:"json",timeout:3e4,isValidate:!1,validateRules:null}),{},{validateRules:null});var v=f;n(13),n(108);function y(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function _(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?y(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):y(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var w=null,C="undefined"!=typeof window;function k(){var t="__dzqtest_ls__";try{return!!w&&(w.setItem(t,t),w.getItem(t),!0)}catch(t){return!1}}w=C?window.localStorage:{};var A=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(c.a)(this,t);var n="__dzqls-",o=0;this.options=_({prefix:n,expires:o},e),this.expiresPrefix="expires".concat(this.options.prefix)}return Object(l.a)(t,[{key:"getKey",value:function(t){var e=this.options.prefix;return"".concat(e).concat(t)}},{key:"getExpiresKey",value:function(t){return"".concat(this.expiresPrefix).concat(t)}},{key:"getCurrentTime",value:function(){return Math.floor((new Date).getTime()/1e3)}},{key:"getExpiresValue",value:function(t){return(this.getCurrentTime()+t).toString(10)}},{key:"shiftItem",value:function(t){if(!k())return!1;var e=w.removeItem;e(this.getKey(t)),e(this.getExpiresKey(t))}},{key:"isExpired",value:function(t){if(k()){var e=w.getItem(this.getExpiresKey(t));if(e){var n=parseInt(e,10);if(this.getCurrentTime()>n)return this.shiftItem(t),!0}}}},{key:"set",value:function(t,e,n){var o=this.getKey(t),r=e;if(!k())return!1;try{r=JSON.stringify(e)}catch(t){return!1}var c=w,l=c.setItem,d=c.removeItem;try{l(o,r);var h=this.getExpiresKey(t);n?l(h,this.getExpiresValue(n)):d(h)}catch(t){return!1}return!0}},{key:"get",value:function(t){if(!k())return null;if(this.isExpired(t))return null;var e=w.getItem(this.getKey(t));try{return JSON.parse(e)}catch(t){return e}}},{key:"remove",value:function(t){k()&&this.shiftItem(t)}},{key:"clear",value:function(){k()&&w.clear()}}]),t}(),P=n(9),x=(n(31),n(888)),j=n(163),L=n.n(j);function O(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function $(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?O(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):O(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function U(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,o){new x.a(e).validate(t,{firstFields:!0},(function(t,e){var r=t?"fail":"success",c=t?t[0].message:"";"success"===r?n({status:r,message:c,fieldsData:e}):o(L()("Parameter Validator Error",{status:r,message:c,fieldsData:e,errors:t},null))}))}))}var I=function(){var t=Object(P.a)(regeneratorRuntime.mark((function t(e){var n,o,r,data,c,l,source;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.params,o=void 0===n?{}:n,r=e.data,data=void 0===r?{}:r,c=e.isValidate,l=e.validateRules,!c||!l){t.next=5;break}return source=$($({},o),data),t.next=5,U(source,l,e);case 5:return t.abrupt("return",e);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),E=n(164),T=n.n(E);function S(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var D=new A({prefix:""}),M=function(t){var e=D.get("access_token");return e&&(t.headers.authorization="Bearer ".concat(e)),t},R=function(t){return{data:t.data,status:t.status}},N=function(){function t(e){Object(c.a)(this,t),this.axiosConfig=e,this.createHttp()}return Object(l.a)(t,[{key:"createHttp",value:function(){this.http=v.create(function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?S(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):S(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({isValidate:!1,withCredentials:!0,paramsSerializer:function(t){return T.a.stringify(t,{arrayFormat:"indices",encode:!1})}},this.axiosConfig)),this.setHttpRequestInterceptors(),this.setHttpResponseInterceptors()}},{key:"setHttpRequestInterceptors",value:function(){this.http.interceptors.request.use(M),this.http.interceptors.request.use(I,null,{synchronous:!0})}},{key:"setHttpResponseInterceptors",value:function(){this.http.interceptors.response.use(R)}}]),t}(),V=0,z=n(86),F=["params","data"];function B(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Q(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?B(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):B(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var H={page:{type:"number"},perPage:{type:"number"},filter:{type:"object",required:!0,fields:{sticky:{type:"number",required:!0},essence:{type:"number",required:!0},types:{type:"array"},categoryids:{type:"array"},sort:{type:"number"},attention:{type:"number"}}}};function Y(){return G.apply(this,arguments)}function G(){return(G=Object(P.a)(regeneratorRuntime.mark((function t(){var e,n,o,r,data,c,l,d,h=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=h.length>0&&void 0!==h[0]?h[0]:{},t.prev=1,n=e.params,o=void 0===n?{}:n,r=e.data,data=void 0===r?{}:r,c=Object(z.a)(e,F),l=Q(Q({url:"/api/threads.v2",method:"GET",params:o,data:data},c),{},{validateRules:H}),t.next=6,this.http(l);case 6:return d=t.sent,t.abrupt("return",d);case 10:return t.prev=10,t.t0=t.catch(1),t.abrupt("return",t.t0);case 13:case"end":return t.stop()}}),t,this,[[1,10]])})))).apply(this,arguments)}var W=["params","data"];function J(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function K(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?J(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):J(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Z={pid:{type:"number",required:!0},stopViewCount:{type:"boolean"}};function X(){return tt.apply(this,arguments)}function tt(){return(tt=Object(P.a)(regeneratorRuntime.mark((function t(){var e,n,o,r,data,c,l,d,h=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=h.length>0&&void 0!==h[0]?h[0]:{},t.prev=1,n=e.params,o=void 0===n?{}:n,r=e.data,data=void 0===r?{}:r,c=Object(z.a)(e,W),l=K(K({url:"/api/threads.detail.v2",method:"GET",params:o,data:data},c),{},{validateRules:Z}),t.next=6,this.http(l);case 6:return d=t.sent,t.abrupt("return",d);case 10:return t.prev=10,t.t0=t.catch(1),t.abrupt("return",t.t0);case 13:case"end":return t.stop()}}),t,this,[[1,10]])})))).apply(this,arguments)}var et=["params","data"];function it(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function st(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?it(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):it(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var nt={};function at(){return ot.apply(this,arguments)}function ot(){return(ot=Object(P.a)(regeneratorRuntime.mark((function t(){var e,n,o,r,data,c,l,d,h=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=h.length>0&&void 0!==h[0]?h[0]:{},t.prev=1,n=e.params,o=void 0===n?{}:n,r=e.data,data=void 0===r?{}:r,c=Object(z.a)(e,et),l=st(st({url:"/api/categories.v2",method:"GET",params:o,data:data},c),{},{validateRules:nt}),t.next=6,this.http(l);case 6:return d=t.sent,t.abrupt("return",d);case 10:return t.prev=10,t.t0=t.catch(1),t.abrupt("return",t.t0);case 13:case"end":return t.stop()}}),t,this,[[1,10]])})))).apply(this,arguments)}var ct=["params","data"];function lt(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function ut(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?lt(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):lt(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var pt={page:{type:"number"},perPage:{type:"number"}};function ht(){return mt.apply(this,arguments)}function mt(){return(mt=Object(P.a)(regeneratorRuntime.mark((function t(){var e,n,o,r,data,c,l,d,h=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=h.length>0&&void 0!==h[0]?h[0]:{},t.prev=1,n=e.params,o=void 0===n?{}:n,r=e.data,data=void 0===r?{}:r,c=Object(z.a)(e,ct),l=ut(ut({url:"/api/posts.v2",method:"GET",params:o,data:data},c),{},{validateRules:pt}),t.next=6,this.http(l);case 6:return d=t.sent,t.abrupt("return",d);case 10:return t.prev=10,t.t0=t.catch(1),t.abrupt("return",t.t0);case 13:case"end":return t.stop()}}),t,this,[[1,10]])})))).apply(this,arguments)}var ft=["params","data"];function vt(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function gt(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?vt(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):vt(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var yt={categoryId:{type:"array"}};function _t(){return bt.apply(this,arguments)}function bt(){return(bt=Object(P.a)(regeneratorRuntime.mark((function t(){var e,n,o,r,data,c,l,d,h=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=h.length>0&&void 0!==h[0]?h[0]:{},t.prev=1,n=e.params,o=void 0===n?{}:n,r=e.data,data=void 0===r?{}:r,c=Object(z.a)(e,ft),l=gt(gt({url:"/api/sticks.v2",method:"GET",params:o,data:data},c),{},{validateRules:yt}),t.next=6,this.http(l);case 6:return d=t.sent,t.abrupt("return",d);case 10:return t.prev=10,t.t0=t.catch(1),t.abrupt("return",t.t0);case 13:case"end":return t.stop()}}),t,this,[[1,10]])})))).apply(this,arguments)}var wt=["params","data"];function Ct(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function kt(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Ct(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Ct(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var At={categoriesId:{type:"number",required:!0},content:{type:"string",required:!0},type:{type:"number",required:!0},isAnonymous:{type:"number"},price:{type:"number"},attachmentPrice:{type:"number"},freeWords:{type:"number"},location:{type:"string"},longitude:{type:"number"},latitude:{type:"number"},address:{type:"string"},id:{type:"string"},isDraft:{type:"number"},isRedPacket:{type:"number"},isOldDraft:{type:"number"},title:{type:"string"},postGoodsId:{type:"number"},redPacket:{type:"object",fields:{condition:{type:"number"},likenum:{type:"number"},money:{type:"number"},number:{type:"number"},rule:{type:"number"},orderId:{type:"string"},orderPrice:{type:"number"}}},attachments:{type:"array",defaultField:{type:"object",fields:{id:{type:"number"},type:{type:"string"}}}},question:{type:"object",fields:{type:{type:"number"},price:{type:"number"},orderId:{type:"string"},isOnlooker:{type:"boolean"},beUserId:{type:"number"},expiredAt:{type:"date"}}}};function Pt(){return xt.apply(this,arguments)}function xt(){return(xt=Object(P.a)(regeneratorRuntime.mark((function t(){var e,n,o,r,data,c,l,d,h=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=h.length>0&&void 0!==h[0]?h[0]:{},t.prev=1,n=e.params,o=void 0===n?{}:n,r=e.data,data=void 0===r?{}:r,c=Object(z.a)(e,wt),l=kt(kt({url:"/api/thread.v2",method:"POST",params:o,data:data},c),{},{validateRules:At}),t.next=6,this.http(l);case 6:return d=t.sent,t.abrupt("return",d);case 10:t.prev=10,t.t0=t.catch(1);case 12:case"end":return t.stop()}}),t,this,[[1,10]])})))).apply(this,arguments)}var jt=["params","data"];function Lt(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Ot(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Lt(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Lt(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var $t={id:{type:"number",required:!0}};function Ut(){return It.apply(this,arguments)}function It(){return(It=Object(P.a)(regeneratorRuntime.mark((function t(){var e,n,o,r,data,c,l,d,h=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=h.length>0&&void 0!==h[0]?h[0]:{},t.prev=1,n=e.params,o=void 0===n?{}:n,r=e.data,data=void 0===r?{}:r,c=Object(z.a)(e,jt),l=Ot(Ot({url:"/api/threads/update.v2",method:"POST",params:o,data:data},c),{},{validateRules:$t}),t.next=6,this.http(l);case 6:return d=t.sent,t.abrupt("return",d);case 10:t.prev=10,t.t0=t.catch(1);case 12:case"end":return t.stop()}}),t,this,[[1,10]])})))).apply(this,arguments)}var Et=["params","data"];function Tt(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function St(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Tt(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Tt(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var Dt={data:{type:"object",required:!0,fields:{attributes:{type:"object",required:!0,fields:{}}}}};function Mt(){return Rt.apply(this,arguments)}function Rt(){return(Rt=Object(P.a)(regeneratorRuntime.mark((function t(){var e,n,o,r,data,c,l,d,h=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=h.length>0&&void 0!==h[0]?h[0]:{},t.prev=1,n=e.params,o=void 0===n?{}:n,r=e.data,data=void 0===r?{}:r,c=Object(z.a)(e,Et),l=St(St({url:"/api/posts.update.v2",method:"POST",params:o,data:data},c),{},{validateRules:Dt}),t.next=6,this.http(l);case 6:return d=t.sent,t.abrupt("return",d);case 10:t.prev=10,t.t0=t.catch(1);case 12:case"end":return t.stop()}}),t,this,[[1,10]])})))).apply(this,arguments)}var qt=["params","data"];function Nt(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Vt(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Nt(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Nt(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var zt={data:{type:"object",fields:{relationships:{type:"object",fields:{thread:{type:"object",fields:{data:{type:"object",required:!0,fields:{id:{type:"number",required:!0}}}}}}},attributes:{type:"object",fields:{replyId:{type:"number"},content:{type:"string",required:!0},commentPostId:{type:"number"},commentUserId:{type:"number"}}}}}};function Ft(){return Bt.apply(this,arguments)}function Bt(){return(Bt=Object(P.a)(regeneratorRuntime.mark((function t(){var e,n,o,r,data,c,l,d,h=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=h.length>0&&void 0!==h[0]?h[0]:{},t.prev=1,n=e.params,o=void 0===n?{}:n,r=e.data,data=void 0===r?{}:r,c=Object(z.a)(e,qt),l=Vt(Vt({url:"/api/posts.v2",method:"POST",params:o,data:data},c),{},{validateRules:zt}),t.next=6,this.http(l);case 6:return d=t.sent,t.abrupt("return",d);case 10:return t.prev=10,t.t0=t.catch(1),t.abrupt("return",handleError(t.t0));case 13:case"end":return t.stop()}}),t,this,[[1,10]])})))).apply(this,arguments)}n(257);var Qt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new N(t);return e.readThreadList=Y,e.readThreadDetail=X,e.readCategories=at,e.readCommentList=ht,e.readStickList=_t,e.createThread=Pt,e.updateThreads=Ut,e.updatePosts=Mt,e.createPosts=Ft,e}({baseURL:""}),Ht=Qt.http,Yt=o.default.prototype;Ht.interceptors.response.use((function(t){var data=t.data,e=data||{},n=e.Code,o=e.Message;switch(Number(n)){case V:break;default:Yt.$message.warning(o)}return data}));e.a=Qt},730:function(t,e,n){"use strict";n.r(e);n(253);var o={name:"ListLoadMore",mixins:[{data:function(){return{scrollTop:0}},mounted:function(){this.addEventListener(window,"scroll",this.handleScroll)},destroyed:function(){this.removeEventListener(window,"scroll",this.handleScroll)},methods:{handleScroll:function(){var t=document.documentElement.scrollTop||document.body.scrollTop,e=document.documentElement.clientHeight||document.body.clientHeight,n=document.documentElement.scrollHeight||document.body.scrollHeight;this.scrollData(),Math.ceil(n-e)>=20&&this.scrollPost(),Math.ceil(t+e+10)>=n&&this.scrollLoadMore(),this.scrollTop=t},addEventListener:function(t,e,n,o){t.addEventListener?t.addEventListener(e,n,o):t.attachEvent&&t.attachEvent("on".concat(e),n)},removeEventListener:function(t,e,n,o){t.removeEventListener?t.removeEventListener(e,n,o):t.detachEvent&&t.detachEvent("on".concat(e),n)}}}],props:{loading:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!1},pageNum:{type:[Number,String],default:1},length:{type:[Number,String],default:0},surplus:{type:[Number,String],default:0},loadMoreText:{type:String,default:function(){return this.$t("topic.showMore")}}},methods:{scrollLoadMore:function(){(this.pageNum-1)%5>0&&!this.loading&&this.hasMore&&this.loadMore()},scrollData:function(){this.$emit("scrollDdata")},scrollPost:function(){this.$emit("scrollPost")},loadMore:function(){this.$emit("loadMore")}}},r=(n(740),n(11)),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"load-more-container"},[t.loading?n("loading"):[t.hasMore&&(t.pageNum-1)%5==0?n("div",{staticClass:"load-more",on:{click:t.loadMore}},[t._v("\n      "+t._s(t.surplus>0?t.$t("notice.checkMore",{surplus:t.surplus}):t.loadMoreText)+"\n    ")]):t.hasMore&&(t.pageNum-1)%5>0?n("loading"):n("div",{staticClass:"no-more"},[0===t.length?n("svg-icon",{staticClass:"empty-icon",attrs:{type:"empty"}}):t._e(),t._v("\n      "+t._s(t.length>0?t.$t("discuzq.list.noMoreData"):t.$t("discuzq.list.noData"))+"\n    ")],1)]],2)}),[],!1,null,"e9521ef0",null);e.default=component.exports;installComponents(component,{Loading:n(739).default,SvgIcon:n(62).default})},732:function(t,e,n){"use strict";n.r(e);var o={name:"ProductItem",props:{item:{type:Object,default:function(){}}},data:function(){return{}}},r=(n(749),n(11)),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.item?n("a",{staticClass:"product-container",attrs:{href:t.item.detailContent,target:"_blank",el:"nofollow"}},[n("el-image",{staticClass:"image",attrs:{src:t.item.imagePath,alt:t.item.title,fit:"cover"}},[n("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[n("i",{staticClass:"el-icon-loading"})])]),t._v(" "),n("div",{staticClass:"info"},[n("div",{staticClass:"info-header"},[n("div",{staticClass:"title"},[t._v(t._s(t.item.title))]),t._v(" "),t.item.price>0?n("div",{staticClass:"price"},[t._v(t._s(t.$t("post.yuanItem")+t.item.price+t.$t("post.yuan")))]):t._e()]),t._v(" "),n("div",{staticClass:"btn"},[n("svg-icon",{staticClass:"icon",attrs:{type:"product-icon"}}),t._v(t._s(t.$t("post.buyProudct")))],1)])],1):t._e()}),[],!1,null,"85619e88",null);e.default=component.exports;installComponents(component,{SvgIcon:n(62).default})},733:function(t,e,n){"use strict";n.r(e);n(13),n(108);var o={name:"AudioPlayer",props:{file:{type:Object,default:function(){}},currentAudio:{type:Object,default:function(){}}},data:function(){return{onDragging:!1,delta:0}},computed:{currentFile:function(){return this.file&&this.file.id?this.currentAudio.id===this.file.id:this.currentAudio.id===this.file._jv.id},playing:function(){return this.currentAudio.currentTime&&this.currentAudio.duration}},methods:{formatDuration:function(t){var e=Math.floor(t/60),n=(t-60*e).toString().substr(0,2);return"."===n[1]&&(n="0".concat(n[0])),"".concat(e,":").concat(n)},formatCurrentTime:function(t){var e=parseInt(t/60)%60,n=(t%60).toFixed(),o=e<10?"0".concat(e):e,s=n<10?"0".concat(n):n;return"".concat(o,":").concat(s)},convertToPercentage:function(){return this.currentAudio.currentTime/this.currentAudio.duration*100},onmousedown:function(){window.document.addEventListener("mousemove",this.dragging),window.document.addEventListener("mouseup",this.onMouseUp)},dragging:function(t){this.delta=t.clientX-this.$refs.progress.getBoundingClientRect().x,this.delta<0&&(this.delta=0),this.delta>290&&(this.delta=290);var time=this.delta/290*this.currentAudio.duration;this.$emit("seeking",time)},onMouseUp:function(){var time=this.delta/290*this.currentAudio.duration;this.$emit("seek",time),window.document.removeEventListener("mousemove",this.dragging),window.document.removeEventListener("mouseup",this.onMouseUp)}}},r=(n(750),n(11)),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"audio"},[t.currentFile&&t.currentAudio.isLoading?n("div",{staticClass:"control"},[n("svg-icon",{staticStyle:{"font-size":"32px"},attrs:{type:"loading",rotate:""}})],1):t.currentFile&&t.currentAudio.isPlay?n("div",{staticClass:"control",on:{click:function(e){return t.$emit("pause")}}},[n("svg-icon",{staticStyle:{"font-size":"32px"},attrs:{type:"audio-pause"}})],1):n("div",{staticClass:"control",on:{click:function(e){return t.$emit("play",t.file)}}},[n("svg-icon",{staticStyle:{"font-size":"32px"},attrs:{type:"audio-play"}})],1),t._v(" "),n("div",{staticClass:"info"},[n("div",{staticClass:"title"},[n("span",{staticClass:"title-audio"},[t._v(t._s(t.file.fileName||t.file.file_name))]),t._v(" "),t.currentFile&&t.playing?n("span",{staticClass:"duration-audio"},[t._v("\n        "+t._s(t.formatCurrentTime(t.currentAudio.currentTime))+" /\n        "+t._s(t.formatDuration(t.currentAudio.duration))+"\n      ")]):n("span",{staticClass:"duration-audio"},[t._v("--:--")])]),t._v(" "),t.currentFile&&t.playing?n("div",{ref:"progress",staticClass:"progress",attrs:{id:"progress"}},[n("div",{staticClass:"progress-item",style:{width:t.convertToPercentage()+"%"}}),t._v(" "),n("div",{staticClass:"control-ball",style:{left:t.convertToPercentage()+"%"},attrs:{id:"control-ball"},on:{mousedown:t.onmousedown}})]):t._e()])])}),[],!1,null,"7fe73b95",null);e.default=component.exports;installComponents(component,{SvgIcon:n(62).default})},735:function(t,e,n){},736:function(t,e,n){t.exports={data:function(){return{diffModulus:[[1e3,60,this.$t("discuzq.date.sec")],[6e4,60,this.$t("discuzq.date.min")],[36e5,24,this.$t("discuzq.date.hour")],[864e5,30,this.$t("discuzq.date.day")],[2592e6,12,this.$t("discuzq.date.mon")],[31104e6,1e6,this.$t("discuzq.date.year")]]}},methods:{timerDiff:function(t,e){t instanceof Date||(t=new Date(t)),e instanceof Date||(e=window.currentTime||new Date),e||(e=window.currentTime||new Date);for(var n,o=e-t,i=0;i<this.diffModulus.length;i++){var r=this.diffModulus[i];if(o/r[0]<r[1]){n="".concat(Math.ceil(o/r[0])," ").concat(r[2]);break}}return n||""}}}},737:function(t,e,n){},738:function(t,e,n){},739:function(t,e,n){"use strict";n.r(e);n(253);var o={name:"Loading",props:{loading:{type:Boolean,default:!1},fontSize:{type:Number,default:32}}},r=(n(741),n(11)),component=Object(r.a)(o,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"loading-container"},[this._v("\n  "+this._s(this.$t("discuzq.list.loading"))+"...\n")])}),[],!1,null,"00ec5480",null);e.default=component.exports},740:function(t,e,n){"use strict";n(719)},741:function(t,e,n){"use strict";n(720)},743:function(t,e,n){},744:function(t,e,n){"use strict";n(722)},745:function(t,e,n){"use strict";n(723)},746:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAdCAMAAAApUkr4AAAAkFBMVEVHcEz3Vmf3V2j5Y3b2TVv2UF73V2f6do7yJyz0anb6bYP0Nz/1QUzzLzfzLTPzLzb6b4b6dI3zKzH7do/5aHz3U2HyJy37do/////zLjb0Nj/6bYL6cIj0RVH0Pkj2UV/6dIv5aHz4XW75YnX2S1j3V2b3jZDvPEr6nqT+3d79ys3rGSf9rrX0a3H/8vLuMj8nTZFDAAAAFnRSTlMAEkXi4ifi4uL44uLint9masnGnKS/GZQQxwAAAoRJREFUOMuNlety2jAQhTENCdMWCG0iZDuSjbEulm3p/d+uK8nWhcBMzx+YYfRxds9qtdmk2p0+X0CvXj+8fi56e6y/KaA4ENL3fQNijHWgG+gKquv6C9S27eWbtglhSwlxjP4Zo33EKFICXRmLD/Y/Ps5JG2iVMVj0sSBWHznkPfahsoR7Hw/7cckYu4A4VAmju/V5KbebmtrHPmIZlRMQgEEVVnktncR4irUkPmKkf0pPcE5mjCWZ8CIOkBZjPS2SmY0Q6a4EVUstYsADNWpF3DpWaxwls1hCpCdLsAywYSas52HmnGM8cClZTsCXdDzOSR2rjYpCBXLAWpgR6hekaTgQuHAyEus6HY8QaYHQasMY/18tFbYl0FUyBAMMvivb0+AjRLpF5cooR227wCkxUEgLuQihFojuiAsmjvpbHArkGQ4xSkugFEzjDhBEQGuHeQYDrIaf0usSI92jlVGWM5gY9EBpqbB2Y0oMRCSlxlMDrVhH3Y5pEimy8gTk50FRgTQMWN/0YGNphQK68pNeexsxUrQIECMfJGcNZAsHJ3dbCPR1UCCoTF/SK5dE6s9bAhrHUcx8AgSzM2q3h4C+GhtpI0Hx2rZtGmm0MSs7RyoEqXoXDbNXlxAGXUlubREjDQQ0cntu4HGcPSKZ79VG/XVOIw0aueKsHAVfNRMimjhcWnZueVxtR+OqQCkCFD9KU8H2EAaReVHP4gL62OSRBoZtiIEhM8a4/WEZXrDOGpZssbh3TxliGY/14jtG34dVGJfpNZaxOaJ75ZAnGzl5Por78wshMPLHZd2m6QN0Qui5jSrW0qQP1EeRvoKH/Tcd90fQL6/fTi9Or+61/XzfZQ/xP0mqs+XfwpcTAAAAAElFTkSuQmCC"},747:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAdCAMAAAApUkr4AAAAeFBMVEVHcEzrxoDv0Zrsx4LsyYfpw3nmuGDz2avisEzpwnfx1J/js1Ty1qXjs1Tktlnz2arz2q3z2q3ir0v////jslLy2KnmuWPktVvpwXby1qTnvW3v0Znx1J/qxH7ty47uzpTsyIb36dPz3rvu0aT78+bdpkbluGv++vXsdvjHAAAAEXRSTlMAEOJB4ibi4uLipJ5mZsXJ8SZQySUAAAKRSURBVDjLdZXrdqsgEIWbpuktvRxughqUQcD3f8MzIAK26e5qVvyRz71nhuHhodXl8+st6inr8ekx6+Xx5Q+9t4DTdVBROsoYM6HmeR7H8Ybqb33fCyHID300hHMYUJlhjgyE9BvhF+LUELquGzIk2zAbovi4x/huyoCEzcZfjGX3Ie7nOEnZddmHOjKmPcrtHuNcENcNkXwMetyti3nzYcUsnCM3C/ZI+FdKcZFR2UeYWNGUfKzMGctYPzm22oON2tKvRIiMIQS5MLZEOfwlyhLHmIXtH4BEhPiZ48I5LzY6bosJMEYrdpRo+1JyfHLJaxQKDJILfK8xCmPZ4hyTtK2tLf3ivPgI0tc3Eq0HJMH+vAJz7XiUlp4SIPvQJr42msA89nYblMEqwmYB5oXsnY2QSxlMyosNvh6TO6WCLE/WTGOZUkFe6lBQuvvgHCDadgAu+gartQp7dEvaUW9b+koLg3s5oo91y8GWoLQijSmSEDujtpTSzEAE1YccGnPY6CYKffVl0iOjtpQ2DB8ApxsLOHsfHBKUBGalBpikYGtzavu+aWkCZIafQAlYgK0aXy+UGrCYIuCzwg93OPm1pdnEhghY9pUt3g4i4BwZ7AeAiJMda0sOG6hp6S7OKc4E+DRSC/YTcTOxEPss0ifYsoHaHFda5f0ClOdSohURUnUdUZ0MYzxtc90excRDBfDI8NQrG+s/pmHjy6KDDFiT0MlpNnWL1aG40FYeOX5TPHP4M5z5MKQtht2Ja2z3UffuZ0vgqajpi9wQcZGpX9sUETVGGs0WQsuRK8t0uHO5nJv7h9I7jLo9hq7Z6tVGQzjmaMb06ONHlPdTewteX+/pOf7tent+y3qKt+37x+VwEf8HVOyS3I7BqRwAAAAASUVORK5CYII="},748:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAdCAMAAAApUkr4AAAAflBMVEVHcEz721P80ET80ET800n8xDb80ET9uyv741v8zUL8z0T80ET800j9uyv9uyr741v8vjD////9wjT8xjn74Vn8yj/81k373VX731f8zkT80kj+78z82VD75Fz721L92I77uR//+ez+57H8zGX7sQ/935v91nb7xTL8w1j8434nLmyfAAAADnRSTlMA4kef4uIW4eLiK2rD8UNrkG4AAALGSURBVDjLdZUBc+IgEIV79apWPQJJiBpMAiSE5P//wdsFAqTnPevUcYbPt/uWzcdHruP19o36HfQr6XyGv3c67AAHjnqiWlCDer36vr/f74/HowYVoK6Dt/sHr+4zI3xWFa82hkO0DvHq7z8ZjhAYxx0BxHNG2wTG5iNAPMKbOSfCpXSE6v+lBB9F7Y933sQ1IcrSMTIfz+Sj3/Wj3vqAr0skHMrAQB/zj1oaswKhv68rMgrw0W2tqLMy6MaoRsXmSotNc9OOjIl17XrF9FZKaEWXIr3RyKBUMbWwqKJ9CvfBaP+FDu1ASor0SKkjIIROcH4IgsNtK5hiTIlAYGuMFiAx0isNjKoq+bgMi5SSECInzQSHo1CbHrUyA2Nzew/jgSZuWR10g1AofOSzE5dw1Eo9yMHMiglrla77h++pY8RIjyQhJPwSNd7yLKED3FpuOX6jjK3a3ZgWMdJPQihSoKV0MkzJgODgaIZ0mwGaobEhps5HvUujeSDBBi3JJJiG9zANTJGZseY542GmBs8VJo5pUaRIT2RjAALimBQbsZMEHFWuBO9KoZHVz7objxjphZDIkBS8w1sIxYwU0EIp1ExCxnIQ6ysrJUVKSIRIGIolDBa6MVbSMk6qGHmTbm0W6cmddwgCLWDYBvhJsxDA8Apj3lQ36drWdRZpMIF/2AJJl2WSkhJwAzeOAnVEaaZ226M+ZpFuDOoCITCaYEhDOxTnFTbVVQHDtdtAtzzSyJggEONmjEq8XAYQUsQ69G6LpVXxhyRJCi1zt5ZMRujBcg6RiMEVMpg132JpKC4kR0wTFuFcwEeKK8jXZS21PG1CWEBp717JjiFJuC3QGb+DrI3bMN+EqQwfadYOmq5cmRYy94uwiUs9e3wcyQ9RsmdUb5f67gFE/lFCVG8YCDkc86fg4fReX6evTd9f35vwQXu77gAffwHkwogbkx55XAAAAABJRU5ErkJggg=="},749:function(t,e,n){"use strict";n(725)},750:function(t,e,n){"use strict";n(726)},752:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAdCAMAAAApUkr4AAAAZlBMVEVHcEz/oEn/r1H/iDz/oEn/oEn/oEn/t1X/iTz/oEn/hTr/ulf/slP/////iTz/jT3/tlX/kkD/p03/rVD/lkX/oUn/uVb/m0b/eSf/wJX/59f/t4v/hTL/9/H/zKX/2MD/nGP/rXlLrqcVAAAACnRSTlMAasPJIkef4uLi2v9OvAAAAnNJREFUOMt9lY1yqyAQhZM0sS0VEAvyK+r7v2QXUFnsvd1MJJkJX87uWZbbDcfz/vhE8V5ef0fXADqppdZaKTWqscT3Hj3EMAzTNH1NX028EOElhUwEYCSKqoy+3wkZAtsw5YkIAgiyQJRqGd9XRon06R1lIcQ/Gd9XxoQYALlXBBcHQ2vdFAQVo7/qwHl0/MrY4vA7lb2kiFHT4LwwjlSkpzSetmz0DA8MlEy19O1ACMFn2oQdR23r16yj5vKqIhjfIUy2BOpHJSJ1NoWjrhT1TOYUcWeJITLCQFjq4DnTaIKAqgZHY9IXZrr0TUkfNQ/GDh2ckWA8ndeQHkJqNepQNUWsAlvKIDhnSQZnbS3AXLmitJoWm05LX4QUCKggpCG4hJDW2xJxaNqjtmaXCUkH5wH+0qzOgavORLoobWPezTMixrNPIZdq6QchJwRKQBew0kAvOCij5rscUdYZIZClANgRjME/O4BY6x2FqmxiN3nZC+LwcamWklMFI2ahPtZdioMaY0CWTyv4XFt9QpaSzEgUHuDXm6feAGrd6CwhMZfqs0GvCEjKHuMDGNVSUiLJIAR0r0tRkSoqwkJnqAkV++rRqcWWngxikiEz9RAWhERhXKliKCutY2x4IEtPBiHG5942ub9BPofE3DJTx8o616NfRdwIQQyzek8CCArGLssmuPRWGm83afNq6xSrTfFsEMEYkts0HbcARyYEnt4CGlcCUOUJ1CfGrbUUx97q0CNpVx1k0Opa1UmIJvdbo6JYy84JlLbLY5ju0zQT0PXx/K3hypDobjkYzQVE/s+4QOrd0j3xLdh9/Bmf5YXjcW8Atx8kQWg3EVPZPwAAAABJRU5ErkJggg=="},753:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAdCAMAAAApUkr4AAAAkFBMVEVHcEwwq/svuf8wqvs0mfgxsP8xpfk1jPQsxv8yp/wxp/swqfstwf80mfk0kfYtwf8sxP8sxf81jfX///80kfYtwf81i/MuvP81lfcvt/8znvo0mfgyp/wws/8wrP4yo/sxsP/J4/6PxP0ll/mIuPkih/Rwyf9jtPxhqfnx+P8si/UbevGc0v6r1f7i8P8nn/vkthLYAAAAEXRSTlMASOIu4uIN4uLiHGriw56fyad8N28AAAKRSURBVDjLbZXrdqowEIXrsaeteuzFpBEBwdwgIJf3f7szCSGZ2G5/yFouPvfMzkyenrD2h+PO66/TH69/Xm8/9ZEA3vO8BpWgqqput9v1egGdrb4Xff3QBhG2RZ47hiWUDrEyLOX7/DtjHwmbolgZdbDhGcjII+ETeciAgHx4yBUxfCkp5RAIL1lWIEYdarn+9JEwtgHx7hColGFoqtXHdRib86Xx+koYL7EMqxVS17kipAEnrh1VSYi4VB1x4omPGOmRZnRB5EUxEKS2apYH+BqEmMiY9DREuqfUMSwk0xwjqll4Fhjg8NOQ5BLqOFCrBUG1UmoinbISopRmhDpAntngbGOkx9PKyKggiaZZj6TjomxNa9UkiBDpywm0IGhaBpifc+AQERrE8RELkW48Ahi9LQOMcOULaeeR8M4hoBUdmQY0Lm/xUDAgLAyqtb5DosJYtYWcjfvvThIy2n40F3TUY6SvjLGTbwelPetCGV0rs8W+WUNGc4siZQ4RalGxE2MtdQ+uuBRkMgZcLCfd+4iRWkJg0P7es/v9zqCvIq/zthWcdGL0zbygwUeRsoVBPQJC6UYF1SiZ53J5FTBja4DaoYmLkbJFa0t75XshgFBoeAseJzAweRuBEbbNZkX4WnooQjgKtwhzh4b2cWTi5H+iSFnwYY2ceg2tUGDaAEJKbUinbcRZQcgNbY/tYx0rw8pRjHKTX0jFB+lkOPcryBLiodgmhBOzDYGD3uueui1WSC2XZThLGVYhIEKiLlLMoOvI0XWLzbnf6nMZt2ksYzmaiMGYP+p+iRXJUo+XC7o+cCtcLJTFyUfbtEwvKHwBbdijoJTEB2Ksl8vHHt+C76+/69l+Vu2ed/GuPR4SwNN/LVuYVScuqLYAAAAASUVORK5CYII="},754:function(t,e,n){},757:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABCCAMAAADQfyDnAAAARVBMVEVHcEz/1t7/MF//M2D/TXL/YoH/d5H/NWP/8/X/2N/+HlX/H1b/+Pr/kqb/sb//NWL/197/W3z/fJX/5On/n7H/ydP/R22l4cNJAAAACnRSTlMAM4RE1sCo5g4grga5YgAAAxZJREFUWMOllol26yAMRPW6pR12vPz/pz6BDRbYTe3YPUmT2LoMIwmgD6Wg0iu9pwtYvtcfxCc03x5vP0T0tUUKiohuLpR3pHHweM+E9lY3WMbKkddRkG88fiqhPFafwhot7rRPZBlvJDRgJx/Vky68gPEgKj5gk4jNWDQOF0WqmADQSliN2RmQ/9sZO1+LZ0SbBiFOyYg4qHGEwlE2CqD4IAJRDRii9a5xpKSF/6gniHTl12yd4fioqjWtpdQQ0AhcVE/WDmYazGF9QQC+v1Q/QiYYPcyTcX6sNdEMQ0TdLNZn8u05Wq2tH+FG542LS7YhK1MCsgbZGqOezDA4Zy28dcPgpYfYA4g+mxJUwYVh9Dyutc5br43aNygdE9ZqCxyjo7OsIeop6LDvzw7w/SkKUKV4+Nl7HzxbYcIQ2lrZA5iw9YRKuWMVerZMMIyLVkxi6Vc6IIhlI8Vb452dOAthEstWKRQ6IEiZHD84rkRrg+5rKWugQ0JtWsdRSYBV3gYbxsjXGCWF6DcNyyDsGvIUNGfTeK2190a2Lf1GKEufikZxAtYMmpQXUSk4BkgNHBPVsMSjxEeHsgMQPdFQCJ7zb1wefwwclpjPPGg1AHHkYM6Em6KaNFuZ8oFuRTqqh6Vz18Jy3uc+jRP3J7aFj4hOzCJ94nbKMZYrQ09jKWp6TpCVnwjW5HyEkfXgqQeZ8IFml+UVQQejZ7l/PQUwoel+x+qzmyyhLpxEf2ool+MVJflvPS90M35tpp2G1QROg8srBAuZ5rrdEZ3TwO+pGhCTBifcJTqhQW4VKQsQhwk6Rag7dtonJrm94G8A/XxsRwWF7uRwBpAIUM1BTBwAiC5oQLOtLpsM0XkN/RnopIlVQz2cQR5D6BKhP8idV7BpwLainynlnZPdafeCgpWA7uQMukJ4iFoqLtJVQnMEuTaFQkBzYKPrhKYergIEYcklrgLo36PtK3qFIE5BLwDSLLaDIl4ALLMAXp1C9eEGgAmX23lPgFKXS3mXi5enIHygGwTcA6wa6BYBuAXIGugewd0EMIHuEv4DyXJgDPfCK6IAAAAASUVORK5CYII="},758:function(t,e,n){"use strict";n.r(e);n(13),n(25);var o=n(718),time=n(717),r=n(734),c=n(715),l=n.n(c),d=n(158),h=n.n(d),m=n(727),f={name:"PostItem",filters:{formatDate:function(t){return Object(time.b)(t)}},mixins:[l.a,h.a],props:{item:{type:Object,default:function(){}},showLike:{type:Boolean,default:!0},showComment:{type:Boolean,default:!0},showShare:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},infoimage:{type:Boolean,default:!1},canDetail:{type:Boolean,default:!1},padding:{type:String,default:"20.5px 20px 30px"}},data:function(){return{loading:!1,showVideoPop:!1,isLiked:!1,currentAudio:{id:"",url:"",currentTime:"",duration:"",audio:"",seeking:!1,isPlay:!1,isLoading:!1}}},computed:{unpaid:function(){return!(this.item.paid||0===parseFloat(this.item.price))},forums:function(){return this.$store.state.site.info.attributes||{}}},watch:{item:{handler:function(t){this.isLiked=t.firstPost&&t.firstPost.isLiked,this.likeCount=t.firstPost&&t.firstPost.likeCount},immediate:!0}},mounted:function(){this.currentAudio.audio=document.getElementById("audio-player".concat(this.item&&this.item._jv&&this.item._jv.id))},methods:{handleLike:function(){var t=this;if(this.$store.getters["session/get"]("isLogin")){if(this.loading)return;if(!this.item.firstPost.canLike)return void this.$message.error(this.$t("topic.noThreadLikePermission"));this.loading=!0;var e=!this.isLiked,n={pid:parseInt(this.item.firstPost&&this.item.firstPost._jv&&this.item.firstPost._jv.id),data:{attributes:{isLiked:e}}};return m.a.updatePosts({data:n}).then((function(){t.$message.success(e?t.$t("discuzq.msgBox.likeSuccess"):t.$t("discuzq.msgBox.cancelLikeSuccess")),e?t.likeCount+=1:t.likeCount-=1,t.isLiked=e,t.$emit("change")}),(function(e){t.handleError(e)})).finally((function(){t.loading=!1}))}this.$message.warning("请登录"),window.setTimeout((function(){t.headerTologin()}),1e3)},toDetail:function(){this.item.isDraft||this.canViewPostsFn()&&this.routerLink()},onClickImage:function(){this.unpaid&&this.canViewPostsFn()&&this.routerLink()},openVideo:function(){this.canViewPostsFn()&&(this.unpaid?this.routerLink():"/"===this.$route.path||"/site/search"===this.$route.path||"category-id"===this.$route.name?this.$emit("showVideoFn",this.item.threadVideo):this.showVideoPop=!0)},routerLink:function(){window.open("/thread/".concat(this.item._jv&&this.item._jv.id),"_blank")},onClickContent:function(t){if(!this.item.isDraft){var e=t||window.event;"a"!==(e.target||e.srcElement).nodeName.toLocaleLowerCase()&&this.toDetail()}},canViewPostsFn:function(){var t=this;return this.item.canViewPosts?!this.canDetail||(this.$message.warning(this.$t("topic.joinAfterView")),!1):(this.$store.getters["session/get"]("isLogin")?this.$message.warning(this.$t("home.noPostingTopic")):(this.$message.warning(this.$t("core.not_authenticated")),window.setTimeout((function(){t.headerTologin()}),1e3)),!1)},formatTopicHTML:function(html){return o.a.parse(html)},extensionValidate:function(t){return r.extensionList.indexOf(t.toUpperCase())>0?t.toUpperCase():"UNKNOWN"},play:function(t){var e=this;this.unpaid?this.routerLink():this.canViewPostsFn()&&this.currentAudio.audio&&(this.currentAudio.id!==t._jv.id&&(this.resetAudio(this.currentAudio.audio),this.currentAudio.url=t.url||t.media_url,this.currentAudio.id=t._jv.id,this.currentAudio.audio.src=this.currentAudio.url,this.currentAudio.isLoading=!0,this.currentAudio.audio.load()),window.setTimeout((function(){e.currentAudio.audio.play(),e.currentAudio.isPlay=!0,e.currentAudio.audio.addEventListener("timeupdate",e.onProgressing),e.currentAudio.audio.addEventListener("ended",e.onEnded),e.$emit("audioPlay",e.currentAudio.id)}),0))},onProgressing:function(){this.currentAudio.seeking||(this.currentAudio.isLoading=!1,this.currentAudio.duration=this.currentAudio.audio.duration,this.currentAudio.currentTime=this.currentAudio.audio.currentTime)},onEnded:function(){this.resetAudio(this.currentAudio.audio)},resetAudio:function(audio){audio&&(audio.removeEventListener("timeupdate",this.onProgressing),audio.removeEventListener("ended",this.onEnded),this.currentAudio.isPlay=!1,this.currentAudio.duration="",this.currentAudio.currentTime="")},pause:function(){this.currentAudio.audio&&(this.currentAudio.isLoading=!1,this.currentAudio.isPlay=!1,this.currentAudio.audio.pause())},seek:function(time){this.currentAudio.audio&&(this.currentAudio.seeking=!1,this.currentAudio.currentTime=time,this.currentAudio.audio.currentTime=time)},seeking:function(time){this.currentAudio.seeking=!0,this.currentAudio.currentTime=time}}},v=(n(764),n(11)),component=Object(v.a)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"post-container",style:{padding:t.padding}},[t.item.isEssence?n("div",{staticClass:"essence"},[n("svg-icon",{attrs:{type:"index-essence"}})],1):t._e(),t._v(" "),5===t.item.type&&t.item.question&&1===t.item.question.is_answer&&t.item.question.beUser?n("avatar",{staticClass:"avatar",attrs:{user:{id:t.item.question.beUser.id,username:t.item.question.beUser.username,avatarUrl:t.item.question.beUser.avatarUrl,isReal:t.item.question.beUser.isReal},"prevent-jump":t.canDetail}}):t.item.user?n("avatar",{staticClass:"avatar",attrs:{user:{id:t.item.user.id,username:t.item.user.username,avatarUrl:t.item.user.avatarUrl,isReal:t.item.user.isReal},"prevent-jump":t.canDetail}}):t._e(),t._v(" "),n("div",{staticClass:"main-cont"},[n("div",{staticClass:"top-flex"},[n("div",{staticClass:"top-user-info"},[5===t.item.type&&t.item.question&&1===t.item.question.is_answer&&t.item.question.beUser?n("nuxt-link",{staticClass:"user-info",attrs:{to:t.item.user.id>0?"/user/"+t.item.question.beUser.id:""}},[n("span",{staticClass:"user-name"},[t._v(t._s(t.item.question.beUser.username))]),t._v(" "),t.item.question.beUser&&t.item.question.beUser.groups&&t.item.question.beUser.groups.length>0&&t.item.question.beUser.groups[0].isDisplay?n("span",{staticClass:"admin"},[t._v("\n            ("+t._s(t.item.question.beUser.groups[0].name)+")\n          ")]):t._e()]):t.item.user?n("nuxt-link",{staticClass:"user-info",attrs:{to:t.item.user.id>0?"/user/"+t.item.user.id:""}},[n("span",{staticClass:"user-name"},[t._v(t._s(t.item.user.username))]),t._v(" "),t.item.user.id>0&&t.item.user.groups&&t.item.user.groups.length>0&&t.item.user.groups[0].isDisplay?n("span",{staticClass:"admin"},[t._v("\n            "+t._s(t.item.user.groups[0].name)+"\n          ")]):t._e()]):t._e(),t._v(" "),5===t.item.type&&t.item.question&&1===t.item.question.is_answer?n("div",{staticClass:"answered"},[t._v("\n          "+t._s(t.$t("topic.answered"))+"\n        ")]):t._e()],1),t._v(" "),n("div",{staticClass:"time"},[t.item.createdAt?[t._v(t._s(t.$t("topic.publishAt"))+"\n          "+t._s(t._f("formatDate")(t.item.createdAt)))]:t._e()],2)]),t._v(" "),5===t.item.type?n("div",{staticClass:"question-user"},[t.item.question?t._e():n("div",[t._v("\n        "+t._s(t.$t("topic.questionsAndAnswers"))+"\n        "),n("div",{staticClass:"inline blue"},[t._v("\n          ￥"+t._s(t.item&&t.item.questionTypeAndMoney?t.item.questionTypeAndMoney.money:0)+"\n        ")])]),t._v(" "),t.item.question&&0===t.item.question.is_answer?n("div",{staticClass:"inline"},[n("div",{staticClass:"inline blue"},[t._v("\n          ￥"+t._s(t.item&&t.item.questionTypeAndMoney?t.item.questionTypeAndMoney.money:0)+"\n        ")]),t._v("\n        "+t._s(t.$t("topic.be"))+"\n        "),t.item.question&&t.item.question.beUser?n("nuxt-link",{staticClass:"grey",attrs:{to:t.item.question.beUser.id>0?"/user/"+t.item.question.beUser.id:""}},[t._v("@"+t._s(t.item.question.beUser.username))]):t._e(),t._v("\n        "+t._s(t.$t("topic.question"))+"\n      ")],1):t._e(),t._v(" "),t.item.question&&1===t.item.question.is_answer?[t._v("\n        "+t._s(t.$t("topic.answer"))+"\n        "),t.item.user?n("nuxt-link",{staticClass:"grey",attrs:{to:t.item.user.id>0?"/user/"+t.item.user.id:""}},[t._v("@"+t._s(t.item.user.username))]):t._e(),t._v("\n        "+t._s(t.$t("topic.of"))+t._s(t.$t("topic.question"))+"\n      ")]:t._e()],2):t._e(),t._v(" "),t.item.firstPost?[n("div",{staticClass:"first-post",on:{click:function(e){return e.target!==e.currentTarget?null:t.toDetail.apply(null,arguments)}}},[n("a",{attrs:{href:"/thread/"+(t.item._jv&&t.item._jv.id)},on:{click:function(e){return e.preventDefault(),t.onClickContent.apply(null,arguments)}}},[1===t.item.type?n("div",{staticClass:"title"},[t._v("\n            "+t._s(t.$t("home.released"))+"\n            "),n("svg-icon",{directives:[{name:"show",rawName:"v-show",value:parseFloat(t.item.price)>0||parseFloat(t.item.attachmentPrice)>0,expression:"\n                parseFloat(item.price) > 0 ||\n                  parseFloat(item.attachmentPrice) > 0\n              "}],staticClass:"blue icon-pay-yuan-inline",attrs:{type:"pay-yuan"}}),t._v(" "),n("span",{staticClass:"blue"},[t._v(t._s(t.item.title))])],1):n("div",{staticClass:"content"},[5===t.item.type?n("svg-icon",{staticClass:"icon-pay-yuan blue",attrs:{type:"question-icon"}}):6===t.item.type?n("svg-icon",{staticClass:"icon-pay-yuan blue",attrs:{type:"product-icon"}}):parseFloat(t.item.price)>0||parseFloat(t.item.attachmentPrice)>0?n("svg-icon",{staticClass:"icon-pay-yuan grey",attrs:{type:"pay-yuan"}}):t._e(),t._v(" "),n("div",{class:{"content-block":5===t.item.type||6===t.item.type||parseFloat(t.item.price)>0,blue:5===t.item.type},domProps:{innerHTML:t._s(t.$xss(t.formatTopicHTML(t.item.firstPost.summary)))}})],1)]),t._v(" "),t.item.firstPost.images&&t.item.firstPost.images.length>0?n("div",{directives:[{name:"viewer",rawName:"v-viewer",value:{url:"data-source"},expression:"{ url: 'data-source' }"}],staticClass:"images",on:{click:function(e){return e.target!==e.currentTarget?null:t.toDetail.apply(null,arguments)}}},t._l(t.item.firstPost.images.slice(0,3),(function(image,e){return n("el-image",{key:e,class:{image:!0,infoimage:t.infoimage},attrs:{src:image.thumbUrl,"data-source":t.unpaid?"":image.url,alt:image.filename,fit:"cover",lazy:t.lazy},on:{click:function(e){return e.target!==e.currentTarget?null:t.onClickImage.apply(null,arguments)}}},[n("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[n("i",{staticClass:"el-icon-loading"})])])})),1):t._e(),t._v(" "),t.item.firstPost.images&&t.item.firstPost.images.length>3?n("div",{staticClass:"image-count",on:{click:t.toDetail}},[t._v("\n          "+t._s(t.$t("home.total"))+" "+t._s(t.item.firstPost.images.length)+"\n          "+t._s(t.$t("home.seeAllImage"))+"\n        ")]):t._e(),t._v(" "),2===t.item.type&&t.item.threadVideo?n("div",{staticClass:"video-main",on:{click:function(e){return e.stopPropagation(),t.openVideo.apply(null,arguments)}}},[t.item.threadVideo.cover_url?n("el-image",{staticClass:"video-img-cover",attrs:{src:t.item.threadVideo.cover_url,alt:t.item.threadVideo.file_name,fit:"cover",lazy:t.lazy}}):n("div",{staticClass:"no-cover"},[t._v(t._s(t.$t("home.noPoster")))]),t._v(" "),n("svg-icon",{staticClass:"video-play",attrs:{type:"video-play"}})],1):t._e(),t._v(" "),t.item.firstPost.attachments&&t.item.firstPost.attachments.length>0?n("div",{staticClass:"attachment",on:{click:t.toDetail}},[n("svg-icon",{attrs:{type:t.extensionValidate(t.item.firstPost.attachments[0].extension)}}),t._v(" "),n("div",{staticClass:"name text-hidden"},[t._v("\n            "+t._s(t.item.firstPost.attachments[0].fileName)+"\n          ")]),t._v(" "),t.item.firstPost.attachments.length>1?n("div",{staticClass:"total"},[t._v("\n            "+t._s(t.$t("home.etc")+t.item.firstPost.attachments.length+t.$t("home.attachmentTotal"))+"\n          ")]):t._e()],1):t._e()]),t._v(" "),6===t.item.type?n("product-item",{attrs:{item:t.item&&t.item.firstPost&&t.item.firstPost.postGoods}}):t._e(),t._v(" "),4===t.item.type?n("div",{on:{click:function(e){return e.target!==e.currentTarget?null:t.toDetail.apply(null,arguments)}}},[n("audio-player",{attrs:{file:t.item&&t.item.threadAudio,"current-audio":t.currentAudio},on:{play:t.play,pause:t.pause,seek:t.seek,seeking:t.seeking}}),t._v(" "),n("audio",{staticClass:"audio-player",staticStyle:{display:"none"},attrs:{id:"audio-player"+(t.item._jv&&t.item._jv.id),src:t.currentAudio.url}})],1):t._e(),t._v(" "),t.item.location?n("nuxt-link",{staticClass:"location",attrs:{to:"/topic/position?longitude="+t.item.longitude+"&latitude="+t.item.latitude}},[n("span",{staticClass:"flex"},[n("svg-icon",{staticClass:"icon",attrs:{type:"location"}}),t._v("\n          "+t._s(t.item.location)+"\n        ")],1)]):t._e(),t._v(" "),t.canDetail?t._e():n("div",{staticClass:"bottom-handle"},[n("div",{staticClass:"left"},[t.showLike?n("div",{staticClass:"btn like",class:{liked:t.isLiked},on:{click:t.handleLike}},[n("svg-icon",{staticClass:"icon",attrs:{type:"like"}}),t._v("\n            "+t._s(t.isLiked?t.$t("topic.liked"):t.$t("topic.like"))+"\n            "+t._s(t.likeCount>0?t.likeCount:"")+"\n          ")],1):t._e(),t._v(" "),t.showComment?n("div",{staticClass:"btn comment",on:{click:t.toDetail}},[n("svg-icon",{staticClass:"icon",attrs:{type:"post-comment"}}),t._v("\n            "+t._s(t.$t("topic.comment"))+"\n            "+t._s(t.item.postCount-1>0?t.item.postCount-1:"")+"\n          ")],1):t._e(),t._v(" "),t.item._jv&&t.item._jv.id&&t.showShare?n("share-popover",{attrs:{"threads-id":t.item._jv.id}},[n("div",{staticClass:"btn share"},[n("svg-icon",{staticClass:"icon",attrs:{type:"link"}}),t._v("\n              "+t._s(t.$t("topic.share"))+"\n            ")],1)]):t._e(),t._v(" "),t._t("btn-edit"),t._v(" "),t._t("btn-delete")],2),t._v(" "),t._t("bottom-right")],2)]:t._e()],2),t._v(" "),t.showVideoPop?n("video-pop",{attrs:{"cover-url":t.item.threadVideo.cover_url,url:t.item.threadVideo.media_url},on:{remove:function(e){t.showVideoPop=!1}}}):t._e()],1)}),[],!1,null,"74927ad6",null);e.default=component.exports;installComponents(component,{SvgIcon:n(62).default,Avatar:n(254).default,ProductItem:n(732).default,AudioPlayer:n(733).default,SharePopover:n(724).default,VideoPop:n(729).default})},759:function(t,e,n){"use strict";n.r(e);n(253);var o={name:"AvatarComponent",props:{author:{type:Object,default:function(){}},size:{type:Number,default:50},round:{type:Boolean,default:!1},groupShow:{type:Boolean,default:!1}},computed:{isAnonymous:function(){return!this.author.id||parseInt(this.author.id)<0}}},r=(n(816),n(11)),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"global"},[n("Avatar",{attrs:{user:t.author,size:t.size,round:t.round}}),t._v(" "),n("div",{staticClass:"title-info"},[n("div",{staticClass:"author-name"},[n("a",{staticClass:"username",attrs:{href:t.isAnonymous?"javascript:void(0)":"/user/"+t.author.id}},[t._v(t._s(t.author.userName||t.author.username))]),t._v(" "),t.author.groups&&t.author.groups[0]&&t.author.groups[0].isDisplay&&!t.groupShow?n("span",{staticClass:"group"},[t._v(t._s(t.author.groups[0].isDisplay?"（"+(t.author.groups[0].name||t.author.groups[0].groupName)+"）":""))]):t._e()]),t._v(" "),n("div",{staticClass:"timer"},[t._t("default")],2)])],1)}),[],!1,null,"52a09588",null);e.default=component.exports;installComponents(component,{Avatar:n(254).default})},761:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAdBAMAAACkvXo8AAAAMFBMVEX0Nz9HcEz0Nz/0Nz/0Nz/0Nz/0Nz/0Nz/0Nz/0Nz/0Nz/0Nz/0Nz/0Nz/0Nz/0Nz+8Gen2AAAAD3RSTlMhAPHhCaE+0RdgkL2ugm+A/zHcAAAAy0lEQVQY02MQCVKCA+UrAgxi9v8R4KcAg4dnPZz7lVGAgWmF2H4oV7cxtYGB/3+A2Hkw184x+z8DkP//mMAiILdSZPp/CP//NolL/7eJPP4P4wPlJkiA1MD4/y0d4v8j8//r/0fl/0fhF/3//8keic+m/98gH4lfkvSZA1n+u1sBM7L+0IeCc9cj+N8FgaAJSV5JVRjFPiVVaWN9BP+zI1B9P5J81ErZVeeR3fsHVT8G/zca/389Lv/6o/AdGESRuV8FGESCENxPIQIAaU83v1QfDM0AAAAASUVORK5CYII="},762:function(t,e,n){"use strict";n.r(e);var o=n(751),r={name:"Advertising",data:function(){return{qrcode:null,siteName:""}},computed:{forums:function(){return this.$store.state.site.info.attributes||{}}},watch:{forums:{handler:function(t){t&&t.set_site&&(this.siteName=t.set_site.site_name?t.set_site.site_name:"Discuz! Q")},deep:!0}},mounted:function(){this.siteName=this.forums&&this.forums.set_site&&this.forums.set_site.site_name?this.forums.set_site.site_name:"Discuz! Q",this.createQrcode(window.location.href)},destroyed:function(){this.qrcode=null},methods:{createQrcode:function(link){var t=this;this.qrcode=null,this.$nextTick((function(){t.qrcode=new o(t.$refs.qrcode,{width:70,height:70,text:link})}))}}},c=(n(785),n(11)),component=Object(c.a)(r,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"adv-container"},[e("div",{ref:"qrcode",staticClass:"qrcode"}),this._v(" "),e("div",{staticClass:"adv-info"},[e("div",{staticClass:"adv-title"},[this._v("扫一扫，访问移动端")]),this._v(" "),e("img",{staticClass:"adv-logo2",attrs:{src:n(761)}}),this._v(" "),e("span",{staticClass:"adv-title2"},[this._v(this._s(this.siteName))])])])}),[],!1,null,"fa151192",null);e.default=component.exports},763:function(t,e,n){"use strict";n.r(e);n(52);var o={name:"Copyright",data:function(){return{year:"2019"}},computed:{forums:function(){return this.$store.state.site.info.attributes||{}},code:function(){return this.$store.state.site.info.attributes.set_site.site_record_code.replace(/[^0-9]+/g,"")||""}},mounted:function(){var t=window.currentTime||new Date;this.year=t.getFullYear()}},r=(n(786),n(11)),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"copyright"},[n("div",{staticClass:"info"},[n("span",[t._v("Powered By")]),t._v(" "),n("a",{staticClass:"site",attrs:{href:"https://discuz.com",target:"_blank"}},[t._v("Discuz! Q")]),t._v(" "),n("span",{staticClass:"block"},[t._v("© "+t._s(t.year))])]),t._v(" "),t.forums&&t.forums.set_site&&(t.forums.set_site.site_record||t.forums.set_site.site_record_code)?n("div",{staticClass:"id"},[n("div",{staticClass:"site-record-code"},[n("a",{attrs:{href:"https://beian.miit.gov.cn/",target:"_blank"}},[t._v(t._s(t.forums.set_site?t.forums.set_site.site_record:""))])]),t._v(" "),t.forums&&t.forums.set_site&&t.forums.set_site.site_record_code?n("div",{staticClass:"site-record-code"},[n("a",{attrs:{href:"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode="+t.code,target:"_blank"}},[t._v(t._s(t.forums&&t.forums.set_site&&t.forums.set_site.site_record_code))])]):t._e()]):t._e()])}),[],!1,null,"0b80548e",null);e.default=component.exports},764:function(t,e,n){"use strict";n(735)},765:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWBAMAAAA2mnEIAAAALVBMVEX5rD75rD75rD75rD75rD75rD/5rD/5rD/5rD75rD/5rD75rD/5rD/5rD/5rD5fyIAMAAAADnRSTlMCkdkQMMNUIvFFg+WsZNscE4cAAADBSURBVBjTY2BgYGAReqfowAAGbF0ODCwrEsDsQOYcpWMGoiAm0wS5d+/ePeRUALIjrd+BwOapQNUC+ybse/fO8jVjAgMH47tmi3fPLd4JNDB42b17xP7Oed+7x0sYRPLevQsoYXr37pkjg8K5d+/eMMQBCSaGB3rvdO8y37307hEfiC1ezlBeA2ID1TwNNQ+NA6kB6l0AtJELpBdo5rt35kAMNBNoF4QNtAvohnfvPN+9A7kB2W0obkb2C4of4X4HAPLQaUz8SV+2AAAAAElFTkSuQmCC"},766:function(t,e,n){},767:function(t,e,n){},768:function(t,e,n){},769:function(t,e,n){},770:function(t,e,n){},771:function(t,e,n){},772:function(t,e,n){},773:function(t,e,n){},774:function(t,e,n){},775:function(t,e,n){},776:function(t,e,n){},777:function(t,e,n){},778:function(t,e,n){},779:function(t,e,n){},784:function(t,e,n){},785:function(t,e,n){"use strict";n(737)},786:function(t,e,n){"use strict";n(738)},787:function(t,e,n){},788:function(t,e,n){},790:function(t,e,n){"use strict";n.r(e);var o=n(85),r=(n(39),n(45),n(715)),c={name:"Caller",mixins:[n.n(r).a],data:function(){return{friends:[],friendsLoading:!0,selectedFriends:[],searchList:[],searchValue:"",searchTotal:10,loading:!1,setTimeoutId:null,pageLimit:10,pageNumber:1}},computed:{noMore:function(){return!(!this.searchValue||this.loading)&&this.searchList.length>=this.searchTotal},disabled:function(){return this.loading||this.noMore}},mounted:function(){this.getFriends()},methods:{getFriends:function(){var t=this,e={"filter[type]":2,include:"fromUser,toUser.groups"};return this.$store.dispatch("jv/get",["follow",{params:e}]).then((function(data){t.friendsLoading=!1,t.friends=data.filter((function(t){return 1===t.is_mutual})),t.friends=t.friends.map((function(t){return t.fromUser}))}),(function(e){return t.handleError(e)}))},searchUser:function(t){var e=this;this.searchValue=t.target.value,this.pageNumber=1,this.searchList=[],this.setTimeoutId&&window.clearTimeout(this.setTimeoutId),this.searchValue&&(this.setTimeoutId=setTimeout((function(){e.loading=!0,e.getSearchList(),e.setTimeoutId=null}),300))},getSearchList:function(){var t=this,e={"filter[username]":"*".concat(this.searchValue,"*"),"filter[status]":"normal","page[limit]":this.pageLimit,"page[number]":this.pageNumber};this.$store.dispatch("jv/get",["users",{params:e}]).then((function(data){var e,meta=data._jv.json.meta;t.loading=!1,t.searchTotal=meta.total,data.length>0&&(e=t.searchList).push.apply(e,Object(o.a)(data))}),(function(e){return t.handleError(e)}))},load:function(){this.searchValue&&this.searchList.length>0&&(this.loading=!0,this.pageNumber+=1,this.getSearchList())},formatValue:function(){var t=Object(o.a)(this.selectedFriends);return t=t.map((function(t){return"".concat(t," ")}))," @".concat(t.join("@"))},selectFriendFromUl:function(t){this.selectedFriends.indexOf(t.username)<0&&this.selectedFriends.push(t.username),this.clear()},clear:function(){this.$refs.inputCaller.value="",this.searchValue="",this.searchList=[]}}},l=(n(827),n(11)),component=Object(l.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("message-box",{attrs:{title:t.$t("post.callFriends"),overflow:"visible"},on:{close:function(e){return t.$emit("close")}}},[n("div",{staticClass:"top"},[n("div",{staticClass:"container-selectedCaller"},t._l(t.selectedFriends,(function(e,o){return n("div",{key:o,staticClass:"selectedCaller"},[n("span",[t._v("@ "+t._s(e))]),t._v(" "),n("svg-icon",{staticStyle:{"font-size":"13px",cursor:"pointer",fill:"#6d6d6d","margin-left":"5px"},attrs:{type:"close"},on:{click:function(n){t.selectedFriends.splice(t.selectedFriends.indexOf(e),1)}}})],1)})),0),t._v(" "),n("div",{staticClass:"tip"},[t._v(t._s(t.$t("post.searchFriends")))]),t._v(" "),n("div",{staticClass:"container-search-list"},[n("label",[n("input",{ref:"inputCaller",staticClass:"input-caller",attrs:{placeholder:t.$t("post.pleaseInput"),type:"text"},on:{input:t.searchUser}})]),t._v(" "),n("div",{staticClass:"infinite-list-wrapper",staticStyle:{overflow:"auto"}},[n("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.load,expression:"load"}],attrs:{"infinite-scroll-disabled":"disabled"}},t._l(t.searchList,(function(e,o){return n("li",{key:o,class:{"infinite-list-item":!0,selected:t.selectedFriends.indexOf(e.username)>=0},on:{click:function(n){return t.selectFriendFromUl(e)}}},[t._v("\n            "+t._s(e.username)+"\n          ")])})),0),t._v(" "),t.loading?n("p",{staticClass:"loading-tip"},[t._v(t._s(t.$t("core.loading")))]):t._e(),t._v(" "),t.noMore?n("p",{staticClass:"loading-tip"},[t._v(t._s(t.$t("core.noMoreData")))]):t._e()])]),t._v(" "),n("div",{staticClass:"friends"},[n("div",{staticClass:"title"},[t._v(t._s(t.$t("post.myFriends")))]),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.friendsLoading,expression:"friendsLoading"}],staticClass:"container-caller"},t._l(t.friends,(function(e,o){return n("div",{key:o,class:{caller:!0,selected:t.selectedFriends.indexOf(e.username)>=0},on:{click:function(n){t.selectedFriends.indexOf(e.username)>=0?t.selectedFriends.splice(t.selectedFriends.indexOf(e.username),1):t.selectedFriends.push(e.username)}}},[n("avatar",{attrs:{user:e,size:"30",round:"","prevent-jump":""}}),t._v(" "),n("span",[t._v(t._s(e.username))])],1)})),0)])]),t._v(" "),n("div",{staticClass:"bottom"},[n("div",{staticClass:"container"},[n("span",{staticClass:"text"},[t._v(t._s(t.$t("post.chosen")+" "+t.selectedFriends.length+" "+t.$t("topic.personUnit")))]),t._v(" "),n("el-button",{attrs:{disabled:0===t.selectedFriends.length,size:"medium",type:"primary"},on:{click:function(e){t.$emit("selectedCaller",t.formatValue())}}},[t._v(t._s(t.$t("post.confirmChoice")))])],1)])])}),[],!1,null,"ff04057e",null);e.default=component.exports;installComponents(component,{SvgIcon:n(62).default,Avatar:n(254).default,MessageBox:n(721).default})},791:function(t,e,n){"use strict";n.r(e);var o=n(85),r=n(715),c={name:"TopicList",mixins:[n.n(r).a],data:function(){return{searchValue:"",searchList:[],searchTotal:0,pageNumber:1,pageLimit:5,setTimeoutId:null,loading:!1}},computed:{noMore:function(){return!this.loading&&this.searchList.length>=this.searchTotal},disabled:function(){return this.loading||this.noMore}},mounted:function(){this.getTopics()},methods:{searchTopics:function(t){var e=this;this.setTimeoutId&&window.clearTimeout(this.setTimeoutId),this.searchValue=t.target.value,this.pageNumber=1,this.searchList=[],this.setTimeoutId=setTimeout((function(){e.loading=!0,e.getTopics(),e.setTimeoutId=null}),300)},getTopics:function(){var t=this,e={"page[limit]":this.pageLimit,"page[number]":this.pageNumber,sort:"recommended"};return this.searchValue&&(e["filter[content]"]=this.searchValue),this.searchValue||(e["filter[recommended]"]=1),this.$store.dispatch("jv/get",["topics",{params:e}]).then((function(data){var e,meta=data._jv.json.meta;t.loading=!1,t.searchTotal=meta.total,data.length>0&&(e=t.searchList).push.apply(e,Object(o.a)(data))}),(function(e){return t.handleError(e)}))},load:function(){this.searchList.length>0&&(this.loading=!0,this.pageNumber+=1,this.getTopics())},emitValue:function(t){this.$emit("selectedTopic"," #".concat(t,"# ")),this.searchValue="",this.searchList=[],this.getTopics()}}},l=(n(825),n(11)),component=Object(l.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container-search-list",on:{click:function(t){return t.stopPropagation(),function(){}.apply(null,arguments)}}},[n("label",{on:{click:function(t){return t.target!==t.currentTarget?null:function(){}.apply(null,arguments)}}},[n("input",{staticClass:"input-topic",attrs:{type:"text",placeholder:t.$t("post.topicInputTip")},domProps:{value:t.searchValue},on:{input:t.searchTopics,click:function(t){return t.target!==t.currentTarget?null:function(){}.apply(null,arguments)}}})]),t._v(" "),n("div",{staticClass:"infinite-list-wrapper",staticStyle:{overflow:"auto"}},[n("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.load,expression:"load"}],attrs:{"infinite-scroll-disabled":"disabled"}},[t.searchValue&&t.searchList.map((function(t){return t.content})).indexOf(t.searchValue)<0&&!t.loading?n("li",{on:{click:function(e){return t.emitValue(t.searchValue)}}},[n("span",[t._v("#"+t._s(t.searchValue)+"#")]),t._v(" "),n("span",[t._v(t._s(t.$t("topic.newTopic")))])]):t._e(),t._v(" "),t._l(t.searchList,(function(e,o){return n("li",{key:o,staticClass:"infinite-list-item",on:{click:function(n){return t.emitValue(e.content)}}},[n("span",[t._v("#"+t._s(e.content)+"#")]),t._v(" "),n("svg-icon",{directives:[{name:"show",rawName:"v-show",value:1===e.recommended,expression:"topic.recommended === 1"}],staticStyle:{"font-size":"16px"},attrs:{type:"recommend"}}),t._v(" "),n("span",[t._v(t._s(e.view_count+t.$t("topic.hot")))])],1)}))],2),t._v(" "),t.loading?n("p",{staticClass:"loading-tip"},[t._v(t._s(t.$t("core.loading")))]):t._e()])])}),[],!1,null,"3b40be94",null);e.default=component.exports;installComponents(component,{SvgIcon:n(62).default})},792:function(t,e,n){"use strict";n.r(e);var o={name:"EmojiList",data:function(){return{emojiList:[]}},mounted:function(){this.getEmojiList()},methods:{getEmojiList:function(){var t=this;this.$store.dispatch("jv/get",["emoji",{}]).then((function(data){t.emojiList=data}))}}},r=(n(826),n(11)),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"emoji-list"},t._l(t.emojiList,(function(e,o){return n("span",{key:o,on:{click:function(n){return t.$emit("selectEmoji",e.code)}}},[n("img",{attrs:{src:e.url,alt:e.code}})])})),0)}),[],!1,null,"22862d46",null);e.default=component.exports},796:function(t,e,n){"use strict";n(743)},799:function(t,e,n){"use strict";n.r(e);n(13),n(25);var o=n(718),time=n(717),r=n(734),c=n(715),l=n.n(c),d=n(158),h=n.n(d),m=n(727),f={name:"PostItem",filters:{formatDate:function(t){return Object(time.b)(t)}},mixins:[l.a,h.a],props:{item:{type:Object,default:function(){}},showLike:{type:Boolean,default:!0},showComment:{type:Boolean,default:!0},showShare:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},infoimage:{type:Boolean,default:!1},canDetail:{type:Boolean,default:!1},padding:{type:String,default:"20.5px 20px 30px"}},data:function(){return{loading:!1,showVideoPop:!1,isLiked:!1,currentAudio:{id:"",url:"",currentTime:"",duration:"",audio:"",seeking:!1,isPlay:!1,isLoading:!1}}},computed:{unpaid:function(){return!(this.item.paid||0===parseFloat(this.item.price))},forums:function(){return this.$store.state.site.info.attributes||{}}},watch:{item:{handler:function(t){this.isLiked=t.firstPost&&t.firstPost.isLiked,this.likeCount=t.firstPost&&t.firstPost.likeCount},immediate:!0}},mounted:function(){this.currentAudio.audio=document.getElementById("audio-player".concat(this.item&&this.item._jv&&this.item._jv.id))},methods:{handleLike:function(){var t=this;if(this.$store.getters["session/get"]("isLogin")){if(this.loading)return;if(!this.item.firstPost.canLike)return void this.$message.error(this.$t("topic.noThreadLikePermission"));this.loading=!0;var e=!this.isLiked,n={pid:parseInt(this.item.firstPost&&this.item.firstPost._jv&&this.item.firstPost._jv.id),data:{attributes:{isLiked:e}}};return m.a.updatePosts({data:n}).then((function(){t.$message.success(e?t.$t("discuzq.msgBox.likeSuccess"):t.$t("discuzq.msgBox.cancelLikeSuccess")),e?t.likeCount+=1:t.likeCount-=1,t.isLiked=e,t.$emit("change")}),(function(e){t.handleError(e)})).finally((function(){t.loading=!1}))}this.$message.warning("请登录"),window.setTimeout((function(){t.headerTologin()}),1e3)},toDetail:function(){this.item.isDraft||this.canViewPostsFn()&&this.routerLink()},onClickImage:function(){this.unpaid&&this.canViewPostsFn()&&this.routerLink()},openVideo:function(){this.canViewPostsFn()&&(this.unpaid?this.routerLink():"/"===this.$route.path||"/site/search"===this.$route.path||"category-id"===this.$route.name?this.$emit("showVideoFn",this.item.threadVideo):this.showVideoPop=!0)},routerLink:function(){window.open("/thread/".concat(this.item._jv&&this.item._jv.id),"_blank")},onClickContent:function(t){if(!this.item.isDraft){var e=t||window.event;"a"!==(e.target||e.srcElement).nodeName.toLocaleLowerCase()&&this.toDetail()}},canViewPostsFn:function(){var t=this;return this.item.canViewPosts?!this.canDetail||(this.$message.warning(this.$t("topic.joinAfterView")),!1):(this.$store.getters["session/get"]("isLogin")?this.$message.warning(this.$t("home.noPostingTopic")):(this.$message.warning(this.$t("core.not_authenticated")),window.setTimeout((function(){t.headerTologin()}),1e3)),!1)},formatTopicHTML:function(html){return o.a.parse(html)},extensionValidate:function(t){return r.extensionList.indexOf(t.toUpperCase())>0?t.toUpperCase():"UNKNOWN"},play:function(t){var e=this;this.unpaid?this.routerLink():this.canViewPostsFn()&&this.currentAudio.audio&&(this.currentAudio.id!==t._jv.id&&(this.resetAudio(this.currentAudio.audio),this.currentAudio.url=t.url||t.media_url,this.currentAudio.id=t._jv.id,this.currentAudio.audio.src=this.currentAudio.url,this.currentAudio.isLoading=!0,this.currentAudio.audio.load()),window.setTimeout((function(){e.currentAudio.audio.play(),e.currentAudio.isPlay=!0,e.currentAudio.audio.addEventListener("timeupdate",e.onProgressing),e.currentAudio.audio.addEventListener("ended",e.onEnded),e.$emit("audioPlay",e.currentAudio.id)}),0))},onProgressing:function(){this.currentAudio.seeking||(this.currentAudio.isLoading=!1,this.currentAudio.duration=this.currentAudio.audio.duration,this.currentAudio.currentTime=this.currentAudio.audio.currentTime)},onEnded:function(){this.resetAudio(this.currentAudio.audio)},resetAudio:function(audio){audio&&(audio.removeEventListener("timeupdate",this.onProgressing),audio.removeEventListener("ended",this.onEnded),this.currentAudio.isPlay=!1,this.currentAudio.duration="",this.currentAudio.currentTime="")},pause:function(){this.currentAudio.audio&&(this.currentAudio.isLoading=!1,this.currentAudio.isPlay=!1,this.currentAudio.audio.pause())},seek:function(time){this.currentAudio.audio&&(this.currentAudio.seeking=!1,this.currentAudio.currentTime=time,this.currentAudio.audio.currentTime=time)},seeking:function(time){this.currentAudio.seeking=!0,this.currentAudio.currentTime=time}}},v=(n(803),n(11)),component=Object(v.a)(f,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"add-padding-line"},[o("div",{staticClass:"post-container"},[t.item.isEssence?o("div",{staticClass:"essence"},[o("img",{attrs:{src:n(757),alt:""}})]):t._e(),t._v(" "),o("div",{staticClass:"post-header"},[5===t.item.type&&t.item.question&&1===t.item.question.is_answer&&t.item.question.beUser?o("avatar",{staticClass:"avatar",attrs:{user:{id:t.item.question.beUser.id,username:t.item.question.beUser.username,avatarUrl:t.item.question.beUser.avatarUrl,isReal:t.item.question.beUser.isReal},size:"40",round:!0,"prevent-jump":t.canDetail}}):t.item.user?o("avatar",{staticClass:"avatar",attrs:{user:{id:t.item.user.id,username:t.item.user.username,avatarUrl:t.item.user.avatarUrl,isReal:t.item.user.isReal},size:"40",round:!0,"prevent-jump":t.canDetail}}):t._e(),t._v(" "),5===t.item.type&&t.item.question&&1===t.item.question.is_answer&&t.item.question.beUser?o("nuxt-link",{staticClass:"user-info",attrs:{to:t.item.user.id>0?"/user/"+t.item.question.beUser.id:""}},[o("span",{staticClass:"user-name"},[t._v(t._s(t.item.question.beUser.username))]),t._v(" "),t.item.user.id>0&&t.item.question.beUser&&t.item.question.beUser.groups&&t.item.question.beUser.groups.length>0&&t.item.question.beUser.groups[0].isDisplay?o("span",{staticClass:"admin"},[t._v("\n          ("+t._s(t.item.question.beUser.groups[0].name)+")\n        ")]):t._e()]):t.item.user?o("nuxt-link",{staticClass:"user-info",attrs:{to:t.item.user.id>0?"/user/"+t.item.user.id:""}},[o("span",{staticClass:"user-name"},[t._v(t._s(t.item.user.username))]),t._v(" "),t.item.user&&t.item.user.groups&&t.item.user.groups.length>0&&t.item.user.groups[0].isDisplay?o("span",{staticClass:"admin"},[t._v("\n          "+t._s(t.item.user.groups[0].isDisplay?"("+t.item.user.groups[0].name+")":"")+"\n        ")]):t._e()]):t._e(),t._v(" "),5===t.item.type&&t.item.question&&1===t.item.question.is_answer?o("div",{staticClass:"answered"},[t._v(t._s(t.$t("topic.answered")))]):t._e()],1),t._v(" "),t.item.firstPost?o("div",{staticClass:"post-content"},[o("div",{staticClass:"first-post",on:{click:function(e){return e.target!==e.currentTarget?null:t.toDetail.apply(null,arguments)}}},[o("div",{staticClass:"first-post-desc",on:{click:t.onClickContent}},[o("div",{staticClass:"first-post-desc__tips"},[0!==t.item.type&&1!==t.item.type||!t.item.isRedPacket?t._e():o("img",{staticClass:"first-post-img",attrs:{src:n(746)}}),t._v(" "),5===t.item.type&&t.item.questionTypeAndMoney&&0===t.item.questionTypeAndMoney.type?o("img",{staticClass:"first-post-img",attrs:{src:n(747)}}):5===t.item.type?o("img",{staticClass:"first-post-img",attrs:{src:n(748)}}):t._e(),t._v(" "),6===t.item.type?o("img",{staticClass:"first-post-img",attrs:{src:n(752)}}):t._e(),t._v(" "),7===t.item.type?o("img",{staticClass:"first-post-img",attrs:{src:n(753)}}):t._e(),t._v(" "),1===t.item.type?o("span",{staticClass:"first-post-tip"},[t._v(t._s(t.$t("home.releasedPost")))]):t._e(),t._v(" "),5===t.item.type&&t.item.questionTypeAndMoney&&0===t.item.questionTypeAndMoney.type?o("span",{staticClass:"first-post-tip"},[t._v("【￥"+t._s(t.item.questionTypeAndMoney.money)+"】")]):t._e(),t._v(" "),parseFloat(t.item.price)>0||parseFloat(t.item.attachmentPrice)>0?o("img",{staticClass:"first-post-coin",attrs:{src:n(765)}}):t._e()]),t._v(" "),1===t.item.type?o("p",{staticClass:"content"},[t._v(t._s(t.item.title))]):o("p",{staticClass:"content",domProps:{innerHTML:t._s(t.$xss(t.formatTopicHTML(t.item.firstPost.summary)))}}),t._v(" "),5===t.item.type?o("span",[t.item.question&&0===t.item.question.is_answer?[t.item.question&&t.item.question.beUser?o("nuxt-link",{staticClass:"questioner",attrs:{to:t.item.question.beUser.id>0?"/user/"+t.item.question.beUser.id:""}},[t._v("@"+t._s(t.item.question.beUser.username))]):t._e()]:t._e(),t._v(" "),t.item.question&&1===t.item.question.is_answer?[t.item.user?o("nuxt-link",{staticClass:"questioner",attrs:{to:t.item.user.id>0?"/user/"+t.item.user.id:""}},[t._v("@"+t._s(t.item.user.username))]):t._e()]:t._e()],2):t._e()]),t._v(" "),t.item.firstPost.images&&t.item.firstPost.images.length>0?o("div",{directives:[{name:"viewer",rawName:"v-viewer",value:{url:"data-source"},expression:"{ url: 'data-source' }"}],staticClass:"images",on:{click:function(e){return e.target!==e.currentTarget?null:t.toDetail.apply(null,arguments)}}},t._l(t.item.firstPost.images.slice(0,3),(function(image,e){return o("el-image",{key:e,class:{image:!0,infoimage:t.infoimage},attrs:{src:image.thumbUrl,"data-source":t.unpaid?"":image.url,alt:image.filename,fit:"cover",lazy:t.lazy},on:{click:function(e){return e.target!==e.currentTarget?null:t.onClickImage.apply(null,arguments)}}},[o("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[o("i",{staticClass:"el-icon-loading"})])])})),1):t._e(),t._v(" "),t.item.firstPost.images&&t.item.firstPost.images.length>3?o("div",{staticClass:"image-count",on:{click:t.toDetail}},[t._v("\n          "+t._s(t.$t("home.total"))+" "+t._s(t.item.firstPost.images.length)+"\n          "+t._s(t.$t("home.seeAllImage"))+"\n        ")]):t._e(),t._v(" "),2===t.item.type&&t.item.threadVideo?o("div",{staticClass:"video-main",on:{click:function(e){return e.stopPropagation(),t.openVideo.apply(null,arguments)}}},[t.item.threadVideo.cover_url?o("el-image",{staticClass:"video-img-cover",attrs:{src:t.item.threadVideo.cover_url,alt:t.item.threadVideo.file_name,fit:"cover",lazy:t.lazy}}):o("div",{staticClass:"no-cover"},[t._v(t._s(t.$t("home.noPoster")))]),t._v(" "),o("svg-icon",{staticClass:"video-play",attrs:{type:"video-play"}})],1):t._e(),t._v(" "),t.item.firstPost.attachments&&t.item.firstPost.attachments.length>0?o("div",{staticClass:"attachment",on:{click:t.toDetail}},[o("svg-icon",{attrs:{type:t.extensionValidate(t.item.firstPost.attachments[0].extension)}}),t._v(" "),o("div",{staticClass:"name text-hidden"},[t._v("\n            "+t._s(t.item.firstPost.attachments[0].fileName)+"\n          ")]),t._v(" "),t.item.firstPost.attachments.length>1?o("div",{staticClass:"total"},[t._v("\n            "+t._s(t.$t("home.etc")+t.item.firstPost.attachments.length+t.$t("home.attachmentTotal"))+"\n          ")]):t._e()],1):t._e()]),t._v(" "),6===t.item.type?o("product-item",{attrs:{item:t.item&&t.item.firstPost&&t.item.firstPost.postGoods}}):t._e(),t._v(" "),4===t.item.type?o("div",{on:{click:function(e){return e.target!==e.currentTarget?null:t.toDetail.apply(null,arguments)}}},[o("audio-player",{attrs:{file:t.item&&t.item.threadAudio,"current-audio":t.currentAudio},on:{play:t.play,pause:t.pause,seek:t.seek,seeking:t.seeking}}),t._v(" "),o("audio",{staticClass:"audio-player",staticStyle:{display:"none"},attrs:{id:"audio-player"+(t.item._jv&&t.item._jv.id),src:t.currentAudio.url}})],1):t._e(),t._v(" "),t.item.location?o("nuxt-link",{staticClass:"location",attrs:{to:"/topic/position?longitude="+t.item.longitude+"&latitude="+t.item.latitude}},[o("span",{staticClass:"flex"},[o("svg-icon",{staticClass:"icon",attrs:{type:"location"}}),t._v("\n          "+t._s(t.item.location)+"\n        ")],1)]):t._e()],1):t._e(),t._v(" "),o("div",{staticClass:"post-footer"},[o("div",{staticClass:"time"},[t.item.createdAt?[t._v("\n          "+t._s(t.item.isDraft?t.$t("topic.saveAt"):t.$t("topic.publishAt"))+"\n          "+t._s(t._f("formatDate")(t.item.createdAt))+"\n        ")]:t._e()],2),t._v(" "),t.canDetail?t._e():o("div",{staticClass:"handle-btn"},[t.showLike?o("div",{staticClass:"btn like",class:{liked:t.isLiked},on:{click:t.handleLike}},[o("svg-icon",{staticClass:"icon",attrs:{type:"like"},on:{click:t.handleLike}}),t._v("\n          "+t._s(t.isLiked?t.$t("topic.liked"):t.$t("topic.like"))+"\n          "+t._s(t.likeCount>0?t.likeCount:"")+"\n        ")],1):t._e(),t._v(" "),t.showComment?o("div",{staticClass:"btn comment",on:{click:t.toDetail}},[o("svg-icon",{staticClass:"icon",attrs:{type:"post-comment"}}),t._v("\n          "+t._s(t.$t("topic.comment"))+"\n          "+t._s(t.item.postCount-1>0?t.item.postCount-1:"")+"\n        ")],1):t._e(),t._v(" "),t.item._jv&&t.item._jv.id&&t.showShare?o("share-popover",{attrs:{"threads-id":t.item._jv.id}},[o("div",{staticClass:"btn share"},[o("svg-icon",{staticClass:"icon",attrs:{type:"link"}}),t._v("\n            "+t._s(t.$t("topic.share"))+"\n          ")],1)]):t._e(),t._v(" "),t._t("bottom-right"),t._v(" "),t._t("btn-edit"),t._v(" "),t._t("btn-delete")],2)]),t._v(" "),t.showVideoPop?o("video-pop",{attrs:{"cover-url":t.item.threadVideo.cover_url,url:t.item.threadVideo.media_url},on:{remove:function(e){t.showVideoPop=!1}}}):t._e()],1)])}),[],!1,null,"20e7c222",null);e.default=component.exports;installComponents(component,{Avatar:n(254).default,SvgIcon:n(62).default,ProductItem:n(732).default,AudioPlayer:n(733).default,SharePopover:n(724).default,VideoPop:n(729).default})},800:function(t,e,n){"use strict";n.r(e);n(253),n(45),n(63),n(255),n(35);var o=n(715),r={name:"Editor",mixins:[n.n(o).a],props:{type:{type:String,default:""},post:{type:Object,default:function(){}},redpacket:{type:Object,default:function(){}},onSave:{type:Boolean,default:!1},payment:{type:Object,default:function(){}},question:{type:Object,default:function(){}},product:{type:Object,default:function(){}},typeInformation:{type:Object,default:function(){}},editResourceShow:{type:Object,default:function(){}},isEdit:{type:Boolean,default:!1},isDraft:{type:Boolean,default:!1},onPublish:{type:Boolean,default:!1},editorStyle:{type:String,default:"post"},selector:{type:String,default:"editor"},limitImgNumber:{type:Number,default:9}},data:function(){return{input:{},vditor:{},selectionStart:0,selectionEnd:0,showEmoji:!1,showCaller:!1,showTopic:!1,showUploadImg:!1,showUploadVideo:!1,showUploadAttached:!1,onUploadImage:!1,onUploadVideo:!1,onUploadAttached:!1,listenerList:["emoji-list","topic-list"],actions:[{icon:"emoji",toggle:"showEmoji",show:!1},{icon:"call",toggle:"showCaller",show:!1},{icon:"topic",toggle:"showTopic",show:!1}],resources:[{icon:"picture",toggle:"showUploadImg",show:!1},{icon:"video",toggle:"showUploadVideo",show:!1}]}},computed:{userId:function(){return this.$store.state.session.userId},url:function(){return"/api"},header:function(){var t=window.localStorage.getItem("access_token");return{authorization:"Bearer ".concat(t)}},textarea:function(){return document.querySelector(".".concat(this.selector," #textarea"))},forums:function(){return this.$store.state.site.info.attributes||{}},canCreateThreadPaid:function(){return!(!this.forums||!this.forums.other)&&this.forums.other.can_create_thread_paid},canUploadAttachments:function(){return!(!this.forums||!this.forums.other)&&this.forums.other.can_upload_attachments},canCreateThreadRedPacket:function(){return!(!this.forums||!this.forums.other)&&this.forums.other.can_create_thread_red_packet},canCreateThreadLongRedPacket:function(){return!(!this.forums||!this.forums.other)&&this.forums.other.can_create_thread_long_red_packet},showRedPackage:function(){return"0"===this.type&&this.canCreateThreadRedPacket||"1"===this.type&&this.canCreateThreadLongRedPacket},canPublishAnonymous:function(){var t=!1;if(this.forums&&this.forums.other)switch(this.type){case"0":t=this.forums.other.can_create_thread_anonymous;break;case"1":t=this.forums.other.can_create_thread_long_anonymous;break;case"2":t=this.forums.other.can_create_thread_video_anonymous;break;case"3":t=this.forums.other.can_create_thread_image_anonymous;break;case"4":t=this.forums.other.can_create_thread_audio_anonymous;break;case"5":t=this.forums.other.can_create_thread_question_anonymous;break;case"6":t=this.forums.other.can_create_thread_goods_anonymous}return t},attachedSizeLimit:function(){return this.forums.set_attach?1024*this.forums.set_attach.support_max_size*1024:10485760},imageTypeLimit:function(){return this.forums.set_attach?this.forums.set_attach.support_img_ext.split(",").map((function(t){return".".concat(t)})).join(","):""},attachedTypeLimit:function(){return this.forums.set_attach?this.forums.set_attach.support_file_ext.split(",").map((function(t){return".".concat(t)})).join(","):""},isPost:function(){return this.typeInformation&&1===this.typeInformation.type||!1},textLength:function(){if(this.post&&this.post.text){var t=this.post.text;return t.endsWith("\n")?t.length-1:t.length}return 0},attachmentsType:function(){return"chat"===this.editorStyle?4:this.typeInformation.type&&15===this.typeInformation.type?5:1}},watch:{editResourceShow:{handler:function(t){if(t)for(var e in t)this[e]=t[e]},deep:!0,immediate:!0},typeInformation:{handler:function(t){t&&(this.actions[0].show=t.showEmoji,this.actions[1].show=t.showCaller,this.actions[2].show=t.showTopic,this.resources[0].show=t.showImage,this.resources[1].show=t.showVideo)},deep:!0,immediate:!0},post:{handler:function(t){"chat"!==this.editorStyle||this.onUploadImage||0!==t.imageList.length||(this.showUploadImg=!1)},deep:!0,immediate:!0}},mounted:function(){this.textarea&&this.autoHeight(),this.emojiListener()},methods:{onRedPacketChange:function(t,e){var n=Object.assign({},this.redpacket);n[t]=+e,this.$emit("update:redpacket",n)},onPostContentChange:function(t,e){var n=Object.assign({},this.post);n[t]=e,this.$emit("update:post",n)},onPaymentChange:function(t,e){var n=Object.assign({},this.payment);n[t]=e,this.$emit("update:payment",n)},onQuestionChange:function(t,e){var n=Object.assign({},this.question);n[t]=e,this.$emit("update:question",n)},onProductChange:function(t){var e=Object.assign({},t);this.$emit("update:product",e)},autoHeight:function(){"chat"!==this.editorStyle&&(this.post.text.length>310&&(this.textarea.style.height="180px"),this.textarea.onkeyup=function(){var t=document.scrollingElement.scrollTop;this.style.height="auto",this.style.height="".concat(this.scrollHeight,"px"),document.scrollingElement.scrollTop=t})},getSelection:function(){this.selectionStart=this.textarea.selectionStart,this.selectionEnd=this.textarea.selectionEnd},emojiListener:function(){var t=this;document.addEventListener("click",(function(e){var n=!0;(e.path||e.composedPath&&e.composedPath()).forEach((function(t){t.classList&&(t.classList.contains("emoji-list")||t.classList.contains("topic-list")||t.classList.contains("editor-bar"))&&(n=!1)})),n&&(t.showTopic=!1,t.showEmoji=!1)}))},onActions:function(t){var e=this;this.hideActions(),setTimeout((function(){e[t]=!e[t]}))},addResource:function(t){if("chat"===this.editorStyle){if(this.onUploadImage||this.onUploadVideo)return this.$message.warning("请等待资源上传");this[t]=!this[t]}else this[t]=!0},selectActions:function(code){this.getSelection();var t=this.post.text.slice(0,this.selectionStart)+code+this.post.text.slice(this.selectionStart,this.post.text.length);this.onPostContentChange("text",t),this.hideActions()},hideActions:function(){this.showEmoji=!1,this.showTopic=!1,this.showCaller=!1},savePublish:function(){return this.onUploadAttached?this.$message.warning(this.$t("post.pleaseWaitForTheAttachedUploadToComplete")):this.onUploadImage?this.$message.warning(this.$t("post.pleaseWaitForTheImageUploadToComplete")):this.onUploadVideo?this.$message.warning(this.$t("post.pleaseWaitForTheVideoUploadToComplete")):void this.$emit("savePublish")},publish:function(){return this.onUploadAttached?this.$message.warning(this.$t("post.pleaseWaitForTheAttachedUploadToComplete")):this.onUploadImage?this.$message.warning(this.$t("post.pleaseWaitForTheImageUploadToComplete")):this.onUploadVideo?this.$message.warning(this.$t("post.pleaseWaitForTheVideoUploadToComplete")):(this.$emit("update:onPublish",!0),void this.$emit("publish"))}}},c=(n(812),n(11)),component=Object(c.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"editor"},[t.userId&&0===t.userId?n("div",{staticClass:"not-logged"},[n("span",[t._v(t._s(t.$t("post.publishAfterLogin")))])]):t._e(),t._v(" "),t.typeInformation&&t.typeInformation.showTitle?n("label",[n("input",{staticClass:"input-title",attrs:{placeholder:t.$t("post.pleaseInputPostTitle"),type:"text"},domProps:{value:t.post&&t.post.title},on:{input:function(e){return t.onPostContentChange("title",e.target.value)}}})]):t._e(),t._v(" "),t.typeInformation&&t.typeInformation.showPayment&&t.canCreateThreadPaid?n("editor-payment",{attrs:{payment:t.payment||{},type:t.typeInformation&&t.typeInformation.type,"can-upload-attachments":t.canUploadAttachments},on:{paymentChange:function(e){return t.onPaymentChange(e.key,e.value)}}}):t._e(),t._v(" "),t.typeInformation&&t.canPublishAnonymous&&5!==t.typeInformation.type?n("div",{staticClass:"post-anonymous"},[n("div",{staticClass:"title"},[t._v(t._s(t.$t("post.anonymous"))+"：")]),t._v(" "),n("el-switch",{attrs:{value:t.post.isAnonymous,"active-color":"#1878F3"},on:{input:function(e){return t.onPostContentChange("isAnonymous",e)}}})],1):t._e(),t._v(" "),t.showRedPackage?n("word-red-packet",{attrs:{redpacket:t.redpacket,"is-edit":t.isEdit},on:{changeRedType:function(e){return t.onRedPacketChange("is_red_packet",e)},changeRedRule:function(e){return t.onRedPacketChange("rule",e)},changeRedMoney:function(e){return t.onRedPacketChange("money",e)},changeRedNumber:function(e){return t.onRedPacketChange("number",e)},changeRedCondition:function(e){return t.onRedPacketChange("condition",e)},changeRedlikenum:function(e){return t.onRedPacketChange("likenum",e)}}}):t._e(),t._v(" "),t.typeInformation&&5===t.typeInformation.type?n("editor-qa",{attrs:{post:t.post,question:t.question,"can-publish-anonymous":t.canPublishAnonymous},on:{isAnonymousChange:function(e){return t.onPostContentChange("isAnonymous",e)},questionTypeChange:function(e){return t.onQuestionChange("questionType",e)},paymentTypeChange:function(e){return t.onQuestionChange("paymentType",e)},isOnlookerChange:function(e){return t.onQuestionChange("isOnlooker",e)},beUserChange:function(e){return t.onQuestionChange("beUser",e)},rewardPriceChange:function(e){return t.onQuestionChange("price",e)},rewardTimeChange:function(e){return t.onQuestionChange("expired_at",e)}}}):t._e(),t._v(" "),t.typeInformation&&6===t.typeInformation.type?n("editor-product",{attrs:{product:t.product},on:{productChange:t.onProductChange}}):t._e(),t._v(" "),t.isPost&&t.canUploadAttachments?n("attachment-upload",{attrs:{"file-list":t.post&&t.post.attachedList,"on-upload":t.onUploadAttached,action:"/attachments",accept:t.attachedTypeLimit,limit:99999,type:0,"size-limit":t.attachedSizeLimit},on:{"update:onUpload":function(e){t.onUploadAttached=e},"update:on-upload":function(e){t.onUploadAttached=e},success:function(e){return t.onPostContentChange("attachedList",e)},remove:function(e){return t.onPostContentChange("attachedList",e)}}}):t._e(),t._v(" "),t.isPost?n("Vditor",{attrs:{"text-limit":t.typeInformation&&t.typeInformation.textLimit,"text-length":t.textLength,placeholder:t.typeInformation&&t.typeInformation.placeholder,"image-accept":t.imageTypeLimit,text:t.post&&t.post.text,"show-caller":t.showCaller,"show-topic":t.showTopic,"show-emoji":t.showEmoji,"is-edit":t.isEdit,"is-draft":t.isDraft,"on-publish":t.onPublish,"attachment-size-limit":t.attachedSizeLimit,"on-upload-image":t.onUploadImage},on:{"update:onUploadImage":function(e){t.onUploadImage=e},"update:on-upload-image":function(e){t.onUploadImage=e},textChange:function(e){return t.onPostContentChange("text",e)},close:function(e){t.showCaller=!1},hideActions:t.hideActions,onActions:t.onActions,publish:t.publish,savePublish:t.savePublish}}):t._e(),t._v(" "),t.isPost?t._e():n("div",{class:["container-textarea",t.editorStyle]},["post"===t.editorStyle?n("editor-tool-bar",{attrs:{"text-limit":t.typeInformation&&t.typeInformation.textLimit,"text-length":t.post&&t.post.text&&t.post.text.length,actions:t.actions,"show-emoji":t.showEmoji,"show-topic":t.showTopic,"show-caller":t.showCaller,resources:t.resources,"on-publish":t.onPublish,"editor-style":t.editorStyle,"is-edit":t.isEdit,"on-save":t.onSave},on:{publish:t.publish,savePublish:t.savePublish,selectActions:t.selectActions,addResource:t.addResource,hidePop:t.hideActions,onActions:t.onActions}}):t._e(),t._v(" "),n("label",[n("textarea",{class:["input-text",t.editorStyle],attrs:{id:"textarea",placeholder:t.typeInformation?t.typeInformation.placeholder:"",maxlength:t.post&&t.post.textLimit},domProps:{value:t.post&&t.post.text},on:{input:function(e){return t.onPostContentChange("text",e.target.value)}}})]),t._v(" "),n("div",[t.showUploadImg||t.showUploadVideo?n("div",{staticClass:"resources-list"},[t.showUploadImg?n("image-upload",{attrs:{type:t.attachmentsType,"file-list":t.post&&t.post.imageList,"on-upload":t.onUploadImage,action:"/attachments",accept:t.imageTypeLimit,limit:t.limitImgNumber,"size-limit":t.attachedSizeLimit},on:{"update:onUpload":function(e){t.onUploadImage=e},"update:on-upload":function(e){t.onUploadImage=e},success:function(e){return t.onPostContentChange("imageList",e)},remove:function(e){return t.onPostContentChange("imageList",e)}}}):t._e(),t._v(" "),t.showUploadVideo?n("video-upload",{attrs:{"on-upload-video":t.onUploadVideo,"video-list":t.post&&t.post.videoList},on:{"update:onUploadVideo":function(e){t.onUploadVideo=e},"update:on-upload-video":function(e){t.onUploadVideo=e},videoChange:function(e){return t.onPostContentChange(e.key,e.value)}}}):t._e()],1):t._e(),t._v(" "),"post"!==t.editorStyle?n("editor-tool-bar",{attrs:{"text-limit":t.typeInformation&&t.typeInformation.textLimit||450,"text-length":t.post&&t.post.text&&t.post.text.length||0,actions:t.actions,"show-emoji":t.showEmoji,"show-topic":t.showTopic,"show-caller":t.showCaller,resources:t.resources,"on-publish":t.onPublish,"editor-style":t.editorStyle,"is-edit":t.isEdit,"on-save":t.onSave},on:{publish:t.publish,savePublish:t.savePublish,selectActions:t.selectActions,addResource:t.addResource,hidePop:t.hideActions,onActions:t.onActions}}):t._e()],1)],1),t._v(" "),t.showCaller&&!t.isPost?n("caller",{on:{close:function(e){t.showCaller=!1},selectedCaller:t.selectActions}}):t._e(),t._v(" "),"post"!==t.editorStyle||t.isPost?t._e():n("div",{staticClass:"publish-container"},[t.typeInformation&&t.post?n("span",{staticClass:"tip"},[t._v("\n      "+t._s(t.typeInformation.textLimit>=t.post.text.length?t.$t("post.note",{num:t.typeInformation.textLimit-t.post.text.length}):t.$t("post.exceed",{num:t.post.text.length-t.typeInformation.textLimit}))+"\n    ")]):t._e(),t._v(" "),n("el-button",{staticClass:"btn",attrs:{loading:t.onPublish,type:"primary",size:"small"},on:{click:t.publish}},[t._v(t._s(t.$t("post.post")))]),t._v(" "),n("el-button",{staticClass:"btn",attrs:{disabled:t.isEdit,loading:t.onSave,type:"primary",size:"small"},on:{click:t.savePublish}},[t._v("保存至草稿箱")])],1)],1)}),[],!1,null,"d898809e",null);e.default=component.exports;installComponents(component,{EditorPayment:n(858).default,WordRedPacket:n(859).default,EditorQa:n(860).default,EditorProduct:n(861).default,AttachmentUpload:n(869).default,Vditor:n(856).default,EditorToolBar:n(862).default,ImageUpload:n(870).default,VideoUpload:n(863).default,Caller:n(790).default})},803:function(t,e,n){"use strict";n(754)},806:function(t,e,n){"use strict";n.r(e);var o={name:"UserItem",props:{item:{type:Object,default:function(){}},show:{type:String,default:"all"},isFollow:{type:Boolean,default:!1}},data:function(){return{}},methods:{toUser:function(){this.$router.push("/user/".concat(this.item.id))}}},r=(n(854),n(11)),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"user-item-container",class:{simple:"simple"===t.show}},[n("div",{staticClass:"flex user-item",on:{click:function(e){return e.stopPropagation(),t.toUser.apply(null,arguments)}}},[n("avatar",{attrs:{user:t.item,size:"simple"===t.show?40:45,round:!0}}),t._v(" "),n("div",{staticClass:"info"},[n("div",{staticClass:"flex"},[n("span",{staticClass:"name text-hidden"},[t._v(t._s(t.item.username))]),t._v(" "),"all"===t.show&&t.item.groupName?n("span",{staticClass:"role"},[t._v(t._s(t.item.groupName))]):t._e()]),t._v(" "),n("div",{staticClass:"flex count"},["all"===t.show?n("div",{staticClass:"count-item"},[t._v(t._s(t.$t("profile.topic"))+" "+t._s(t.item.threadCount||0))]):t._e(),t._v(" "),"all"===t.show?n("div",{staticClass:"count-item"},[t._v(t._s(t.$t("profile.following"))+" "+t._s(t.item.followCount||0))]):t._e(),t._v(" "),n("div",{staticClass:"count-item"},[t._v(t._s(t.$t("profile.followers"))+" "+t._s(t.item.fansCount||0))])])])],1),t._v(" "),t.isFollow?n("el-button",{staticClass:"follow",attrs:{type:"text"}},[t._v("\n    "+t._s(t.$t("profile.following"))+"\n  ")]):t._e()],1)}),[],!1,null,"ee325c6e",null);e.default=component.exports;installComponents(component,{Avatar:n(254).default})},811:function(t,e,n){},812:function(t,e,n){"use strict";n(766)},813:function(t,e,n){"use strict";n(767)},814:function(t,e,n){"use strict";n(768)},815:function(t,e,n){"use strict";n(769)},816:function(t,e,n){"use strict";n(770)},817:function(t,e,n){"use strict";n(771)},818:function(t,e,n){"use strict";n(772)},819:function(t,e,n){"use strict";n(773)},820:function(t,e,n){t.exports={methods:{handleAttachmentError:function(t){if(t&&t.message){var e=t.message.errors,n=e[0].detail?e[0].detail[0]:e[0].code,o=e[0].detail?e[0].detail[0]:this.$t("core.".concat(n));this.$message.error(o)}else this.$message.error(this.$t("post.imageUploadFail"))}}}},821:function(t,e,n){var o=n(798);n(45),n(25),n(13),n(108),n(36),n(32),t.exports={watch:{fileList:{handler:function(){var t;this.fileList.length>this.previewFiles.length&&0===this.previewFiles.length&&((t=this.previewFiles).push.apply(t,o(this.fileList)),this.previewFiles.map((function(t){t.progress=100})))},deep:!0,immediate:!0}},methods:{uploaderFile:function(t){t.dispatchEvent(new MouseEvent("click"))},onInput:function(t){var e=this,n=t.target.files,o=[];if(this.onUpload)return this.$message.warning(0===this.type?"请等待上传中的文件完成上传":"请等待上传中的图片完成上传");if(this.checkSizeLimit(n)&&this.checkLengthLimit(n)){for(var i=0;i<n.length;i++){var r=this.getObjectURL(n[i]);this.previewFiles.push({name:n[i].name,url:r,progress:0,deleted:!1,size:n[i].size}),o.push(n[i])}var c=o.reduce((function(t,n,o,r){return t.push(e.uploadFile(n,o,r.length)),t}),[]);this.uploadFiles(c)}},uploadFile:function(t,e,n){var o=this,r={onUploadProgress:function(t){t.lengthComputable?o.previewFiles[o.previewFiles.length-n+e].progress=.9*parseInt(Math.round(t.loaded/t.total*100).toString()):o.previewFiles[o.previewFiles.length-n+e].progress=100}},c=new FormData;return c.append("type",this.type),c.append("file",t),this.service.post(this.action,c,r)},uploadFiles:function(t){var e=this;this.$emit("update:onUpload",!0),Promise.all(t).then((function(t){e.previewFiles.map((function(t){t.progress=100}));var n=t.map((function(t){return t.data.data})),r=o(e.fileList);n.forEach((function(t){return r.push({id:t.id,name:t.attributes.fileName,url:t.attributes.url})})),e.currentInput.value="",e.$emit("success",r),e.$emit("update:onUpload",!1)}),(function(n){e.currentInput.value="";var o=t.length;e.$emit("update:onUpload",!1),e.previewFiles.splice(e.previewFiles.length-o,o),401===n.response.status?e.$message.error("暂无权限，请联系管理员"):e.$message.error("您的腾讯云对象存储服务当前不可用，请检查相关配置")}))},removeItem:function(t){var e=this;this.$confirm(this.$t("topic.confirmDelete"),this.$t("discuzq.msgBox.title"),{confirmButtonText:this.$t("discuzq.msgBox.confirm"),cancelButtonText:this.$t("discuzq.msgBox.cancel"),type:"warning"}).then((function(){e.previewFiles[t].deleted=!0;var n=o(e.fileList);n.splice(t,1),e.$emit("remove",n,t),setTimeout((function(){e.previewFiles.splice(t,1),e.$message.success("删除成功")}),900)}),(function(){}))},checkSizeLimit:function(t){for(var e=!0,i=0;i<t.length;i++)t[i].size>this.sizeLimit&&(e=!1);return e||this.$message.error(0===this.type?"文件大小不可超过 ".concat(this.sizeLimit/1024/1024," MB"):"图片大小不可超过 ".concat(this.sizeLimit/1024/1024," MB")),e},checkLengthLimit:function(t){return!(this.previewFiles.length+t.length>this.limit)||(this.$message.warning(0===this.type?"文件最多上传".concat(this.limit,"张"):"图片最多上传".concat(this.limit,"张")),this.$emit("exceed",t),!1)},getObjectURL:function(t){var e=null;return window.createObjectURL?e=window.createObjectURL(t):window.URL?e=window.URL.createObjectURL(t):window.webkitURL&&(e=window.webkitURL.createObjectURL(t)),e}}}},822:function(t,e,n){},824:function(t,e,n){"use strict";n(774)},825:function(t,e,n){"use strict";n(775)},826:function(t,e,n){"use strict";n(776)},827:function(t,e,n){"use strict";n(777)},828:function(t,e,n){"use strict";n(778)},829:function(t,e,n){"use strict";n(779)},830:function(t,e,n){},852:function(t,e,n){"use strict";n(784)},854:function(t,e,n){"use strict";n(787)},855:function(t,e,n){"use strict";n(788)},856:function(t,e,n){"use strict";n.r(e);n(253),n(13),n(36),n(32),n(45);var o=n(33),r=n(715),c=n.n(r),l=n(823),d={name:"Vditor",mixins:[c.a],props:{showCaller:{type:Boolean,default:!1},showTopic:{type:Boolean,default:!1},showEmoji:{type:Boolean,default:!1},text:{type:String,default:""},textLimit:{type:[Number,String],default:49999},textLength:{type:[Number,String],default:0},isEdit:{type:Boolean,default:!1},isDraft:{type:Boolean,default:!1},attachmentSizeLimit:{type:Number,default:1e21},imageAccept:{type:String,default:""},onUploadImage:{type:Boolean,default:!1},placeholder:{type:String,default:""},onPublish:{type:Boolean,default:!1}},data:function(){return{vditor:{},input:{},range:[],afterVditorInit:!1}},watch:{isDraft:{handler:function(t){t&&this.text&&this.setDefaultValue()},immediate:!0},isEdit:{handler:function(t){t&&this.text&&this.setDefaultValue()},immediate:!0}},mounted:function(){l&&this.initVditor()},methods:{initVditor:function(){var t=this;this.vditor=new l("vditor",{minHeight:450,placeholder:this.placeholder,mode:"wysiwyg",tab:"    ",input:function(e){t.$emit("textChange",e)},toolbar:[{hotkey:"",name:"@",tipPosition:"ne",tip:"@ 好友",className:"right",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="19.816" height="19.816" viewBox="0 0 19.816 19.816">\n   <path id="路径_965" data-name="路径 965" d="M67.565,65.963c0,6.137,4.261,9.862,10.128,9.862a14.524,14.524,0,0,0,4.032-.512c.66-.2.87-.54.87-.884a.611.611,0,0,0-.64-.606,1.994,1.994,0,0,0-.449.065A13.894,13.894,0,0,1,78,74.353c-5.236,0-8.79-3.073-8.79-8.334,0-5.038,3.363-8.549,8.427-8.549,4.481,0,8.227,2.691,8.227,7.525,0,2.821-.984,4.721-2.551,4.721a1.489,1.489,0,0,1-1.653-1.611V61.792a.727.727,0,0,0-.764-.811.741.741,0,0,0-.784.811v1.061h-.086a3.258,3.258,0,0,0-3.1-1.871c-2.474,0-4.214,2.058-4.214,5.009,0,2.98,1.729,5.057,4.252,5.057a3.3,3.3,0,0,0,3.172-2.1h.086a2.6,2.6,0,0,0,2.838,2.114c2.666,0,4.319-2.551,4.319-6.127,0-5.411-4.09-8.921-9.727-8.921-5.933,0-10.089,3.957-10.089,9.955Zm9.66,3.613c-1.72,0-2.8-1.387-2.8-3.595,0-2.169,1.089-3.557,2.809-3.557,1.748,0,2.857,1.36,2.857,3.52,0,2.207-1.128,3.632-2.866,3.632Z" transform="translate(-67.565 -56.008)" fill="#777"/>\n</svg>',click:function(){t.range=getSelection().getRangeAt(0),t.$emit("onActions","showCaller")}},{hotkey:"",name:"#",tipPosition:"ne",tip:"新增话题",className:"right",icon:'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1598001954510" class="icon" viewBox="0 0 1040 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5506" xmlns:xlink="http://www.w3.org/1999/xlink" width="203.125" height="200"><defs><style type="text/css"></style></defs><path d="M947.393251 679.125345 674.853042 679.125345l143.716192-556.918026c3.51915-13.677511-4.727675-27.656897-18.411325-31.184233-13.644765-3.545756-27.646664 4.678556-31.214932 18.386766L721.04713 295.052946 364.271424 295.052946l44.60694-172.84051c3.527336-13.675464-4.727675-27.646664-18.402115-31.174-13.661138-3.553942-27.65485 4.678556-31.208792 18.378579l-47.900963 185.645141L76.8022 295.062156c-14.114462 0-25.594935 11.480472-25.594935 25.603121 0 14.155395 11.488659 25.596981 25.594935 25.596981L298.143331 346.262258l-85.904509 332.872297L25.611308 679.134555c-14.130835 0-25.611308 11.480472-25.611308 25.603121 0 14.155395 11.488659 25.596981 25.611308 25.596981l173.439144 0-44.60694 172.830277c-3.527336 13.691837 4.694929 27.65485 18.394952 31.214932 2.156106 0.551562 4.304026 0.791016 6.402827 0.791016 11.408841 0 21.828145-7.656377 24.805966-19.199271l147.026588-569.732889 356.768543 0L621.937878 679.117159 384.087749 679.117159c-14.155395 0-25.596981 11.480472-25.596981 25.594935 0 14.163581 11.441587 25.605168 25.596981 25.605168l224.645386 0-44.604894 172.830277c-3.521197 13.691837 4.733814 27.65485 18.409279 31.216979 2.156106 0.541329 4.312212 0.788969 6.427386 0.788969 11.376095 0 21.779026-7.656377 24.781406-19.199271l47.900963-185.645141 285.769512 0c14.155395 0 25.594935-11.449773 25.594935-25.596981 0-14.130835-11.455913-25.611308-25.611308-25.611308L947.393251 679.125345zM998.617913 295.052946 896.193149 295.052946c-14.155395 0-25.594935 11.480472-25.594935 25.594935 0 14.155395 11.43954 25.596981 25.594935 25.596981l102.424764 0c14.153348 0 25.594935-11.441587 25.594935-25.596981C1024.212848 306.517045 1012.771261 295.052946 998.617913 295.052946L998.617913 295.052946zM998.617913 295.052946" p-id="5507" fill="#333" ></path></svg>',click:function(){t.range=getSelection().getRangeAt(0),t.$emit("onActions","showTopic")}},{hotkey:"",name:"my-emoji",tipPosition:"ne",tip:"插入表情",className:"right",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="19.819" height="19.816" viewBox="0 0 19.819 19.816">\n  <path id="路径_964" data-name="路径 964" d="M9.909,19.816A9.908,9.908,0,0,1,2.9,2.9,9.91,9.91,0,0,1,16.92,16.914a9.855,9.855,0,0,1-7.011,2.9Zm0-18.525A8.618,8.618,0,0,0,3.815,16,8.62,8.62,0,0,0,16.007,3.814a8.566,8.566,0,0,0-6.1-2.523ZM6.389,12.612a4.334,4.334,0,0,0,3.52,1.856,5.563,5.563,0,0,0,3.906-1.856.873.873,0,0,1,.876.928,5.954,5.954,0,0,1-4.782,2.165A4.649,4.649,0,0,1,5.586,13.54s-.032-.928.8-.928Zm.64-5.89A1.213,1.213,0,1,0,8.243,7.936,1.215,1.215,0,0,0,7.029,6.722Zm6.219,0a1.213,1.213,0,1,0,1.214,1.214,1.214,1.214,0,0,0-1.214-1.214Z" transform="translate(0)" fill="#777"/>\n</svg>',click:function(){t.range=getSelection().getRangeAt(0),t.$emit("onActions","showEmoji")}},"headings","bold","italic","strike","link","list","ordered-list","check","outdent","indent","quote",{hotkey:"",name:"picture",tipPosition:"ne",tip:"插入图片",className:"right",icon:'<svg xmlns="http://www.w3.org/2000/svg" width="19.816" height="19.816" viewBox="0 0 19.816 19.816">\n  <path id="路径_1180" data-name="路径 1180" d="M120.154,104.877a2.477,2.477,0,1,0,2.477,2.477,2.484,2.484,0,0,0-2.477-2.477Zm0,3.716a1.239,1.239,0,1,1,1.239-1.239A1.242,1.242,0,0,1,120.154,108.593Zm12.385-6.193H117.677a2.484,2.484,0,0,0-2.477,2.477v14.862a2.484,2.484,0,0,0,2.477,2.477h14.862a2.484,2.484,0,0,0,2.477-2.477V104.877A2.484,2.484,0,0,0,132.539,102.4Zm-14.862,18.578a1.242,1.242,0,0,1-1.238-1.238v-.557l4.892-4.4,6.254,6.193Zm16.1-1.238a1.242,1.242,0,0,1-1.239,1.238h-3.22l-4.521-4.644,5.264-5.264,3.716,3.716Zm0-6.75-3.716-3.777-6.131,6.254-2.539-2.539-4.954,4.521V104.877a1.242,1.242,0,0,1,1.238-1.238h14.862a1.242,1.242,0,0,1,1.239,1.238Z" transform="translate(-115.2 -102.4)" fill="#777"/>\n</svg>\n',click:function(){t.uploader()}},"line","code","inline-code","table","both","br","undo","redo"],toolbarConfig:{pin:!0},cache:{enable:!1},after:function(){t.afterVditorInit=!0}})},uploader:function(){var t=this;if(this.onUploadImage)return this.$message.warning("请等待上传中的图片完成上传");this.input=document.createElement("input"),this.input.type="file",this.input.multiple=!0,this.input.accept=this.imageAccept,this.input.dispatchEvent(new MouseEvent("click")),this.input.oninput=function(e){var n=e.target.files,o=[];if(t.checkSizeLimit(n)){for(var i=0;i<n.length;i++)o.push(n[i]);var r=o.reduce((function(e,n){return e.push(t.uploadFile(n)),e}),[]);t.uploadFiles(r)}}},uploadFile:function(t){var e=new FormData;return e.append("type",1),e.append("file",t),o.a.post("/attachments",e)},uploadFiles:function(t){var e=this;this.$emit("update:onUploadImage",!0),Promise.all(t).then((function(t){t.map((function(t){return t.data.data})).forEach((function(t){var n=encodeURIComponent(t.attributes.fileName),html='<img src="'.concat(t.attributes.url,'" alt="').concat(n,'" title="').concat(t.id,'">'),o=e.vditor.html2md(html);e.vditor.insertValue(o.substr(0,o.length-1))})),e.input.value=""}),(function(t){e.input.value="",e.handleError(t).then((function(){}))})).finally((function(){e.$emit("update:onUploadImage",!1)}))},selectActions:function(code){var t=window.getSelection();t.removeAllRanges(),t.addRange(this.range),this.vditor.insertValue(code),this.$emit("hideActions")},checkSizeLimit:function(t){for(var e=!0,i=0;i<t.length;i++)t[i].size>this.attachmentSizeLimit&&(e=!1);return e||this.$message.error("图片大小不可超过 ".concat(this.attachmentSizeLimit/1024/1024," MB")),e},publish:function(){var t=this.vditor.getValue();this.$emit("textChange",t),this.$emit("publish")},savePublish:function(){this.$emit("savePublish")},setDefaultValue:function(){this.afterVditorInit?this.vditor.setValue(this.text,!1):setTimeout(this.setDefaultValue,100)}}},h=(n(824),n(11)),component=Object(h.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.onUploadImage,expression:"onUploadImage"}],staticClass:"vditor-container",attrs:{"element-loading-background":"hsla(0,0%,100%,0.6)"}},[n("div",{staticClass:"sticky-box"},[n("topic-list",{directives:[{name:"show",rawName:"v-show",value:t.showTopic,expression:"showTopic"}],staticClass:"action-vditor",on:{selectedTopic:t.selectActions}}),t._v(" "),n("emoji-list",{directives:[{name:"show",rawName:"v-show",value:t.showEmoji,expression:"showEmoji"}],staticClass:"action-vditor",on:{selectEmoji:t.selectActions}})],1),t._v(" "),n("div",{attrs:{id:"vditor"}}),t._v(" "),t.textLimit?n("span",{staticClass:"tip"},[t._v(t._s(t.textLimit>=t.textLength?t.$t("post.note",{num:t.textLimit-t.textLength}):t.$t("post.exceed",{num:t.textLength-t.textLimit})))]):t._e(),t._v(" "),t.showCaller?n("caller",{on:{close:function(e){return t.$emit("close")},selectedCaller:t.selectActions}}):t._e(),t._v(" "),n("div",{staticClass:"publish-container"},[n("el-button",{staticClass:"btn",attrs:{loading:t.onPublish,type:"primary",size:"small"},on:{click:t.publish}},[t._v(t._s(t.$t("post.post")))]),t._v(" "),n("el-button",{staticClass:"btn",attrs:{disabled:t.isEdit,type:"primary",size:"small"},on:{click:t.savePublish}},[t._v("保存至草稿箱")])],1)],1)}),[],!1,null,"4ca60250",null);e.default=component.exports;installComponents(component,{TopicList:n(791).default,EmojiList:n(792).default,Caller:n(790).default})},857:function(t,e,n){"use strict";n.r(e);n(13),n(25);var o=n(715),r={name:"RecommendUser",mixins:[n.n(o).a],props:{list:{type:Array,default:function(){return[]}}},data:function(){return{userList:[],loading:!1,pageNum:1,pageSize:4}},computed:{forums:function(){return this.$store.state.site.info.attributes||{}}},watch:{list:{handler:function(t){this.userList=t},deep:!0}},mounted:function(){0===this.list.length?this.getList():this.userList=this.list},methods:{getList:function(){var t=this;this.userList=[],this.loading=!0;var e={include:"groups",limit:this.pageSize};this.$store.dispatch("jv/get",["users/recommended",{params:e}]).then((function(e){var data=e;e&&Array.isArray(e)&&data.forEach((function(t,i){data[i].groupName=t.groups[0]?t.groups[0].name:""})),t.userList=data}),(function(e){t.handleError(e)})).finally((function(){t.loading=!1}))},refresh:function(){this.getList()}}},c=(n(855),n(11)),component=Object(c.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"recommend-user-container"},[n("div",{staticClass:"recommend-user-title"},[t._v(t._s(t.$t("home.recommentUser")))]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}],staticClass:"recommend-user-list"},[t._l(t.userList,(function(t,e){return n("user-item",{key:e,attrs:{item:t,show:"simple"}})})),t._v(" "),0===t.userList.length?n("div",{staticClass:"no-more"},[t._v(t._s(t.$t("discuzq.list.noData")))]):t._e()],2),t._v(" "),n("div",{staticClass:"refresh",on:{click:t.refresh}},[n("svg-icon",{staticClass:"icon",attrs:{type:"refresh"}}),t._v("\n    "+t._s(t.$t("home.refresh"))+"\n  ")],1)])}),[],!1,null,"00b4b6a3",null);e.default=component.exports;installComponents(component,{UserItem:n(806).default,SvgIcon:n(62).default})},858:function(t,e,n){"use strict";n.r(e);n(253);var o=n(793),r={name:"EditorPayment",props:{payment:{type:Object,default:function(){}},type:{type:Number,default:0},canUploadAttachments:{type:Boolean,default:!1}},data:function(){return{freeWords:0,price:0,attachmentPrice:0,options:[{value:"free",label:this.$t("post.freeWatch")},{value:"paid",label:this.$t("post.paidWatch")}],freeWordsOptions:[{value:0,label:"0%"},{value:.1,label:"10%"},{value:.3,label:"30%"},{value:.5,label:"50%"},{value:.7,label:"70%"},{value:1,label:"100%"}]}},watch:{payment:{handler:function(t){this.freeWords=t.freeWords||0,this.price=t.price||0,this.attachmentPrice=t.attachmentPrice||0},immediate:!0,deep:!0},type:{handler:function(t){1===t&&this.canUploadAttachments&&this.options.push({value:"attachmentPaid",label:this.$t("post.postFreeAttachmentPaid")})},immediate:!0}},methods:{onPriceInput:function(t){this.price=Object(o.a)(t)},onAttachmentPriceInput:function(t){this.attachmentPrice=Object(o.a)(t)}}},c=(n(813),n(11)),component=Object(c.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"global"},[n("div",{staticClass:"block"},[n("div",{staticClass:"text"},[t._v(t._s(t.$t("post.isPay"))+":")]),t._v(" "),n("el-select",{attrs:{size:"medium",value:t.payment.paidType,placeholder:"请选择","popper-append-to-body":!1,"popper-class":"selectinfo"},on:{change:function(e){return t.$emit("paymentChange",{key:"paidType",value:e})}}},t._l(t.options,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),n("div",{staticClass:"block"},[n("div",{directives:[{name:"show",rawName:"v-show",value:"paid"===t.payment.paidType,expression:"payment.paidType === 'paid'"}]},[n("div",{staticClass:"text"},[t._v(t._s(t.$t("post.paymentAmount"))+":")]),t._v(" "),n("el-input",{attrs:{size:"medium",placeholder:"0",maxlength:"7"},on:{change:function(e){t.$emit("paymentChange",{key:"price",value:parseFloat(t.price)})},input:t.onPriceInput},model:{value:t.price,callback:function(e){t.price=e},expression:"price"}},[n("span",{staticClass:"prefix",attrs:{slot:"prefix"},slot:"prefix"},[t._v("￥")])])],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"attachmentPaid"===t.payment.paidType&&1===t.type,expression:"payment.paidType === 'attachmentPaid' && type === 1"}]},[n("div",{staticClass:"text"},[t._v(t._s(t.$t("post.paymentAmount"))+":")]),t._v(" "),n("el-input",{attrs:{size:"medium",placeholder:"0",maxlength:"7"},on:{change:function(e){t.$emit("paymentChange",{key:"attachmentPrice",value:parseFloat(t.attachmentPrice)})},input:t.onAttachmentPriceInput},model:{value:t.attachmentPrice,callback:function(e){t.attachmentPrice=e},expression:"attachmentPrice"}},[n("span",{staticClass:"prefix",attrs:{slot:"prefix"},slot:"prefix"},[t._v("￥")])])],1)]),t._v(" "),n("div",{staticClass:"block"},[n("div",{directives:[{name:"show",rawName:"v-show",value:"paid"===t.payment.paidType&&1===t.type,expression:"payment.paidType === 'paid' && type === 1"}]},[n("div",{staticClass:"text"},[t._v(t._s(t.$t("post.freeWord"))+":")]),t._v(" "),n("el-select",{attrs:{size:"medium",value:t.freeWords,"popper-append-to-body":!1,"popper-class":"selectinfo"},on:{change:function(e){return t.$emit("paymentChange",{key:"freeWords",value:e})}}},t._l(t.freeWordsOptions,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)])])}),[],!1,null,"0e969ed0",null);e.default=component.exports},859:function(t,e,n){"use strict";n.r(e);var o={name:"WordRedPacket",props:{redpacket:{type:Object,default:function(){}},isEdit:{type:Boolean,default:!1}},data:function(){return{showRedPacketBox:!1}},methods:{handleRedMoney:function(t){if(/^(([1-9][0-9]*)|[0])(\.\d{1,2})?$/.test(t)&&t>=.01&&t<=200)return this.$emit("changeRedMoney",t);this.$emit("changeRedMoney",0)},handleRedNumber:function(t){if(/^([1-9][0-9]*)$/.test(t)&&t<=100)return this.$emit("changeRedNumber",t);this.$emit("changeRedNumber",0)},handleRedlikenum:function(t){if(/^([1-9][0-9]*)$/.test(t)&&t<=250)return this.$emit("changeRedlikenum",t);this.$emit("changeRedlikenum",0)},openRedPacket:function(){this.showRedPacketBox=!0},closeRedPacket:function(){this.showRedPacketBox=!1},selectRedPacket:function(){return this.$emit("changeRedType",1),0==+this.redpacket.money?(this.$message.warning("请确认红包金额，0.01 ~ 200 元！"),this.$emit("changeRedType",0)):0==+this.redpacket.number?(this.$message.warning("请确认红包个数，1 ~ 100 个！"),this.$emit("changeRedType",0)):1===this.redpacket.condition&&0==+this.redpacket.likenum?(this.$message.warning("请确认集赞数，1 ~ 250 个！"),this.$emit("changeRedType",0)):1===this.redpacket.rule&&this.redpacket.money<.01*this.redpacket.number?(this.$message.warning("请匹配合理的红包金额与个数！"),this.$emit("changeRedType",0)):void(this.showRedPacketBox=!1)},cancelRedPacket:function(){this.$emit("changeRedType",0),this.showRedPacketBox=!1}}},r=(n(814),n(11)),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"word-pay"},[t.isEdit?t._e():n("div",{staticClass:"open-box-btn"},[n("div",{staticClass:"open-title"},[t._v("发布红包：")]),t._v(" "),n("div",{staticClass:"open-btn",on:{click:t.openRedPacket}},[t._v("\n      "+t._s(0===t.redpacket.is_red_packet?"+ 添加红包":" 修改红包")+"\n    ")])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:1===t.redpacket.is_red_packet,expression:"redpacket.is_red_packet === 1"}],staticClass:"red-desc"},[n("span",{staticClass:"desc-title"},[t._v("发放规则：")]),t._v(" "),n("span",{staticClass:"desc-value"},[t._v("\n      "+t._s(0===t.redpacket.rule?"定额":"随机")+"\n    ")]),t._v(" "),n("span",{staticClass:"desc-title"},[t._v("红包总金额：")]),t._v(" "),0===t.redpacket.rule?n("span",{staticClass:"desc-value"},[t._v("\n      "+t._s((t.redpacket.money*t.redpacket.number).toFixed(2))+"元\n    ")]):n("span",{staticClass:"desc-value"},[t._v("\n      "+t._s(t.redpacket.money)+"元\n    ")]),t._v(" "),n("span",{staticClass:"desc-title"},[t._v("红包个数：")]),t._v(" "),n("span",{staticClass:"desc-value"},[t._v("\n      "+t._s(t.redpacket.number)+"个\n    ")]),t._v(" "),n("span",{staticClass:"desc-title"},[t._v("获得条件：")]),t._v(" "),n("span",{staticClass:"desc-value"},[t._v("\n      "+t._s(0===t.redpacket.condition?"回复领取":"集赞"+t.redpacket.likenum+"个领取")+"\n    ")])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showRedPacketBox&&!t.isEdit,expression:"showRedPacketBox && !isEdit"}],staticClass:"redpacket-box"},[n("div",{staticClass:"redpacket-content"},[n("div",{staticClass:"redpacket-head"},[t._v("\n        "+t._s(0===t.redpacket.is_red_packet?"添加红包":" 修改红包")+"\n        "),n("svg-icon",{attrs:{type:"close"},on:{click:t.closeRedPacket}})],1),t._v(" "),n("div",{staticClass:"word-pay-item"},[n("div",{staticClass:"word-pay-title"},[t._v("发放模式：")]),t._v(" "),n("el-radio",{attrs:{label:1},on:{change:function(e){return t.$emit("changeRedRule",e)}},model:{value:t.redpacket.rule,callback:function(e){t.$set(t.redpacket,"rule",e)},expression:"redpacket.rule"}},[t._v("随机")]),t._v(" "),n("el-radio",{attrs:{label:0},on:{change:function(e){return t.$emit("changeRedRule",e)}},model:{value:t.redpacket.rule,callback:function(e){t.$set(t.redpacket,"rule",e)},expression:"redpacket.rule"}},[t._v("定额")])],1),t._v(" "),n("div",{staticClass:"word-pay-item"},[n("div",{staticClass:"word-pay-title"},[t._v("\n          "+t._s(1===t.redpacket.rule?"红包总金额：":"单个红包金额：")+"\n        ")]),t._v(" "),n("el-input",{attrs:{type:"number",placeholder:"请输入红包金额"},on:{change:t.handleRedMoney},model:{value:t.redpacket.money,callback:function(e){t.$set(t.redpacket,"money",e)},expression:"redpacket.money"}}),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:0===t.redpacket.money,expression:"redpacket.money === 0"}],staticClass:"tip"},[t._v("\n          可输入红包金额范围 0.01 ~ 200 元\n        ")])],1),t._v(" "),n("div",{staticClass:"word-pay-item"},[n("div",{staticClass:"word-pay-title"},[t._v("红包个数：")]),t._v(" "),n("el-input",{attrs:{type:"number",placeholder:"请输入红包个数"},on:{change:t.handleRedNumber},model:{value:t.redpacket.number,callback:function(e){t.$set(t.redpacket,"number",e)},expression:"redpacket.number"}}),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:0===t.redpacket.number,expression:"redpacket.number === 0"}],staticClass:"tip"},[t._v("\n          可输入红包个数 1 ~ 100 个\n        ")])],1),t._v(" "),n("div",{staticClass:"word-pay-item"},[n("div",{staticClass:"word-pay-title"},[t._v("获得条件：")]),t._v(" "),n("el-radio",{attrs:{label:0},on:{change:function(e){return t.$emit("changeRedCondition",e)}},model:{value:t.redpacket.condition,callback:function(e){t.$set(t.redpacket,"condition",e)},expression:"redpacket.condition"}},[t._v("回复帖子")]),t._v(" "),n("el-radio",{attrs:{label:1},on:{change:function(e){return t.$emit("changeRedCondition",e)}},model:{value:t.redpacket.condition,callback:function(e){t.$set(t.redpacket,"condition",e)},expression:"redpacket.condition"}},[t._v("点赞数")]),t._v(" "),n("el-input",{directives:[{name:"show",rawName:"v-show",value:1===t.redpacket.condition,expression:"redpacket.condition === 1"}],staticClass:"input_likenum",attrs:{type:"number",placeholder:"集赞数"},on:{change:t.handleRedlikenum},model:{value:t.redpacket.likenum,callback:function(e){t.$set(t.redpacket,"likenum",e)},expression:"redpacket.likenum"}}),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:1===t.redpacket.condition,expression:"redpacket.condition === 1"}]},[t._v("个")]),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:1===t.redpacket.condition&&0===t.redpacket.likenum,expression:"redpacket.condition === 1 && redpacket.likenum === 0"}],staticClass:"tip"},[t._v("\n          可输入集赞数 1 ~ 250 个\n        ")])],1),t._v(" "),n("div",{staticClass:"btn-container"},[n("el-button",{staticClass:"btn-confirm",on:{click:t.selectRedPacket}},[t._v("确定")]),t._v(" "),n("el-button",{staticClass:"btn-cancle",on:{click:t.cancelRedPacket}},[t._v("取消")])],1)])])])}),[],!1,null,"1fb7b1bc",null);e.default=component.exports;installComponents(component,{SvgIcon:n(62).default})},860:function(t,e,n){"use strict";n.r(e);var o=n(736),r=n.n(o),c=n(742),l=n.n(c),d={name:"EditorQa",mixins:[r.a],props:{question:{type:Object,default:function(){}},post:{type:Object,default:function(){}},canPublishAnonymous:{type:Boolean,default:!1}},data:function(){return{beAskedUser:{},showQACaller:!1,pickerOptionsBind:{disabledDate:function(time){return time.getTime()<Date.now()}}}},computed:{forums:function(){return this.$store.state.site.info.attributes||{}},canSetOnlooker:function(){return!!(this.forums&&this.forums.other&&this.forums.other.can_be_onlooker)&&this.forums.other.can_be_onlooker},siteOnlookerPrice:function(){return this.forums&&this.forums.set_site?this.forums.set_site.site_onlooker_price:""},siteMasterScale:function(){return this.forums&&this.forums.set_site?this.forums.set_site.site_master_scale/10:""},siteUserScale:function(){return""===this.siteMasterScale?0:1-this.siteMasterScale}},watch:{question:{handler:function(t){t.beUser&&(this.beAskedUser=t.beUser)},deep:!0,immediate:!0}},mounted:function(){this.question.beUser&&(this.beAskedUser=this.question.beUser)},methods:{checkTime:function(t){return l()(t).isAfter(l()().add(1,"day"))?t:(this.$message.warning("悬赏结束时间不能少于一天！"),"")},handleRewardPrice:function(t){return/^(([1-9][0-9]*)|(([0]\.\d{0,2}|[1-9][0-9]*\.\d{0,2})))$/.test(t)?t:(t.length&&this.$message.warning("悬赏金额格式错误"),"")},selectedQaCaller:function(t){this.beAskedUser=t,this.showQACaller=!1,this.$emit("beUserChange",t)}}},h=(n(815),n(11)),component=Object(h.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"qa"},[n("div",{staticClass:"block"},[n("div",{staticClass:"title"},[t._v("问答类型:")]),t._v(" "),n("el-radio",{attrs:{value:t.question.questionType,label:"offerReward"},on:{input:function(e){return t.$emit("questionTypeChange",e)}}},[t._v("悬赏提问")]),t._v(" "),n("el-radio",{attrs:{value:t.question.questionType,label:"assigner"},on:{input:function(e){return t.$emit("questionTypeChange",e)}}},[t._v("指定人问答")])],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"offerReward"===t.question.questionType,expression:"question.questionType === 'offerReward'"}],staticClass:"reward-box block"},[n("div",{staticClass:"title"},[t._v("悬赏金额：")]),t._v(" "),n("el-input",{attrs:{type:"number",placeholder:"请输入悬赏金额"},on:{change:function(e){return t.$emit("rewardPriceChange",t.handleRewardPrice(e))}},model:{value:t.question.price,callback:function(e){t.$set(t.question,"price",e)},expression:"question.price"}}),t._v(" "),n("div",{staticClass:"title"},[t._v("悬赏结束时间：")]),t._v(" "),n("el-date-picker",{attrs:{type:"datetime",clearable:!1,"picker-options":t.pickerOptionsBind,placeholder:"选择日期时间",format:"yyyy-MM-dd HH:mm:ss"},on:{change:function(e){return t.$emit("rewardTimeChange",t.checkTime(e))}},model:{value:t.question.expired_at,callback:function(e){t.$set(t.question,"expired_at",e)},expression:"question.expired_at"}})],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"assigner"===t.question.questionType,expression:"question.questionType === 'assigner'"}],staticClass:"qa-payment block"},[n("div",{staticClass:"title"},[t._v(t._s(t.$t("post.questionMode"))+":")]),t._v(" "),n("el-radio",{attrs:{value:t.question.paymentType,label:"free"},on:{input:function(e){return t.$emit("paymentTypeChange",e)}}},[t._v(t._s(t.$t("post.freeWatch")))]),t._v(" "),n("el-radio",{attrs:{value:t.question.paymentType,label:"paid"},on:{input:function(e){return t.$emit("paymentTypeChange",e)}}},[t._v(t._s(t.$t("post.paidWatch")))])],1),t._v(" "),t.canPublishAnonymous?n("div",{staticClass:"qa-anonymous block"},[n("div",{staticClass:"title"},[t._v(t._s(t.$t("post.anonymous"))+"：")]),t._v(" "),n("el-switch",{attrs:{value:t.post.isAnonymous,"active-color":"#1878F3"},on:{input:function(e){return t.$emit("isAnonymousChange",e)}}})],1):t._e(),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"assigner"===t.question.questionType&&t.canSetOnlooker,expression:"question.questionType === 'assigner' && canSetOnlooker"}],staticClass:"qa-onlooker block"},[n("div",{staticClass:"title"},[t._v(t._s(t.$t("post.onLooker"))+":")]),t._v(" "),n("el-switch",{attrs:{value:t.question.isOnlooker,"active-color":"#1878F3"},on:{input:function(e){return t.$emit("isOnlookerChange",e)}}}),t._v(" "),n("span",{staticClass:"tip"},[n("span",[t._v(t._s("他人围观需付费 "+t.siteOnlookerPrice+" 元。"))]),t._v("(\n      "),n("span",{directives:[{name:"show",rawName:"v-show",value:t.siteUserScale,expression:"siteUserScale"}],staticClass:"tip-con"},[t._v("\n        "+t._s("你得 "+(t.siteOnlookerPrice*t.siteUserScale/2).toFixed(2)+" 元\n        ，回答者得 "+(t.siteOnlookerPrice*t.siteUserScale/2).toFixed(2)+" 元。")+"\n      ")]),t._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:t.siteMasterScale,expression:"siteMasterScale"}],staticClass:"tip-con"},[t._v("\n        "+t._s("平台得 "+(t.siteOnlookerPrice*t.siteMasterScale).toFixed(2)+" 元")+"\n      ")]),t._v(")\n    ")])],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:"assigner"===t.question.questionType,expression:"question.questionType === 'assigner'"}],staticClass:"qa-answerer block"},[n("div",{staticClass:"title"},[n("span",[t._v(t._s(t.$t("post.questionHim"))+":")]),t._v(" "),n("span",{staticClass:"select-answerer",on:{click:function(e){t.showQACaller=!0}}},[t._v("\n        "+t._s(Object.keys(t.beAskedUser).length>0?t.$t("post.changeBeAskedUser"):t.$t("post.addBeAskedUser"))+"\n      ")])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:Object.keys(t.beAskedUser).length>0,expression:"Object.keys(beAskedUser).length > 0"}],staticClass:"be-asked-user"},[n("avatar-component",{attrs:{author:t.beAskedUser,size:50,round:""}},[t._v("\n        "+t._s(t.$t("topic.activeAt"))+" "+t._s(t.timerDiff(t.beAskedUser.updatedAt))+t._s(t.$t("topic.before"))+"\n      ")])],1)]),t._v(" "),t.showQACaller?n("qa-caller",{on:{close:function(e){t.showQACaller=!1},selectedQaCaller:t.selectedQaCaller}}):t._e()],1)}),[],!1,null,"b6276fd2",null);e.default=component.exports;installComponents(component,{AvatarComponent:n(759).default,QaCaller:n(864).default})},861:function(t,e,n){"use strict";n.r(e);n(34),n(24),n(39),n(53),n(54);var o=n(8),r=n(736);function c(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var l={name:"EditorProduct",mixins:[n.n(r).a],props:{product:{type:Object,default:function(){}}},data:function(){return{addedProduct:{},showProductDialog:!1,typeList:{1:"product-tmall",2:"product-jd",3:"product-pinduoduo",5:"product-taobao",7:"product-youzan"}}},computed:{forums:function(){return this.$store.state.site.info.attributes||{}}},watch:{product:{handler:function(t){this.addedProduct=t},deep:!0}},mounted:function(){this.addedProduct=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},this.product)},methods:{inputedLink:function(t){this.addedProduct=t,this.showProductDialog=!1,this.$emit("productChange",t)},remove:function(){this.addedProduct={},this.$emit("productChange",this.addedProduct)}}},d=(n(818),n(11)),component=Object(d.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"product-container"},[n("div",{staticClass:"block"},[n("div",{staticClass:"title"},[n("span",[t._v(t._s(t.$t("permission.createThreadGoods"))+":")]),t._v(" "),0===Object.keys(t.addedProduct).length?n("span",{staticClass:"select-product",on:{click:function(e){t.showProductDialog=!0}}},[t._v("\n        "+t._s(Object.keys(t.addedProduct).length>0?"":"+"+t.$t("post.addProduct"))+"\n      ")]):t._e()]),t._v(" "),Object.keys(t.addedProduct).length>0?n("div",{staticClass:"product-info"},[n("el-image",{staticClass:"image",attrs:{src:t.addedProduct.imagePath}}),t._v(" "),n("div",{staticClass:"right"},[n("div",{staticClass:"title"},[t.typeList[t.addedProduct.type]&&t.addedProduct.title?n("svg-icon",{staticClass:"icon",attrs:{type:t.typeList[t.addedProduct.type]}}):t._e(),t._v("\n          "+t._s(t.addedProduct.title)+"\n        ")],1),t._v(" "),n("div",{staticClass:"bottom"},[n("span",{staticClass:"price"},[t._v(t._s(t.addedProduct.price>0?t.$t("post.yuanItem")+t.addedProduct.price+t.$t("post.yuan"):""))]),t._v(" "),n("svg-icon",{staticClass:"icon",attrs:{type:"delete"},on:{click:t.remove}})],1)])],1):t._e()]),t._v(" "),t.showProductDialog?n("product-dialog",{on:{close:function(e){t.showProductDialog=!1},inputedLink:t.inputedLink}}):t._e()],1)}),[],!1,null,"62ff8295",null);e.default=component.exports;installComponents(component,{SvgIcon:n(62).default,ProductDialog:n(865).default})},862:function(t,e,n){"use strict";n.r(e);n(253);var o={name:"EditorToolBar",props:{actions:{type:Array,default:function(){return[]}},showEmoji:{type:Boolean,default:!1},showTopic:{type:Boolean,default:!1},resources:{type:Array,default:function(){return[]}},textLimit:{type:[Number,String],default:450},textLength:{type:[Number,String],default:0},onPublish:{type:Boolean,default:!1},editorStyle:{type:String,default:"post"},isEdit:{type:Boolean,default:!1},onSave:{type:Boolean,default:!1}}},r=(n(828),n(11)),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["editor-bar",t.editorStyle]},[n("div",{staticClass:"block"},[t._l(t.actions,(function(e,o){return[e.show&&"emoji"===e.icon?n("popover",{key:o,staticClass:"svg",attrs:{visible:t.showEmoji},on:{hidePop:function(e){return t.$emit("hidePop",e)}},scopedSlots:t._u([{key:"pop",fn:function(){return[n("emoji-list",{on:{selectEmoji:function(e){return t.$emit("selectActions",e)}}})]},proxy:!0},{key:"activeNode",fn:function(){return[n("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{type:e.icon},on:{click:function(n){return t.$emit("onActions",e.toggle)}}})]},proxy:!0}],null,!0)}):t._e(),t._v(" "),e.show&&"topic"===e.icon?n("popover",{key:o,staticClass:"svg",attrs:{visible:t.showTopic},on:{hidePop:function(e){return t.$emit("hidePop",e)}},scopedSlots:t._u([{key:"pop",fn:function(){return[n("topic-list",{on:{selectedTopic:function(e){return t.$emit("selectActions",e)}}})]},proxy:!0},{key:"activeNode",fn:function(){return[n("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{type:e.icon},on:{click:function(n){return t.$emit("onActions",e.toggle)}}})]},proxy:!0}],null,!0)}):e.show&&"call"===e.icon?n("svg-icon",{key:o,staticClass:"svg",staticStyle:{"font-size":"20px"},attrs:{type:e.icon},on:{click:function(n){return t.$emit("onActions",e.toggle)}}}):t._e()]}))],2),t._v(" "),n("div",{staticClass:"block"},[t._l(t.resources,(function(e,o){return[e.show?n("svg-icon",{key:o,staticClass:"svg",staticStyle:{"font-size":"20px"},attrs:{type:e.icon},on:{click:function(n){return t.$emit("addResource",e.toggle)}}}):t._e()]}))],2),t._v(" "),"post"!==t.editorStyle?n("div",{staticClass:"publish-container"},[t.textLimit?n("span",{staticClass:"tip"},[t._v(t._s(t.textLimit>=t.textLength?t.$t("post.note",{num:t.textLimit-t.textLength}):t.$t("post.exceed",{num:t.textLength-t.textLimit})))]):t._e(),t._v(" "),n("el-button",{staticClass:"button-publish",attrs:{loading:t.onPublish,type:"primary",size:"small"},on:{click:function(e){return t.$emit("publish")}}},[t._v(t._s(t.$t("post.post")))])],1):t._e()])}),[],!1,null,"6b1a3f2b",null);e.default=component.exports;installComponents(component,{EmojiList:n(792).default,SvgIcon:n(62).default,Popover:n(866).default,TopicList:n(791).default})},863:function(t,e,n){"use strict";n.r(e);var o=n(85),r=(n(45),n(63),n(25),n(13),n(831)),c={name:"VideoUpload",props:{videoList:{type:Array,default:function(){return[]}},onUploadVideo:{type:Boolean,default:!1}},data:function(){return{showVideoPop:!1}},computed:{forums:function(){return this.$store.state.site.info.attributes||{}},sizeLimit:function(){return this.forums&&this.forums.qcloud?this.forums.qcloud.qcloud_vod_size:""},typesLimit:function(){return this.forums&&this.forums.qcloud?this.forums.qcloud.qcloud_vod_ext.split(",").map((function(t){return".".concat(t)})).join(","):""}},methods:{handleVideoRemove:function(){var t=this;return this.$confirm(this.$t("topic.confirmDelete"),this.$t("discuzq.msgBox.title"),{confirmButtonText:this.$t("discuzq.msgBox.confirm"),type:this.$t("discuzq.msgBox.cancel"),typeInformation:"warning"}).then((function(){t.$refs.upload.clearFiles(),setTimeout((function(){t.$emit("videoChange",{key:"videoList",value:[]})}),1e3)}),(function(){}))},addVideo:function(t){var e=this;if(!this.onUploadVideo){if(this.sizeLimit&&t.raw.size>1024*this.sizeLimit*1024)return this.$message.error("".concat(this.$t("profile.filesizecannotexceed")+this.sizeLimit,"MB")),void this.$refs.upload.clearFiles();if(!this.videoTypeCheck(t))return this.$message.error("暂不支持此类型的视频"),void this.$refs.upload.clearFiles();this.$emit("update:onUploadVideo",!0);var n=Object(o.a)(this.videoList);n.push({name:t.name,url:t.url,videoPercent:0}),this.$emit("videoChange",{key:"videoList",value:n}),this.getSignature((function(o){new r.default({getSignature:o}).upload({mediaFile:t.raw}).on("media_progress",(function(t){n[0].videoPercent=t.percent,e.$emit("videoChange",{key:"videoList",value:n})})).done().then((function(t){e.postVideo(t.fileId)}))}))}},videoTypeCheck:function(t){var e=t.name.split(".")[t.name.split(".").length-1].toLowerCase();return!("m3u8"===e||this.typesLimit.indexOf(e.toLowerCase())<0)},getSignature:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.$store.dispatch("jv/get",["signature",{}]).then((function(e){t((function(){return e.signature}))}))},postVideo:function(t){var e=this,n={_jv:{type:"thread/video"},file_id:t};this.$store.dispatch("jv/post",n).then((function(data){var t=Object(o.a)(e.videoList);t[0].id=data.file_id,e.$emit("videoChange",{key:"videoList",value:t})}),(function(t){return e.handleError(t)})).finally((function(){e.$emit("update:onUploadVideo",!1)}))},handleError:function(){this.$emit("update:onUploadVideo",!1),this.$message.error(this.$t("post.videoUploadFail"))}}},l=(n(852),n(11)),component=Object(l.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.videoList[0]?n("div",{staticClass:"video-upload"},[n("video",{ref:"video",staticClass:"video",attrs:{src:t.videoList[0].url,controls:!1}}),t._v(" "),t.showVideoPop?n("video-pop",{attrs:{url:t.videoList[0].url},on:{remove:function(e){t.showVideoPop=!1}}}):t._e(),t._v(" "),n("svg-icon",{staticClass:"icon-play",staticStyle:{"font-size":"30px"},attrs:{type:"video-play"},on:{click:function(e){t.showVideoPop=!0}}}),t._v(" "),n("svg-icon",{staticClass:"icon-delete",staticStyle:{"font-size":"22px"},attrs:{type:"delete-red"},on:{click:t.handleVideoRemove}}),t._v(" "),n("el-progress",{directives:[{name:"show",rawName:"v-show",value:t.videoList[0].videoPercent<1,expression:"videoList[0].videoPercent < 1"}],staticClass:"progress",attrs:{percentage:100*t.videoList[0].videoPercent,color:"#25A9F6","show-text":!1}})],1):t._e(),t._v(" "),n("el-upload",{directives:[{name:"show",rawName:"v-show",value:!t.videoList[0],expression:"!videoList[0]"}],ref:"upload",staticClass:"image-upload",attrs:{"list-type":"picture-card",accept:t.typesLimit,action:"","auto-upload":!1,limit:1,disabled:t.videoList.length>0,"on-change":t.addVideo,"on-error":t.handleError}},[n("i",{staticClass:"el-icon-plus"})])],1)}),[],!1,null,"7ceac8bb",null);e.default=component.exports;installComponents(component,{VideoPop:n(729).default,SvgIcon:n(62).default})},864:function(t,e,n){"use strict";n.r(e);var o=n(85),r=n(715),c={name:"QaCaller",mixins:[n.n(r).a],data:function(){return{preQaUsers:{loading:!0,list:[]},currentQaUsers:{loading:!0,list:[]},nextQaUsers:{loading:!0,list:[]},preTimerId:null,nextTimerId:null,qaFriendsLoading:!1,selectedFriend:{},searchList:[],searchValue:"",searchTotal:10,loading:!1,setTimeoutId:null,pageLimit:10,pageNumber:1,pageLimitPagination:10,pageNumberPagination:1,totalPage:""}},computed:{noMore:function(){return!(!this.searchValue||this.loading)&&this.searchList.length>=this.searchTotal},disabled:function(){return this.loading||this.noMore}},mounted:function(){this.initUserList()},methods:{initUserList:function(){1===this.pageNumberPagination?(this.getUserList(this.pageNumberPagination,this.currentQaUsers),this.getUserList(this.pageNumberPagination+1,this.nextQaUsers)):this.pageNumberPagination===(this.totalPage||10)?(this.getUserList(this.pageNumberPagination-1,this.preQaUsers),this.getUserList(this.pageNumberPagination,this.currentQaUsers)):(this.getUserList(this.pageNumberPagination-1,this.preQaUsers),this.getUserList(this.pageNumberPagination,this.currentQaUsers),this.getUserList(this.pageNumberPagination+1,this.nextQaUsers))},getUserList:function(t,e){var n=this;if(!(e.list.length>0)){e.loading=!0;var r={"filter[canBeAsked]":"yes","page[limit]":this.pageLimitPagination,"page[number]":t};return this.$store.dispatch("jv/get",["/users",{params:r}]).then((function(data){var meta=data._jv.json.meta;n.totalPage=meta.pageCount,e.loading=!1,e.list=Object(o.a)(data)}),(function(t){return n.handleError(t)}))}},prePage:function(){var t=this;this.pageNumberPagination<=1||(this.$refs.currentQaUser.classList.add("transfer-right"),this.$refs.preQaUser.classList.add("transfer-right"),setTimeout((function(){t.$refs.currentQaUser.classList.remove("transfer-right"),t.$refs.preQaUser.classList.remove("transfer-right"),t.nextQaUsers=t.currentQaUsers,t.currentQaUsers=t.preQaUsers,t.preQaUsers={loading:!0,list:[]}}),300),this.pageNumberPagination-=1,this.preTimerId&&window.clearTimeout(this.preTimerId),this.preTimerId=setTimeout((function(){t.preTimerId=null,t.initUserList()}),310))},nextPage:function(){var t=this;this.pageNumberPagination>=this.totalPage||(this.$refs.currentQaUser.classList.add("transfer-left"),this.$refs.nextQaUser.classList.add("transfer-left"),setTimeout((function(){t.$refs.currentQaUser.classList.remove("transfer-left"),t.$refs.nextQaUser.classList.remove("transfer-left"),t.preQaUsers=t.currentQaUsers,t.currentQaUsers=t.nextQaUsers,t.nextQaUsers={loading:!0,list:[]}}),300),this.pageNumberPagination+=1,this.nextTimerId&&window.clearTimeout(this.nextTimerId),this.nextTimerId=setTimeout((function(){t.initUserList(),t.nextTimerId=null}),310))},searchUser:function(t){var e=this;this.searchValue=t.target.value,this.pageNumber=1,this.searchList=[],this.setTimeoutId&&window.clearTimeout(this.setTimeoutId),this.searchValue&&(this.setTimeoutId=setTimeout((function(){e.loading=!0,e.getSearchList(),e.setTimeoutId=null}),300))},getSearchList:function(){var t=this,e={"filter[username]":"*".concat(this.searchValue,"*"),"filter[status]":"normal","page[limit]":this.pageLimit,"page[number]":this.pageNumber,"filter[canBeAsked]":"yes"};this.$store.dispatch("jv/get",["users",{params:e}]).then((function(data){var e,meta=data._jv.json.meta;t.loading=!1,t.searchTotal=meta.total,data.length>0&&(e=t.searchList).push.apply(e,Object(o.a)(data))}),(function(e){return t.handleError(e)}))},load:function(){this.searchValue&&this.searchList.length>0&&(this.loading=!0,this.pageNumber+=1,this.getSearchList())},selectFriendFromUl:function(t){this.selectedFriend=t,this.clear()},clear:function(){this.$refs.inputCaller.value="",this.searchValue="",this.searchList=[]}}},l=(n(817),n(11)),component=Object(l.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("message-box",{attrs:{title:t.$t("post.callAnswer"),overflow:"visible"},on:{close:function(e){return t.$emit("close")}}},[n("div",{staticClass:"top"},[n("div",{staticClass:"container-selectedCaller"},[n("div",{directives:[{name:"show",rawName:"v-show",value:Object.keys(t.selectedFriend).length>0,expression:"Object.keys(selectedFriend).length > 0"}],staticClass:"selectedCaller"},[n("span",[t._v("@ "+t._s(t.selectedFriend.username))]),t._v(" "),n("svg-icon",{staticStyle:{"font-size":"13px",cursor:"pointer",fill:"#6d6d6d","margin-left":"5px"},attrs:{type:"close"},on:{click:function(e){t.selectedFriend={}}}})],1)]),t._v(" "),n("div",{staticClass:"tip"},[t._v(t._s(t.$t("post.searchFriendsCanBeAsd")))]),t._v(" "),n("div",{staticClass:"container-search-list"},[n("label",[n("input",{ref:"inputCaller",staticClass:"input-caller",attrs:{placeholder:t.$t("post.pleaseInput"),type:"text"},on:{input:t.searchUser}})]),t._v(" "),n("div",{staticClass:"infinite-list-wrapper",staticStyle:{overflow:"auto"}},[n("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.load,expression:"load"}],attrs:{"infinite-scroll-disabled":"disabled"}},t._l(t.searchList,(function(e,o){return n("li",{key:o,class:{"infinite-list-item":!0,selected:t.selectedFriend.username===e.username},on:{click:function(n){return t.selectFriendFromUl(e)}}},[t._v("\n            "+t._s(e.username)+"\n          ")])})),0),t._v(" "),t.loading?n("p",{staticClass:"loading-tip"},[t._v(t._s(t.$t("core.loading")))]):t._e(),t._v(" "),t.noMore?n("p",{staticClass:"loading-tip"},[t._v(t._s(t.$t("core.noMoreData")))]):t._e()])]),t._v(" "),n("div",{staticClass:"friends"},[n("div",{staticClass:"title"},[t._v(t._s(t.$t("post.recommendAnswer")))]),t._v(" "),n("div",{staticClass:"container-user-list"},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.preQaUsers.loading,expression:"preQaUsers.loading"}],ref:"preQaUser",staticClass:"container-caller prePage"},t._l(t.preQaUsers.list,(function(e,o){return n("div",{key:o,class:{caller:!0,selected:t.selectedFriend.username===e.username},on:{click:function(n){t.selectedFriend=e}}},[n("avatar",{attrs:{user:e,size:"30",round:"","prevent-jump":""}}),t._v(" "),n("span",[t._v(t._s(e.username))])],1)})),0),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.currentQaUsers.loading,expression:"currentQaUsers.loading"}],ref:"currentQaUser",staticClass:"container-caller currentPage"},t._l(t.currentQaUsers.list,(function(e,o){return n("div",{key:o,class:{caller:!0,selected:t.selectedFriend.username===e.username},on:{click:function(n){t.selectedFriend=e}}},[n("avatar",{attrs:{user:e,size:"30",round:"","prevent-jump":""}}),t._v(" "),n("span",[t._v(t._s(e.username))])],1)})),0),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.nextQaUsers.loading,expression:"nextQaUsers.loading"}],ref:"nextQaUser",staticClass:"container-caller nextPage"},t._l(t.nextQaUsers.list,(function(e,o){return n("div",{key:o,class:{caller:!0,selected:t.selectedFriend.username===e.username},on:{click:function(n){t.selectedFriend=e}}},[n("avatar",{attrs:{user:e,size:"30",round:"","prevent-jump":""}}),t._v(" "),n("span",[t._v(t._s(e.username))])],1)})),0)]),t._v(" "),t.totalPage?n("div",{staticClass:"container-pagination"},[n("div",{staticClass:"pagination"},[n("svg-icon",{class:{"page-button":!0,"pre-button":!0,disabled:t.pageNumberPagination<=1},attrs:{type:"drop-down"},on:{click:t.prePage}}),t._v(" "),n("span",[t._v(t._s(t.pageNumberPagination))]),t._v(" "),n("svg-icon",{class:{"page-button":!0,"next-button":!0,disabled:t.pageNumberPagination>=t.totalPage},attrs:{type:"drop-down"},on:{click:t.nextPage}})],1)]):t._e()])]),t._v(" "),n("div",{staticClass:"bottom"},[n("div",{staticClass:"container"},[n("el-button",{attrs:{disabled:0===Object.keys(t.selectedFriend).length,size:"medium",type:"primary"},on:{click:function(e){return t.$emit("selectedQaCaller",t.selectedFriend)}}},[t._v(t._s(t.$t("post.confirmChoice")))])],1)])])}),[],!1,null,"8ebbd4c8",null);e.default=component.exports;installComponents(component,{SvgIcon:n(62).default,Avatar:n(254).default,MessageBox:n(721).default})},865:function(t,e,n){"use strict";n.r(e);n(882),n(13);var o=n(715),r={name:"ProductDialog",mixins:[n.n(o).a],data:function(){return{supportedType:[{icon:"product-jd",text:this.$t("post.jd")},{icon:"product-taobao",text:this.$t("post.taobao")},{icon:"product-tmall",text:this.$t("post.tmall")},{icon:"product-pinduoduo",text:this.$t("post.pinduoduo")},{icon:"product-youzan",text:this.$t("post.youzan")}],link:"",loading:!1}},computed:{},mounted:function(){},methods:{handleLink:function(){var t=this;if(this.link){this.loading=!0;var e={_jv:{type:"goods/analysis"},type:"analysis",address:this.link};this.$store.dispatch("jv/post",e).then((function(e){e&&e._jv&&(t.link="",t.$emit("inputedLink",e))}),(function(e){return t.handleError(e)})).finally((function(){t.loading=!1}))}else this.$message.error(this.$t("post.goodsLinkEmpty"))}}},c=(n(819),n(11)),component=Object(c.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("message-box",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"message-box-product",attrs:{title:t.$t("post.addProduct"),overflow:"visible",width:"620px"},on:{close:function(e){return t.$emit("close")}}},[n("div",{staticClass:"top"},[n("div",{staticClass:"tips"},[t._v(t._s(t.$t("post.supportedLink")))]),t._v(" "),n("div",{staticClass:"supported-type"},t._l(t.supportedType,(function(e,o){return n("div",{key:o,staticClass:"item"},[n("svg-icon",{staticClass:"icon",attrs:{type:e.icon}}),t._v(t._s(e.text)+"\n      ")],1)})),0),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.link,expression:"link"}],staticClass:"input-link",attrs:{placeholder:t.$t("post.goodsLink")},domProps:{value:t.link},on:{input:function(e){e.target.composing||(t.link=e.target.value)}}})]),t._v(" "),n("div",{staticClass:"bottom"},[n("div",{staticClass:"container"},[n("el-button",{attrs:{size:"medium",type:"primary"},on:{click:t.handleLink}},[t._v(t._s(t.$t("discuzq.ok")))]),t._v(" "),n("el-button",{attrs:{size:"medium"},on:{click:function(e){return t.$emit("close")}}},[t._v(t._s(t.$t("post.cancel")))])],1)])])}),[],!1,null,"1173780e",null);e.default=component.exports;installComponents(component,{SvgIcon:n(62).default,MessageBox:n(721).default})},866:function(t,e,n){"use strict";n.r(e);var o={name:"Popover",props:{visible:{type:Boolean,default:!1}}},r=(n(829),n(11)),component=Object(r.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-popover",{attrs:{placement:"bottom","min-width":"150",value:t.visible,trigger:"manual","popper-class":"popover"},on:{hide:function(e){return t.$emit("hide-pop")}}},[t._t("pop"),t._v(" "),n("template",{slot:"reference"},[t._t("activeNode")],2)],2)],1)}),[],!1,null,null,null);e.default=component.exports},869:function(t,e,n){"use strict";n.r(e);n(253),n(63);var o=n(715),r=n.n(o),c=n(820),l=n.n(c),d=n(734),h=n(821),m=n.n(h),f=n(33),v={name:"AttachmentUpload",mixins:[r.a,l.a,m.a],props:{action:{type:String,default:"",required:!0},fileList:{type:Array,default:function(){return[]},required:!0},accept:{type:String,default:""},limit:{type:Number,default:9999},sizeLimit:{type:Number,default:1e17},onUpload:{type:Boolean,default:!1},addTips:{type:String,default:""},type:{type:Number,default:0}},data:function(){return{previewFiles:[],currentInput:""}},computed:{input:function(){return document.getElementById("upload")},service:function(){return f.a}},methods:{onClick:function(){var t=this.$refs.uploadFile;this.currentInput=t,this.uploaderFile(t)},extensionValidate:function(t){var e=t.split(".")[t.split(".").length-1];return d.extensionList.indexOf(e.toUpperCase())>0?e.toUpperCase():"UNKNOWN"}}},y=(n(891),n(11)),component=Object(y.a)(v,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"container-upload"},[n("div",{staticClass:"upload"},[n("span",{staticClass:"attachment-list"},[t._v(t._s(t.$t("post.attachmentList")))]),t._v(" "),n("span",{staticClass:"add-attachment",on:{click:t.onClick}},[t._v(t._s(t.addTips||t.$t("post.addAttachment")))]),t._v(" "),n("input",{ref:"uploadFile",attrs:{id:"upload",accept:t.accept,type:"file",multiple:""},on:{input:t.onInput}})]),t._v(" "),t._l(t.previewFiles,(function(e,o){return n("div",{key:o,class:{"preview-item":!0,deleted:e.deleted}},[n("div",{staticClass:"container-item"},[n("div",{staticClass:"info"},[n("svg-icon",{staticStyle:{"font-size":"18px","vertical-align":"middle"},attrs:{type:t.extensionValidate(e.name)}}),t._v(" "),n("span",{class:{"file-name":!0,uploading:e.progress<100}},[t._v(t._s(e.name))])],1),t._v(" "),n("span",{staticClass:"size"},[t._v(t._s(parseInt((e.size/1024).toString()).toLocaleString())+"\n        KB")]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.progress<100,expression:"file.progress < 100"}],staticClass:"progress",style:{width:e.progress+"%"}})]),t._v(" "),n("div",{staticClass:"remove"},[n("svg-icon",{directives:[{name:"show",rawName:"v-show",value:e.progress&&100===e.progress,expression:"file.progress && file.progress === 100"}],staticClass:"remove-icon",attrs:{type:"delete"},on:{click:function(e){return t.removeItem(o)}}})],1)])}))],2)}),[],!1,null,"4cfc0f38",null);e.default=component.exports;installComponents(component,{SvgIcon:n(62).default})},870:function(t,e,n){"use strict";n.r(e);n(253);var o=n(715),r=n.n(o),c=n(820),l=n.n(c),d=n(821),h=n.n(d),m=n(33),f={name:"ImageUpload",mixins:[r.a,l.a,h.a],props:{action:{type:String,default:"",required:!0},fileList:{type:Array,default:function(){return[]},required:!0},accept:{type:String,default:""},limit:{type:Number,default:9999},sizeLimit:{type:Number,default:1e17},onUpload:{type:Boolean,default:!1},type:{type:Number,default:0}},data:function(){return{previewFiles:[],currentInput:""}},computed:{input:function(){return document.getElementById("upload")},service:function(){return m.a}},methods:{onClick:function(){var t=this.$refs.uploadImage;this.currentInput=t,this.uploaderFile(t)}}},v=(n(892),n(11)),component=Object(v.a)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"container-upload"},[t._l(t.previewFiles,(function(image,e){return n("div",{key:e,class:{"preview-item":!0,deleted:image.deleted}},[n("img",{attrs:{src:image.url,alt:""}}),t._v(" "),n("el-progress",{directives:[{name:"show",rawName:"v-show",value:image.progress<100,expression:"image.progress < 100"}],staticClass:"progress",attrs:{percentage:image.progress,color:"#25A9F6","show-text":!1}}),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:image.progress<100,expression:"image.progress < 100"}],staticClass:"cover"},[t._v("图片上传中...")]),t._v(" "),n("div",{class:{"upload-delete":!0,"show-delete":100===image.progress},on:{click:function(n){return t.removeItem(e)}}},[n("svg-icon",{staticStyle:{"font-size":"14px",fill:"white"},attrs:{type:"delete"}})],1)],1)})),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.previewFiles.length<t.limit,expression:"previewFiles.length < limit"}],staticClass:"upload",on:{click:function(e){return t.onClick(e)}}},[n("input",{ref:"uploadImage",attrs:{id:"upload",accept:t.accept,type:"file",multiple:""},on:{input:t.onInput}}),t._v(" "),n("svg-icon",{staticClass:"upload-icon",attrs:{type:"add"}})],1)],2)}),[],!1,null,"709fb9aa",null);e.default=component.exports;installComponents(component,{SvgIcon:n(62).default})},890:function(t,e,n){"use strict";n(811)},891:function(t,e,n){"use strict";n(822)},892:function(t,e,n){"use strict";n(830)},900:function(t,e,n){"use strict";n.r(e);var o=n(85),r=(n(25),n(45),n(742)),c=n.n(r),l=n(715),d=n.n(l),h=n(33),m={name:"ChatBox",mixins:[d.a],props:{dialog:{type:Object,default:function(){}}},data:function(){return{recordList:[],recordTotal:0,pageLimit:10,pollId:"",loading:!1,onChatPublish:!1,chatContent:{text:"",imageList:[],attachedList:[]},chatType:{type:10,textLimit:450,showPayment:!1,showTitle:!1,showImage:!0,showVideo:!1,showAttached:!1,showEmoji:!0,showTopic:!1,showCaller:!1,placeholder:"请输入 ..."},loadMoreMessage:!1}},computed:{userId:function(){return this.$store.getters["session/get"]("userId")},noMore:function(){return this.recordList.length===this.recordTotal}},watch:{dialog:{handler:function(t){var e=this;this.loading=!0,t.id&&t.name?this.getChatRecord(t.id).then((function(){e.loading=!1,e.$nextTick((function(){e.$refs.chatContent.scrollTop=e.$refs.chatContent.scrollHeight}))})):this.loading=!1},deep:!0,immediate:!0}},mounted:function(){this.activePolling(),this.scrollListener()},beforeDestroy:function(){window.clearInterval(this.pollId)},methods:{scrollListener:function(){var t=this;this.$refs.chatContent.addEventListener("scroll",(function(e){if(0===e.target.scrollTop){if(t.loadMoreMessage)return;t.loadMoreMessage=!0,t.pageLimit+=10,t.getChatRecord(t.dialog.id)}}))},activePolling:function(){var t=this;this.pollId=window.setInterval((function(){t.dialog.id&&t.getChatRecord(t.dialog.id)}),1500)},getChatRecord:function(t){var e=this,n={"filter[dialog_id]":t,include:"user,user.groups","page[number]":1,"page[limit]":this.pageLimit,sort:"-createdAt"};return h.a.get("dialog/message",{params:n}).then((function(t){if(t.data){var n=t.data.meta.total,r=t.data.data.map((function(t){return Object.assign({id:t.id},t.attributes)}));0!==e.recordList.length&&e.recordList[e.recordList.length-1].id===r[0].id&&e.recordList.length===r.length||(e.recordList=Object(o.a)(r).reverse()),e.recordTotal===n||e.loadMoreMessage||e.$nextTick((function(){e.$refs.chatContent.scrollTop=e.$refs.chatContent.scrollHeight})),e.onChatPublish=!1,e.loadMoreMessage=!1,e.recordTotal=n}else e.onChatPublish=!1}),(function(t){e.handleError(t),e.onChatPublish=!1}))},formatDate:function(t){return c()(new Date(t)).format("YYYY-MM-DD HH:mm")},postMessage:function(){var t=this,e={_jv:{type:"dialog/message"},dialog_id:this.dialog.id,message_text:""===this.chatContent.text?"发送图片":this.chatContent.text};this.chatContent.imageList.length>0&&(e.image_url=this.chatContent.imageList[0].url,e.attachment_id=this.chatContent.imageList[0].id),this.$store.dispatch("jv/post",e).then((function(){t.getChatRecord(t.dialog.id),t.chatContent.text="",t.chatContent.imageList=[]}),(function(e){t.onChatPublish=!1,t.handleError(e)}))},createDialogAndPost:function(){var t=this,e={_jv:{type:"dialog"},recipient_username:this.dialog.name,message_text:""===this.chatContent.text?"发送图片":this.chatContent.text};this.chatContent.imageList.length>0&&(e.image_url=this.chatContent.imageList[0].url),this.$store.dispatch("jv/post",e).then((function(e){t.getChatRecord(e._jv.id),t.chatContent.text="",t.chatContent.imageList=[]}),(function(e){t.onChatPublish=!1,t.handleError(e)}))},chatPublish:function(){return this.chatContent.text||this.chatContent.imageList.length?this.chatContent.text.length>450?this.$message.warning(this.$t("chat.messageLengthCannotOver")):void(this.onChatPublish||(this.onChatPublish=!0,this.dialog.id?this.postMessage():this.createDialogAndPost())):this.$message.warning(this.$t("chat.messageCannotBeBlack"))}}},f=(n(890),n(11)),component=Object(f.a)(m,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"chat-box"},[n("div",{staticClass:"header"},[n("span",{staticClass:"name"},[t._v(t._s(t.dialog.name))]),t._v(" "),n("span",[t._v(t._s(t.$t("chat.chatWithYou")))]),t._v(" "),n("svg-icon",{staticClass:"icon-close",staticStyle:{"font-size":"16px",fill:"#6d6d6d"},attrs:{type:"close"},on:{click:function(e){return t.$emit("close")}}})],1),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"chatContent",staticClass:"chat-content",attrs:{"element-loading-background":"rgba(0, 0, 0, 0)"}},[t.loadMoreMessage?n("div",{staticClass:"load-tip"},[t._v("\n      "+t._s(t.noMore?t.$t("chat.noMore"):t.$t("chat.loadRecord"))+"\n    ")]):t._e(),t._v(" "),t._l(t.recordList,(function(e,o){return n("div",{key:o,staticClass:"record"},[e.user_id===parseInt(t.userId)?n("div",{staticClass:"record-item mine"},[n("div",{staticClass:"message"},[n("div",{staticClass:"message-box"},[n("p",{domProps:{innerHTML:t._s(t.$xss(e.message_text_html))}}),t._v(" "),e.image_url?n("a",{attrs:{href:e.image_url,target:"_blank"}},[n("el-image",{staticStyle:{height:"120px"},attrs:{src:e.image_url}})],1):t._e()]),t._v(" "),n("div",{staticClass:"created-at"},[t._v(t._s(t.formatDate(e.updated_at)))])]),t._v(" "),n("Avatar",{attrs:{user:e.user,size:50}})],1):n("div",{staticClass:"record-item his"},[n("Avatar",{attrs:{user:e.user,size:50}}),t._v(" "),n("div",{staticClass:"message"},[n("div",{staticClass:"message-box"},[n("p",{domProps:{innerHTML:t._s(t.$xss(e.message_text_html))}}),t._v(" "),e.image_url?n("a",{attrs:{href:e.image_url,target:"_blank"}},[n("el-image",{staticStyle:{height:"120px"},attrs:{src:e.image_url}})],1):t._e()]),t._v(" "),n("div",{staticClass:"created-at"},[t._v(t._s(t.formatDate(e.updated_at)))])])],1)])}))],2),t._v(" "),n("editor",{staticClass:"chat-editor",attrs:{"editor-style":"chat",selector:"chat-editor","limit-img-number":1,"type-information":t.chatType,post:t.chatContent,"on-publish":t.onChatPublish},on:{"update:post":function(e){t.chatContent=e},publish:t.chatPublish}}),t._v(" "),n("Cover")],1)}),[],!1,null,"377c0746",null);e.default=component.exports;installComponents(component,{SvgIcon:n(62).default,Avatar:n(254).default,Editor:n(800).default,Cover:n(760).default})}}]);