enterprise.wxml 4.9 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"}}' 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>