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
660470a3
Commit
660470a3
authored
Apr 09, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slide的index问题
parent
cacbcdab
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
16 deletions
+15
-16
config.xml
config.xml
+2
-2
app.scss
src/app/app.scss
+0
-1
learning-do.scss
src/pages/home/learning/learning-do/learning-do.scss
+1
-0
learning-do.ts
src/pages/home/learning/learning-do/learning-do.ts
+4
-5
review-learn.scss
src/pages/home/learning/review-learn/review-learn.scss
+1
-0
review-learn.ts
src/pages/home/learning/review-learn/review-learn.ts
+1
-2
appHttpService.ts
src/service/appHttpService.ts
+6
-6
No files found.
config.xml
View file @
660470a3
<?xml version='1.0' encoding='utf-8'?>
<?xml version='1.0' encoding='utf-8'?>
<widget
id=
"io.ionic.smart19.starter
.test"
version=
"4.0.7
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<widget
id=
"io.ionic.smart19.starter
"
version=
"4.0.0
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<name>
党建云平台(测试)
</name>
<name>
智汇19号
</name>
<description>
An awesome Ionic/Cordova app.
</description>
<description>
An awesome Ionic/Cordova app.
</description>
<author
email=
"hi@ionicframework"
href=
"http://ionicframework.com/"
>
Ionic Framework Team
</author>
<author
email=
"hi@ionicframework"
href=
"http://ionicframework.com/"
>
Ionic Framework Team
</author>
<content
src=
"index.html"
/>
<content
src=
"index.html"
/>
...
...
src/app/app.scss
View file @
660470a3
@import
"../theme/icon.scss"
;
@import
"../theme/icon.scss"
;
p
{
p
{
margin
:
0
;
margin
:
0
;
}
}
...
...
src/pages/home/learning/learning-do/learning-do.scss
View file @
660470a3
...
@@ -28,6 +28,7 @@ page-learning-do {
...
@@ -28,6 +28,7 @@ page-learning-do {
height
:
calc
(
100%
-
8rem
);
height
:
calc
(
100%
-
8rem
);
border-bottom-left-radius
:
.8rem
;
border-bottom-left-radius
:
.8rem
;
border-bottom-right-radius
:
.8rem
;
border-bottom-right-radius
:
.8rem
;
overflow-y
:
scroll
;
}
}
.item-title
{
.item-title
{
padding
:
1rem
;
padding
:
1rem
;
...
...
src/pages/home/learning/learning-do/learning-do.ts
View file @
660470a3
...
@@ -91,6 +91,10 @@ export class LearningDoPage {
...
@@ -91,6 +91,10 @@ export class LearningDoPage {
},
1000
)
},
1000
)
}
}
slideChanged
(){
this
.
index
=
this
.
slides
.
realIndex
;
}
//上一题
//上一题
prev
()
{
prev
()
{
if
(
this
.
index
==
0
)
{
if
(
this
.
index
==
0
)
{
...
@@ -115,11 +119,6 @@ export class LearningDoPage {
...
@@ -115,11 +119,6 @@ export class LearningDoPage {
}
}
}
}
//左划右划
slideChanged
()
{
this
.
index
=
this
.
slides
.
getActiveIndex
();
}
//多选
//多选
mutiSelect
(
i
,
option
)
{
mutiSelect
(
i
,
option
)
{
if
(
this
.
list
[
i
].
answer
.
includes
(
option
))
{
if
(
this
.
list
[
i
].
answer
.
includes
(
option
))
{
...
...
src/pages/home/learning/review-learn/review-learn.scss
View file @
660470a3
...
@@ -28,6 +28,7 @@ page-review-learn {
...
@@ -28,6 +28,7 @@ page-review-learn {
height
:
calc
(
100%
-
8rem
);
height
:
calc
(
100%
-
8rem
);
border-bottom-left-radius
:
.8rem
;
border-bottom-left-radius
:
.8rem
;
border-bottom-right-radius
:
.8rem
;
border-bottom-right-radius
:
.8rem
;
overflow-y
:
scroll
;
}
}
.item-title
{
.item-title
{
padding
:
1rem
;
padding
:
1rem
;
...
...
src/pages/home/learning/review-learn/review-learn.ts
View file @
660470a3
...
@@ -58,9 +58,8 @@ export class ReviewLearnPage {
...
@@ -58,9 +58,8 @@ export class ReviewLearnPage {
)
)
}
}
//左划右划
slideChanged
(){
slideChanged
(){
this
.
index
=
this
.
slides
.
getActiveIndex
()
;
this
.
index
=
this
.
slides
.
realIndex
;
}
}
//上一题
//上一题
...
...
src/service/appHttpService.ts
View file @
660470a3
...
@@ -10,21 +10,21 @@ export class AppGlobal {
...
@@ -10,21 +10,21 @@ export class AppGlobal {
slides
:
"_dress_slides"
,
slides
:
"_dress_slides"
,
categories
:
"_dress_categories"
,
categories
:
"_dress_categories"
,
products
:
"_dress_products"
products
:
"_dress_products"
}
}
;
//接口基地址
//接口基地址
// static domain = "http://101.89.112.92:80"; //正式环境
// static domain = "http://101.89.112.92:80"; //正式环境
// static domain = "http://180.168.156.212:2931"; //测试环境
// static domain = "http://180.168.156.212:2931"; //测试环境
static
domain
=
""
;
//本地环境
static
domain
=
""
;
//本地环境
//图片地址
//图片地址
//
static picture = "http://101.89.112.92:80/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 picture = "http://180.168.156.212:2931/wisdomgroup/manager/getIcon/"; //测试
//通知公告图片参数
//通知公告图片参数
//
static pictureNotice = "http://101.89.112.92:80"; //正式地址
static
pictureNotice
=
"http://101.89.112.92:80"
;
//正式地址
static
pictureNotice
=
"http://180.168.156.212:2931"
;
//测试
//
static pictureNotice = "http://180.168.156.212:2931"; //测试
//接口地址
//接口地址
static
API
:
any
=
{
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