enterprise.wxml
4.9 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<view class="nav mainindex_nav top">
<view wx:for="{{navbar}}" data-idx="{{index}}" class="nav_item {{currentTab==index ? 'active' : ''}}" wx:key="unique" bindtap="navbarTap" data-categoryid="{{item.id}}">{{item.name}}</view>
</view>
<scroll-view wx:if='{{auth=="2"}}' style='height:{{winHeight}}px' scroll-y="true">
<view class="none-box" hidden="{{!ifData}}">
<view>暂无相关咨询</view>
</view>
<view class='box_left' wx:if="{{currentTab==0}}">
<view class='mid' bindtap="jump" hidden='{{ifData}}'>
<view class='mid_item' wx:for='{{zixunList}}' wx:key=''>
<view class='mid_item_left'>
<image src='../../images/tishi@3x.png'></image>
</view>
<view class='mid_item_right'>
<view class='mid_item_right_top'>
{{item.question}}?
<view class='mid_label' hidden='{{item.is_show_state}}'>
<image src='../../images/huifujishi@3x.png' wx:if="{{item.state==1}}"></image>
<image src='../../images/huifuyiban@3x.png' wx:elif='{{item.state==2}}'></image>
<image src='../../images/huifuzhihuan @3x.png' wx:elif='{{item.state==3}}'></image>
</view>
</view>
<view class='mid_item_right_bottom'>
发布时间: {{item.create_time_text}}
</view>
<!-- 回复 -->
<view class='response_box' hidden='{{item.state==0}}'>
<!-- 回复内容 -->
<view class='mid_item_right_response'>
<text class='color_blue'>回复:</text> {{item.reply}}
</view>
<!-- 回复时间 -->
<view class='mid_item_right_bottom'>
回复时间:{{item.reply_time_text}}
</view>
</view>
<view class='waiting_response' hidden='{{item.state!=0}}'>
等待回复中.....
</view>
</view>
</view>
</view>
<!-- 提问 -->
<view class='bottom' hidden='{{show}}'>
<view class='bottom_question' bindtap='askQuestion'>
提问
</view>
</view>
</view>
<!-- 企话吧 -->
<view class='box_right' wx:if="{{currentTab==1}}">
<view class='mid'>
<!-- 标题 -->
<view class='mid_title'>
有一条新评论 >
</view>
<!-- 条目 -->
<view class='mid_item' wx:for='{{postList}}' wx:key=''>
<view class='mid_item_top'>
<view class='mid_item_top_left'>
<!-- 图片 -->
<view class='mid_item_top_left_pic'>
<image src='{{item.avatar||"../../images/03_nav@2x.png"}}'></image>
</view>
<!-- 文字 -->
<view class='mid_item_top_left_text'>
{{item.title}}
</view>
</view>
<view class='mid_item_top_right'>
{{item.create_time_text}}
</view>
</view>
<!-- 文字内容 -->
<view class='mid_item_text'>
{{item.content}}
</view>
<!-- 图片 -->
<view class='mid_pic_box'>
<view class='mid_pic_box_item'>
<image src='../../images/weirenzheng@3x.png'></image>
</view>
<view class='mid_pic_box_item'>
<image src='../../images/weirenzheng@3x.png'></image>
</view>
<view class='mid_pic_box_item'>
<image src='../../images/weirenzheng@3x.png'></image>
</view>
</view>
<!-- 底部 -->
<view class='mid_item_like'>
<view class='mid_item_like_left' hidden='{{item.is_can_del=="0"}}' id='{{item.id}}' bindtap='delete'>
删除
</view>
<view class='mid_item_like_right'>
<!-- 点赞 -->
<view class='mid_like color_blue'>
<image src='../../images/thumb-up-button@3x.png'></image>
</view>
<!-- 数量 -->
<view class='mid_number color_blue'>
{{item.likes}}
</view>
<!-- 点赞 -->
<view class='mid_like'>
<image src='../../images/pinglun@3x.png'></image>
</view>
<!-- 数量 -->
<view class='mid_number'>
{{item.comment_count}}
</view>
</view>
</view>
</view>
</view>
</view>
</scroll-view>
<!-- 没有权限 -->
<view class='null_data_box' wx:else>
<view class='data_box'>
<image src='/images/weirenzheng@2x.png'></image>
<view class='list_btn' bindtap='open_btn' data-type='auth' bindtap='renzheng'>{{auth=='0'?'开通企业认证 >':auth=='1'?'企业认证中 请等待':""}}</view>
<view wx:if='{{auth=="0"}}'> ~~ 企业认证后开启更多服务 ~~</view>
</view>
</view>