12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <!--compontents/chat/chat.wxml-->
- <view class="works">
- <view class="title">
- <image src="../../pages/image/xing.png" class="xing"></image>
- <text class="">{{title}}</text>
- <image src="../../pages/image/xing.png" class="xing"></image>
- <text class="uploading" bindtap="uploadImage" wx:if="{{productionData.list && query}}">{{query}}</text>
- </view>
- <view wx:if="{{productionData.list}}">
- <view class="share-con" wx:for="{{productionData.list}}" wx:key="{{index}}">
- <view bindtap="particulars" data-postsId="{{item.id}}" data-type="{{type}}">
- <view class="head">
- <view class="head-img">
- <image src="{{item.featureMap.headImgUrl}}"></image>
- </view>
- <view class="lesson-name">
- <text style="width: 40%; overflow: hidden; diaplay: inline-block; height: 50rpx; text-overflow: ellipsis; white-space:nowrap;">{{item.featureMap.wechatName}}</text>
- <text style="height: 30rpx; display: block;">{{timeList[index]}}</text>
- <text class="content-data" style="display: block; color: #000; font-size: 36rpx;">{{item.title}}</text>
- </view>
- <view wx:if="{{type == 1 && (item.currentReplyCount > 0)}}" class="message"></view>
- </view>
- <view class="operation" wx:if="{{teacher == 1}}">
- <image src="../../pages/image/del.png" catchtap="setMessage" data-id="{{item.id}}" data-type="status" data-ind="{{index}}"></image>
- <image src="../../pages/image/{{item.isTop > 0 ? 'top2' : 'top1'}}.png" catchtap="setMessage" data-top="{{item.isTop}}" data-id="{{item.id}}" data-type="isTop" data-ind="{{index}}"></image>
- </view>
- <view class="picture" wx:if="{{type == 2}}">
- <block wx:for="{{item.imagesList}}" wx:for-item="items" wx:key="{{items}}">
- <image mode="aspectFill" src="{{items}}" catchtap="listenerButtonPreviewImage" data-img="{{item.imagesList}}" data-index="{{index}}" bindload="imageLoad"></image>
- </block>
- </view>
- <view class="icon" wx:if="{{type == 2}}">
- <view>
- <image src="../../pages/image/zan.png" class="zan"></image>
- <text>{{item.postsAttributeInfo ? item.postsAttributeInfo.favors : '0'}}</text>
- </view>
- <view>
- <image src="../../pages/image/weatch.png" class="weatch"></image>
- <text>{{item.postsAttributeInfo ? item.postsAttributeInfo.views : '0'}}</text>
- </view>
- <view>
- <image src="../../pages/image/discuss.png" class="discuss"></image>
- <text>{{item.replyCount}}</text>
- </view>
- </view>
- </view>
- <!--分享按钮 -->
- <view class="share-up-box" wx:if="{{type == 2}}" bindtap="shareImage" data-postsId="{{item.id}}" data-imgUrl="{{item.imagesList}}" data-featureMap="{{item.featureMap}}" data-title="{{item.title}}">
- <image class="share_up" src="../../pages/image/share_up.png"></image>
- </view>
- </view>
- <view class="more" wx:if="{{more}}" bindtap="examine">查看更多</view>
- </view>
- <view class="no-con" wx:if="{{(productionData.list.length === 0) && type == 2}}">
- <view class="state">你还没有上传作品</view>
- <view class="upload-works" bindtap="uploadImage">
- <image src="../../pages/image/work_box.png" class="work-box"></image>
- <image src="../../pages/image/uploading_works.png" class="uploading-works"></image>
- <text>上传作品</text>
- </view>
- </view>
- <view class="no-con" wx:if="{{(productionData.list.length === 0) && type == 1}}">
- <view class="state">你还没有提问过问题</view>
- <view class="upload-works" bindtap="uploadImage">
- <image src="../../pages/image/work_box.png" class="work-box"></image>
- <image src="../../pages/image/questions.png" class="uploading-works"></image>
- <text>提问问题</text>
- </view>
- </view>
- </view>
- <share wx:if="{{type == 2}}" id="share"/>
|