index.wxml 1.1 KB

123456789101112131415161718192021222324
  1. <scroll-view class="scroll" scroll-x>
  2. <view class="box">
  3. <navigator url="#" class="parallel {{active==index?'active':''}} {{viewIndex==index?'view-index':''}}" wx:for="{{list}}" wx:key="item.sa_projstagetemp_stageid" data-index="{{index}}" bindtap="changeViewItem">
  4. <view class="mian">
  5. <view class="label">{{item.stagename}}</view>
  6. <view class="schedule">
  7. {{item.finish}}/{{item.work.length}}
  8. </view>
  9. </view>
  10. <view class="circle" style="border-color: {{active>=index?'#3874F6':'#CCCCCC'}};">
  11. <view class="line" style="width: {{item.width+'px'}};">
  12. <view style="height: 100%;width: {{item.progress+'%'}};background: #3874F6;" />
  13. </view>
  14. </view>
  15. </navigator>
  16. </view>
  17. </scroll-view>
  18. <view class="start">
  19. <view class="title">{{list[viewIndex].stagename}} 阶段</view>
  20. <van-button custom-class='but' disabled="{{list[viewIndex].active==1}}" bind:click="setActive">进入当前阶段</van-button>
  21. </view>
  22. <List list='{{list[viewIndex].work}}' isFollow='{{viewIndex===active}}' />