topline_detail.wxml 2.3 KB
<!--pages/topline_detail/topline_detail.wxml-->
<view class='contnet'>
 <view class='title'>{{postdata.title}} </view>
 <view class='video_box' wx:if='{{postdata.video != null}}'>
  <video id="myVideo" src="{{postdata.video[0]}}"
   danmu-list="{{danmuList}}" poster='{{postdata.thumbnail1}}' enable-danmu danmu-btn controls></video>
 </view>
 <view class='content_img'  wx:else>
   <image src='{{postdata.thumbnail2}}'></image>
  </view>
 <view class='tipbox'>
  <view class='tipitem'>
   <view class='tip_left'>
    <view class='tip_img'>
     <image src='https://wxapp.xianghejia.cn/imgs/aicon14@2x.png'></image>
    </view>
    <text>活动时间</text>
   </view>
   <view class='txt_left'>{{postdata.time==null?'暂无':postdata.time}}</view>
  </view>
  <view class='tipitem' >
   <view class='tip_left'>
    <view class='tip_img'>
     <image src='https://wxapp.xianghejia.cn/imgs/aicon14@2x.png'></image>
    </view>
    <text>活动地点</text>
   </view>
   <view class='txt_left'>{{postdata.area==null?'暂无':postdata.area}}</view>
  </view>
  <view class='tipitem' >
   <view class='tip_left'>
    <view class='tip_img'>
     <image src='https://wxapp.xianghejia.cn/imgs/aicon14@2x.png'></image>
    </view>
    <text>活动主题</text>
   </view>
   <view class='txt_left'>{{postdata.theme==null?'暂无':postdata.theme}}</view>
  </view>
 </view>
 <view class='tip_content'>
  
  <view class='tip_mian'>
  <import src="../../wxParse/wxParse.wxml" />
  <template is='wxParse' data='{{wxParseData:content.nodes}}' />
  </view>
 </view>
 <view class='center_title'>评论区</view>

 <view class='assess_item' wx:for='{{postdata.comments}}' wx:key>
  <view class='header'>
   <view class='header_left'>
    <view class='headerimg'>
     <image src='{{item.avatar}}'></image>
    </view>
    <view>{{item.user_nickname}}</view>
   </view>
   <view class='assess_time'>{{item.create_time}}</view>
  </view>
  <view class='assess_main'>{{item.content}}</view>
  <view class='reply' wx:if='{{item.back != null}}'>小编回复:{{item.back}}</view>
 </view>
 <navigator class='int_btn' url="{{haspower?'/pages/submit_message/submit_message?id='+postdata.id:''}}" hover-class="other-navigator-hover">
  <button open-type='getUserInfo' bindgetuserinfo="start"  wx:if='{{!haspower}}' ></button>
  
 写评论</navigator>
</view>