index.wxml 3.7 KB
<!--pages/index/index.wxml-->
<view class='content_box'>
  <view class='item_box'>
    <view class='list_title index'>首页</view>
    <navigator class='list_img' hover-class="none" url='/pages/out/out?url={{slide.url}}'>
      <image src='{{slide.image}}'></image>
    </navigator>
  </view>
  <view>
    <view class='title_box' >
      <view class='laba'>
        <image src='/images/laba.png'></image>
      </view>
      <swiper class='scroll_box' vertical="true" autoplay="true" circular="true" interval="2000">
        <navigator wx:for="{{msgList1}}" wx:key=''  url='/pages/index/articleDetail/articleDetail?id={{item.id}}'>
            <swiper-item>
              <view class='notice'>{{item.title}}</view>
            </swiper-item>
        </navigator>
      </swiper>
    </view>
    <view class='list_box2' wx:if='{{myinfo.is_addtest}}'>
      <view>
        <view>{{myinfo.test_name}}考试日期:{{myinfo.test_data1}}</view>
        <view class='title'>距离考试还有:</view>
      </view>
      <view>
        <image class='book' src='/images/book.png'>
        <view class='book_in'>
          <view class='data_num'>{{myinfo.test_days}}</view>
          <view class='data_unit'>天</view>
        </view>  
        </image>
      </view>
    </view>
      <view class='list_box' wx:else bindtap='gomy'>
      <view>您还未添加考试</view>
      <view class='iconfont icon-tianjiaadd73'></view>
    </view>
  </view>
  <view class='item_box '>
    <view class='list_title course'>热门课程</view>
    <view class='title_box' >
      <view class='laba'>
        <image src='/images/laba.png'></image>
      </view>
      <swiper class='scroll_box' vertical="true" autoplay="true" circular="true" interval="2000">
        <navigator wx:for="{{msgList2}}" wx:key='' url='/pages/communityDetail/communityDetail?id={{item.id}}'>
            <swiper-item>
              <view class='notice'>{{item.title}}</view>
            </swiper-item>
        </navigator>
      </swiper>
    </view>
    <view class='class_box'>
      <image src='/images/class1.png' bindtap='lecture'></image>
      <image src='/images/class2.jpg' bindtap='article'></image>
      <image src='/images/class3.jpg' bindtap='reading'></image>
      <image src='/images/class4.jpg' bindtap='boy'></image>
    </view>
  </view>

  <view class='item_box'>
    <view class='list_title'>名师介绍</view>
    <view class='info'>名师辅助 为您定制</view>
    <view class='teacher_img'>
      <image src='/images/teacher2.png'></image>
    </view>
  </view>

  <view class='item_box'>
    <view class='list_title course'>GMAT学习闭环解决方案</view>
    <view class='title_box' >
      <view class='laba'>
        <image src='/images/laba.png'></image>
      </view>
      <swiper class='scroll_box' vertical="true" autoplay="true" circular="true" interval="2000">
        <navigator wx:for="{{msgList3}}" wx:key='' url='/pages/lectureRoomDetail/lectureRoomDetail?id={{item.id}}'>
          
            <swiper-item>
              <view class='notice'>{{item.title}}</view>
            </swiper-item>
         
        </navigator>
      </swiper>
    </view>
    <view>
      <view class='case_list' wx:for="{{GMATlist}}" wx:key id='{{item.id}}' bindtap='gocourseDetail'>
        <view class='case_content_box'>
          <image src='{{item.thumb}}'></image>
          <view class='case_content'>
            <view class='case_title'>{{item.title}}</view>
            <view class='case_point'>
              <view class='point'></view>适用人群:</view>
            <view>{{item.short_content}}</view>
          </view>
        </view>
        <view class='iconfont icon-jiantouarrow487'></view>
      </view>
    </view>
  </view>

</view>