index.wxml 1.3 KB
<!--index.wxml-->
<view class="container">
  <!--蒙层-->
    <view class="modal" wx:if="{{!hasPhone}}" bindtap="goPhoneCode"></view>

    <!--轮播图-->
  <view class="wrap">
    <swiper autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" circular="true"
            bindchange="swiperChange">
      <block wx:for="{{imgUrls}}" wx:key="index">
        <swiper-item>
          <navigator url="{{item.url}}" hover-class="navigator-hover">
            <view class="index_top">
              <image src="{{item.url}}" class="slide-image" mode="aspectFill"/>
            </view>
          </navigator>
        </swiper-item>
      </block>
    </swiper>
    <view class="dots">
      <block wx:for="{{ imgUrls}}" wx:key>
        <view class="dot{{index == currentSwiper ? ' active' : ''}}"></view>
      </block>
    </view>
  </view>

    <!--购买-->
  <view class="btn-box" bindtap="goBuyCard">
    <view class="buy-btn">
      <text>点击图片可跳转到购买页</text>
    </view>
  </view>

    <!--实验列表-->
  <import src="/templates/templates.wxml" />
    <view class="past_template">
        <template is="experiment" data="{{...this_week_test_info}}"></template>
        <template is="experiment" data="{{...past_test_info}}"></template>
    </view>
</view>