feat(ywq): 添加退出授权功能并优化授权关系界面
- 新增退出授权 API 和相关数据模型 - 实现授权关系列表的展示和交互逻辑 - 添加取消授权功能 - 优化授权确认界面布局 - 新增时间帮助类 - 调整刷新视图的触摸事件处理
这个提交包含在:
父节点
9351da99b1
当前提交
f26cf6e4d2
@ -0,0 +1,32 @@
|
||||
/**
|
||||
* 时间相关方法
|
||||
* 字符 含义 举例
|
||||
* y(小写y) 年 yyyy-2015
|
||||
* M(大写M) 月 MM-01
|
||||
* d(小写d) 日(某月份对应的天数) dd-02
|
||||
* H(24 小时制,大写H) 小时(0-23) HH-17
|
||||
* h(12 小时制,小写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) {
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户