add_student_serve.wxml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <!--pages/past_record/past_record.wxml-->
  2. <import src="../../templates/loading/loading.wxml" />
  3. <view class='container'>
  4. <template is='loading-teacher' wx:if='{{!isLoaded}}'></template>
  5. <view class='wrapper' wx:else>
  6. <view class='li-shadow'>
  7. <view class='header'>
  8. <view>
  9. <image src='{{imgUrl?baseImgUrl+imgUrl:"../../assets/default_headicon2.png"}}' class='header-img'></image>
  10. <view class='header-items'>
  11. <view class='header-items-name'>
  12. <text>{{childName}}</text>
  13. <image src='../../assets/hui_guan.png' class='header-items-name-img' wx:if='{{serviceType==0}}'></image>
  14. <image src='../../assets/huang_guan.png' class='header-items-name-img' wx:if='{{serviceType==1||serviceType==4||serviceType==999}}'></image>
  15. <image src='../../assets/zuan_shi.png' class='header-items-name-img' wx:if='{{serviceType==2}}'></image>
  16. <text class='header-items-name-yellow' style='color:{{serviceType==0?"#8489A3":"#E59B36"}}'>{{serviceType==0?'当前无服务':serviceType==1?'平台服务(家长购买)':serviceType==2?'校区服务':serviceType==4?'平台服务(校区购买)':serviceType==5?'批改服务':'内部用户'}}</text>
  17. </view>
  18. <view class="{{className?'':'rename-footer-sure'}}">{{className?className:'未分班'}}</view>
  19. </view>
  20. </view>
  21. </view>
  22. <!-- 服务时间 -->
  23. <view class='serve' wx:if='{{serveList.length>0}}'>
  24. <view class='serve-item' wx:for='{{serveList}}' wx:key='index' >
  25. <view style="margin: auto 0;">
  26. <image src='{{item.type==2?"../../assets/zuan_shi.png":"../../assets/huang_guan.png"}}' class='serve-item-img'></image>
  27. <text wx:if='{{item.type!=999}}' style='font-weight: bold;'>{{item.name}}</text>
  28. <text wx:if='{{item.type==999}}' style='color:#FF6465;font-weight: bold;'>内部用户</text>
  29. <view class='serve-item-before' wx:if='{{item.isValid==1}}'>当前生效</view>
  30. </view>
  31. <view class='serve-item-time' wx:if='{{item.type!=999&&item.type!=5}}'>{{item.beginDate}}-{{item.endDate}}</view>
  32. </view>
  33. </view>
  34. </view>
  35. <!-- 选择添加服务类型 -->
  36. <view class='type'>
  37. <view class='type-title'>选择添加服务</view>
  38. <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'>
  39. <!-- <image src='{{index==dateIndex?"../../assets/select_on.png":"../../assets/select_off.png"}}' class='type-items-img' ></image> -->
  40. <view class='type-items-title'>
  41. <image src='../../assets/huang_guan.png' class='serve-item-img' wx:if='{{item.priceType=="C023"}}'></image>
  42. <image src='../../assets/zuan_shi.png' class='serve-item-img' wx:if='{{item.priceType=="C024"}}'></image>
  43. <text>{{item.name}}</text>
  44. </view>
  45. <view wx:if='{{index==dateIndex}}'>
  46. <view class='type-items-num'>您有{{item.exchangeNum}}枚塾币</view>
  47. <view class='add' style='margin:24rpx;'>
  48. <view>服务时间:{{item.beginDate}}-{{item.endDate}}</view>
  49. <picker wx:if='{{item.canChooseTime==1}}' mode="date" value="{{startTime}}" start="{{startTime}}" end="2099-09-01" bindchange="bindDateChange">
  50. <image src='../../assets/right_code.png' class='add-img'></image>
  51. </picker>
  52. </view>
  53. <view class='type-items-add'>
  54. <view>购买月数</view>
  55. <view>
  56. <image src='../../assets/icon_plus.png' class='type-items-add-img' bindtap='arrowNum'></image>
  57. <text class='type-items-add-code'>{{item.number}}</text>
  58. <image src='../../assets/icon_down.png' class='type-items-add-img' bindtap='plusNum'></image>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. <!-- 确定 -->
  65. <view class='btn' bindtap='childShowModel'>确定</view>
  66. <!-- 查询有冲突的服务 -->
  67. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{conflictModel}}'></view>
  68. <view class='model' wx:if='{{conflictModel}}'>
  69. <view class='rename'>
  70. <view class='rename-name' style='margin:50rpx 0;'>您选择的服务时间与用户现有的服务时间冲突:</view>
  71. <view class='clash'>
  72. <view class='clash-items' wx:for='{{conflictList}}' wx:key='index'>
  73. <view>
  74. <image src='{{item.type==2?"../../assets/zuan_shi.png":"../../assets/huang_guan.png"}}' class='serve-item-img'></image>
  75. <text>{{item.name}}</text>
  76. </view>
  77. <view>{{item.beginDate}}-{{item.endDate}}</view>
  78. </view>
  79. </view>
  80. <view class='rename-name' style='margin:50rpx 0;'>如果继续购买将会把现有的服务覆盖是否继续购买</view>
  81. <view class='rename-footer'>
  82. <view bindtap='allShowModel' bindtap='allShowModel'>取消</view>
  83. <view class='rename-footer-sure' bindtap='sureAddCorrectService'>确定</view>
  84. </view>
  85. </view>
  86. </view>
  87. <!-- 删除孩子弹幕 -->
  88. <view class='showModel' bindtap='allShowModel' catchtouchmove="allShowModel" wx:if='{{hiddenModel}}'></view>
  89. <view class='model' wx:if='{{hiddenModel}}'>
  90. <view class='rename'>
  91. <view class='rename-name' style='margin:92rpx 0;'>确定添加{{priceType=='C024'?'校区':'平台'}}服务吗?</view>
  92. <view class='rename-footer'>
  93. <view bindtap='allShowModel'>取消</view>
  94. <view class='rename-footer-sure' bindtap='sureServiceList'>确定</view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. </view>