Browse Source

app-自测练习

xiaoqiao 8 months ago
parent
commit
5257c210a2

File diff suppressed because it is too large
+ 995 - 229
parth5/parth5/package-lock.json


+ 8 - 0
parth5/parth5/src/app/routes/exam.ts

@@ -0,0 +1,8 @@
+import {Routes} from "@angular/router";
+import {ExamtestComponent} from "../views/pages/examtest/examtest.component";
+
+const routes: Routes = [
+  {path: 'exam/examtest', component: ExamtestComponent,},
+];
+
+export default routes;

+ 11 - 0
parth5/parth5/src/app/views/pages/examtest/examtest.component.html

@@ -0,0 +1,11 @@
+<ion-header class="header-theme2">
+  <ion-toolbar>
+    <ion-label class="title-center">自测练习</ion-label>
+    <ion-buttons slot="start">
+      <ion-back-button icon="ios-back2" text="" mode="md"></ion-back-button>
+    </ion-buttons>
+  </ion-toolbar>
+</ion-header>
+<ion-content>
+  对对对对
+</ion-content>

+ 0 - 0
parth5/parth5/src/app/views/pages/examtest/examtest.component.scss


+ 24 - 0
parth5/parth5/src/app/views/pages/examtest/examtest.component.spec.ts

@@ -0,0 +1,24 @@
+import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
+import { IonicModule } from '@ionic/angular';
+
+import { ExamtestComponent } from './examtest.component';
+
+describe('ExamtestComponent', () => {
+  let component: ExamtestComponent;
+  let fixture: ComponentFixture<ExamtestComponent>;
+
+  beforeEach(waitForAsync(() => {
+    TestBed.configureTestingModule({
+      declarations: [ ExamtestComponent ],
+      imports: [IonicModule.forRoot()]
+    }).compileComponents();
+
+    fixture = TestBed.createComponent(ExamtestComponent);
+    component = fixture.componentInstance;
+    fixture.detectChanges();
+  }));
+
+  it('should create', () => {
+    expect(component).toBeTruthy();
+  });
+});

+ 14 - 0
parth5/parth5/src/app/views/pages/examtest/examtest.component.ts

@@ -0,0 +1,14 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+  selector: 'app-examtest',
+  templateUrl: './examtest.component.html',
+  styleUrls: ['./examtest.component.scss'],
+})
+export class ExamtestComponent implements OnInit {
+
+  constructor() { }
+
+  ngOnInit() {}
+
+}

+ 6 - 0
parth5/parth5/src/app/views/tapp/tab-main/tab-main.page.html

@@ -7,6 +7,12 @@
       </div>
       <div class="tool-title">{{item.MODULARNAME}}</div>
     </a>
+    <a class="tool-item"   routerLink="./exam/examtest">
+      <div class="tool-img">
+        <img src="assets/icon/tool_more.svg" style="width: 32px;height: 32px">
+      </div>
+      <div class="tool-title">自测练习</div>
+    </a>
     <a class="tool-item" (click)="more()">
       <div class="tool-img">
         <img src="assets/icon/tool_more.svg" style="width: 32px;height: 32px">

+ 3 - 1
parth5/parth5/src/app/views/tapp/tab-main/tab-main.route.ts

@@ -5,6 +5,7 @@ import partyUserRoutes from "../../../routes/partyUser";
 import shykRoutes from "../../../routes/shyk";
 import partyDuesRoutes from "../../../routes/partyDues";
 import positionRoutes from "../../../routes/propagandawork/position";
+import examRoutes from "../../../routes/exam";
 
 export const routes: Routes = [
   {
@@ -15,5 +16,6 @@ export const routes: Routes = [
   ...partyUserRoutes,
   ...shykRoutes,
   ...partyDuesRoutes,
-  ...positionRoutes
+  ...positionRoutes,
+  ...examRoutes
 ];

+ 4 - 1
parth5/parth5/src/app/views/tapp/tabs/tabs.module.ts

@@ -58,6 +58,8 @@ import {routes as MainRoutes} from "../tab-main/tab-main.route";
 import {routes as StudyRoutes} from "../tab-study/tab-study.route";
 import {routes as UserRoutes} from "../tab-user/tab-user.route";
 
+import { ExamtestComponent} from "../../pages/examtest/examtest.component";
+
 const pageComponents = [
   PositionComponent,
   PositionEditComponent,
@@ -83,7 +85,8 @@ const pageComponents = [
   ShykEditComponent,
   ShykDetailComponent,
   RecordComponent,
-  PartyUserRewardComponent
+  PartyUserRewardComponent,
+  ExamtestComponent
 ];
 
 const pubComponents = [