<!--index.wxml-->
<view class="top">
  <view class="logo">
    <image src="../../images/logo.png" ></image>
    <view>巴中逸沣安全培训</view>
    <text>BA ZHONG YIFENG SAFETY TRAINING</text>
  </view>
  <view wx:if="{{data.length>0}}" class="marquee_container" style="--marqueeWidth--:-12em">
    <view class="zd"></view>
    <image src="../../images/tt.png" mode="widthFix"></image>
      <view class="marquee_text">
        <navigator url="../intro/intro?id={{item.id}}&type=1" wx:for="{{news}}">{{item.title}}</navigator>
      </view>
  </view>
  <block wx:for="{{data}}" wx:key='*this'>
  <navigator class="part" wx:if="{{item.type == 'nav'}}" open-type="{{item.name == '在线报名'||item.name=='立即报名'?'switchTab':'navigate'}}"  url="..{{item.path}}">
    <view style="font-weight:bold;">{{item.name}}</view>
    <text style="color:#358BFF;">{{item.desc}}</text>
    <!-- <image src="{{item.icon}}" mode="widthFix"></image> -->
    <image src="../../images/ysjt.png" mode="widthFix"></image>
  </navigator>
  </block>
  <!-- <navigator  open-type="switchTab" class="part">
    <view>机构介绍</view>
    <text>机构介绍</text>
    <image src="../../images/机构介绍.png" mode="widthFix"></image>
  </navigator>
  <navigator url="../apply/apply" open-type="switchTab" class="part">
    <view>在线报名</view>
    <text>在线报名</text>
    <image src="../../images/在线报名.png" mode="widthFix"></image>
  </navigator>
  <navigator class="part">
    <view>考场介绍</view>
    <text>考场介绍</text>
    <image src="../../images/考场介绍.png" mode="widthFix"></image>
  </navigator>
  <navigator class="part"  url="../online/online" >
    <view>在线培训</view>
    <text>在线培训</text>
    <image src="../../images/在线培训.png" mode="widthFix"></image>
  </navigator>
  <navigator url="../plan/plan"  class="part">
    <view>培训计划</view>
    <text>培训计划</text>
    <image src="../../images/培训计划.png" mode="widthFix"></image>
  </navigator>
  <navigator class="part">
    <view>联系我们</view>
    <text>联系我们</text>
    <image src="../../images/联系我们.png" mode="widthFix"></image>
  </navigator> -->
  <!-- <view class="news"> -->
      <!-- <image src="../../images/tt.png" mode="widthFix"></image>
      <text wx:for="{{news}}">{{item}}</text> -->
  <!-- </view> -->
</view>

<view class="bottom">
    <!-- <view class="tab">
        <text wx:for="{{data}}" wx:key='*this' wx:if="{{item.type=='article'}}" bindtap='tabchange'
         data-id='{{index}}' class="{{act==index ? 'active':''}}">{{item.name}}</text>
    </view>
    <view wx:for="{{data}}" wx:key='*this' wx:if="{{item.type=='article' && act == index}}" class="article">
        <navigator url="../intro/intro?id={{list.id}}&type=1" class="list" wx:for="{{item.list}}" wx:for-item="list" wx:key='*this'>
            <view>{{list.title}}</view>
            <text>{{list.ctime}}</text>
        </navigator>
    </view> -->
    <view class="friendlyLink">
      友情链接: <navigator open-type="navigate" url="../../pages/mweb/mweb" style="color:#358BFF;display:inline-block;">巴中逸沣安全培训官网</navigator>
      <!-- <a href="https://wxapi.yifeng2016.com" style="color:#358BFF;">巴中逸沣安全培训官网</a> -->
    </view>
</view>

<view class="login" wx:if='{{show}}'>
    <view>
        <view>
          <image src="../../images/logo.png" mode="widthFix"></image>
          <text class="slogen">巴中逸沣安全培训</text>
        </view>
        <text class="xx">申请获取您的用户信息（头像、昵称等）</text>
        <button bindgetuserinfo="onGotUserInfo" open-type="getUserInfo">确定</button>
    </view>
</view>