buyCard.wxml 1.7 KB
<!--pages/buyCard/buyCard.wxml-->
<view class='long_img'>
  <view class="title">{{card_info.title}}</view>
  <!--<view class="bg"></view>-->
  <view class="image">
    <image src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1544071979008&di=b42f6a2bbd46902841d0c060ac144d15&imgtype=jpg&src=http%3A%2F%2Fimg1.imgtn.bdimg.com%2Fit%2Fu%3D3708452181%2C3226163538%26fm%3D214%26gp%3D0.jpg" mode="aspectFill"></image>
  </view>
</view>
<view class='service_box'>
  <view class='add_person_box'>
    <view class='list_input'>
      <view>绑定学员:</view>
      <view class="tips" wx:if="{{student_list.length === 0}}">点击右侧添加学员</view>
      <picker value='{{index}}' range='{{picker_list}}' bindchange="changeStudent" wx:else>
        <block wx:if='{{index==-1}}'>
          <input placeholder='点击右侧添加学员' placeholder-class='input_style' disabled='true'/>
        </block>
        <block wx:else class="text">
          <text>{{picker_list[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 class='service_info_box' bindtap="agree">
    <text class='iconfont icon-xuanze1' wx:if="{{!is_agree}}"></text>
    <text class='iconfont icon-xuanzhong' wx:if="{{is_agree}}"></text>
    <text>我已阅读并同意畅玩卡</text>
    <text class='service_info' catchtap='serviceProtocol'>服务协议</text>
  </view>
  <view class='service_btn_box'>
    <view>需支付:¥{{card_info.price}}</view>
    <view class='pay_btn' bindtap='confirmPay'>确定</view>
  </view>
</view>