index.wxml 4.9 KB

1
  1. <view class="page"><cu-custom vue-id="3bc35b9e-1" isBack="{{true}}" bind:__l="__l"></cu-custom><view class="header" style="{{'top:'+(topHeader+'px')+';'}}"><view class="header-title"><view class="header-title-main"><view class="margin-bottom-xs">{{title}}</view><view class="point"></view></view></view><swiper-tab vue-id="3bc35b9e-2" menuList="{{menuList}}" activeTab="{{currentIndex}}" data-event-opts="{{[['^changeTab',[['changeTab']]]]}}" bind:changeTab="__e" bind:__l="__l"></swiper-tab></view><scroll-view class="scroll-main" style="{{'height:'+('calc(100vh - 74px - '+topHeader+'px)')+';'}}" scroll-y="true" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" data-event-opts="{{[['refresherrefresh',[['onRefresh',['$event']]]],['scrolltolower',[['loadMore',['$event']]]]]}}" bindrefresherrefresh="__e" bindscrolltolower="__e"><block wx:if="{{params.type<7}}"><view class="list"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="cu-card margin-top margin-bottom shadow"><block wx:for="{{item.$orig.list}}" wx:for-item="course" wx:for-index="i" wx:key="i"><view class="cu-item"><view class="card-header flex justify-between solid-bottom"><view>{{index}}</view><view class="text-student course-status">{{''+item.f0+''}}</view></view><view class="card flex"><view class="card-left"><image class="card-image _img" mode="scaleToFill" src="{{course.image}}" alt></image></view><view class="card-right flex-sub margin-left-sm"><view class="card-title">{{course.name}}</view><view class="card-item margin-top-xs"><text class="card-label">时间:</text><text class="card-text">{{course.attend_day}}</text></view><view class="card-item margin-top-xs"><text class="card-label">课时:</text><text class="card-text">{{course.class_total}}</text></view><view class="card-item margin-top-xs"><text class="card-label">学生:</text><text class="card-text">{{course.student_name}}</text></view><view class="card-item margin-top-xs"><text class="card-label">老师:</text><text class="card-text">{{course.teacher||'--'}}</text></view></view></view><view class="flex card-footer solid-bottom padding-bottom-xs"><block wx:for="{{course.prop}}" wx:for-item="prop" wx:for-index="k" wx:key="k"><view class="margin-right-xs"><text class="card-label">{{prop.name+":"}}</text><text class="text-price">{{prop.money}}</text></view></block></view><view class="card-bottom margin-top-xs flex justify-between"><view><text class="text-price text-red">{{item.$orig.sum_money}}</text></view><view><block wx:if="{{item.g0&&course.is_return===0}}"><button data-event-opts="{{[['tap',[['dropCourse',['$0'],[[['list','',index],['list','',i,'order_info_id']]]]]]]}}" class="cu-btn round bg-student text-white" bindtap="__e">退课</button></block><block wx:if="{{item.g1&&course.is_return===1}}"><button data-event-opts="{{[['tap',[['droping',['$event']]]]]}}" class="cu-btn round sm line-cyan" bindtap="__e">退课中</button></block><block wx:if="{{item.$orig.status===0}}"><button data-event-opts="{{[['tap',[['pay',['$0'],[[['list','',index,'order_id']]]]]]]}}" class="cu-btn round bg-student text-white margin-right-sm" bindtap="__e">立即付款</button></block><block wx:if="{{item.$orig.status===0}}"><button data-event-opts="{{[['tap',[['cancel',['$0'],[[['list','',index,'order_id']]]]]]]}}" class="cu-btn round bg-gray" bindtap="__e">取消</button></block></view></view></view></block></view></block></view></block><block wx:else><view class="list"><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="cu-card margin-top margin-bottom shadow"><view class="cu-item"><view class="card-header flex justify-between solid-bottom"><view>{{item.$orig.code}}</view><view class="text-student course-status">{{''+item.f1+''}}</view></view><view class="card flex"><view class="card-left"><image class="card-image _img" mode="scaleToFill" src="{{item.$orig.image}}" alt></image></view><view class="card-right flex-sub margin-left-sm"><view class="card-title">{{item.$orig.name}}</view><view class="card-item margin-top-xs"><text class="card-label">时间:</text><text class="card-text">{{item.$orig.attend_day}}</text></view><view class="card-item margin-top-xs"><text class="card-label">课时:</text><text class="card-text">{{item.$orig.class_total}}</text></view><view class="card-item margin-top-xs"><text class="card-label">学生:</text><text class="card-text">{{item.$orig.student_name}}</text></view><view class="card-item margin-top-xs"><text class="card-label">老师:</text><text class="card-text">{{item.$orig.teacher||'--'}}</text></view></view></view><view class="flex card-footer padding-bottom-xs"><block wx:for="{{course.prop}}" wx:for-item="prop" wx:for-index="k" wx:key="k"><view class="margin-right-xs"><text class="card-label">{{prop.name+":"}}</text><text class="text-price">{{prop.money}}</text></view></block></view></view></view></block></view></block></scroll-view><block wx:if="{{showForm}}"><web-view src="{{payurl}}"></web-view></block></view>