瀏覽代碼

Shop page init

master
kj1352 4 年之前
父節點
當前提交
938b26bda8
共有 12 個檔案被更改,包括 111 行新增28 行删除
  1. +4
    -0
      src/app/app-routing.module.ts
  2. +12
    -7
      src/app/more/more.page.html
  3. +6
    -6
      src/app/more/more.page.ts
  4. +17
    -0
      src/app/shop/shop-routing.module.ts
  5. +20
    -0
      src/app/shop/shop.module.ts
  6. +3
    -0
      src/app/shop/shop.page.html
  7. +0
    -0
      src/app/shop/shop.page.scss
  8. +24
    -0
      src/app/shop/shop.page.spec.ts
  9. +15
    -0
      src/app/shop/shop.page.ts
  10. +4
    -0
      src/app/tabs/tabs-routing.module.ts
  11. +6
    -0
      src/app/tabs/tabs.page.html
  12. +0
    -15
      src/global.scss

+ 4
- 0
src/app/app-routing.module.ts 查看文件

@@ -57,6 +57,10 @@ const routes: Routes = [
{
path: 'quiz',
loadChildren: () => import('./quiz/quiz.module').then( m => m.QuizPageModule)
},
{
path: 'shop',
loadChildren: () => import('./shop/shop.module').then( m => m.ShopPageModule)
}
];
@NgModule({


+ 12
- 7
src/app/more/more.page.html 查看文件

@@ -1,9 +1,14 @@
<ion-header>
<ion-toolbar>
<ion-title>more</ion-title>
</ion-toolbar>
</ion-header>

<ion-content>

<button [routerLink]="['/booking']">
<ion-icon name="ticket"></ion-icon>
</button>
<button [routerLink]="['/collections']">
<ion-icon name="trophy"></ion-icon>
</button>
<button [routerLink]="['/ar']">
<ion-icon name="camera"></ion-icon>
</button>
<button [routerLink]="['/quiz']">
<ion-icon name="game-controller"></ion-icon>
</button>
</ion-content>

+ 6
- 6
src/app/more/more.page.ts 查看文件

@@ -1,15 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-more',
templateUrl: './more.page.html',
styleUrls: ['./more.page.scss'],
selector: 'app-more',
templateUrl: './more.page.html',
styleUrls: ['./more.page.scss'],
})
export class MorePage implements OnInit {

constructor() { }
constructor() { }

ngOnInit() {
}
ngOnInit() {
}

}

+ 17
- 0
src/app/shop/shop-routing.module.ts 查看文件

@@ -0,0 +1,17 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { ShopPage } from './shop.page';

const routes: Routes = [
{
path: '',
component: ShopPage
}
];

@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class ShopPageRoutingModule {}

+ 20
- 0
src/app/shop/shop.module.ts 查看文件

@@ -0,0 +1,20 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';

import { IonicModule } from '@ionic/angular';

import { ShopPageRoutingModule } from './shop-routing.module';

import { ShopPage } from './shop.page';

@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
ShopPageRoutingModule
],
declarations: [ShopPage]
})
export class ShopPageModule {}

+ 3
- 0
src/app/shop/shop.page.html 查看文件

@@ -0,0 +1,3 @@
<ion-content>

</ion-content>

+ 0
- 0
src/app/shop/shop.page.scss 查看文件


+ 24
- 0
src/app/shop/shop.page.spec.ts 查看文件

@@ -0,0 +1,24 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { IonicModule } from '@ionic/angular';

import { ShopPage } from './shop.page';

describe('ShopPage', () => {
let component: ShopPage;
let fixture: ComponentFixture<ShopPage>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ShopPage ],
imports: [IonicModule.forRoot()]
}).compileComponents();

fixture = TestBed.createComponent(ShopPage);
component = fixture.componentInstance;
fixture.detectChanges();
}));

it('should create', () => {
expect(component).toBeTruthy();
});
});

+ 15
- 0
src/app/shop/shop.page.ts 查看文件

@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-shop',
templateUrl: './shop.page.html',
styleUrls: ['./shop.page.scss'],
})
export class ShopPage implements OnInit {

constructor() { }

ngOnInit() {
}

}

+ 4
- 0
src/app/tabs/tabs-routing.module.ts 查看文件

@@ -34,6 +34,10 @@ const routes: Routes = [
{
path: 'quiz',
loadChildren: () => import('../quiz/quiz.module').then( m => m.QuizPageModule)
},
{
path: 'shop',
loadChildren: () => import('../shop/shop.module').then( m => m.ShopPageModule)
}
]
},


+ 6
- 0
src/app/tabs/tabs.page.html 查看文件

@@ -31,5 +31,11 @@
<ion-icon name="game-controller"></ion-icon>
</ion-tab-button>


<ion-tab-button tab="shop">
<ion-icon name="bag-handle-outline"></ion-icon>
<ion-icon name="bag-handle"></ion-icon>
</ion-tab-button>

</ion-tab-bar>
</ion-tabs>

+ 0
- 15
src/global.scss 查看文件

@@ -123,21 +123,6 @@ figure {
margin: 0;
}

.content-container {
animation: fadeIn 0.4s forwards;
opacity: 0;

@keyframes fadeIn {
0% {
opacity: 0;
transform: translateY(3vh);
}
100% {
opacity: 1;
transform: translateY(0vh);
}
}
}

.chat-button {
--background: transparent;


Loading…
取消
儲存