|
|
@@ -145,9 +145,10 @@ struct NewIndex {
|
|
|
onBackPress(): boolean | void {
|
|
|
if (this.currentPath !== this.rootPath || this.isHistory || this.isFavMusic ||
|
|
|
(this.modeType !== 0 && this.isCanBack)) {
|
|
|
+ console.info('onecold 返回键处理逻辑:发送音频广播通知更新列表');
|
|
|
const eventData: emitter.EventData = {};
|
|
|
emitter.emit({ eventId: 888 }, eventData); // 发送音频广播通知更新doSwipBack
|
|
|
- }if(this.mType > 0){
|
|
|
+ }else if(this.mType > 0){
|
|
|
this.getUIContext()?.animateTo({ duration: 555 }, () => {
|
|
|
// 动画闭包内控制Image组件的出现和消失
|
|
|
// this.isShowDrawer = !this.isShowDrawer
|
|
|
@@ -155,6 +156,7 @@ struct NewIndex {
|
|
|
this.mType =0
|
|
|
})
|
|
|
} else {
|
|
|
+ console.info('onecold 返回键处理 关闭');
|
|
|
if (this.isShowDrawer) {
|
|
|
// 如果抽屉菜单打开,先关闭抽屉
|
|
|
this.getUIContext()?.animateTo({ duration: 555 }, () => {
|