<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 = '#FA8C16';
        };
        return color
    }
</wxs>