Commit b55dd698 authored by wangqinghua's avatar wangqinghua

排行榜

parent 38ba4c5f
@import "../theme/icon";
@import "../theme/style";
html,ion-app.ios{
font-family: "webfont",serif !important;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.web-font {
font-family: "webfont",serif !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
//html,ion-app.ios{
// font-family: "webfont",serif !important;
// font-style: normal;
// -webkit-font-smoothing: antialiased;
// -moz-osx-font-smoothing: grayscale;
//}
//.web-font {
// font-family: "webfont",serif !important;
// font-size: 16px;
// font-style: normal;
// -webkit-font-smoothing: antialiased;
// -moz-osx-font-smoothing: grayscale;
//}
p {
margin: 0;
}
......
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="30px"
height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
<g id="Background_xA0_图像_1_">
</g>
<g id="Layer_1_1_">
<g id="Home">
<g>
<path fill="#488AFF" d="M25.201,21.918h-2.777v-9.071h3.154c1.645-1.376,0.287-2.898,0.287-2.898L22.99,7.882V4.316
c0-0.611-0.494-1.105-1.105-1.105h-1.189c-0.611,0-1.105,0.494-1.105,1.105v1.131c-1.736-1.238-3.244-2.305-3.598-2.526
c-0.93-0.579-1.934-0.072-1.934-0.072S4.832,9.297,3.973,10.384c-0.859,2.029,0.715,2.463,0.715,2.463h2.996v9.071H4.906
c-0.656,0-1.189,0.533-1.189,1.189v1.021c0,0.658,0.533,1.19,1.189,1.19h5.357h9.58h5.357c0.656,0,1.191-0.533,1.191-1.19v-1.021
C26.393,22.452,25.857,21.918,25.201,21.918z M17.889,21.918h-5.67v-6.521c0-0.782,0.635-1.417,1.418-1.417h2.836
c0.781,0,1.416,0.635,1.416,1.417V21.918z"/>
</g>
</g>
</g>
</svg>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="30px"
height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
<g id="Background_xA0_图像_1_">
</g>
<g id="Layer_1_1_">
<g id="Person">
<g>
<path fill="#488AFF" d="M15.054,14.15c2.974,0,5.386-2.638,5.386-5.531s-2.412-5.24-5.386-5.24c-2.975,0-5.386,2.347-5.386,5.24
S12.079,14.15,15.054,14.15z M15.125,15.851c-7.086,0-10.559,4.44-10.559,10.127c0,0.216,0.019,0.644,0.019,0.644h20.938
c0.013-0.212,0.02-0.427,0.02-0.644C25.542,20.292,21.785,15.851,15.125,15.851z"/>
</g>
</g>
</g>
</svg>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="30px"
height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
<g id="Background_xA0_图像_1_">
</g>
<g id="Layer_1_1_">
<g id="Flow_x5F_Chart">
<g>
<path fill="#488AFF" d="M6.551,18.26h7.368v2.269h2.27V18.26h7.37v2.269h2.268V18.26v-0.567v-1.701h-9.638v-2.268h-2.27v2.268
H4.282v1.701v0.567v2.269h2.269V18.26z M8.945,12.59h12.219c1.008,0,1.827-0.818,1.827-1.827V5.916
c0-1.01-0.819-1.828-1.827-1.828H8.945c-1.009,0-1.828,0.817-1.828,1.828v4.848C7.117,11.772,7.937,12.59,8.945,12.59z
M7.798,21.662H3.036c-0.563,0-1.021,0.457-1.021,1.02v3.062c0,0.564,0.457,1.021,1.021,1.021h4.762
c0.564,0,1.021-0.457,1.021-1.021v-3.062C8.818,22.119,8.362,21.662,7.798,21.662z M27.072,21.662h-4.761
c-0.564,0-1.021,0.457-1.021,1.02v3.062c0,0.564,0.456,1.021,1.021,1.021h4.761c0.563,0,1.021-0.457,1.021-1.021v-3.062
C28.093,22.119,27.636,21.662,27.072,21.662z M17.436,21.662h-4.762c-0.564,0-1.021,0.457-1.021,1.02v3.062
c0,0.564,0.457,1.021,1.021,1.021h4.762c0.563,0,1.021-0.457,1.021-1.021v-3.062C18.456,22.119,17.999,21.662,17.436,21.662z"/>
</g>
</g>
</g>
</svg>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="30px"
height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
<g id="Background_xA0_图像_1_">
</g>
<g id="Layer_1_1_">
<g id="Grid">
<g>
<path fill="#488AFF" d="M11.072,4.263H5.63c-1.001,0-1.813,0.812-1.813,1.814v5.443c0,1.002,0.813,1.813,1.813,1.813h5.442
c1.002,0,1.815-0.812,1.815-1.813V6.077C12.888,5.075,12.074,4.263,11.072,4.263z M11.072,17.869H5.63
c-1.001,0-1.813,0.812-1.813,1.814v5.442c0,1.002,0.813,1.814,1.813,1.814h5.442c1.002,0,1.815-0.812,1.815-1.814v-5.442
C12.888,18.681,12.074,17.869,11.072,17.869z M24.679,4.263h-5.442c-1.002,0-1.813,0.812-1.813,1.814v5.443
c0,1.002,0.812,1.813,1.813,1.813h5.442c1.001,0,1.813-0.812,1.813-1.813V6.077C26.492,5.075,25.68,4.263,24.679,4.263z
M24.679,17.869h-5.442c-1.002,0-1.813,0.812-1.813,1.814v5.442c0,1.002,0.812,1.814,1.813,1.814h5.442
c1.001,0,1.813-0.812,1.813-1.814v-5.442C26.492,18.681,25.68,17.869,24.679,17.869z"/>
</g>
</g>
</g>
</svg>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="30px"
height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
<g id="Background_xA0_图像_1_">
</g>
<g id="Layer_1_1_">
<g id="Home_2_">
<g>
<path fill="#979797" d="M25.146,21.918h-2.777v-9.071h3.154c1.645-1.376,0.287-2.898,0.287-2.898l-2.875-2.068V4.316
c0-0.611-0.494-1.105-1.105-1.105h-1.189c-0.611,0-1.105,0.494-1.105,1.105v1.131c-1.736-1.238-3.244-2.305-3.598-2.526
c-0.93-0.579-1.934-0.072-1.934-0.072S4.777,9.297,3.918,10.384c-0.859,2.029,0.715,2.463,0.715,2.463h2.996v9.071H4.852
c-0.656,0-1.189,0.533-1.189,1.189v1.021c0,0.658,0.533,1.19,1.189,1.19h20.295c0.656,0,1.191-0.533,1.191-1.19v-1.021
C26.338,22.452,25.803,21.918,25.146,21.918z M17.834,21.918h-5.67v-6.521c0-0.782,0.635-1.417,1.418-1.417h2.836
c0.781,0,1.416,0.635,1.416,1.417V21.918z"/>
</g>
</g>
</g>
</svg>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="30px"
height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
<g id="Background_xA0_图像_1_">
</g>
<g id="Layer_1_1_">
<g id="Person_2_">
<g>
<path fill="#979797" d="M14.999,14.15c2.974,0,5.386-2.638,5.386-5.531s-2.412-5.24-5.386-5.24c-2.975,0-5.386,2.347-5.386,5.24
S12.024,14.15,14.999,14.15z M15.07,15.851c-7.086,0-10.559,4.44-10.559,10.127c0,0.216,0.019,0.644,0.019,0.644h20.938
c0.013-0.212,0.02-0.427,0.02-0.644C25.487,20.292,21.73,15.851,15.07,15.851z"/>
</g>
</g>
</g>
</svg>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="30px"
height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
<g id="Background_xA0_图像_1_">
</g>
<g id="Layer_1_1_">
<g id="Flow_x5F_Chart_2_">
<g>
<path fill="#979797" d="M7.743,21.662H2.981c-0.563,0-1.021,0.457-1.021,1.02v3.062c0,0.564,0.457,1.021,1.021,1.021h4.762
c0.564,0,1.021-0.457,1.021-1.021v-3.062C8.764,22.119,8.308,21.662,7.743,21.662z M8.891,12.59h12.219
c1.008,0,1.827-0.818,1.827-1.827V5.916c0-1.01-0.819-1.828-1.827-1.828H8.891c-1.009,0-1.828,0.817-1.828,1.828v4.848
C7.063,11.772,7.882,12.59,8.891,12.59z M6.496,18.26h7.368v2.269h2.27V18.26h7.37v2.269h2.268v-4.536h-9.638v-2.268h-2.27v2.268
H4.228v4.536h2.269V18.26z M17.381,21.662h-4.762c-0.564,0-1.021,0.457-1.021,1.02v3.062c0,0.564,0.457,1.021,1.021,1.021h4.762
c0.563,0,1.021-0.457,1.021-1.021v-3.062C18.401,22.119,17.944,21.662,17.381,21.662z M27.018,21.662h-4.761
c-0.564,0-1.021,0.457-1.021,1.02v3.062c0,0.564,0.456,1.021,1.021,1.021h4.761c0.563,0,1.021-0.457,1.021-1.021v-3.062
C28.038,22.119,27.581,21.662,27.018,21.662z"/>
</g>
</g>
</g>
</svg>
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="30px"
height="30px" viewBox="0 0 30 30" enable-background="new 0 0 30 30" xml:space="preserve">
<g id="Background_xA0_图像_1_">
</g>
<g id="Layer_1_1_">
<g id="Grid_2_">
<g>
<path fill="#979797" d="M11.018,4.263H5.575c-1.001,0-1.813,0.812-1.813,1.814v5.443c0,1.002,0.813,1.813,1.813,1.813h5.442
c1.002,0,1.815-0.812,1.815-1.813V6.077C12.833,5.075,12.02,4.263,11.018,4.263z M11.018,17.869H5.575
c-1.001,0-1.813,0.812-1.813,1.814v5.442c0,1.002,0.813,1.814,1.813,1.814h5.442c1.002,0,1.815-0.812,1.815-1.814v-5.442
C12.833,18.681,12.02,17.869,11.018,17.869z M24.624,17.869h-5.442c-1.002,0-1.813,0.812-1.813,1.814v5.442
c0,1.002,0.812,1.814,1.813,1.814h5.442c1.001,0,1.813-0.812,1.813-1.814v-5.442C26.438,18.681,25.625,17.869,24.624,17.869z
M24.624,4.263h-5.442c-1.002,0-1.813,0.812-1.813,1.814v5.443c0,1.002,0.812,1.813,1.813,1.813h5.442
c1.001,0,1.813-0.812,1.813-1.813V6.077C26.438,5.075,25.625,4.263,24.624,4.263z"/>
</g>
</g>
</g>
</svg>
......@@ -59,4 +59,5 @@
</div>
</div>
</div>
<button class="submit-btn submit" (click)="goToRank()">排行榜</button>
</ion-content>
......@@ -58,4 +58,9 @@ page-learn-detail {
flex: 4;
}
}
.submit{
margin-top: 20px;
border: 1px solid #34b4fc;
background-color: #34b4fc;
}
}
......@@ -3,6 +3,7 @@ import {IonicPage, NavController, NavParams} from 'ionic-angular';
import {ReadLearnPage} from "../read-learn/read-learn";
import {LearnManageService} from "../learnManage.service";
import {CommonService} from "../../../../provide/common.service";
import {RankListPage} from "../rank-list/rank-list";
@IonicPage()
......@@ -39,4 +40,11 @@ export class LearnDetailPage {
}
}
//查看排行榜
goToRank(){
this.navCtrl.push('RankListPage',{
testId:this.testId
})
}
}
<!--排行榜-->
<ion-header>
<ion-navbar>
<ion-title>排行榜</ion-title>
</ion-navbar>
</ion-header>
<ion-content>
<!--下拉刷新-->
<ion-refresher (ionRefresh)="doRefresh($event)">
<ion-refresher-content pullingText="下拉刷新"
pullingIcon="arrow-dropdown"
refreshingSpinner="bubbles">
</ion-refresher-content>
</ion-refresher>
<ion-list>
<div class="main-container">
<div class="learn-item">
<div class="top-container">
<ion-grid>
<ion-row class="top-row">
<ion-col col-2>排名</ion-col>
<ion-col col-5>姓名</ion-col>
<ion-col col-5>分数</ion-col>
</ion-row>
<ion-row class="top-col" *ngFor="let item of list;let i = index;">
<ion-col col-2>
<img *ngIf="i == 0" src="./assets/imgs/learn/one.png">
<img *ngIf="i == 1" src="./assets/imgs/learn/two.png">
<img *ngIf="i == 2" src="./assets/imgs/learn/three.png">
<span *ngIf="i > 2" class="span-rank">{{i +1}}</span>
</ion-col>
<ion-col col-5>{{item.username}}</ion-col>
<ion-col col-5>{{item.score}}</ion-col>
</ion-row>
</ion-grid>
</div>
</div>
</div>
</ion-list>
<!--<p class="tips">备注:分数相同的情况下,先交卷者排名在前</p>-->
<!--上滑加载数据-->
<ion-infinite-scroll (ionInfinite)="doInfinite($event)">
<ion-infinite-scroll-content></ion-infinite-scroll-content>
</ion-infinite-scroll>
</ion-content>
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { RankListPage } from './rank-list';
@NgModule({
declarations: [
RankListPage,
],
imports: [
IonicPageModule.forChild(RankListPage),
],
})
export class RankListPageModule {}
page-rank-list {
.top-container{
text-align: center;
padding: 1.5rem;
}
.top-row{
color: #577ab9;
font-size: 1.8rem;
}
.top-col{
background-color: #fff;
margin: .5rem;
height: 3rem;
line-height: 2rem;
font-size: 1.5rem;
border-radius: 4px;
img{
width: 2rem;
}
}
.tips{
position: fixed;
bottom: 2rem;
left: 0;
text-align: center;
color: #577ab9;
width: 100%;
}
.span-rank{
display: inline-block;
width: 1.5rem;
height: 1.5rem;
background-color: #bfcbe0;
border-radius: 2px;
color: #fff;
font-size: 1.2rem;
vertical-align: middle;
line-height: 1.5rem;
}
}
import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams} from 'ionic-angular';
import {DatePipe} from "@angular/common";
import {CommonService} from "../../../../provide/common.service";
/**
* Generated class for the RankListPage page.
*
* See https://ionicframework.com/docs/components/#navigation for more info on
* Ionic pages and navigation.
*/
@IonicPage()
@Component({
selector: 'page-rank-list',
templateUrl: 'rank-list.html',
})
export class RankListPage {
testId;
pageNumber = 1;
pageSize = 25;
list = [
{username: '1', score: '100'},
{username: '2', score: '100'},
{username: '3', score: '100'},
{username: '4', score: '100'},
{username: '5', score: '100'},
{username: '6', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
{username: '7', score: '100'},
];
constructor(public navCtrl: NavController, public navParams: NavParams,
public datePipe:DatePipe,public commonSer:CommonService) {
}
ionViewDidLoad() {
this.testId = this.navParams.get('testId');
}
// 下拉
doRefresh(refresher) {
this.commonSer.log("下拉")
this.pageNumber = 1;
const nowDate = this.datePipe.transform(new Date(), 'yyyy/MM/dd HH:hh:ss')
const data = {
pageNumber: this.pageNumber,
pageSize: this.pageSize,
selectType: '1', //全部状态
queryTime: nowDate,
};
refresher.complete()
}
//上拉
doInfinite(infiniteScroll) {
this.commonSer.log("上拉")
this.pageNumber++;
const nowDate = this.datePipe.transform(new Date(), 'yyyy/MM/dd HH:hh:ss')
const data = {
pageNumber: this.pageNumber,
pageSize: this.pageSize,
selectType: '1', //全部状态
queryTime: nowDate,
};
infiniteScroll.complete();
}
}
......@@ -43,4 +43,14 @@ export class LearnService{
getTop5(data): Observable<any>{
return this.http.get(AppGlobal.domain+'/wisdomgroup/modules/learnPcTest/top/' + data);
}
//待批阅列表
getMarkList(data): Observable<any>{
return this.http.post(AppGlobal.domain+'/wisdomgroup/modules/testManage/getMarkList' , data);
}
//提交批阅结果
submitMarkResult(data): Observable<any>{
return this.http.post(AppGlobal.domain+'/wisdomgroup/modules/testManage/submitMarkResult' , data);
}
}
\ No newline at end of file
......@@ -16,16 +16,12 @@
<img src="./assets/imgs/icon-phone.png" class="login-input-img">
<input [(ngModel)]="user.mobile" class="login-input-content" name="mobile" type="text" #mobile required placeholder="手机号"
(ionBlur)="loseFocus()" (ionFocus)="getFocus()" />
<!-- <input type="number" placeholder="手机号" class="login-input-content" [(ngModel)]="user.username" name="username" #username required (ionBlur)="loseFocus()" (ionFocus)="getFocus()"> -->
</div>
<div class="login-input">
<img src="./assets/imgs/icon-password.png" class="login-input-img">
<input [(ngModel)]="user.password" class="login-input-content" name="password" type="password" #password required placeholder="密 码"
(ionBlur)="loseFocus()" (ionFocus)="getFocus()" />
<!-- <input [(ngModel)]="user.password" name="password" type="password" #password required placeholder="密 码" (ionBlur)="loseFocus()" (ionFocus)="getFocus()" class="login-input-content"> -->
</div>
<!-- <button class="login-bt" ion-button (click)="login()" [disabled]="!loginForm.valid || submitted" type="submit" block>登 录</button> -->
<div class="mui-input-row mui-checkbox mui-left" style="margin-bottom: 15px;">
<input [(ngModel)]="user.remember" name="checkbox" class="jizhu-password" value="1" type="checkbox" checked="true" style="margin-left:10px;width:17px;height:17px;vertical-align:middle">
<label style="padding-left:5px;font-family:'微软雅黑';" class="jizhu-password-label">记住密码</label>
......
......@@ -61,7 +61,6 @@
<img src="./assets/imgs/home/icon-more.png" alt="">
<label class="label2-2 more2-2">更多应用</label>
</div>
<div class="web-font">说金钱是罪恶,都在捞;说美女是祸水,都想要;说高处不胜寒,都在爬;说烟酒伤身体,都不戒;说天堂最美好,都不去!</div>
<!--<div class="card" (click)="readBook()">-->
<!--<img src="./assets/imgs/home/icon-more.png" alt="">-->
<!--<label class="label2-2 more2-2">阅读</label>-->
......
......@@ -11,12 +11,13 @@ export class FormatTimePipe implements PipeTransform {
transform(value, ...args) {
let hourse = (Math.floor(value / 3600)).toString();
hourse = (hourse.length > 1 ? hourse : '0' + hourse);
let minutes =<any> Math.floor(value / 60);
minutes = minutes % 60 === 0 ? '0' : minutes;
let minutes =<any> Math.floor(value / 60).toString();
minutes = minutes % 60 === 0 ? 0:minutes;
minutes = (minutes.length > 1 ? minutes : '0' + minutes);
let seconds = Math.floor(value % 60).toString();
seconds = (seconds.length > 1 ? seconds : '0' + seconds);
const timeText = hourse + ":" + minutes + ":" + seconds;
console.log(timeText)
return timeText;
}
}
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