<view class="courselivecontinor" id="time-mo">
    <block wx:for="{{itemdata}}" wx:for-index="index" wx:key="index">
        <view class="examitemlist">
            <view class="itemleft">
                <image src="https://ndnd.duiduiedu.com/uploads/pics/classleft1.png"></image>
            </view>
            <view class="itemright" bindtap="examingbtnclick" id="{{item.id}}" data-typeid="{{item.grouppaper_id}}">
                <text>{{item.name}}</text>
            </view>
        </view>

        <view class="bmclass">
            <text>报名时间: {{item.bmclass}}</text>
        </view>
        <view class="kbclass">
            <text>开班时间: {{item.startclass}}</text>
        </view>

        <view class="bmclassselect" wx:if="{{userctive==2}}" id="{{item.id}}" bindtap="exithaveclass">
            <image src="https://ndnd.duiduiedu.com/uploads/pics/exitclass.png"></image>
        </view>

        <view class="bmclassselect" wx:else id="{{item.id}}"  data-money="{{item.totalmoney}}" bindtap="jonclass1">
            <image src="https://ndnd.duiduiedu.com/uploads/pics/classjoin.png"></image>
        </view>
    </block>

    <van-popup show="{{ showdiage }}" bind:close="onshowdiageClose" z-index="100" position="bottom" custom-style="width: 100%;height:230rpx;text-align: center;">

<van-cell-group>
    <van-cell title="微信支付" value="" bindtap="payclassmoney" />
    <van-cell title="兑换码" value="" bindtap="duihuanmoney" />
    <van-cell title="取消" title-class="margin-left:200rpx;text:center;" bindtap="onshowdiageClose" />
</van-cell-group>

</van-popup>

<van-dialog
  use-slot
  title="请输入兑换码"
  show="{{ showdduihuan }}"
  show-cancel-button  
  bind:confirm="querybtn"
  bind:close="onCloseduihuan"
>
<van-cell-group>
  <van-field
    value="{{ valueduihuanma }}"
    placeholder="请输入兑换码"
    bind:change="onChangeduihuan"
  />
</van-cell-group>
</van-dialog>
</view>