Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-ces
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqinghua
wisdom-ces
Commits
8139634a
Commit
8139634a
authored
Apr 11, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面路由返回
parent
2bc44936
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
37 deletions
+39
-37
config.xml
config.xml
+1
-1
learning-do.ts
src/pages/home/learning/learning-do/learning-do.ts
+1
-0
learning-list.html
src/pages/home/learning/learning-list/learning-list.html
+30
-30
review-result.ts
src/pages/home/learning/review-result/review-result.ts
+1
-0
appHttpService.ts
src/service/appHttpService.ts
+6
-6
No files found.
config.xml
View file @
8139634a
<?xml version='1.0' encoding='utf-8'?>
<widget
id=
"io.ionic.smart19.starter.test"
version=
"4.
1.2
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<widget
id=
"io.ionic.smart19.starter.test"
version=
"4.
0.6
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<name>
党建云平台(测试)
</name>
<description>
An awesome Ionic/Cordova app.
</description>
<author
email=
"hi@ionicframework"
href=
"http://ionicframework.com/"
>
Ionic Framework Team
</author>
...
...
src/pages/home/learning/learning-do/learning-do.ts
View file @
8139634a
...
...
@@ -202,6 +202,7 @@ export class LearningDoPage {
this
.
commonSer
.
toast
(
"提交成功"
);
if
(
this
.
type
==
'reset'
)
{
this
.
navCtrl
.
push
(
"ReviewResultPage"
,
{
testId
:
this
.
testId
,
result
:
res
.
data
,
title
:
this
.
title
})
...
...
src/pages/home/learning/learning-list/learning-list.html
View file @
8139634a
...
...
@@ -44,17 +44,17 @@
<span
*
ngIf=
"item.testResult != 0"
(
click
)="
goToResult
(
item
)"
float-right
class=
"look"
>
查看结果
</span>
<span
*
ngIf=
"item.testResult == 0"
(
click
)="
goToResult
(
item
)"
float-right
class=
"join"
>
开始测试
</span>
</div>
<
div
class=
"content-button padding-15-0 fontSize-15"
>
<
span
class=
"margin-right-10"
>
最高分:
<span
*
ngIf=
"!item?.maxNum && item?.maxNum != 0"
>
无
</span
>
<
span
class=
"color-red"
>
{{item.maxNum}}
</span
>
<
/span
>
<
span>
排名:
</span
>
<
span
*
ngIf=
"!item?.ranking"
>
无
</span
>
<
span
class=
"color-red"
>
{{item.ranking}}
</span
>
<
!--<div class="content-button padding-15-0 fontSize-15">--
>
<
!--<span class="margin-right-10">最高分:<span-->
<!--*ngIf="!item?.maxNum && item?.maxNum != 0">无</span>--
>
<
!--<span class="color-red">{{item.maxNum}}</span>--
>
<
!--</span>--
>
<
!--<span>排名:</span>--
>
<
!--<span *ngIf="!item?.ranking">无</span>--
>
<
!--<span class="color-red">{{item.ranking}}</span>--
>
<
span
(
click
)="
goToRank
(
item
)"
float-right
class=
"look"
>
TOP5排行榜
</span
>
<
/div
>
<
!--<span (click)="goToRank(item)" float-right class="look">TOP5排行榜</span>--
>
<
!--</div>--
>
</div>
</ion-item>
</ng-container>
...
...
@@ -97,16 +97,16 @@
<span
*
ngIf=
"item.testResult == 0"
(
click
)="
goToResult
(
item
)"
float-right
class=
"join"
>
开始测试
</span>
</div>
<
div
class=
"content-button padding-15-0 fontSize-15"
>
<
span
class=
"margin-right-10"
>
最高分:
<span
*
ngIf=
"!item?.maxNum && item?.maxNum != 0"
>
无
</span
>
<
span
class=
"color-red"
>
{{item.maxNum}}
</span
>
<
/span
>
<
span>
排名:
</span
>
<
span
*
ngIf=
"!item?.ranking"
>
无
</span
>
<
span
class=
"color-red"
>
{{item.ranking}}
</span
>
<
span
(
click
)="
goToRank
(
item
)"
float-right
class=
"look"
>
TOP5排行榜
</span
>
<
/div
>
<
!--<div class="content-button padding-15-0 fontSize-15">--
>
<
!--<span class="margin-right-10">最高分:<span-->
<!--*ngIf="!item?.maxNum && item?.maxNum != 0">无</span>--
>
<
!--<span class="color-red">{{item.maxNum}}</span>--
>
<
!--</span>--
>
<
!--<span>排名:</span>--
>
<
!--<span *ngIf="!item?.ranking">无</span>--
>
<
!--<span class="color-red">{{item.ranking}}</span>--
>
<
!--<span (click)="goToRank(item)" float-right class="look">TOP5排行榜</span>--
>
<
!--</div>--
>
</div>
</ion-item>
</ng-container>
...
...
@@ -150,16 +150,16 @@
<span
*
ngIf=
"item.testResult == 0"
(
click
)="
goToResult
(
item
)"
float-right
class=
"join"
>
开始测试
</span>
</div>
<
div
class=
"content-button padding-15-0 fontSize-15"
>
<
span
class=
"margin-right-10"
>
最高分:
<span
*
ngIf=
"!item?.maxNum && item?.maxNum != 0"
>
无
</span
>
<
span
class=
"color-red"
>
{{item.maxNum}}
</span
>
<
/span
>
<
span>
排名:
</span
>
<
span
*
ngIf=
"!item?.ranking"
>
无
</span
>
<
span
class=
"color-red"
>
{{item.ranking}}
</span
>
<
span
(
click
)="
goToRank
(
item
)"
float-right
class=
"look"
>
TOP5排行榜
</span
>
<
/div
>
<
!--<div class="content-button padding-15-0 fontSize-15">--
>
<
!--<span class="margin-right-10">最高分:<span-->
<!--*ngIf="!item?.maxNum && item?.maxNum != 0">无</span>--
>
<
!--<span class="color-red">{{item.maxNum}}</span>--
>
<
!--</span>--
>
<
!--<span>排名:</span>--
>
<
!--<span *ngIf="!item?.ranking">无</span>--
>
<
!--<span class="color-red">{{item.ranking}}</span>--
>
<
!--<span (click)="goToRank(item)" float-right class="look">TOP5排行榜</span>--
>
<
!--</div>--
>
</div>
</ion-item>
</ng-container>
...
...
src/pages/home/learning/review-result/review-result.ts
View file @
8139634a
...
...
@@ -29,6 +29,7 @@ export class ReviewResultPage {
}
ionViewDidLoad
()
{
this
.
testId
=
this
.
navParams
.
get
(
'testId'
);
this
.
result
=
this
.
navParams
.
get
(
'result'
);
this
.
title
=
this
.
navParams
.
get
(
'title'
);
let
c
=
this
.
result
.
score
/
this
.
result
.
fullmarks
;
...
...
src/service/appHttpService.ts
View file @
8139634a
...
...
@@ -13,18 +13,18 @@ export class AppGlobal {
};
//接口基地址
//
static domain = "http://101.89.112.92:80"; //正式环境
static
domain
=
"http://180.168.156.212:2931"
;
//测试环境
static
domain
=
"http://101.89.112.92:80"
;
//正式环境
//
static domain = "http://180.168.156.212:2931"; //测试环境
// static domain = ""; //本地环境
//图片地址
//
static picture = "http://101.89.112.92:80/wisdomgroup/manager/getIcon/"; //正式地址
static
picture
=
"http://180.168.156.212:2931/wisdomgroup/manager/getIcon/"
;
//测试
static
picture
=
"http://101.89.112.92:80/wisdomgroup/manager/getIcon/"
;
//正式地址
//
static picture = "http://180.168.156.212:2931/wisdomgroup/manager/getIcon/"; //测试
//通知公告图片参数
//
static pictureNotice = "http://101.89.112.92:80"; //正式地址
static
pictureNotice
=
"http://180.168.156.212:2931"
;
//测试
static
pictureNotice
=
"http://101.89.112.92:80"
;
//正式地址
//
static pictureNotice = "http://180.168.156.212:2931"; //测试
//接口地址
static
API
:
any
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment