diff --git a/src/app/one-stop/index/index.component.html b/src/app/one-stop/index/index.component.html index 86c4e86..b35656c 100644 --- a/src/app/one-stop/index/index.component.html +++ b/src/app/one-stop/index/index.component.html @@ -522,7 +522,7 @@ - + 选择城市 diff --git a/src/app/one-stop/index/index.component.ts b/src/app/one-stop/index/index.component.ts index 5d17d05..a902017 100644 --- a/src/app/one-stop/index/index.component.ts +++ b/src/app/one-stop/index/index.component.ts @@ -1,4 +1,5 @@ import { Component, OnInit } from '@angular/core'; +import { Router } from '@angular/router'; @Component({ selector: 'app-index', @@ -6,8 +7,12 @@ import { Component, OnInit } from '@angular/core'; styleUrls: ['./index.component.css'] }) export class IndexComponent implements OnInit { - constructor() {} + constructor(private router: Router) {} ngOnInit() { } -} + + goSelectCity() { + this.router.navigateByUrl('/one-stop/select-region?group=default'); + } +} \ No newline at end of file