Skip to content

Commit

Permalink
update select-city link
Browse files Browse the repository at this point in the history
  • Loading branch information
jyzbamboo committed Jan 25, 2018
1 parent 51f2bc6 commit c9faefb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/one-stop/index/index.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@
</ngb-tab>
<ngb-tab [disabled]="true">
<ng-template ngbTabTitle>
<a href="/one-stop/select-region?group=default" class="select-city-a">
<a href="/one-stop/select-region?group=default" class="select-city-a" (click)="goSelectCity()">
选择城市 <i class="layui-icon yzs-select-city-icon">&#xe61a;</i>
</a>
</ng-template>
Expand Down
9 changes: 7 additions & 2 deletions src/app/one-stop/index/index.component.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';

@Component({
selector: 'app-index',
templateUrl: './index.component.html',
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');
}
}

0 comments on commit c9faefb

Please sign in to comment.