public
This commit is contained in:
@ -0,0 +1,10 @@
|
||||
(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']]
|
||||
]);
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-popup": "/components/uview-ui/components/u-popup/u-popup",
|
||||
"u-loading": "/components/uview-ui/components/u-loading/u-loading",
|
||||
"u-image": "/components/uview-ui/components/u-image/u-image",
|
||||
"community-comment-list": "/components/community-comment-list/community-comment-list",
|
||||
"community-comment": "/components/community-comment/community-comment"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
<view class="data-v-050b3881"><u-popup bind:input="__e" vue-id="448d66e8-1" mode="bottom" height="900rpx" duration="{{100}}" closeable="{{true}}" border-radius="14" customStyle="{{$root.a0}}" value="{{show}}" data-event-opts="{{[['^input',[['__set_model',['','show','$event',[]]]]]]}}" class="data-v-050b3881" bind:__l="__l" vue-slots="{{['default']}}"><view class="content data-v-050b3881"><view class="xl p-24 text-center bold bb data-v-050b3881">评论</view><view class="content-wrapper data-v-050b3881"><scroll-view scroll-y="true" data-event-opts="{{[['scrolltolower',[['toLower',['$event']]]]]}}" bindscrolltolower="__e" class="data-v-050b3881"><block wx:if="{{isFirstLoading}}"><view class="text-center flex row-center p-50 data-v-050b3881"><u-loading vue-id="{{('448d66e8-2')+','+('448d66e8-1')}}" color="{{colorConfig.primary}}" size="{{40}}" mode="circle" class="data-v-050b3881" bind:__l="__l"></u-loading><text class="m-l-20 data-v-050b3881">加载中</text></view></block><block wx:else><block wx:if="{{!$root.g0}}"><view class="text-center p-50 data-v-050b3881"><view class="flex row-center data-v-050b3881"><u-image vue-id="{{('448d66e8-3')+','+('448d66e8-1')}}" src="/static/images/news_null.png" width="300" height="300" class="data-v-050b3881" bind:__l="__l"></u-image></view><view class="muted m-t-40 data-v-050b3881"> 还没有人评论呢, 快来抢沙发~ </view></view></block><block wx:else><block wx:for="{{commentData}}" wx:for-item="commentItem" wx:for-index="commentIndex" wx:key="id"><view data-event-opts="{{[['tap',[['onSelectComment',[commentIndex]]]]]}}" bindtap="__e" class="data-v-050b3881"><community-comment-list vue-id="{{('448d66e8-4-'+commentIndex)+','+('448d66e8-1')}}" comment="{{commentItem}}" data-event-opts="{{[['^reply',[['onReply']]]]}}" bind:reply="__e" class="data-v-050b3881" bind:__l="__l"></community-comment-list></view></block><block wx:if="{{more===1&&loading}}"><view class="flex row-center primary nd p-50 data-v-050b3881"><u-loading vue-id="{{('448d66e8-5')+','+('448d66e8-1')}}" color="{{colorConfig.primary}}" size="{{40}}" mode="circle" class="data-v-050b3881" bind:__l="__l"></u-loading><text class="m-l-20 data-v-050b3881">加载中</text></view></block><block wx:else><view class="text-center muted nd p-50 data-v-050b3881"><text class="data-v-050b3881">没有更多了~</text></view></block></block></block></scroll-view></view><view class="comment-footer m-t-8 flex row-between data-v-050b3881"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="flex-1 flex data-v-050b3881" bindtap="__e"><u-image vue-id="{{('448d66e8-6')+','+('448d66e8-1')}}" src="{{userInfo.avatar}}" width="60" height="60" borderRadius="50%" class="data-v-050b3881" bind:__l="__l"></u-image><view class="input nr muted data-v-050b3881">发表你的想法吧</view></view></view></view></u-popup><community-comment vue-id="448d66e8-7" communityId="{{id}}" safeAreaInsetBottom="{{true}}" value="{{showCommentPopup}}" data-event-opts="{{[['^change',[['changeComment']]],['^input',[['__set_model',['','showCommentPopup','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" class="data-v-050b3881" bind:__l="__l"></community-comment><community-comment vue-id="448d66e8-8" communityId="{{id}}" pid="{{childPid}}" placeholder="{{childPlaceholder}}" safeAreaInsetBottom="{{true}}" value="{{showCommentChildPopup}}" data-event-opts="{{[['^change',[['changeCommentChild']]],['^input',[['__set_model',['','showCommentChildPopup','$event',[]]]]]]}}" bind:change="__e" bind:input="__e" class="data-v-050b3881" bind:__l="__l"></community-comment></view>
|
||||
@ -0,0 +1 @@
|
||||
.bb.data-v-050b3881{border-bottom:1px solid #f6f6f6}.content.data-v-050b3881{width:100%;height:100%;position:relative;padding-bottom:calc(100rpx + env(safe-area-inset-bottom))}.content > view.data-v-050b3881{width:100%;position:fixed}.content .content-wrapper.data-v-050b3881{top:46px;height:700rpx}.content .content-wrapper scroll-view.data-v-050b3881{height:100%}.content .comment-footer.data-v-050b3881{bottom:0;height:92rpx;padding:0 30rpx;box-shadow:0 -4rpx 10rpx rgba(0,0,0,.1)}.content .comment-footer .input.data-v-050b3881{width:100%;margin-left:16rpx;border-radius:30rpx;background:#f8f8f8;padding:10rpx 30rpx}.content .comment-footer image.data-v-050b3881{width:44rpx;height:44rpx}
|
||||
Reference in New Issue
Block a user