Commit 7b2ee7cc authored by nanahira's avatar nanahira

upates

parent 2252cc1f
Pipeline #36492 failed with stages
in 1 minute and 23 seconds
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
</div> </div>
<br *ngIf="ad"> <br *ngIf="ad">
<div class="row"> <div class="row">
<div class="col-lg-3"></div> <div class="col-lg-3 col-md-2 col-sm-1"></div>
<div class="col-lg-6"> <div class="col-lg-6 col-md-8 col-sm-10">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-lg-12"> <div class="col-lg-12">
...@@ -22,18 +22,24 @@ ...@@ -22,18 +22,24 @@
</div> </div>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-lg-6"> <div class="col-6">
<br> <br>
<button class="btn btn-danger" style="width: 100%" (click)="onBlacklistSearch()">黑名单查询</button> <button class="btn btn-danger" style="width: 100%" (click)="onBlacklistSearch()">黑名单查询</button>
</div> </div>
<div class="col-lg-6"> <div class="col-6">
<br> <br>
<button class="btn btn-success" style="width: 100%" (click)="onWhitelistSearch()">白名单查询</button> <button class="btn btn-success" style="width: 100%" (click)="onWhitelistSearch()">白名单查询</button>
</div> </div>
</div> </div>
<div class="row">
<div class="col-lg-12">
<br>
<button class="btn btn-primary" style="width: 100%" (click)="onRandomSearch()">赛博皇帝选妃按钮</button>
</div>
</div>
</div> </div>
</div> </div>
<div class="col-lg-3"></div> <div class="col-lg-3 col-md-2 col-sm-1"></div>
</div> </div>
</div> </div>
......
...@@ -17,7 +17,7 @@ import { ...@@ -17,7 +17,7 @@ import {
export class AppComponent implements AfterViewInit { export class AppComponent implements AfterViewInit {
search = ''; search = '';
displayingAccount = ''; displayingAccount = '';
title = '蔷蔷挂人查询'; title = '蔷蔷查询';
ad: Ad | null = null; ad: Ad | null = null;
blacklistResult?: BlacklistAccountResultDto[]; blacklistResult?: BlacklistAccountResultDto[];
whitelistResult?: WhitelistAccountResultDto[]; whitelistResult?: WhitelistAccountResultDto[];
...@@ -127,7 +127,7 @@ export class AppComponent implements AfterViewInit { ...@@ -127,7 +127,7 @@ export class AppComponent implements AfterViewInit {
this.blacklistResult = undefined; this.blacklistResult = undefined;
this.whitelistResult = undefined; this.whitelistResult = undefined;
const search = this.search.trim(); const search = this.search.trim();
if (!(await this.checkSearch(true))) { if (!(await this.checkSearch())) {
return; return;
} }
...@@ -138,6 +138,17 @@ export class AppComponent implements AfterViewInit { ...@@ -138,6 +138,17 @@ export class AppComponent implements AfterViewInit {
this.toast.error(`查询失败:${(e as Error).toString()}`); this.toast.error(`查询失败:${(e as Error).toString()}`);
} }
} }
async onRandomSearch() {
this.blacklistResult = undefined;
this.whitelistResult = undefined;
try {
await this.searchWhitelist();
this.displayingAccount = '';
} catch (e) {
this.toast.error(`查询失败:${(e as Error).toString()}`);
}
}
truncateMiddle(text: string, maxLength: number): string { truncateMiddle(text: string, maxLength: number): string {
if (!text || text.length <= maxLength) { if (!text || text.length <= maxLength) {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>蔷蔷挂人查询</title> <title>蔷蔷查询</title>
<base href="/"> <base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="icon" type="image/x-icon" href="favicon.ico">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment