buyCard.wxml 2.3 KB
<!--pages/buyCard/buyCard.wxml-->
<view class='long_img'>
    <view class="title">{{card_info.title}}</view>
    <!--<view class="bg"></view>-->
    <view class="description">{{card_info.description}}</view>
    <!--<view class="image">-->
        <!--<image src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1545829829714&di=e8f57b8a14901a56db550865c0ff8db1&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01947559070b53a8012145506106f4.png%402o.png"-->
               <!--mode="aspectFill"></image>-->
    <!--</view>-->
    <view class="image">
        <image src="{{card_info.thumb}}"
               mode="aspectFill"></image>
    </view>
</view>
<form bindsubmit="confirmPay" bindreset="formReset" report-submit="true">
    <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>
            <button class='pay_btn' form-type="submit">确定</button>
        </view>
    </view>
</form>