supermama.wxml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <view wx:if="{{isFirst===1}}" class="supermama">
  2. <view class="load" style='display:{{loaddisplay}}'>
  3. <image class="loadimg" style='display:{{loaddisplay}}' src='https://yuesuo.yueguanjia.com/MiniProgram/images/timg.gif'></image>
  4. </view>
  5. <view class="view-page">
  6. <navbar page-name="超人妈妈学院"></navbar>
  7. <!-- 头部部分 -->
  8. <view class='page-content' style='height:calc(100vh - {{navH}}px)'>
  9. <view class="super_head">
  10. <!-- 人员信息 -->
  11. <view class="flex headTop">
  12. <view class="flex headLeft">
  13. <image class="headImg" src="{{info.avatar_url}}" lazy-load></image>
  14. <view class="mamaInfo">
  15. <view class="ys-font16 name">{{nickName}}</view>
  16. <view class="week">{{info.stage=='P01'?'孕期':'育儿期'}}第{{info.stage_step}}{{info.stage=='P01'?'周':'月'}}</view>
  17. </view>
  18. </view>
  19. <view class="headRight">
  20. <view class="ys-font12 title">奖学金</view>
  21. <view class="ys-font14 number">
  22. <text>{{info.scholarships||0}}</text>
  23. <image class="jb-icon" src="https://yuesuo.yueguanjia.com/MiniProgram/images/jinbi.png" />
  24. </view>
  25. </view>
  26. </view>
  27. <!-- 进度条 -->
  28. <view class="headProgress">
  29. <view class="proImgView" wx:for="{{info.present_received.length}}" wx:key="index">
  30. <image data-ind="{{index}}" bindtap="openGift" class="proImg" src="{{info.present_received[index].received ? stepIconO:stepIcon}}"></image>
  31. </view>
  32. <view class="isPro" bindtap="goRule">
  33. <view class="bgPro"></view>
  34. <view class="coverPro" style="width:{{process}}%"></view>
  35. <view class="coverPro coverProT" style="left:{{process+10}}%;font-size: 20rpx; width: 80rpx;">{{info.credit}}学分</view>
  36. </view>
  37. <view class="textPro">
  38. <view class="ys-font10 coverInfo {{(info.present_received[index].received)&&(currentmama==index+1)?'active':''}}" wx:for="{{info.present_received}}" wx:key="id">
  39. <view class="getNum">{{item.value}}</view>
  40. <view>{{item.name}}</view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <!-- 课程部分 -->
  46. <view class="cla ing">
  47. <text class="ys-font16 task">待完成任务</text>
  48. <text class="taskNum">{{taskNum.all}}</text>
  49. <!-- 常规课 -->
  50. <view wx:if="{{taskNum.college_core > 0}}" class="isKeCheng">
  51. <block wx:for="{{info.college_core}}" wx:if="{{item.status!='已完成'}}" wx:key="index">
  52. <regularCourse obj="{{item}}" />
  53. </block>
  54. </view>
  55. <!-- 活动课 -->
  56. <view wx:if="{{taskNum.college_practice > 0}}" class="isKeCheng">
  57. <block wx:for="{{info.college_practice}}" wx:if="{{item.status!='已完成'&&item.learningStatus!='已过期'}}" wx:key="index">
  58. <practicalCourse obj="{{item}}" />
  59. </block>
  60. </view>
  61. <!-- 体验课 -->
  62. <view wx:if="{{taskNum.college_experience > 0}}" class="isKeCheng">
  63. <block wx:for="{{info.college_experience}}" wx:if="{{item.status!='已完成'}}" wx:key="index">
  64. <experienceClass obj="{{item}}" />
  65. </block>
  66. </view>
  67. </view>
  68. <view class="cla ed" wx:if="{{taskEnd.all > 0}}">
  69. <text class="ys-font16 task">已完结课程</text>
  70. <!-- 常规课 -->
  71. <view wx:if="{{taskEnd.college_core > 0}}" class="isKeCheng">
  72. <block wx:for="{{info.college_core}}" wx:if="{{item.status=='已完成'}}" wx:key="index">
  73. <regularCourse obj="{{item}}" />
  74. </block>
  75. </view>
  76. <!-- 活动课 -->
  77. <view wx:if="{{taskEnd.college_practice > 0}}" class="isKeCheng">
  78. <block wx:for="{{info.college_practice}}" wx:if="{{item.status=='已完成'||item.learningStatus=='已过期'}}" wx:key="index">
  79. <practicalCourse obj="{{item}}" />
  80. </block>
  81. </view>
  82. <!-- 体验课 -->
  83. <view wx:if="{{taskEnd.college_experience > 0}}" class="isKeCheng">
  84. <block wx:for="{{info.college_experience}}" wx:if="{{item.status=='已完成'}}" wx:key="index">
  85. <experienceClass obj="{{item}}" />
  86. </block>
  87. </view>
  88. </view>
  89. </view>
  90. <!-- 礼物弹窗 -->
  91. <creditAlert wx:if="{{showGift}}" bindcloseGift="closeGift" isReady="{{giftData.isReady}}" obj="{{giftData}}" />
  92. <image wx:if="{{(!isSet&&info.stage=='B01'&&info.stage_step<2)||(!isSet&&info.stage=='P01'&&info.stage_step>35)}}"
  93. bindtap="babyBorn" class="babyBorn" src='https://yuesuo.yueguanjia.com/college/s2.png'></image>
  94. <image class="xysz" bindtap="goRule" src='https://yuesuo.yueguanjia.com/college/s3.png'></image>
  95. <tabbar _tabBarInd="{{2}}" />
  96. </view>
  97. </view>
  98. <view wx:else class="isFirst">
  99. <view class="view-page">
  100. <navbar page-name="超人妈妈学院"></navbar>
  101. <view class='page-content' style='height:calc(100vh - {{navH}}px)'>
  102. <view class="imgbox">
  103. <image class="supetmamaimg" mode="widthFix" src='https://yuesuo.yueguanjia.com/college/index.jpg'></image>
  104. <button class="startFirstButton" bindtap="setNotFirst">立即加入</button>
  105. </view>
  106. </view>
  107. <tabbar _tabBarInd="{{2}}" />
  108. </view>
  109. </view>