Files
2026-04-14 17:38:46 +08:00

11 lines
4.6 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/community-comment-popup/community-comment-popup"],{"0081":function(t,n,e){"use strict";e.r(n);var o=e("f2bd"),i=e.n(o);for(var u in o)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(u);n["default"]=i.a},"11a9":function(t,n,e){"use strict";var o=e("5485e"),i=e.n(o);i.a},"176d":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return o}));var o={uPopup:function(){return e.e("components/uview-ui/components/u-popup/u-popup").then(e.bind(null,"b12c"))},uLoading:function(){return e.e("components/uview-ui/components/u-loading/u-loading").then(e.bind(null,"7cbc"))},uImage:function(){return e.e("components/uview-ui/components/u-image/u-image").then(e.bind(null,"28a8"))},communityCommentList:function(){return e.e("components/community-comment-list/community-comment-list").then(e.bind(null,"8136"))},communityComment:function(){return e.e("components/community-comment/community-comment").then(e.bind(null,"f145"))}},i=function(){var t=this,n=t.$createElement,e=(t._self._c,{bottom:t.tabbarBottom}),o=t.isFirstLoading?null:t.commentData.length;t._isMounted||(t.e0=function(n){t.showCommentPopup=!0}),t.$mp.data=Object.assign({},{$root:{a0:e,g0:o}})},u=[]},"5485e":function(t,n,e){},e890:function(t,n,e){"use strict";e.r(n);var o=e("176d"),i=e("0081");for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);e("11a9");var c=e("828b"),m=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"050b3881",null,!1,o["a"],void 0);n["default"]=m.exports},f2bd:function(t,n,e){"use strict";(function(t){var o=e("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(e("af34")),u=o(e("7ca3")),c=e("8f59"),m=e("6440");function a(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,o)}return e}function r(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?a(Object(e),!0).forEach((function(n){(0,u.default)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var s={name:"community-comment-popup",components:{CommunityCommentList:function(){e.e("components/community-comment-list/community-comment-list").then(function(){return resolve(e("8136"))}.bind(null,e)).catch(e.oe)}},props:{value:{type:Boolean},communityId:{type:[Number,String]}},data:function(){return{id:"",commentData:[],page:1,pageSize:10,more:0,loading:!1,showCommentPopup:!1,showCommentChildPopup:!1,childPid:"",childIndex:"",childPlaceholder:"",isFirstLoading:!0}},computed:r(r({},(0,c.mapGetters)(["userInfo","sysInfo"])),{},{show:{get:function(){return this.value},set:function(t){!t&&(this.showCommentPopup=!1),this.$emit("input",t)}},tabbarBottom:function(){var n=this.sysInfo.safeArea,e=this.sysInfo.screenHeight-n.bottom,o=t.getMenuButtonBoundingClientRect();return e+o.bottom-o.top+15+"px"}}),watch:{communityId:{handler:function(t){this.id=t,this.page=1,this.commentData=[],this.getCommentData()},immediate:!0}},methods:{changeComment:function(t){t.hasOwnProperty("child")||(t.child=[]),this.commentData.unshift(t)},onSelectComment:function(t){this.childIndex=t},onReply:function(t){this.childPid=t.parentId,this.childPlaceholder="回复@"+t.commentUserName,this.showCommentChildPopup=!0},changeCommentChild:function(t){this.commentData[this.childIndex].child.push(t)},getCommentData:function(){var t=this;(0,m.getCommunityCommentLists)({article_id:this.communityId,page_no:this.page,page_size:this.pageSize}).then((function(n){var e;(setTimeout((function(){return t.isFirstLoading=!1}),1e3),1==n.code)?(n.data.list.forEach((function(t){return t.loading=!1})),1===n.data.more&&(t.page+=1),(e=t.commentData).push.apply(e,(0,i.default)(n.data.list)),t.more=n.data.more,t.loading=!1):t.$toast({title:n.msg})}))},toLower:function(){this.more&&(this.loading=!0,this.getCommentData())}}};n.default=s}).call(this,e("df3c")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/community-comment-popup/community-comment-popup-create-component',
{
'components/community-comment-popup/community-comment-popup-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("e890"))
})
},
[['components/community-comment-popup/community-comment-popup-create-component']]
]);