0225221 пре 4 месеци
родитељ
комит
c0960ad286
5 измењених фајлова са 282 додато и 0 уклоњено
  1. 20 0
      tab2.module.ts
  2. 133 0
      tab2.page.html
  3. 85 0
      tab2.page.scss
  4. 26 0
      tab2.page.spec.ts
  5. 18 0
      tab2.page.ts

+ 20 - 0
tab2.module.ts

@@ -0,0 +1,20 @@
+import { IonicModule } from '@ionic/angular';
+import { NgModule } from '@angular/core';
+import { CommonModule } from '@angular/common';
+import { FormsModule } from '@angular/forms';
+import { Tab2Page } from './tab2.page';
+import { ExploreContainerComponentModule } from '../explore-container/explore-container.module';
+import { Tab2PageRoutingModule } from './tab2-routing.module';
+
+
+@NgModule({
+  imports: [
+    IonicModule,
+    CommonModule,
+    FormsModule,
+    ExploreContainerComponentModule,
+    Tab2PageRoutingModule
+  ],
+  declarations: [Tab2Page]
+})
+export class Tab2PageModule {}

+ 133 - 0
tab2.page.html

@@ -0,0 +1,133 @@
+<ion-header [translucent]="true">
+  <ion-toolbar>
+    <ion-buttons slot="start" style="width: auto; margin-left: 30px;">
+      <ion-button>
+        <ion-icon name="home"></ion-icon>
+        <p style="font-weight: bold; 
+        font-style: italic; 
+        font-size: 15px;">匹配大厅</p>
+      </ion-button>
+    </ion-buttons>
+
+    <ion-title>
+      <div class="parent">
+        <div class="child">
+          <ion-icon name="newspaper"></ion-icon>
+          <p>公告</p>
+        </div>
+        <div class="child">
+          <ion-icon name="briefcase"></ion-icon>
+          <p>背包</p>
+        </div>
+        <div class="child">
+          <ion-icon name="card"></ion-icon>
+          <p>通行证</p>
+        </div>
+        <div class="child">
+          <ion-icon name="trophy"></ion-icon>
+          <p>赛事</p>
+        </div>
+        <div class="child">
+          <ion-icon name="cart"></ion-icon>
+          <p>商店</p>
+        </div>
+      </div>
+    </ion-title>
+  </ion-toolbar>
+</ion-header>
+
+
+  <ion-card class="duiwu">
+      <div class="left">
+        <ion-icon name="person-circle"></ion-icon>
+        <p>玩家</p>
+      </div>
+      <div class="center">
+        <ion-icon name="diamond"></ion-icon>
+        <p>无畏钻石</p>
+      </div>
+      <div class="right">
+        <ion-icon name="add"></ion-icon>
+        <ion-icon name="shoe"></ion-icon>
+        <ion-icon name="alert"></ion-icon>
+      </div>
+  </ion-card>
+  <ion-card class="duiwu">
+    <div class="left">
+      <ion-icon name="person-circle"></ion-icon>
+      <p>玩家</p>
+    </div>
+    <div class="center">
+      <ion-icon name="diamond"></ion-icon>
+      <p>无畏钻石</p>
+    </div>
+    <div class="right">
+      <ion-icon name="add"></ion-icon>
+      <ion-icon name="shoe"></ion-icon>
+      <ion-icon name="alert"></ion-icon>
+    </div>
+</ion-card>
+<ion-card class="duiwu">
+  <div class="left">
+    <ion-icon name="person-circle"></ion-icon>
+    <p>玩家</p>
+  </div>
+  <div class="center">
+    <ion-icon name="diamond"></ion-icon>
+    <p>无畏钻石</p>
+  </div>
+  <div class="right">
+    <ion-icon name="add"></ion-icon>
+    <ion-icon name="shoe"></ion-icon>
+    <ion-icon name="alert"></ion-icon>
+  </div>
+</ion-card>
+<ion-card class="duiwu">
+  <div class="left">
+    <ion-icon name="person-circle"></ion-icon>
+    <p>玩家</p>
+  </div>
+  <div class="center">
+    <ion-icon name="diamond"></ion-icon>
+    <p>无畏钻石</p>
+  </div>
+  <div class="right">
+    <ion-icon name="add"></ion-icon>
+    <ion-icon name="shoe"></ion-icon>
+    <ion-icon name="alert"></ion-icon>
+  </div>
+</ion-card>
+<ion-card class="duiwu">
+      <div class="left">
+        <ion-icon name="person-circle"></ion-icon>
+        <p>玩家</p>
+      </div>
+      <div class="center">
+        <ion-icon name="diamond"></ion-icon>
+        <p>无畏钻石</p>
+      </div>
+      <div class="right">
+        <ion-icon name="add"></ion-icon>
+        <ion-icon name="shoe"></ion-icon>
+        <ion-icon name="alert"></ion-icon>
+      </div>
+  </ion-card>
+
+
+
+<div class="content-container">
+  <ion-content>
+    <div class="top-section2">
+      <div class="left2">
+        <ion-button expand="block">竞技</ion-button>
+      </div>
+      <div class="middle2">
+        <img src="assets/img/a.png" style="width: 200px; height: 150px;"  alt="">
+        <p>VS</p>
+      </div>
+      <div class="right2">
+        <ion-button expand="block">娱乐</ion-button>
+      </div>
+    </div>
+  </ion-content>
+</div>

