feat(app): 项目重命名为干杯日记并优化UI设计
- 将应用名称从"喝了么"更改为"干杯日记" - 更新所有相关文件中的品牌标识和描述信息 - 升级HaveADrink依赖包从1.0.3到1.0.4版本 - 在pages.json中新增分享个人资料页面配置 - 重构DrinkCard组件UI,增加装饰背景、酒类图标支持、饮酒感受徽章等功能 - 优化API错误处理逻辑,增加静默模式支持 - 修改白酒类别图标为 urn emoji,黄酒图标为 tea emoji - 添加分享功能按钮并优化页面返回交互体验 - 引入新的工具函数用于获取酒类图标和路径判断 - 更新主题混入、常量定义等基础配置文件 - 调整全局样式和设计令牌以匹配新品牌形象
This commit is contained in:
+13
-1
@@ -1133,6 +1133,14 @@ export declare class DrinkItem {
|
||||
* 标准杯数(前端计算,后端应校验)
|
||||
*/
|
||||
standardCups: number;
|
||||
/**
|
||||
* 自定义饮酒数量
|
||||
*/
|
||||
customAmount: number;
|
||||
/**
|
||||
* 自定义饮酒单位
|
||||
*/
|
||||
customUnit: Unit;
|
||||
|
||||
/**
|
||||
* @param category Category 酒类分类ID
|
||||
@@ -1142,8 +1150,10 @@ export declare class DrinkItem {
|
||||
* @param unit Unit 单位
|
||||
* @param degree number 酒精度数(%)
|
||||
* @param standardCups number 标准杯数(前端计算,后端应校验)
|
||||
* @param customAmount number 自定义饮酒数量
|
||||
* @param customUnit Unit 自定义饮酒单位
|
||||
*/
|
||||
constructor(category: Category,brand: string,product: string,amount: number,unit: Unit,degree: number,standardCups: number,);
|
||||
constructor(category: Category,brand: string,product: string,amount: number,unit: Unit,degree: number,standardCups: number,customAmount: number,customUnit: Unit,);
|
||||
/**
|
||||
* 从对象创建 DrinkItem
|
||||
*
|
||||
@@ -1155,6 +1165,8 @@ export declare class DrinkItem {
|
||||
* - unit: Unit, // 单位
|
||||
* - degree: number, // 酒精度数(%)
|
||||
* - standardCups: number, // 标准杯数(前端计算,后端应校验)
|
||||
* - customAmount: number, // 自定义饮酒数量
|
||||
* - customUnit: Unit, // 自定义饮酒单位
|
||||
*/
|
||||
static fromObject(o: Object): DrinkItem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user