| 12345678910 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/community-comment-popup/community-comment-popup"],{5664:function(t,n,e){"use strict";e.r(n);var o=e("a72c"),i=e("d0c3");for(var c in i)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(c);e("e81d");var u=e("f0c5"),m=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"3150737e",null,!1,o["a"],void 0);n["default"]=m.exports},8274:function(t,n,e){},a72c:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return c})),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,"d6b4"))},uLoading:function(){return e.e("components/uview-ui/components/u-loading/u-loading").then(e.bind(null,"c839"))},uImage:function(){return e.e("components/uview-ui/components/u-image/u-image").then(e.bind(null,"2a31"))},communityCommentList:function(){return e.e("components/community-comment-list/community-comment-list").then(e.bind(null,"94d0"))},communityComment:function(){return e.e("components/community-comment/community-comment").then(e.bind(null,"ee47"))}},i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.isFirstLoading?null:t.commentData.length);t._isMounted||(t.e0=function(n){t.showCommentPopup=!0}),t.$mp.data=Object.assign({},{$root:{g0:e}})},c=[]},d0c3:function(t,n,e){"use strict";e.r(n);var o=e("ec0b"),i=e.n(o);for(var c in o)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(c);n["default"]=i.a},e81d:function(t,n,e){"use strict";var o=e("8274"),i=e.n(o);i.a},ec0b:function(t,n,e){"use strict";var o=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(e("448a")),c=o(e("9523")),u=e("26cb"),m=e("af79");function r(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 a(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?r(Object(e),!0).forEach((function(n){(0,c.default)(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):r(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("94d0"))}.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:a(a({},(0,u.mapGetters)(["userInfo"])),{},{show:{get:function(){return this.value},set:function(t){!t&&(this.showCommentPopup=!1),this.$emit("input",t)}}}),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)},onReply:function(t){this.childIndex=this.commentData.findIndex((function(n){return n.id==t.parentId})),this.childPid=t.commentId,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}}]);
- ;(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__('543d')['createComponent'](__webpack_require__("5664"))
- })
- },
- [['components/community-comment-popup/community-comment-popup-create-component']]
- ]);
|