yaofang/pages/wall/wall_detail.wxml

38 lines
2.9 KiB
Plaintext

<view class="container" wx:if="{{isProduct}}">
<wall bind:__l="__l" isRedirect="{{0}}" item="{{item}}" vueId="67f656a8-1"></wall>
<uni-section bind:__l="__l" title="评论" type="line" vueId="67f656a8-2" vueSlots="{{['default']}}">
<comment bind:__l="__l" detail_id="{{id}}" item="{{comment}}" vueId="{{'67f656a8-3-'+k+','+'67f656a8-2'}}" wx:for="{{commentObj.list}}" wx:for-index="k" wx:for-item="comment"></comment>
<view class="listDesc">{{commentObj.message}}</view>
</uni-section>
<view style="height:100px;"></view>
<view class="uni-flex uni-row bottom-actions">
<view class="bottom-comment-wrap">
<input bindtap="__e" class="uni-input bottom-comment" data-event-opts="{{[ [ 'tap',[ [ 'showCommentWrap',[0,0] ] ] ] ]}}" placeholder="友善评论"></input>
</view>
<view class="card-actions" slot="actions">
<view class="card-actions-item">
<uni-icons bind:__l="__l" color="#999" size="18" type="chatbubble" vueId="67f656a8-4"></uni-icons>
<text class="card-actions-item-text">{{item.comment_num}}</text>
</view>
<view class="card-actions-item">
<uni-icons bind:__l="__l" color="#999" size="18" type="redo" vueId="67f656a8-5"></uni-icons>
<text class="card-actions-item-text">{{item.share_num}}</text>
</view>
<view catchtap="__e" class="card-actions-item" data-event-opts="{{[ [ 'tap',[ [ 'commentLike',['like',1] ] ] ] ]}}">
<uni-icons bind:__l="__l" color="#007aff" size="18" type="hand-up" vueId="67f656a8-6" wx:if="{{item.is_like==1}}"></uni-icons>
<uni-icons bind:__l="__l" color="#999" size="18" type="hand-up" vueId="67f656a8-7" wx:else></uni-icons>
<text class="card-actions-item-text" style="color:#007aff;" wx:if="{{item.is_like==1}}">{{item.like_num}}</text>
<text class="card-actions-item-text" wx:else>{{item.like_num}}</text>
</view>
</view>
</view>
<view class="uni-flex uni-column bottom-actions comment-action-wrap" wx:if="{{showComment}}">
<textarea bindautoFocus="__e" bindinput="__e" class="comment-textarea" data-event-opts="{{[ [ 'auto-focus',[ [ 'e0',['$event'] ] ] ],[ 'input',[ [ '__set_model',[ '$0','content','$event',[] ],['baseForm'] ] ] ] ]}}" maxlength="255" placeholder="评论连接你我他,文明靠大家" value="{{baseForm.content}}"></textarea>
<view class="comment-button-wrap">
<button bindtap="__e" class="flex-item" data-event-opts="{{[ [ 'tap',[ ['comment'] ] ] ]}}" size="mini" type="primary">提交</button>
<button bindtap="__e" class="flex-item" data-event-opts="{{[ [ 'tap',[ ['cancelComment'] ] ] ]}}" size="mini" type="default">取消</button>
</view>
</view>
<boot-nav bind:__l="__l" nav="wall" vueId="67f656a8-8"></boot-nav>
</view>