123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <!--pages/past_record/past_record.wxml-->
- <import src="../../templates/loading/loading.wxml" />
- <view class='container'>
- <template is='loading-teacher' wx:if='{{!isLoaded}}'></template>
- <view class='wrapper' wx:else>
- <view class='li-shadow'>
- <view class='header'>
- <view>
- <image src='{{imgUrl?baseImgUrl+imgUrl:"../../assets/default_headicon2.png"}}' class='header-img'></image>
- <view class='header-items'>
- <view class='header-items-name'>
- <text>{{childName}}</text>
- <image src='../../assets/hui_guan.png' class='header-items-name-img' wx:if='{{serviceType==0}}'></image>
- <image src='../../assets/huang_guan.png' class='header-items-name-img' wx:if='{{serviceType==1||serviceType==4||serviceType==999}}'></image>
- <image src='../../assets/zuan_shi.png' class='header-items-name-img' wx:if='{{serviceType==2}}'></image>
- <text class='header-items-name-yellow' style='color:{{serviceType==0?"#8489A3":"#E59B36"}}'>{{serviceType==0?'当前无服务':serviceType==1?'平台服务(家长购买)':serviceType==2?'校区服务':serviceType==4?'平台服务(校区购买)':serviceType==5?'批改服务':'内部用户'}}</text>
- </view>
- <view class="{{className?'':'rename-footer-sure'}}">{{className?className:'未分班'}}</view>
- </view>
- </view>
-
- </view>
-
- <!-- 服务时间 -->
- <view class='serve' wx:if='{{serveList.length>0}}'>
- <view class='serve-item' wx:for='{{serveList}}' wx:key='index' >
- <view style="margin: auto 0;">
- <image src='{{item.type==2?"../../assets/zuan_shi.png":"../../assets/huang_guan.png"}}' class='serve-item-img'></image>
- <text wx:if='{{item.type!=999}}' style='font-weight: bold;'>{{item.name}}</text>
- <text wx:if='{{item.type==999}}' style='color:#FF6465;font-weight: bold;'>内部用户</text>
- <view class='serve-item-before' wx:if='{{item.isValid==1}}'>当前生效</view>
- </view>
- <view class='serve-item-time' wx:if='{{item.type!=999&&item.type!=5}}'>{{item.beginDate}}-{{item.endDate}}</view>
- </view>
- </view>
- </view>
-
-
- <!-- 选择添加服务类型 -->
- <view class='type'>
- <view class='type-title'>选择添加服务</view>
- <view class='type-items' wx:for='{{payList}}' wx:key='index' data-index='{{index}}' data-number='{{item.number}}' data-type='{{item.priceType}}' data-price='{{item.price}}' bindtap='selectCardType'>
- <!-- <image src='{{index==dateIndex?"../../assets/select_on.png":"../../assets/select_off.png"}}' class='type-items-img' ></image> -->
- <view class='type-items-title'>
- <image src='../../assets/huang_guan.png' class='serve-item-img' wx:if='{{item.priceType=="C023"}}'></image>
- <image src='../../assets/zuan_shi.png' class='serve-item-img' wx:if='{{item.priceType=="C024"}}'></image>
- <text>{{item.name}}</text>
- </view>
- <view wx:if='{{index==dateIndex}}'>
- <view class='type-items-num'>您有{{item.exchangeNum}}枚塾币</view>
- <view class='add' style='margin:24rpx;'>
- <view>服务时间:{{item.beginDate}}-{{item.endDate}}</view>
- <picker wx:if='{{item.canChooseTime==1}}' mode="date" value="{{startTime}}" start="{{startTime}}" end="2099-09-01" bindchange="bindDateChange">
- <image src='../../assets/right_code.png' class='add-img'></image>
- </picker>
- </view>
- <view class='type-items-add'>
- <view>购买月数</view>
- <view>
- <image src='../../assets/icon_plus.png' class='type-items-add-img' bindtap='arrowNum'></image>
- <text class='type-items-add-code'>{{item.number}}</text>
- <image src='../../assets/icon_down.png' class='type-items-add-img' bindtap='plusNum'></image>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 确定 -->
- <view class='btn' bindtap='childShowModel'>确定</view>
- <!-- 查询有冲突的服务 -->
- <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{conflictModel}}'></view>
- <view class='model' wx:if='{{conflictModel}}'>
- <view class='rename'>
- <view class='rename-name' style='margin:50rpx 0;'>您选择的服务时间与用户现有的服务时间冲突:</view>
- <view class='clash'>
- <view class='clash-items' wx:for='{{conflictList}}' wx:key='index'>
- <view>
- <image src='{{item.type==2?"../../assets/zuan_shi.png":"../../assets/huang_guan.png"}}' class='serve-item-img'></image>
- <text>{{item.name}}</text>
- </view>
- <view>{{item.beginDate}}-{{item.endDate}}</view>
- </view>
- </view>
- <view class='rename-name' style='margin:50rpx 0;'>如果继续购买将会把现有的服务覆盖是否继续购买</view>
- <view class='rename-footer'>
- <view bindtap='allShowModel' bindtap='allShowModel'>取消</view>
- <view class='rename-footer-sure' bindtap='sureAddCorrectService'>确定</view>
- </view>
- </view>
- </view>
- <!-- 删除孩子弹幕 -->
- <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{hiddenModel}}'></view>
- <view class='model' wx:if='{{hiddenModel}}'>
- <view class='rename'>
- <view class='rename-name' style='margin:92rpx 0;'>确定添加{{priceType=='C024'?'校区':'平台'}}服务吗?</view>
- <view class='rename-footer'>
- <view bindtap='allShowModel'>取消</view>
- <view class='rename-footer-sure' bindtap='sureServiceList'>确定</view>
- </view>
- </view>
- </view>
- </view>
- </view>
|