|
|
|
@ -17,7 +17,8 @@ |
|
|
|
</wux-image> |
|
|
|
<view class="text-cut text-df" style="max-width:400rpx;margin-left:12rpx">{{momentDetail.creatorName || ''}}</view> |
|
|
|
<view class="text-black" style="border-left:2rpx solid #999999;margin-left:12rpx;height:24rpx;"></view> |
|
|
|
<view class="text-cut text-df text-gray" style="max-width:400rpx;margin-left:12rpx">{{momentDetail.createTime}}</view> |
|
|
|
<view class="text-cut text-df text-gray" style="max-width:400rpx;margin-left:12rpx">{{momentDetail.createTime}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="bg-white" wx:if="{{momentDetail.labelList.length}}" style="padding-left:30rpx"> |
|
|
|
<wux-tag wx:for="{{momentDetail.labelList}}" wx:key="index" color="blue">{{item}}</wux-tag> |
|
|
|
@ -32,11 +33,12 @@ |
|
|
|
</view> |
|
|
|
<view wx:if="{{momentDetail.millPaperId}}" style="padding: 0rpx 32rpx 20rpx 32rpx"> |
|
|
|
<wux-tag bind:click="toMill"> |
|
|
|
<text style="background-color:#ddd;border-radius: 32rpx;text-align: center;width:32rpx;height:32rpx;line-height:32rpx">#</text> |
|
|
|
<text |
|
|
|
style="background-color:#ddd;border-radius: 32rpx;text-align: center;width:32rpx;height:32rpx;line-height:32rpx">#</text> |
|
|
|
<text class="text-df" style="margin-left:16rpx">{{momentDetail.millPaperName}}</text> |
|
|
|
<text class="cuIcon-right text-balck" style="font-size:24rpx;margin-left:32rpx;padding-top:2rpx"></text> |
|
|
|
</wux-tag> |
|
|
|
</view> |
|
|
|
</wux-tag> |
|
|
|
</view> |
|
|
|
<view style="height:20rpx;width:750rpx;background-color:#f3f3f3"></view> |
|
|
|
<view class="text-bold text-lg" style="padding:36rpx 30rpx 10rpx 30rpx">评论</view> |
|
|
|
<view class="bg-white list-empty" style="height:400rpx" wx:if="{{!commentList.length}}"> |
|
|
|
@ -45,19 +47,24 @@ |
|
|
|
<view class="text-empty" style="margin-top:32rpx">{{requesting? '正在加载' : '暂无评论'}}</view> |
|
|
|
</view> |
|
|
|
<view wx:else> |
|
|
|
<view wx:for-item="pageItem" class="cu-list menu-avatar comment" wx:for-index="pageIndex" wx:for="{{commentList}}" wx:key="pageIndex"> |
|
|
|
<view wx:for-item="pageItem" class="cu-list menu-avatar comment" wx:for-index="pageIndex" |
|
|
|
wx:for="{{commentList}}" wx:key="pageIndex"> |
|
|
|
<view wx:for="{{pageItem}}" wx:key="index" class="cu-item" style="padding:30rpx;align-items: flex-start"> |
|
|
|
<wux-image width="{{40}}" height="{{40}}" shape="circle" src="{{item.replierAvatarUrl}}" mode="aspectFill"> |
|
|
|
<image class="image-load" style="width:40px;height:40px" slot="loading" src="/assets/image/ygImg.png"></image> |
|
|
|
<image class="image-load" style="width:40px;height:40px" slot="error" src="/assets/image/ygImg.png"></image> |
|
|
|
<image class="image-load" style="width:40px;height:40px" slot="empty" src="/assets/image/ygImg.png"></image> |
|
|
|
<image class="image-load" style="width:40px;height:40px" slot="loading" src="/assets/image/ygImg.png"> |
|
|
|
</image> |
|
|
|
<image class="image-load" style="width:40px;height:40px" slot="error" src="/assets/image/ygImg.png"> |
|
|
|
</image> |
|
|
|
<image class="image-load" style="width:40px;height:40px" slot="empty" src="/assets/image/ygImg.png"> |
|
|
|
</image> |
|
|
|
</wux-image> |
|
|
|
<view class="content" style="padding-left:20rpx"> |
|
|
|
<view class="flex flex-justify text-black"> |
|
|
|
<view class="text-gray text-cut" style="width: 160px">{{item.replierNickname}}</view> |
|
|
|
<view data-page="{{pageIndex}}" data-index="{{index}}" bindtap="postLikeComment"> |
|
|
|
<text class="text-df text-black" style="margin-right:4rpx">{{item.likeQuantity || '赞'}}</text> |
|
|
|
<text class="cuIcon-appreciate{{item.isLiked ? 'fill' : ''}} text-{{item.isLiked ? 'blue' : 'gray'}}"></text> |
|
|
|
<text |
|
|
|
class="cuIcon-appreciate{{item.isLiked ? 'fill' : ''}} text-{{item.isLiked ? 'blue' : 'gray'}}"></text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="text-black text-content text-df">{{item.content}}</view> |
|
|
|
@ -73,7 +80,8 @@ |
|
|
|
</scroll-view> |
|
|
|
|
|
|
|
<view class="cu-bar foot input" style="bottom:{{inputBottom}}px" wx:if="{{momentDetail}}"> |
|
|
|
<view class="flex flex-center" style="height:{{100 + safeBottom}}rpx;padding-bottom: {{safeBottom}}rpx;" wx:if="{{!focus}}"> |
|
|
|
<view class="flex flex-center" style="height:{{100 + safeBottom}}rpx;padding-bottom: {{safeBottom}}rpx;" |
|
|
|
wx:if="{{!focus}}"> |
|
|
|
<view class="search-form" style="border-radius: 12rpx;width:370rpx;margin-left: 32rpx" bindtap="showComment"> |
|
|
|
<input placeholder="点击输入评论" disabled="true" adjust-position="{{false}}" focus="{{false}}"></input> |
|
|
|
</view> |
|
|
|
@ -84,7 +92,8 @@ |
|
|
|
</view> |
|
|
|
<view class="action" bindtap="likePost" style="margin-right:24rpx"> |
|
|
|
<wux-badge count="{{momentDetail.likeQuantity}}" top="-8" right="-8" overflowCount="999"> |
|
|
|
<image style="width:40rpx;height:38rpx" src="/assets/image/prase_blue.png" wx:if="{{momentDetail.isLiked}}"></image> |
|
|
|
<image style="width:40rpx;height:38rpx" src="/assets/image/prase_blue.png" wx:if="{{momentDetail.isLiked}}"> |
|
|
|
</image> |
|
|
|
<image style="width:40rpx;height:38rpx" src="/assets/image/prase_black.png" wx:else></image> |
|
|
|
</wux-badge> |
|
|
|
</view> |
|
|
|
@ -101,71 +110,89 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view style="padding:30rpx 10rpx 30rpx 30rpx;width:100%" wx:else> |
|
|
|
<textarea id="content" maxlength="180" style="height:160rpx;width:100%" focus="{{focus}}" cursor-spacing="40" show-confirm-bar="{{false}}" adjust-position="{{false}}" bindinput="bindInput" placeholder="输入评论,最多180字" placeholder-style="color:#aaa" bindfocus="inputFocus" bindblur="inputBlur"></textarea> |
|
|
|
<textarea id="content" maxlength="180" style="height:160rpx;width:100%" focus="{{focus}}" cursor-spacing="40" |
|
|
|
show-confirm-bar="{{false}}" adjust-position="{{false}}" bindinput="bindInput" placeholder="输入评论,最多180字" |
|
|
|
placeholder-style="color:#aaa" bindfocus="inputFocus" bindblur="inputBlur"></textarea> |
|
|
|
<view class="flex" style="justify-content: flex-end;"> |
|
|
|
<button class="cu-btn offer-btn" style="background-color: #008AFF" bindtap="submitComment">发表</button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!--生成海报 bindtap='baocun' --> |
|
|
|
<view class='imagePathBox' hidden="{{maskHidden == false}}"> |
|
|
|
<!-- <image src="{{imagePath}}" class='shengcheng'></image> --> |
|
|
|
<!-- <view class='baocun'></view> --> |
|
|
|
<view class='shengcheng2'> |
|
|
|
<view class="topImg"> |
|
|
|
<image src="/assets/image/im_poster_header_no_title.png" style="width:100%;height:100%"></image> |
|
|
|
<!--生成海报 bindtap='baocun' --> |
|
|
|
<view class='imagePathBox' hidden="{{maskHidden == false}}"> |
|
|
|
<image src="{{imagePathHb}}" class='shengcheng'></image> |
|
|
|
<!-- <view class='baocun'></view> --> |
|
|
|
<view class='shengcheng2'> |
|
|
|
<view class="topImg"> |
|
|
|
<image wx:if="{momentDetail.millPaperName}" src="/assets/image/img_poster_header_has_title.png" |
|
|
|
style="width:100%;height:100%"></image> |
|
|
|
<image wx:else src="/assets/image/im_poster_header_no_title.png" style="width:100%;height:100%"></image> |
|
|
|
<view wx:if="{momentDetail.millPaperName}" class="titleTextArea"><text>{{momentDetail.millPaperName}}</text> |
|
|
|
</view> |
|
|
|
<view class="contentText"> |
|
|
|
<image src="/assets/image/img_poster_bg.png" style="width:100%;height:100%"></image> |
|
|
|
</view> |
|
|
|
<view class="footzt"> |
|
|
|
<view class="footImg1"> |
|
|
|
<image src="/assets/image/img_poster_footer.png" style="width:100%;height:100%"></image> |
|
|
|
|
|
|
|
</view> |
|
|
|
<view class="contentText"> |
|
|
|
<image src="/assets/image/img_poster_bg.png" style="width:100%;height:100%"></image> |
|
|
|
<view class="contentTextArea"> |
|
|
|
<view class="contentTextAreaTopTitle"> |
|
|
|
<text>{{momentDetail.title}}</text> |
|
|
|
</view> |
|
|
|
<view class="footImg2"> |
|
|
|
<view class="footIcon"> |
|
|
|
<view class="footSmallIconArea"> |
|
|
|
<view class="footSmallIcon"> |
|
|
|
<image src="/assets/image/ic_save_poster.png" style="width:100%;height:100%"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="footSmalltextArea"> |
|
|
|
<view class="footSmalltext">保存相册</view> |
|
|
|
<view class="contentTextAreaMidContent"> |
|
|
|
<text>{{momentDetail.content}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="footzt"> |
|
|
|
<view class="footImg1"> |
|
|
|
<image src="/assets/image/img_poster_footer.png" style="width:100%;height:100%"></image> |
|
|
|
</view> |
|
|
|
<view class="footImg2"> |
|
|
|
<view class="footIcon" bindtap='baocun'> |
|
|
|
<view class="footSmallIconArea"> |
|
|
|
<view class="footSmallIcon"> |
|
|
|
<image src="/assets/image/ic_save_poster.png" style="width:100%;height:100%"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="footIcon" style="margin-left:15rpx"> |
|
|
|
<view class="footSmallIconArea"> |
|
|
|
<view class="footSmallIcon"> |
|
|
|
<image src="/assets/image/weixinicon.png" style="width:100%;height:100%"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="footSmalltextArea"> |
|
|
|
<view class="footSmalltext">微信</view> |
|
|
|
</view> |
|
|
|
<view class="footSmalltextArea"> |
|
|
|
<view class="footSmalltext">保存相册</view> |
|
|
|
</view> |
|
|
|
<view class="footIcon" style="margin-left:15rpx"> |
|
|
|
<view class="footSmallIconArea"> |
|
|
|
<view class="footSmallIcon"><image src="/assets/image/pyqicon.png" style="width:100%;height:100%"></image> </view> |
|
|
|
</view> |
|
|
|
<view class="footSmalltextArea"> |
|
|
|
<view class="footSmalltext">朋友圈</view> |
|
|
|
</view> |
|
|
|
<view class="footIcon" style="margin-left:15rpx" > |
|
|
|
<view class="footSmallIconArea"> |
|
|
|
<view class="footSmallIcon"> |
|
|
|
<button open-type="share" class="share-btn"> |
|
|
|
<image src="/assets/image/weixinicon.png" style="width:100%;height:100%"></image> |
|
|
|
</button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="footIcon" style="margin-left:147rpx" bindtap='baocun'> |
|
|
|
<view class="footSmallIconArea"> |
|
|
|
<view class="footSmallIcon"> |
|
|
|
<text class="cuIcon-close" style="font-size:62rpx"></text> |
|
|
|
</view> |
|
|
|
<view class="footSmalltextArea"> |
|
|
|
<view class="footSmalltext">微信</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="footIcon" style="margin-left:15rpx" bindtap='onShareTimeline'> |
|
|
|
<view class="footSmallIconArea"> |
|
|
|
<view class="footSmallIcon"> |
|
|
|
<image src="/assets/image/pyqicon.png" style="width:100%;height:100%"></image> |
|
|
|
</view> |
|
|
|
<view class="footSmalltextArea"> |
|
|
|
<view class="footSmalltext">关闭</view> |
|
|
|
</view> |
|
|
|
<view class="footSmalltextArea"> |
|
|
|
<view class="footSmalltext">朋友圈</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="footIcon" style="margin-left:147rpx" bindtap='coloseHb'> |
|
|
|
<view class="footSmallIconArea"> |
|
|
|
<view class="footSmallIcon"> |
|
|
|
<text class="cuIcon-close" style="font-size:62rpx"></text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="footSmalltextArea"> |
|
|
|
<view class="footSmalltext">关闭</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="canvas-box"> |
|
|
|
<canvas style="width: 375px;height: 667px;position:fixed;top:9999px" canvas-id="mycanvas"/> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="canvas-box"> |
|
|
|
<canvas style="width: 375px;height: 667px;position:fixed;top:9999px" canvas-id="mycanvas" /> |
|
|
|
</view> |
|
|
|
</view> |