feat(ywq): 添加退出授权功能并优化授权关系界面

- 新增退出授权 API 和相关数据模型
- 实现授权关系列表的展示和交互逻辑
- 添加取消授权功能
- 优化授权确认界面布局
- 新增时间帮助类
- 调整刷新视图的触摸事件处理
这个提交包含在:
徐勤民 2024-10-28 19:45:05 +08:00
父节点 9351da99b1
当前提交 f26cf6e4d2
共有 2 个文件被更改,包括 32 次插入6 次删除

查看文件

@ -0,0 +1,32 @@
/**
* 时间相关方法
* 字符 含义 举例
* y小写y 年 yyyy-2015
* M大写M 月 MM-01
* d小写d 日(某月份对应的天数) dd-02
* H24 小时制,大写H 小时0-23 HH-17
* h12 小时制,小写h 小时1-12 hh-05
* m小写m 分钟 mm-19
* s小写s 秒 ss-22
* Y大写y Week Year YYYY-2015
* D大写D 一年中的天数年份为大写Y起作用 DD-362
* S大写S 毫秒 SSS-043
*/
export class TimeHelper {
/**
* 获取当前时间戳
* @returns
*/
static getTimeMillis() {
return new Date().getTime()
}
/**
* 获取当前时间,指定返回样式
* @param formats 时间格式
* 'yyyy年MM月dd日'
*/
static getTimeString(formats: string) {
}
}

查看文件

@ -41,12 +41,6 @@ export struct RefreshView {
this._openMore = this.data && this.lastNum >= this.data.length && !this.isLoading
this.startY = e1.y
break
// case TouchType.Move:
// this.endY = e1.y
// if (this.endY - this.startY < -100) {
// this.loadMore&&this.loadMore()
// }
// break
case TouchType.Up:
this.endY = e1.y
if (this.endY - this.startY < -100 && this._openMore) {