detail.wxml 1.2 KB
<import src="../../wxParse/wxParse.wxml" />

<!-- <view class="video" wx:if="{{detail.video!=''}}">
  <video  id="myvideo" src="{{detail.video}}"  bindended="end"  id='myvideo' ></video>
</view> -->
<view class="commonpadding">
  <view class="title commontwo">
    {{detail.title}}
  </view>
  <view class="date">{{detail.author}}
    <text class="timename">{{detail.createtime}}</text> </view>
  <view class="text commontwo">
  <rich-text  nodes="{{text}}"></rich-text>
    <!-- <template is="wxParse" data="{{wxParseData:article.nodes}}" /> -->
  </view>

  <!-- 回复 -->
  <view class="recommond" wx:if="{{detail.reply!=''}}">
    <text class="answer">回复</text> {{detail.reply}}

    <view class="replytime">{{detail.replytime}}</view>
  </view>

</view>

<!-- <view class="shoubox">
  <view class="shou flexthree {{detail.is_favorite==1?'yishou':''}}" bindtap="{{detail.is_favorite==0?'collect':'cancelcollect'}}">
    <view class="shouimg">
      <image src="/img/yishou.png" wx:if="{{detail.is_favorite==1}}"></image>
      <image src="/img/noshou.png" wx:else></image>
    </view>
    <view class="shoutext" wx:if="{{detail.is_favorite==0}}">收藏</view>
    <view class="shoutext yishouactive" wx:else>取消收藏</view>
  </view>
</view> -->