1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <block wx:if="{{garden_id}}">
- <view class="containt">
- <block wx:if="{{article_list.length>0}}">
- <block wx:for="{{article_list}}" wx:key="id">
- <view class="article">
- <view class="article_title">
- <image src="{{item.user_icon}}" />
- <view class="article_name">
- <view class="deleteIcon">
- <text class="nick_name">{{item.nick_name}}</text>
- </view>
- <text class="article_create_at">{{item.created_at}}</text>
- </view>
- </view>
- <view style="padding: 20rpx 0;margin:20rpx 0;display: flex;flex-direction: column;" data-item="{{item}}">
- <text style="width: 100%;">{{item.content}}</text>
- <view class="article_pics">
- <block wx:for="{{item.pics}}" wx:key="index" wx:for-item="key">
- <image wx:if="{{key}}" src="{{key}}" bindtap="previewImage" data-index="{{index}}" id="{{item.id}}" />
- </block>
- </view>
- </view>
- <view class="article_likes">
- <view class="align">
- <block wx:for="{{class_list}}" wx:key="class_name" wx:for-item="name">
- <image wx:if="{{item.class_id==name.id}}" src="{{name.class_pic}}" />
- <text wx:if="{{item.class_id==name.id}}">{{name.class_name}}</text>
- </block>
- </view>
- <view class="counts">
- <view class="align" bindtap="goDetail" data-item="{{item}}">
- <image src="http://ro7r875ut.hn-bkt.clouddn.com/liaotian1.png" />
- <text class="comment_count">{{item.comment_count}}</text>
- </view>
- <view class="align" wx:if="{{item.like}}" bindtap="like" data-like="{{item.like}}" data-like_id="{{item.id}}" data-like_type="1">
- <image src="http://ro7r875ut.hn-bkt.clouddn.com/yidianzan.png" />
- <text>{{item.likes}}</text>
- </view>
- <view class="align" wx:else="" bindtap="like" data-like="{{item.like}}" data-like_id="{{item.id}}" data-like_type='1'>
- <image src="http://ro7r875ut.hn-bkt.clouddn.com/dianzan.png" />
- <text>{{item.likes}}</text>
- </view>
- </view>
- </view>
- </view>
- </block>
- </block>
- <block wx:else="">
- <nodata />
- </block>
- </view>
- <view class="addPic">
- <image src="http://ro7r875ut.hn-bkt.clouddn.com/-.png" bindtap="goAddArticle" />
- </view>
- </block>
- <block wx:else="">
- <nopermission />
- </block>
- <tabbar tabbar="{{tabbar}}" unreadCount="{{unreadCountNeig}}">
- </tabbar>
|