| 123456789101112131415161718192021222324252627 |
- <My_empty wx:if="{{list.length==0}}" />
- <navigator class="offer-list" url="/packageA/work/detail?id={{item.sys_taskid}}" wx:for="{{list}}" wx:key="sys_taskid">
- <view class="title">
- <text class="line-1">{{item.title}}</text>
- <view class="status" style="background-color: {{backColor.getColor(item.status)}};">{{item.status}}</view>
- </view>
- <view class="tag-box">
- <van-tag custom-class='tag' wx:for="{{item.tags.systemtag}}" wx:key="index" wx:for-item='tag' color='#FA8C16' text-color='#fff' round>{{tag}}</van-tag>
- <van-tag custom-class='tag' wx:for="{{item.tags.datatag}}" wx:key="index" wx:for-item='tag' color='#FAAB16' text-color='#fff' round>{{tag}}</van-tag>
- </view>
- <view class="exp line-1">开始日期:<text>{{item.starttime}}</text></view>
- <view class="exp line-1">结束日期:<text>{{item.endtime||' --'}}</text></view>
- </navigator>
- <wxs module="backColor">
- module.exports.getColor = function (status) {
- var color = null;
- if (status == '待执行') {
- color = '#3874F6';
- } else if (status == '进行中') {
- color = '#52C41A';
- } else {
- color = '#BBB';
- };
- return color
- }
- </wxs>
|