enterprise.wxml
5.0 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
<!-- <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> -->
<view wx:if='{{auth=="2"}}' class='main_container' style='height:{{winHeight}}px' >
<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}}
</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}}
</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='add_notice' bindtap='subArticle'>
<image src='../../images/add.png' mode='widthFix'></image>
</view>
<view class='mid'>
<!-- 标题 -->
<view class='mid_title' hidden='{{!comment}}'>
有{{comment.length}}条新评论 >
</view>
<!-- 条目 -->
<view class='mid_item' wx:for='{{postList}}' wx:key=''>
<view class='mid_item_top' bindtap='navdetail' id='{{item.id}}'>
<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' bindtap='navdetail' id='{{item.id}}'>
{{item.content}}
</view>
<!-- 图片 -->
<view class='mid_pic_box' wx:if='{{item.images!=""}}' bindtap='navdetail' id='{{item.id}}'>
<view class='mid_pic_box_item' wx:for="{{item.images}}" wx:key='' wx:for-item='sec'>
<image src='{{sec}}'></image>
</view>
</view>
<!-- 底部 -->
<view class='mid_item_like'>
<view class='mid_item_like_left'>
<text hidden='{{item.is_can_del=="0"}}' id='{{item.id}}' bindtap='delArticle' data-indx='{{index}}'>删除</text>
</view>
<view class='mid_item_like_right'>
<!-- 点赞 -->
<view class='mid_like color_blue' bindtap='zan' id='{{item.id}}' data-idx='{{index}}' data-type='{{item.is_like}}'>
<image src='../../images/thumb-up-button@3x.png' class='zan' wx:if='{{item.is_like==1}}'></image>
<image src='../../images/dainzan@3x.png' class='zan' wx:else></image>
</view>
<view class='mid_number color_blue'>
{{item.likes}}
</view>
<!-- 评论 -->
<view class='mid_like' bindtap='navdetail' id='{{item.id}}'>
<image src='../../images/pinglun@3x.png'></image>
</view>
<view class='mid_number commentCount'>
{{item.comment_count}}
</view>
</view>
</view>
</view>
</view>
</view>
</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>