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
a8879c24
Commit
a8879c24
authored
Apr 10, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
纠错
parent
ec3fe9a8
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
49 additions
and
23 deletions
+49
-23
ionic.config.json
ionic.config.json
+2
-1
app.scss
src/app/app.scss
+0
-3
learn.service.ts
src/pages/home/learning/learn.service.ts
+5
-0
learning-do.ts
src/pages/home/learning/learning-do/learning-do.ts
+15
-6
learning-list.html
src/pages/home/learning/learning-list/learning-list.html
+7
-6
learning-list.scss
src/pages/home/learning/learning-list/learning-list.scss
+0
-2
review-learn.html
src/pages/home/learning/review-learn/review-learn.html
+3
-0
review-learn.scss
src/pages/home/learning/review-learn/review-learn.scss
+3
-0
review-learn.ts
src/pages/home/learning/review-learn/review-learn.ts
+14
-5
No files found.
ionic.config.json
View file @
a8879c24
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
"proxies"
:
[
"proxies"
:
[
{
{
"path"
:
"/wisdomgroup"
,
"path"
:
"/wisdomgroup"
,
"proxyUrl"
:
"http://1
80.168.156.212:2931
/wisdomgroup"
"proxyUrl"
:
"http://1
0.10.202.8:8080
/wisdomgroup"
}
}
]
]
}
}
\ No newline at end of file
src/app/app.scss
View file @
a8879c24
@import
"../theme/icon.scss"
;
@import
"../theme/icon.scss"
;
html
{
font-size
:
15px
;
}
p
{
p
{
margin
:
0
;
margin
:
0
;
}
}
...
...
src/pages/home/learning/learn.service.ts
View file @
a8879c24
...
@@ -34,6 +34,11 @@ export class LearnService{
...
@@ -34,6 +34,11 @@ export class LearnService{
return
this
.
http
.
post
(
AppGlobal
.
domain
+
'/wisdomgroup/modules/learnTest/viewAnswerDetail'
,
this
.
commonSer
.
toFormData
(
data
));
return
this
.
http
.
post
(
AppGlobal
.
domain
+
'/wisdomgroup/modules/learnTest/viewAnswerDetail'
,
this
.
commonSer
.
toFormData
(
data
));
}
}
//纠错
questionCorrecting
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
AppGlobal
.
domain
+
'/wisdomgroup/learntest/questionCorrecting/submit'
,
data
);
}
//top5
//top5
getTop5
(
data
):
Observable
<
any
>
{
getTop5
(
data
):
Observable
<
any
>
{
return
this
.
http
.
get
(
AppGlobal
.
domain
+
'/wisdomgroup/modules/learnPcTest/top/'
+
data
);
return
this
.
http
.
get
(
AppGlobal
.
domain
+
'/wisdomgroup/modules/learnPcTest/top/'
+
data
);
...
...
src/pages/home/learning/learning-do/learning-do.ts
View file @
a8879c24
...
@@ -67,8 +67,7 @@ export class LearningDoPage {
...
@@ -67,8 +67,7 @@ export class LearningDoPage {
//清楚定时器
//清楚定时器
ionViewDidLeave
()
{
ionViewDidLeave
()
{
this
.
nav
.
swipeBackEnabled
=
true
;
this
.
index
=
0
;
this
.
index
=
1
;
this
.
slides
.
slideTo
(
0
);
this
.
slides
.
slideTo
(
0
);
window
.
clearInterval
(
this
.
clock
);
window
.
clearInterval
(
this
.
clock
);
}
}
...
@@ -160,10 +159,20 @@ export class LearningDoPage {
...
@@ -160,10 +159,20 @@ export class LearningDoPage {
//纠错
//纠错
sure
(){
sure
(){
this
.
error
=
false
;
const
data
=
{
console
.
log
(
this
.
list
[
this
.
index
]);
questionId
:
this
.
list
[
this
.
index
].
questionId
,
console
.
log
(
this
.
errorContent
);
questionType
:
this
.
list
[
this
.
index
].
questionType
,
// this.errorContent = "";
content
:
this
.
errorContent
};
this
.
commonSer
.
log
(
data
);
this
.
learnSer
.
questionCorrecting
(
data
).
subscribe
(
(
res
)
=>
{
this
.
commonSer
.
toast
(
"提交成功!"
)
this
.
error
=
false
;
this
.
errorContent
=
""
;
}
)
}
}
cancel
(){
cancel
(){
...
...
src/pages/home/learning/learning-list/learning-list.html
View file @
a8879c24
...
@@ -40,14 +40,15 @@
...
@@ -40,14 +40,15 @@
</div>
</div>
<div
class=
"content-button padding-15-0 fontSize-15"
>
<div
class=
"content-button padding-15-0 fontSize-15"
>
<span>
排名:
</span>
<span>
排名:
</span>
<span
class=
"color-red"
>
1
</span>
<span
*
ngIf=
"!item?.ranking"
>
无
</span>
<span
class=
"color-red"
>
{{item.ranking}}
</span>
<span
(
click
)="
goToRank
(
item
)"
float-right
class=
"look"
>
排行榜
</span>
<span
(
click
)="
goToRank
(
item
)"
float-right
class=
"look"
>
排行榜
</span>
</div>
</div>
<div
class=
"content-button padding-15-0 fontSize-15"
>
<div
class=
"content-button padding-15-0 fontSize-15"
>
<span>
重复测试:
</span>
<span>
重复测试:
</span>
<span
*
ngIf=
"item.isRepeat == 1"
>
允许
</span>
<span
*
ngIf=
"item.isRepeat == 1"
>
允许
</span>
<span
*
ngIf=
"item.isRepeat == 0"
>
不允许
</span>
<span
*
ngIf=
"item.isRepeat == 0"
>
不允许
</span>
<span
float-right
>
最高分:100
</span>
<span
float-right
*
ngIf=
"item?.maxNum"
>
最高分:{{item.maxNum}}
</span>
</div>
</div>
</div>
</div>
</ion-item>
</ion-item>
...
@@ -82,14 +83,14 @@
...
@@ -82,14 +83,14 @@
</div>
</div>
<div
class=
"content-button padding-15-0 fontSize-15"
>
<div
class=
"content-button padding-15-0 fontSize-15"
>
<span>
排名:
</span>
<span>
排名:
</span>
<span
class=
"color-red"
>
1
</span>
<span
class=
"color-red"
>
{{item.ranking}}
</span>
<span
(
click
)="
goToRank
(
item
)"
float-right
class=
"look"
>
排行榜
</span>
<span
(
click
)="
goToRank
(
item
)"
float-right
class=
"look"
>
排行榜
</span>
</div>
</div>
<div
class=
"content-button padding-15-0 fontSize-15"
>
<div
class=
"content-button padding-15-0 fontSize-15"
>
<span>
重复测试:
</span>
<span>
重复测试:
</span>
<span
*
ngIf=
"item.isRepeat == 1"
>
允许
</span>
<span
*
ngIf=
"item.isRepeat == 1"
>
允许
</span>
<span
*
ngIf=
"item.isRepeat == 0"
>
不允许
</span>
<span
*
ngIf=
"item.isRepeat == 0"
>
不允许
</span>
<span
float-right
>
最高分:
100
</span>
<span
float-right
>
最高分:
{{item.maxNum}}
</span>
</div>
</div>
</div>
</div>
</ion-item>
</ion-item>
...
@@ -125,14 +126,14 @@
...
@@ -125,14 +126,14 @@
</div>
</div>
<div
class=
"content-button padding-15-0 fontSize-15"
>
<div
class=
"content-button padding-15-0 fontSize-15"
>
<span>
排名:
</span>
<span>
排名:
</span>
<span
class=
"color-red"
>
1
</span>
<span
class=
"color-red"
>
{{item.ranking}}
</span>
<span
(
click
)="
goToRank
(
item
)"
float-right
class=
"look"
>
排行榜
</span>
<span
(
click
)="
goToRank
(
item
)"
float-right
class=
"look"
>
排行榜
</span>
</div>
</div>
<div
class=
"content-button padding-15-0 fontSize-15"
>
<div
class=
"content-button padding-15-0 fontSize-15"
>
<span>
重复测试:
</span>
<span>
重复测试:
</span>
<span
*
ngIf=
"item.isRepeat == 1"
>
允许
</span>
<span
*
ngIf=
"item.isRepeat == 1"
>
允许
</span>
<span
*
ngIf=
"item.isRepeat == 0"
>
不允许
</span>
<span
*
ngIf=
"item.isRepeat == 0"
>
不允许
</span>
<span
float-right
>
最高分:
100
</span>
<span
float-right
>
最高分:
{{item.maxNum}}
</span>
</div>
</div>
</div>
</div>
</ion-item>
</ion-item>
...
...
src/pages/home/learning/learning-list/learning-list.scss
View file @
a8879c24
...
@@ -21,7 +21,6 @@ page-learning-list {
...
@@ -21,7 +21,6 @@ page-learning-list {
padding
:
3px
10px
;
padding
:
3px
10px
;
font-size
:
1
.5rem
;
font-size
:
1
.5rem
;
border-radius
:
2px
;
border-radius
:
2px
;
margin-right
:
10px
;
}
}
.join
{
.join
{
background-color
:
#34b4fc
;
background-color
:
#34b4fc
;
...
@@ -29,6 +28,5 @@ page-learning-list {
...
@@ -29,6 +28,5 @@ page-learning-list {
padding
:
3px
10px
;
padding
:
3px
10px
;
font-size
:
1
.5rem
;
font-size
:
1
.5rem
;
border-radius
:
2px
;
border-radius
:
2px
;
margin-right
:
10px
;
}
}
}
}
src/pages/home/learning/review-learn/review-learn.html
View file @
a8879c24
...
@@ -91,6 +91,9 @@
...
@@ -91,6 +91,9 @@
</div>
</div>
</ion-slide>
</ion-slide>
</ion-slides>
</ion-slides>
<div
class=
" button-error"
>
<button
(
click
)="
error =
true;"
class=
"submit-error"
>
我要纠错
</button>
</div>
</div>
</div>
<div
class=
"footer-subject"
>
<div
class=
"footer-subject"
>
<div
(
click
)="
prev
()"
class=
"prev"
>
上一题
</div>
<div
(
click
)="
prev
()"
class=
"prev"
>
上一题
</div>
...
...
src/pages/home/learning/review-learn/review-learn.scss
View file @
a8879c24
...
@@ -13,6 +13,9 @@ page-review-learn {
...
@@ -13,6 +13,9 @@ page-review-learn {
.swiper-slide
,
.slide-zoom
{
.swiper-slide
,
.slide-zoom
{
text-align
:
left
;
text-align
:
left
;
}
}
ion-slides
{
height
:
calc
(
100%
-
4rem
);
}
.swiper-slide
{
.swiper-slide
{
justify-content
:
normal
;
justify-content
:
normal
;
align-items
:
normal
;
align-items
:
normal
;
...
...
src/pages/home/learning/review-learn/review-learn.ts
View file @
a8879c24
...
@@ -3,6 +3,7 @@ import {IonicPage, NavController, NavParams, Slides, ToastController} from 'ioni
...
@@ -3,6 +3,7 @@ import {IonicPage, NavController, NavParams, Slides, ToastController} from 'ioni
import
{
AppService
}
from
"../../../../service/appHttpService"
;
import
{
AppService
}
from
"../../../../service/appHttpService"
;
import
{
message
}
from
"../../../../app/main"
;
import
{
message
}
from
"../../../../app/main"
;
import
{
LearnService
}
from
"../learn.service"
;
import
{
LearnService
}
from
"../learn.service"
;
import
{
CommonService
}
from
"../../../../service/common.service"
;
@
IonicPage
()
@
IonicPage
()
...
@@ -20,7 +21,7 @@ export class ReviewLearnPage {
...
@@ -20,7 +21,7 @@ export class ReviewLearnPage {
error
;
error
;
errorContent
;
errorContent
;
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
learnSer
:
LearnService
,
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
learnSer
:
LearnService
,
public
toastCtrl
:
ToastController
,
public
appService
:
AppService
)
{
public
toastCtrl
:
ToastController
,
public
appService
:
AppService
,
public
commonSer
:
CommonService
)
{
}
}
ionViewDidLoad
()
{
ionViewDidLoad
()
{
...
@@ -103,10 +104,18 @@ export class ReviewLearnPage {
...
@@ -103,10 +104,18 @@ export class ReviewLearnPage {
//纠错
//纠错
sure
(){
sure
(){
this
.
error
=
false
;
const
data
=
{
console
.
log
(
this
.
list
[
this
.
index
]);
questionId
:
this
.
list
[
this
.
index
].
questionId
,
console
.
log
(
this
.
errorContent
);
questionType
:
this
.
list
[
this
.
index
].
questionType
,
// this.errorContent = "";
content
:
this
.
errorContent
};
this
.
commonSer
.
log
(
data
);
this
.
learnSer
.
questionCorrecting
(
data
).
subscribe
(
(
res
)
=>
{
this
.
commonSer
.
toast
(
"提交成功!"
);
this
.
error
=
false
;
}
)
}
}
cancel
(){
cancel
(){
...
...
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