更新
This commit is contained in:
@@ -3,9 +3,9 @@ class CommonVariables {
|
||||
|
||||
|
||||
// 企业微信客服拉起的url地址
|
||||
static String wxKfUrl = "https://work.weixin.qq.com/kfid/kfc7d2337b9c07b1269";
|
||||
static String wxKfUrl = "https://work.weixin.qq.com/kfid/kfcab6a07e8aac68945";
|
||||
// 企业微信ID
|
||||
static String wxCorpId = "ww51feda6026280cd0";
|
||||
static String wxCorpId = "wwc17348c75dbde1dc";
|
||||
//ICP备案号
|
||||
static String ICPRightCode = "皖ICP备2024068219号-1A";
|
||||
//公司名称
|
||||
|
||||
@@ -163,16 +163,20 @@ class MyUtils {
|
||||
return '${twoDigits(date.month)}/${twoDigits(date.day)}';
|
||||
}
|
||||
|
||||
static String getFormatChineseTime(date) {
|
||||
DateTime dateTime = DateTime.fromMillisecondsSinceEpoch(date);
|
||||
// 格式化年月日
|
||||
String dateStr = DateFormat('yyyy年MM月dd日').format(dateTime);
|
||||
// 获取星期
|
||||
const weekDays = ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日'];
|
||||
String weekStr = weekDays[dateTime.weekday - 1];
|
||||
static String getFormatChineseTime(int date, {bool showWeekday = true}) {
|
||||
DateTime dateTime = DateTime.fromMillisecondsSinceEpoch(date);
|
||||
// 格式化年月日
|
||||
String dateStr = DateFormat('yyyy年MM月dd日').format(dateTime);
|
||||
|
||||
if (!showWeekday) return dateStr;
|
||||
|
||||
// 获取星期
|
||||
const weekDays = ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日'];
|
||||
String weekStr = weekDays[dateTime.weekday - 1];
|
||||
|
||||
return '$dateStr $weekStr';
|
||||
}
|
||||
|
||||
return '$dateStr $weekStr';
|
||||
}
|
||||
}
|
||||
|
||||
Color stringToColor(String hexColor) {
|
||||
|
||||
Reference in New Issue
Block a user