enterprise.wxml 5.0 KB
<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"}}' class='main_container' style='height:{{winHeight}}px' scroll-y="true" bindscrolltolower='getMore'>
  <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' wx:if='{{item.is_like==1}}'></image>
              <image src='../../images/dainzan@3x.png' 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'>
              {{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>