index.wxml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!--nova-werun/pages/home/medal/index.wxml-->
  2. <nav type="back" title="我的勋章" background-color="{{'#87ceeb'}}" front-color="{{'#ffffff'}}"></nav>
  3. <view class="all" style="height: {{contentHeight}}rpx;">
  4. <view class="infobox">
  5. <image class="avater" src="{{userList[0].avatar}}"></image>
  6. <view class="info">
  7. <view class="name">{{userList[0].nickname}}</view>
  8. <view class="but-box">
  9. <image src="https://file-cloud.fmode.cn/qpFbRRSZrO/20241112/m61jkv024259213.png?imageView2/1/w/200/h/200"></image>
  10. <view class="text">分享 ></view>
  11. </view>
  12. </view>
  13. </view>
  14. <view class="medalbox">
  15. <view class="med-text">全部勋章</view>
  16. <view class="med-infobox">
  17. <!-- 已获得 -->
  18. <block wx:if="{{alreadyList.length>0}}" wx:for="{{alreadyList}}" wx:key="index">
  19. <view class="med-info" bindtap="showPopup" data-id="{{item.objectId}}" data-type="alreadyList">
  20. <image src="{{item.medal.image}}"></image>
  21. <view class="med-name">{{item.medal.name}}</view>
  22. <!-- <view class="med-rul">勋章达成规则</view> -->
  23. <view class="med-time">{{item.createdAt}}</view>
  24. </view>
  25. </block>
  26. <!-- 为获得 -->
  27. <block wx:if="{{MedalList.length>0}}" wx:for="{{MedalList}}">
  28. <view class="med-info" bindtap="showPopup" data-id="{{item.objectId}}" data-type="MedalList">
  29. <image src="{{item.imageIn}}"></image>
  30. <view class="med-name">{{item.name}}</view>
  31. </view>
  32. </block>
  33. <!-- 勋章介绍 -->
  34. <van-popup show="{{ show }}" position="bottom" custom-style="height: 40%;" bind:close="onClose">
  35. <view class="title-title">获取条件</view>
  36. <view class="med-rul">{{title}}</view>
  37. </van-popup>
  38. </view>
  39. </view>
  40. </view>