beautyPlanList.wxml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <view class="tabs">
  2. <view class="tabs-bgc">
  3. <view class="tabs-wrap flex-align-center tabs-radius">
  4. <view class="item flex-center line {{current == 0 ? 'active' : ''}}" bindtap="onTabsChange" data-id="0">
  5. 进行中
  6. </view>
  7. <view class="item flex-center line {{current == 1 ? 'active' : ''}}" bindtap="onTabsChange" data-id="1">
  8. 待添加
  9. </view>
  10. <view class="item flex-center {{current == 2 ? 'active' : ''}}" bindtap="onTabsChange" data-id="2">
  11. 已结束
  12. </view>
  13. </view>
  14. </view>
  15. <view class="tabs-content">
  16. <view class="item flex-column current{{item.status}}" wx:for="{{ list }}" wx:key="index" bindtap="goToBeautyPlan" data-item="{{item}}">
  17. <view class="flex padding flex-align-center">
  18. <view class="item-left flex1 ellipsis flex-column flex-justify-space-around" style="height: 100%;">
  19. <text style="color: #666666;">测肤时间:{{item.analysis_time}}</text>
  20. <text style="color: #666666;">计划周期:{{item.plan_time}}</text>
  21. </view>
  22. <view class="line" wx:if="{{ item.status != 0 }}"></view>
  23. <view class="item-right">
  24. <block wx:if="{{item.status != 0}}">
  25. <wux-circle percent="{{item.process}}" color="{{item.status == 1 ? '#FA7D22' : '#F0B900'}}" size="34" strokeWidth="2">
  26. <text style="font-size: 22rpx; font-family: DINEngschrift; color: {{item.status == 1 ? '#FA7D22' : '#F0B900'}};line-height: 56rpx;">{{ item.process + '%' }}</text>
  27. </wux-circle>
  28. </block>
  29. <view class="btn flex-center" wx:if="{{ item.status == 0 }}">去添加</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="no-data" style="display: {{list.length == 0 ? 'block' : 'none'}};">暂无数据~</view>
  34. <view class="no-more-data" style="display: {{list.length > 0 && list.length >= total ? 'block' : 'none'}};">
  35. 暂无更多数据~
  36. </view>
  37. </view>
  38. </view>