Files
juipphp/enum/user/User.php

67 lines
1.7 KiB
PHP
Raw Permalink Normal View History

2020-11-17 10:18:30 +08:00
<?php
/*
* @Descripttion:
* @version:
* @Author: kangkang
* @Date: 2020-10-22 15:35:49
2023-08-10 17:34:39 +08:00
* @LastEditors: “wanyongkang” “937888580@qq.com”
* @LastEditTime: 2023-08-10 16:36:40
2020-11-17 10:18:30 +08:00
*/
namespace enum\user;
class User
{
// 1待跟进-未购买 2跟进超时-未购买 3待跟进-消费减少 4跟进超时-消费减少 5流失-需求减少 6流失-暂时不用 7流失-价格问题 8流失-产品问题 9流失-也可自定义 10高意向客户 11已完成
public static $FollowStatus = [
2023-08-10 17:34:39 +08:00
1 => '待跟进',
2 => '跟进中',
3 => '跟进完成',
2020-11-17 10:18:30 +08:00
];
2020-11-23 16:30:13 +08:00
public static $UnfollowNotBuy = 1;
public static $FollowOverTimeNotBuy = 2;
public static $UnfollowBuyReduce = 3;
public static $FollowOverTimeBuyReduce = 4;
public static $LostReduce = 5;
public static $LostNotUsed = 6;
public static $LostPrice = 7;
public static $LostProduct = 8;
public static $LostAuto = 9;
public static $HighUser = 10;
public static $Finish = 11;
2022-01-14 18:26:50 +08:00
public static $LostContact = 12;
2020-11-23 16:30:13 +08:00
2020-11-26 13:45:27 +08:00
//待跟进
public static $Unfollow = [1, 3];
//流失
public static $Lost = [5, 6, 7, 8, 9];
2020-11-23 16:30:13 +08:00
/**
* @description: 格式化方便选择处理
* @param {*}
* @return {*}
*/
2020-11-17 10:18:30 +08:00
public static function getFormatList($arr)
{
$format_list = [];
foreach ($arr as $k => $v) {
$data['value'] = $k;
$data['label'] = $v;
$format_list[] = $data;
}
return $format_list;
}
/**
* @description: 通过值获取状态
* @param {*}
* @return {*}
*/
2020-11-26 13:45:27 +08:00
public static function getStatusByName($arr, $str)
{
$data = array_flip($arr);
return $data[$str];
}
2020-11-17 10:18:30 +08:00
}