<!--packageA/activity/modules/list/index.wxml-->
<navigator class="offer-list" url="/packageA/saleClue/detail?sat_orderclueid={{item.sat_orderclueid}}" wx:for="{{list}}" wx:key="sat_orderclueid">
    <view class="title">
        <text class="line-1">{{item.enterprisename_customer || " --"}}</text>
        <view class="status" style="background-color: {{backColor.getColor(item.status)}};">{{item.status}}</view>
    </view>
    <view class="exp line-1">省市县：{{item.province?item.province+item.city+item.county:"--"}}</view>
    <view class="exp line-1">市场活动:{{item.campaign_name?item.campaign_name:"--"}}</view>
    <view class="exp line-1">联系人:<text>{{item.name ? item.name : '--'}}</text></view>
    <view class="exp line-1">手机号:<text>{{item.phonenumber || '--'}}</text></view>
    <view class="exp line-1">来源:<text>{{item.cluesource ? item.cluesource : '--'}}</text></view>
</navigator>

<My_empty wx:if="{{list.length == 0}}" />

<wxs module="backColor">
    module.exports.getColor = function (status) {
        var color = null;
        if (status == '待跟进') {
            color = '#FA8C16';
        } else if (status == '跟进中') {
            color = '#52C41A';
        } else if (status == '已转化') {
            color = '#F60909';
        } else {
            color = '#BBBBBB';
        };
        return color
    }
</wxs>