passport.wxml 4.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <block wx:if="{{!hidden}}">
  2. <navigator class="common_fix common_home" wx:if="{{currentPages == 1}}" open-type="reLaunch" url="/pages/index/index" hover-class="none">
  3. <text class="icon icon-home"></text>
  4. </navigator>
  5. <view class="passport">
  6. <childs list="{{user}}" share="{{share}}" showMedal bind:getChildIndex="choose">
  7. <view class="tabBox">
  8. <view class="tab">
  9. <view bindtap="changeTab" data-value="0" style="border-top-right-radius: 20rpx;" class="tab-item {{active_tab==0?'active':'no_active'}}"><text>勋章</text></view>
  10. <view bindtap="changeTab" data-value="1" style="border-top-left-radius: 20rpx;" class="tab-item {{active_tab==1?'active':'no_active'}}"><text>印章</text></view>
  11. </view>
  12. </view>
  13. <view class="box">
  14. <!-- 印章 -->
  15. <view class="column" wx:if="{{active_tab==1}}">
  16. <view class="wall">
  17. <view class="head_title">
  18. <text class="point leftPoint">·</text>
  19. <image src="/images/medal/icon1.png" mode="widthFix"></image>
  20. <text class="h">印 章 墙</text>
  21. <image src="/images/medal/icon1.png" mode="widthFix"></image>
  22. <text class="point rightPoint">·</text>
  23. </view>
  24. <view class="yinBox" wx:if="{{groupData.seals.length>0}}">
  25. <image wx:for="{{groupData.seals}}" wx:key="unique" src="{{item}}" class="yinCol" mode="aspectFill" bindtap="imgdetails" data-index="{{index}}"></image>
  26. </view>
  27. <view class="yinNone" wx:else>暂无印章</view>
  28. </view>
  29. </view>
  30. <!-- 勋章 -->
  31. <view class="column" wx:if="{{active_tab==0}}">
  32. <view class="wall">
  33. <view class="head_title">
  34. <text class="point leftPoint">·</text>
  35. <image src="/images/medal/icon1.png" mode="widthFix"></image>
  36. <text class="h">勋 章 墙</text>
  37. <image src="/images/medal/icon1.png" mode="widthFix"></image>
  38. <text class="point rightPoint">·</text>
  39. </view>
  40. <view class="article">
  41. <navigator class="font12 jump_btn" url="introduce" hover-class="none">前往宝贝勋章之旅>></navigator>
  42. </view>
  43. <view class="xunBox">
  44. <view class="xunCol {{(index==15 || index==14 || index==12)?'lastMedal':index==13?'medal13':(medals.length==index+1?'medal17':'')}}" wx:for="{{medals}}" wx:key="unique" bindtap="bingImg" data-index="{{index}}">
  45. <view class="pic_box {{(medals.length==index+1 || index==15)?'lastMedalHeight':''}}">
  46. <image src="{{ item.show? item.newSrc : item.oldSrc}}" mode="aspectFit"/>
  47. <view class="mask" wx:if="{{!item.show}}">待 点 亮</view>
  48. </view>
  49. <view class="xunName {{item.show?'subtitleColor':''}}">{{item.text}}</view>
  50. <view class="cumulativeDays">累计 <text class="subtitleColor">{{item.days}}</text> 天</view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="wall">
  55. <view class="head_title">
  56. <text class="point leftPoint">·</text>
  57. <image src="/images/medal/gift.png" mode="widthFix"></image>
  58. <text class="h">勋 章 福 利</text>
  59. <image src="/images/medal/gift.png" mode="widthFix"></image>
  60. <text class="point rightPoint">·</text>
  61. </view>
  62. <view class="welfare">
  63. <view class="welfare_tab">
  64. <view class="welfare_title">福 利 一</view>
  65. <image bindtap="jumpToBuy" src="http://img.bbztx.com/image_test/upload/thumbs/20210820/logo/1629425297638092168.png" mode="widthFix"></image>
  66. </view>
  67. <view class="welfare_tab">
  68. <view class="welfare_title">福 利 二</view>
  69. <image src="https://img.bbztx.com/static/welfare2.png" mode="widthFix"></image>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="wall" style="text-align:left;margin:0">
  74. <view class="head_title">
  75. <text class="point leftPoint">·</text>
  76. <image src="/images/medal/ture.png" mode="widthFix"></image>
  77. <text class="h">特 别 说 明</text>
  78. <image src="/images/medal/ture.png" mode="widthFix"></image>
  79. <text class="point rightPoint">·</text>
  80. </view>
  81. <view>
  82. <view>*天数是指儿童参加的<text class="subtitleColor">独立营、半天营、亲子营</text>累加,线上课不算其中。</view>
  83. <view style="margin-top:20rpx">*截止到2021年3月11日,已获得的勋章,按新规则继续升级。</view>
  84. <view style="margin-top:20rpx">*最终解释权归宝贝走天下所有。</view>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. </childs>
  90. </view>
  91. </block>
  92. <empty wx:else>~该用户还没有儿童参加过任何活动~</empty>