charge.wxml 1.8 KB
<!--pages/charge/charge.wxml-->
<form bindsubmit="chargeBtn" bindreset="formReset" report-submit="true">
    <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' bindinput="codeInput"
                           value="{{code}}"/>
                </view>
                <view></view>
            </view>
            <view class='item_list'>
                <view class='list_input'>
                    <view>绑定学员:</view>
                    <picker value='{{index}}' range='{{picker_list}}' bindchange='changePicker'>
                        <block wx:if='{{picker_list.length === 0}}'>
                            <input placeholder='点击右侧添加学员' placeholder-class='input_style' disabled='true'/>
                        </block>
                        <block wx:else>
                            <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>
    </view>
    <view class='service_box'>
        <view class='service_info_box'>
            <text>注:如果还未添加学员,点击添加学员添加吧!</text>
        </view>
        <button class='service_btn_box' form-type="submit">
            兑换并绑定
        </button>
    </view>
</form>
<import src="/templates/templates.wxml"/>
<template is="modal" data="{{...modal_data}}"></template>