charge.wxml 1.2 KB
<!--pages/charge/charge.wxml-->
<view class='content_box'>
  <view class='item_list_box'>
    <view class='item_list'>
      <view class='list_input'>
        <view>兑换码:</view>
        <input placeholder='请输入您的畅玩卡兑换码' placeholder-class='input_style'></input>
      </view>
      <view></view>
    </view>
    <view class='item_list'>
      <view class='list_input'>
        <view>绑定学员:</view>
        <picker value='{{index}}' range='{{userlist}}' bindchange='userList'>
          <block wx:if='{{index==-1}}'>
            <input placeholder='点击右侧添加学员' placeholder-class='input_style' disabled='true'></input>
          </block>
          <block wx:else>
          <text>{{userlist[index]}}</text>
          </block>
        </picker>
        <view class='iconfont icon-daosanjiao'></view>
      </view>
      <view class='add_box' bindtap='addUser'>
        <text class='iconfont icon-jia'></text>
        <text>添加学员</text>
      </view>
    </view>
  </view>
</view>
<view class='service_box'>
  <view class='service_info_box'>
    <text>注:如果还未添加学员,点击添加学员添加吧!</text>
  </view>
  <view class='service_btn_box' bindtap='chargeBtn'>
    兑换并绑定
  </view>
</view>