article.wxml 3.7 KB

1
  1. <view class="content"><view class="text-box"><view class="text-title"><view class="text-1">{{artData.title}}</view><view class="text-2"><view class="name clamp">{{''+artData.mer.name+''}}</view><view class="gg"></view><view class="time">{{''+$root.f0+''}}</view><view class="gg"></view><view class="time">{{'已阅读 '+artData.visit+''}}</view></view></view><view data-event-opts="{{[['tap',[['navTo',['/pages/user/dydetail?id='+artData.mer.id]]]]]}}" class="text-content-title" bindtap="__e"><view class="title-left-box"><view class="image"><image src="{{artData.mer.headimg}}" mode></image></view><view class="title-left-box-content"><view class="title-left-box-name"><view class="name-title">{{''+artData.mer.name+''}}</view><block wx:if="{{artData.mer.is_sub==1}}"><view class="name-dingyue">已订阅</view></block><block wx:else><view class="name-dingyue">+订阅</view></block></view><view class="title-left-box-title"><text>{{"发表文章:"+artData.mer.count}}</text><text style="margin-left:20rpx;">{{"订阅:"+artData.mer.sub}}</text></view></view></view><view class="tt">></view></view><view class="content-content"><rich-text nodes="{{artData.content}}"></rich-text></view></view><block wx:if="{{plList.length>0}}"><view class="pinglun"><view class=" pinglun-box "><view class="pinglun-title">{{'评论交流('+plNum+')'}}</view><block wx:for="{{$root.l0}}" wx:for-item="plIemt" wx:for-index="__i0__"><block wx:if="{{isZhankai==true&&plIemt.$orig.user}}"><view><view class="pinglun-content"><view class="pinglun-content-left"><image src="{{plIemt.$orig.user.avatar}}" mode></image></view><view class="pinglun-content-right"><view class="pinglun-name">{{''+plIemt.$orig.user.nickname+''}}</view><view class="pinglun-tit">{{''+plIemt.$orig.content+''}}</view><view class="pinglun-time">{{''+plIemt.f1+''}}</view></view></view><block wx:if="{{plIemt.$orig.to.length>0}}"><view class="hf-wrap"><block wx:for="{{plIemt.$orig.to}}" wx:for-item="hfitem" wx:for-index="__i1__"><view class="hf"><text style="color:#3ea8cb;">回复</text>:<text>{{hfitem.content}}</text></view></block></view></block><block wx:if="{{plIemt.$orig.to.length>0}}"><view style="height:10rpx;"></view></block></view></block></block><view data-event-opts="{{[['tap',[['zhankai']]]]}}" class="zhankai" bindtap="__e"><block wx:if="{{isZhankai==true}}"><view class="all">收起</view></block><block wx:else><view class="all">展开全部</view></block><block wx:if="{{isZhankai==true}}"><image src="../../static/img/top.png" mode></image></block><block wx:else><image src="../../static/img/bottom.png" mode></image></block></view></view></view></block><view class="look"><view class=" look-box "><view class="look-title">相关阅读</view><block wx:for="{{xgList}}" wx:for-item="xgItem" wx:for-index="index"><view data-event-opts="{{[['tap',[['navTo',['/pages/user/article?id='+xgItem.id]]]]]}}" class="look-content" bindtap="__e"><view class="look-content-right"><view class="look-name">{{''+(index+1)+''}}</view><view class="look-tit clamp">{{''+xgItem.title+''}}</view></view><view class="look-time"></view></view></block></view></view><view class="pw"></view><view data-event-opts="{{[['tap',[['buy']]]]}}" class="send-box" bindtap="__e"><input class="input" type="text" value="{{myPl}}" placeholder="我来聊两句..." confirm-type="发布" data-event-opts="{{[['confirm',[['subPl',['$event']]]],['input',[['__set_model',['','myPl','$event',[]]]]]]}}" bindconfirm="__e" bindinput="__e"/><image src="../../static/img/dianzan.png" mode data-event-opts="{{[['tap',[['dianZan',['$event']]]]]}}" bindtap="__e"></image><text data-event-opts="{{[['tap',[['subPl',['$event']]]]]}}" style="color:#999;font-weight:bold;font-size:28rpx;" bindtap="__e">发布</text></view></view>