Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
allCampaign
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
allCampaign
Commits
0c506e88
Commit
0c506e88
authored
May 16, 2019
by
Chao Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小屏手机样式调整
parent
fb3f4c19
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
64 additions
and
54 deletions
+64
-54
questionnair/package.json
+1
-1
questionnair/src/app/ask/ask.component.ts
+27
-24
questionnair/src/app/page17/page17.component.html
+1
-1
questionnair/src/app/page7/page7.component.html
+25
-23
questionnair/src/styles.css
+10
-5
No files found.
questionnair/package.json
View file @
0c506e88
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
"version"
:
"0.0.0"
,
"version"
:
"0.0.0"
,
"scripts"
:
{
"scripts"
:
{
"ng"
:
"ng"
,
"ng"
:
"ng"
,
"start"
:
"ng serve"
,
"start"
:
"ng serve
--host 0.0.0.0
"
,
"build"
:
"ng build"
,
"build"
:
"ng build"
,
"test"
:
"ng test"
,
"test"
:
"ng test"
,
"lint"
:
"ng lint"
,
"lint"
:
"ng lint"
,
...
...
questionnair/src/app/ask/ask.component.ts
View file @
0c506e88
...
@@ -49,34 +49,37 @@ export class AskComponent implements OnInit {
...
@@ -49,34 +49,37 @@ export class AskComponent implements OnInit {
// console.log('start', this.curPage)
// console.log('start', this.curPage)
if
(
this
.
curPage
>
0
)
{
if
(
this
.
curPage
>
0
)
{
const
page2Answer
=
this
.
allAnswers
[
1
]
const
page2Answer
=
this
.
allAnswers
[
1
]
const
optionId
=
page2Answer
.
questions
[
0
].
options
[
0
].
optionId
if
(
page2Answer
){
if
(
this
.
curPage
==
5
||
this
.
curPage
==
6
)
{
const
optionId
=
page2Answer
.
questions
[
0
].
options
[
0
].
optionId
if
(
optionId
==
1
||
optionId
==
3
)
{
if
(
this
.
curPage
==
5
||
this
.
curPage
==
6
)
{
this
.
curPage
=
this
.
curPage
-
2
if
(
optionId
==
1
||
optionId
==
3
)
{
this
.
setCurPageData
()
this
.
curPage
=
this
.
curPage
-
2
return
this
.
setCurPageData
()
}
return
}
}
if
(
this
.
curPage
==
13
)
{
if
(
optionId
==
1
)
{
this
.
curPage
=
this
.
curPage
-
3
this
.
setCurPageData
()
return
}
}
if
(
optionId
==
2
)
{
this
.
curPage
=
this
.
curPage
-
2
if
(
this
.
curPage
==
13
)
{
this
.
setCurPageData
()
if
(
optionId
==
1
)
{
return
this
.
curPage
=
this
.
curPage
-
3
this
.
setCurPageData
()
return
}
if
(
optionId
==
2
)
{
this
.
curPage
=
this
.
curPage
-
2
this
.
setCurPageData
()
return
}
}
}
}
if
(
this
.
curPage
==
12
)
{
if
(
this
.
curPage
==
12
)
{
if
(
optionId
==
3
)
{
if
(
optionId
==
3
)
{
this
.
curPage
=
this
.
curPage
-
2
this
.
curPage
=
this
.
curPage
-
2
this
.
setCurPageData
()
this
.
setCurPageData
()
return
return
}
}
}
}
}
this
.
curPage
--
;
this
.
curPage
--
;
this
.
setCurPageData
()
this
.
setCurPageData
()
}
else
{
}
else
{
...
...
questionnair/src/app/page17/page17.component.html
View file @
0c506e88
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"title"
>
<div
class=
"title"
>
<img
src=
"assets/images/bg_17.png"
/>
<img
src=
"assets/images/bg_17.png"
/>
</div>
</div>
<div
class=
"footer"
style=
"margin-top:
2
0%;"
(
click
)="
getHref
()"
>
<div
class=
"footer"
style=
"margin-top:
1
0%;"
(
click
)="
getHref
()"
>
<div>
我知道了
</div>
<div>
我知道了
</div>
</div>
</div>
</div>
</div>
questionnair/src/app/page7/page7.component.html
View file @
0c506e88
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"layout"
>
<div
class=
"layout"
>
<div
class=
"content"
>
<div
class=
"content"
>
<div
class=
"questionTitle"
>
<div
class=
"twoContent"
>
{{ this.curPageData['questions'][0]['questionName'] }}
<div
class=
"questionTitle"
>
{{ this.curPageData['questions'][0]['questionName'] }}
</div>
<ul
class=
"income"
>
<li
[
ngClass
]="{
selected:
options
['
selected
']
==
true
}"
*
ngFor=
"let options of this.curPageData['questions'][0].options"
(
click
)="
getAnswer
(
this
.
curPageData
['
questions
'][
0
],
options
)"
>
{{ options.optionName }}
</li>
</ul>
<div
class=
"questionTitle"
*
ngIf=
"hasMate"
>
{{ this.curPageData['questions'][1]['questionName']}}
</div>
<ul
class=
"income"
*
ngIf=
"hasMate"
>
<li
[
ngClass
]="{
selected:
options
['
selected
']
==
true
}"
*
ngFor=
"let options of this.curPageData['questions'][1]['options']"
(
click
)="
getAnswer
(
this
.
curPageData
['
questions
'][
1
],
options
)"
>
{{ options.optionName }}
</li>
</ul>
</div>
</div>
<ul
class=
"income"
>
<li
[
ngClass
]="{
selected:
options
['
selected
']
==
true
}"
*
ngFor=
"let options of this.curPageData['questions'][0].options"
(
click
)="
getAnswer
(
this
.
curPageData
['
questions
'][
0
],
options
)"
>
{{ options.optionName }}
</li>
</ul>
<div
class=
"questionTitle"
*
ngIf=
"hasMate"
>
{{ this.curPageData['questions'][1]['questionName']}}
</div>
<ul
class=
"income"
*
ngIf=
"hasMate"
>
<li
[
ngClass
]="{
selected:
options
['
selected
']
==
true
}"
*
ngFor=
"let options of this.curPageData['questions'][1]['options']"
(
click
)="
getAnswer
(
this
.
curPageData
['
questions
'][
1
],
options
)"
>
{{ options.optionName }}
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
questionnair/src/styles.css
View file @
0c506e88
...
@@ -18,7 +18,8 @@ ul li,ol li{
...
@@ -18,7 +18,8 @@ ul li,ol li{
list-style
:
none
;
list-style
:
none
;
}
}
.container
{
.container
{
padding
:
0
;
padding
:
0
;
height
:
100%
;
}
}
.wrapper
{
.wrapper
{
display
:
flex
;
display
:
flex
;
...
@@ -27,7 +28,6 @@ ul li,ol li{
...
@@ -27,7 +28,6 @@ ul li,ol li{
.layout
{
.layout
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
overflow
:
hidden
;
padding
:
0
10px
;
padding
:
0
10px
;
height
:
100%
;
height
:
100%
;
}
}
...
@@ -37,8 +37,8 @@ ul li,ol li{
...
@@ -37,8 +37,8 @@ ul li,ol li{
.tips
{
.tips
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
height
:
5.5em
;
align-items
:
center
;
align-items
:
center
;
margin
:
5%
;
}
}
.footer
{
.footer
{
display
:
flex
;
display
:
flex
;
...
@@ -57,8 +57,9 @@ ul li,ol li{
...
@@ -57,8 +57,9 @@ ul li,ol li{
padding:10px 0;
padding:10px 0;
} */
} */
.content
{
.content
{
max-height
:
5
8
0px
;
max-height
:
5
1
0px
;
overflow
:
auto
;
overflow
:
auto
;
-webkit-overflow-scrolling
:
touch
;
}
}
/* .layout.cityLayout .questionTitle{
/* .layout.cityLayout .questionTitle{
margin:0 10px;
margin:0 10px;
...
@@ -86,7 +87,8 @@ ul li,ol li{
...
@@ -86,7 +87,8 @@ ul li,ol li{
display
:
flex
;
display
:
flex
;
width
:
100%
;
width
:
100%
;
position
:
absolute
;
position
:
absolute
;
bottom
:
5%
;
bottom
:
10px
;
background-color
:
#fff
;
}
}
.content_footer
div
{
.content_footer
div
{
...
@@ -108,6 +110,9 @@ ul li,ol li{
...
@@ -108,6 +110,9 @@ ul li,ol li{
flex
:
0
0
60%
;
flex
:
0
0
60%
;
font-weight
:
500
;
font-weight
:
500
;
}
}
.twoContent
{
height
:
100%
;
}
.jobContent
,
.income
,
.cityContent
{
.jobContent
,
.income
,
.cityContent
{
width
:
100%
;
width
:
100%
;
}
}
...
...
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