topline_detail.wxml
2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!--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>