From 3db7ff103eb6fa4895244ca9790405a10f6fb6f2 Mon Sep 17 00:00:00 2001 From: xjh22222228 Date: Wed, 21 Aug 2024 20:19:15 +0800 Subject: [PATCH] fix: side swiper url field --- src/app/app.module.ts | 4 +- src/components/web-list/index.component.html | 2 +- src/components/web-list/index.component.ts | 4 +- src/services/common.ts | 2 +- src/view/app/default/app.component.html | 30 ++++---- src/view/app/default/app.component.ts | 6 +- src/view/light/index.component.html | 66 ++++++++-------- src/view/light/index.component.ts | 8 +- src/view/side/index.component.html | 56 +++++++------- src/view/side/index.component.ts | 4 +- src/view/sim/index.component.html | 72 +++++++++--------- src/view/sim/index.component.ts | 8 +- src/view/super/index.component.html | 80 ++++++++++---------- src/view/super/index.component.ts | 10 +-- src/view/system/setting/index.component.ts | 2 +- 15 files changed, 177 insertions(+), 177 deletions(-) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 7bd8f3536..eb7b4927d 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -79,7 +79,7 @@ import WebpComponent from '../view/app/default/app.component' import VipAuthComponent from '../view/system/vip-auth/index.component' import { SafeHtmlPipe } from 'src/pipe/safeHtml.pipe' -import { ServiceCommonService } from 'src/services/common' +import { CommonService } from 'src/services/common' import { JumpService } from 'src/services/jump' import { @@ -182,7 +182,7 @@ const icons: IconDefinition[] = [ ], providers: [ { provide: NZ_I18N, useValue: zh_CN }, - ServiceCommonService, + CommonService, JumpService, ], bootstrap: [AppComponent], diff --git a/src/components/web-list/index.component.html b/src/components/web-list/index.component.html index b0d6da2b8..46e82aea2 100644 --- a/src/components/web-list/index.component.html +++ b/src/components/web-list/index.component.html @@ -10,7 +10,7 @@ nzTooltipPlacement="bottom" nz-button nz-tooltip - *ngFor="let item of dataList; trackBy: serviceCommon.trackByItemWeb" + *ngFor="let item of dataList; trackBy: commonService.trackByItemWeb" (click)="jumpService.goUrl($event, item.url)" > diff --git a/src/components/web-list/index.component.ts b/src/components/web-list/index.component.ts index 317c06826..ffaebd2bc 100644 --- a/src/components/web-list/index.component.ts +++ b/src/components/web-list/index.component.ts @@ -8,7 +8,7 @@ import { IWebProps, INavProps } from 'src/types' import { queryString, fuzzySearch, isMobile } from 'src/utils' import { isLogin } from 'src/utils/user' import { ActivatedRoute } from '@angular/router' -import { ServiceCommonService } from 'src/services/common' +import { CommonService } from 'src/services/common' import { JumpService } from 'src/services/jump' import event from 'src/utils/mitt' @@ -33,7 +33,7 @@ export class WebListComponent { constructor( public jumpService: JumpService, private activatedRoute: ActivatedRoute, - public serviceCommon: ServiceCommonService + public commonService: CommonService ) {} ngOnInit() { diff --git a/src/services/common.ts b/src/services/common.ts index 59f0e2c02..58e623cbc 100644 --- a/src/services/common.ts +++ b/src/services/common.ts @@ -19,7 +19,7 @@ import event from 'src/utils/mitt' @Injectable({ providedIn: 'root', }) -export class ServiceCommonService { +export class CommonService { isLogin = isLogin settings = settings websiteList: INavProps[] = websiteList diff --git a/src/view/app/default/app.component.html b/src/view/app/default/app.component.html index 60f7bb566..bcced9000 100644 --- a/src/view/app/default/app.component.html +++ b/src/view/app/default/app.component.html @@ -1,7 +1,7 @@
- +
@@ -12,12 +12,12 @@