wordsPackage.wxml 2.7 KB
<!--pages/MemorizingWords/wordsPackage/wordsPackage.wxml-->
<scroll-view scroll-y='true' bindscrolltolower='onloading' style='max-height:{{scroll_height}}rpx'>
<view class='null_box'></view>
<view class='content_box'>
  <view class='content_title'>
    <view>单词量:
      <text class='current_num'>{{total}}</text>
      <text>/{{listdata.total_num}}</text> </view>
    <view class='state_box'>
      <view class='state_item'>
        <view class='iconfont icon-yuan1'></view>
        <view>没背</view>
      </view>
      <view class='state_item'>
        <view class='iconfont icon-yuan1 blue'></view>
        <view>认识</view>
      </view>
      <view class='state_item'>
        <view class='iconfont icon-yuan1 gree'></view>
        <view>不认识 </view>
      </view>
      <view class='state_item'>
        <view class='iconfont icon-yuan1 yellow'></view>
        <view>模糊</view>
      </view>
    </view>
  </view>
  <view class='content_item'>
    <block wx:for='{{listdata.list}}' wx:key>
      <view class="item_list" wx:if='{{item.status==0}}' >
        <view class='iconfont icon-laba1' bindtap='audioPlay' data-index="{{index}}">
        </view>
        <view>
          <view>
            <text>{{item.word}}</text>
            <text class='phonetic_symbol' >{{item.yinbiao}}</text>
          </view>
          <view class='explain'>释义:{{item.explain}}</view>
        </view>
      </view>
      <view class="item_list bgblue" wx:elif='{{item.status==1}}' >
        <view class='iconfont icon-laba1' bindtap='audioPlay' data-index="{{index}}">
        </view>
        <view>
          <view>
            <text>{{item.word}}</text>
            <text class='phonetic_symbol' >{{item.yinbiao}}</text>
          </view>
          <view class='explain'>释义:{{item.explain}}</view>
        </view>
      </view>
      <view class="item_list bggree" wx:elif='{{item.status==2}}' >
        <view class='iconfont icon-laba1' bindtap='audioPlay' data-index="{{index}}">
        </view>
        <view>
          <view>
            <text>{{item.word}}</text>
            <text class='phonetic_symbol' >{{item.yinbiao}}</text>
          </view>
          <view class='explain'>释义:{{item.explain}}</view>
        </view>
      </view>
      <view class="item_list bgyellow" wx:elif='{{item.status==3}}' >
        <view class='iconfont icon-laba1' bindtap='audioPlay' data-index="{{index}}">
        </view>
        <view>
          <view>
            <text>{{item.word}}</text>
            <text class='phonetic_symbol' >{{item.yinbiao}}</text>
          </view>
          <view class='explain'>释义:{{item.explain}}</view>
        </view>
      </view>
    </block>
  </view>
</view>
</scroll-view>
<view class='bottom_btn' bindtap='startPlan'>开始背单词</view>