charge.wxml
2.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!--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'>
<view class="picker-box">
<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>
<view class='iconfont icon-daosanjiao'></view>
</view>
</picker>
</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>