+ 85 - 0
tab2.page.scss

@@ -0,0 +1,85 @@
+.parent {
+    display: flex;
+    margin-left: 300px;
+    justify-content: center; /* 水平居中 */
+}
+
+.child {
+    flex: 1; /* 平均分配空间 */
+    margin: 0 10px; /* 设置水平间距 */
+}
+  .top-section2 {
+    display: flex;
+    justify-content: space-between;
+    align-items: center;
+    padding: 10px;
+  
+    .left2{
+        display: flex;
+        margin-left:500px; 
+    }
+    .right2
+    {
+        display: flex;
+        margin-right:500px; 
+    }
+    .left2, .middle2, .right2 {
+      display: flex;
+      flex-direction: column;
+      align-items: center;
+  
+      ion-button {
+        width: 100%;
+        margin-bottom: 10px;
+      }
+  
+      img {
+        width: 50px; /* 自行调整图片大小 */
+        height: 50px; /* 自行调整图片大小 */
+        margin-bottom: 5px;
+      }
+  
+      p {
+        font-size: 14px;
+      }
+    }
+  }
+
+  .content-container {
+    display: flex;
+    flex-direction: column;
+    justify-content: flex-end;
+    align-items: center;
+    height: 100%;
+  
+    ion-content {
+      flex: 1;
+      width: 100%;
+    }
+  }
+ 
+  
+  .duiwu {
+    
+    display: flex;
+    margin-left: 300px;
+    margin-top: 20px;
+    justify-content: space-between;
+    align-items: center;
+    width: 800px;
+    height:80px;
+  
+    .left, .center, .right {
+      display: flex;
+      align-items: center;
+    }
+  
+    ion-icon {
+      margin-right: 5px;
+      size: 30px;
+    }
+  }
+  ion-content {
+    --background: url('assets/img/a.png') no-repeat center center / cover;
+  }
+ 

+ 26 - 0
tab2.page.spec.ts

@@ -0,0 +1,26 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+import { IonicModule } from '@ionic/angular';
+
+import { ExploreContainerComponentModule } from '../explore-container/explore-container.module';
+
+import { Tab2Page } from './tab2.page';
+
+describe('Tab2Page', () => {
+  let component: Tab2Page;
+  let fixture: ComponentFixture<Tab2Page>;
+
+  beforeEach(async () => {
+    await TestBed.configureTestingModule({
+      declarations: [Tab2Page],
+      imports: [IonicModule.forRoot(), ExploreContainerComponentModule]
+    }).compileComponents();
+
+    fixture = TestBed.createComponent(Tab2Page);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  });
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});

+ 18 - 0
tab2.page.ts

@@ -0,0 +1,18 @@
+import { Component } from '@angular/core';
+import Swiper from 'swiper';
+
+@Component({
+  selector: 'app-tab2',
+  templateUrl: 'tab2.page.html',
+  styleUrls: ['tab2.page.scss']
+})
+export class Tab2Page {
+
+  
+  
+  constructor() {}
+
+ 
+
+}
+