littleFlower.wxml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <!-- <StatusBar receiveData="{{statusbarobj}}" grade="{{grade}}" bindgradeTap="gradeTap" /> -->
  2. <view class="little-flower-box">
  3. <view class="green-placerholder"></view>
  4. <view class="sign-in-title">已连续签到{{continuousDay}}天</view>
  5. <view class="sign-in-box">
  6. <!-- <view wx:for="{{dateList}}" wx:key="{{index}}" class="date-item">
  7. <image wx:if="{{item.style === 'red'}}" class="date-complete" src="../../../static/image/sign_in_icon.png" />
  8. <view class="date-left">
  9. <view class="date-circle" style="background: {{item.style === 'red' ? '#f75642' : '#fff'}}; color: {{item.style === 'red' ? '#fff' : '#f75642'}} ">{{item.mark}}</view>
  10. <view class="date-time">{{item.time}}</view>
  11. </view>
  12. <view class="cross-red-line" wx:if="{{index !== 6}}"></view>
  13. </view> -->
  14. <view wx:for="{{dateList}}" wx:key="{{index}}" class="date-item">
  15. <image wx:if="{{item.isSign}}" class="date-complete" src="../../../static/image/sign_in_icon.png" />
  16. <view class="date-left">
  17. <view class="date-circle" style="background: {{item.isSign ? '#f75642' : '#fff'}}; color: {{item.isSign ? '#fff' : '#f75642'}} ">
  18. {{item.count}}
  19. </view>
  20. <view class="date-time">{{item.date}}</view>
  21. </view>
  22. <view class="cross-red-line" wx:if="{{index !== 6}}"></view>
  23. </view>
  24. </view>
  25. <view class="flower-title">天天做任务,领取小红花</view>
  26. <scroll-view class="mission-box">
  27. <view class="mission-item" wx:for="{{misssionList}}" wx:key="{{index}}">
  28. <view>
  29. <view>{{item.title}}</view>
  30. <view class="mission-bonus">
  31. <image class="bonus-icon" src="../../../static/image/flower_small.png" />
  32. <text wx:if="{{item.type !== 'GROUP'}}">{{item.bonus}}</text>
  33. <text wx:if="{{item.type === 'GROUP'}}">{{isIOS ? '10' : '100'}}</text>
  34. </view>
  35. </view>
  36. <view class="mission-status" wx:if="{{!item.finished}}">
  37. <view class="mission-status" wx:if="{{item.type !== 'GROUP' && item.type !== 'READ_SHARE'}}">
  38. {{item.finishedAmount}}/{{item.taskAmount}}
  39. </view>
  40. <view class="mission-status mission-group" wx:if="{{item.type === 'READ_SHARE' }}">
  41. 已获得{{item.finishedAmount * item.bonus}}
  42. <image class=".mission-group-icon" src="../../../static/image/flower_small.png" />
  43. </view>
  44. <view class="mission-status mission-share" wx:if="{{item.type === 'GROUP'}}">
  45. 已完成
  46. <text class="red-text">{{item.finishedAmount}}</text>
  47. </view>
  48. </view>
  49. <view class="mission-status mission-complete" wx:if="{{item.finished}}">已完成</view>
  50. </view>
  51. </scroll-view>
  52. <!-- <view class="lego-section" bindtap="goToPrize">
  53. <image class="lego" src="../../../static/image/lego_icon.png" />
  54. </view> -->
  55. <!-- <view class="explain">
  56. <view class="explain-gut">小红花有什么用?</view>
  57. <view class="explain-gut">我们会启动很多好玩的活动,</view>
  58. <view class="explain-gut">到时候你将会有大大的惊喜哦!</view>
  59. <view class="explain-gut">请继续积攒小红花吧!</view>
  60. </view> -->
  61. </view>