纸通宝小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

46 lines
2.7 KiB

<!--pages/main/index.wxml-->
<wxs module="moment" src="../index.wxs"></wxs>
<view class="cu-item shadow bg-white" bindtap="lookItem">
<view class="flex flex-justify" style="padding:20rpx 32rpx">
<view class="flex" style="justify-content: flex-start;">
<wux-image width="{{50}}" height="{{50}}" shape="circle" src="{{item.creatorAvatarUrl}}" mode="aspectFill">
<image class="image-load" slot="loading" src="/assets/image/ygImg.png"></image>
<image class="image-load" slot="error" src="/assets/image/ygImg.png"></image>
<image class="image-load" slot="empty" src="/assets/image/ygImg.png"></image>
</wux-image>
<view class="flex flex-column" style="margin-left:20rpx;justify-content: center">
<view class="text-cut text-df" style="max-width:480rpx">{{item.creatorName || ''}}</view>
<view class="text-gray text-sm" style="margin-top:4rpx">{{moment.formatMTime(item.createTime)}}</view>
</view>
</view>
</view>
<view class="text-black text-bold text-lg" style="padding:0rpx 32rpx 20rpx 32rpx">{{item.title}}</view>
<fold-text content="{{item.content}}"></fold-text>
<view class="imgZt" style="padding:0rpx 32rpx;margin-top:16rpx" wx:if="{{item.imageUrlList.length}}">
<!-- <sudoku-image image-list="{{item.imageUrlList}}"></sudoku-image> -->
<view class="bottomViewRight" wx:for="{{ item.imageUrlList }}" wx:for-item="option" wx:for-index="optionIndex" wx:key="optionIndex" >
<image style="margin-left:10rpx" class="bottomViewRightImg" src="{{option}}" mode="widthFix"></image>
</view>
</view>
<view class="flex flex-justify text-black" style="height:112rpx; padding:0rpx 32rpx">
<view>
<wux-tag wx:if="{{item.millPaperId}}" bind:click="toMill">
<text style="background-color:#ddd;border-radius: 32rpx;text-align: center;width:32rpx;height:32rpx;line-height:32rpx">#</text>
<text class="text-df text-cut" style="margin-left:16rpx;max-width:340rpx">{{item.millPaperName}}</text>
<text class="cuIcon-right text-balck" style="font-size:24rpx;margin-left:12rpx;padding-top:2rpx"></text>
</wux-tag>
</view>
<view class="flex flex-center text-df">
<view class="flex flex-center" catchtap="likeItem">
<image style="width:40rpx;height:38rpx" src="/assets/image/prase_blue.png" wx:if="{{item.isLiked}}"></image>
<image style="width:40rpx;height:38rpx" src="/assets/image/prase_black.png" wx:else></image>
<text class="text-df" style="margin-left:12rpx">{{item.likeQuantity}}</text>
</view>
<view class="flex flex-center" style="margin-left:48rpx;">
<image style="width:42rpx;height:34rpx" src="/assets/image/message_black.png"></image>
<text style="margin-left:12rpx">{{item.replyQuantity}}</text>
</view>
</view>
</view>
</view>