feat(circle): 集成HaveADrink SDK实现酒友圈功能

- 集成HaveADrink SDK版本从1.0.4升级至1.0.8
- 实现酒友圈API接口,替换原有的mock数据
- 添加地理位置权限配置(requiredPrivateInfos)
- 重构API调用方式,统一使用client实例调用真实接口
- 更新WebSocket协议与SDK保持一致,支持聊天、输入状态、已读回执等功能
- 实现游标分页获取动态信息流
- 添加文件上传API支持图片上传
- 优化API错误处理,支持业务级错误提示
- 调整酒局状态显示,新增upcoming待开始状态
- 优化自我感觉标签映射逻辑,支持更多状态类型
- 更新websocket连接认证方式,使用Authorization header传递token
- 添加服务端连接确认和被踢下线事件处理
This commit is contained in:
cg
2026-07-22 23:03:40 +08:00
parent 9052a6f4da
commit c7c023975d
21 changed files with 5677 additions and 385 deletions
+7 -2
View File
@@ -49,8 +49,9 @@ export default {
emits: ['item-click'],
computed: {
statusLabel() {
const map = { open: '报名中', ongoing: '进行中', ended: '已结束' }
return map[this.event.status] || '报名中'
const val = String(this.event.status).toLowerCase()
const map = { open: '报名中', upcoming: '待开始', ongoing: '进行中', ended: '已结束' }
return map[val] || '报名中'
}
}
}
@@ -80,6 +81,9 @@ export default {
&.status-open {
background: rgba(94,198,160,0.12);
}
&.status-upcoming {
background: rgba(139,133,184,0.12);
}
&.status-ongoing {
background: rgba(232,168,56,0.12);
}
@@ -93,6 +97,7 @@ export default {
font-weight: $fw-medium;
.status-open & { color: $mint; }
.status-upcoming & { color: $lavender; }
.status-ongoing & { color: $amber; }
.status-ended & { color: $text-tertiary; }
}
+9 -2
View File
@@ -73,8 +73,15 @@ export default {
getCatIcon,
isIconPath,
feelingLabel(f) {
const map = { sober: '😌 清醒', buzzed: '😊 微醺', tipsy: '😄 小醉', drunk: '🥴 喝多了' }
return map[f] || '🍻 喝了点'
const val = String(f).toLowerCase()
const map = {
tipsy: '😌 微醺',
buzzed: '😊 到位',
drunk: '🥴 醉了',
blackout: '😵 断片',
sober: '😌 清醒'
}
return map[val] || '🍻 喝了点'
}
}
}