Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wechat_lung
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanpeng
wechat_lung
Commits
9c4ac900
Commit
9c4ac900
authored
Nov 20, 2019
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修改部分问题'
parent
d7dfb2f9
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
8 deletions
+37
-8
common.css
wechat_lung_questionnaire/css/common.css
+1
-1
discomfortGeneralPage.css
wechat_lung_questionnaire/css/discomfortGeneralPage.css
+1
-1
geneDetection.css
wechat_lung_questionnaire/css/geneDetection.css
+1
-1
discomfort.js
wechat_lung_questionnaire/javaScript/discomfort.js
+16
-1
index.js
wechat_lung_questionnaire/javaScript/index.js
+3
-0
myQuestionnaireList.js
wechat_lung_questionnaire/javaScript/myQuestionnaireList.js
+1
-1
questionnaireDetails.js
wechat_lung_questionnaire/javaScript/questionnaireDetails.js
+14
-3
No files found.
wechat_lung_questionnaire/css/common.css
View file @
9c4ac900
...
...
@@ -67,7 +67,7 @@
font-weight
:
400
;
color
:
rgba
(
102
,
102
,
102
,
1
);
margin
:
10px
0
20px
;
margin
:
.2rem
0
.4rem
;
}
.body_img
{
display
:
flex
;
...
...
wechat_lung_questionnaire/css/discomfortGeneralPage.css
View file @
9c4ac900
...
...
@@ -127,7 +127,7 @@ input {
#content_body_fill
{
border
:
0
;
background
:
rgba
(
249
,
249
,
249
,
1
);
border-radius
:
2px
;
border-radius
:
.04rem
;
padding
:
.2rem
;
}
.doctorExplanation
{
...
...
wechat_lung_questionnaire/css/geneDetection.css
View file @
9c4ac900
...
...
@@ -184,7 +184,7 @@ input {
#content_body_fill
{
border
:
0
;
background
:
rgba
(
249
,
249
,
249
,
1
);
border-radius
:
2px
;
border-radius
:
.04rem
;
padding
:
.2rem
;
}
textarea
::-webkit-input-placeholder
{
...
...
wechat_lung_questionnaire/javaScript/discomfort.js
View file @
9c4ac900
...
...
@@ -110,7 +110,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"questionNo"
:
Number
(
discomfort
.
questionNo
),
"followUpId"
:
discomfort
.
followUpId
}
discomfort
.
getNextQuestion
(
dataNo
)
discomfort
.
submitQuestionAnswer
(
dataNo
)
}
})
// tab切换
...
...
@@ -172,6 +172,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
}
if
(
res
.
content
.
followAnswer
.
answer
.
status
==
'0'
){
discomfort
.
flag
=
false
$
(
'.next'
).
text
(
'提交'
)
$
(
'.noHas'
).
addClass
(
'active'
).
siblings
(
'.has'
).
removeClass
(
'active'
)
$
(
'.content_select_no'
).
addClass
(
'active'
).
siblings
(
'.content_select'
).
removeClass
(
'active'
)
return
...
...
@@ -367,6 +368,20 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
}
}
})
},
// 最后提交问卷
submitQuestionAnswer
:
function
(
data
){
medtap
.
submitAjax
({
url
:
"https://testdevgw.medtap.cn/operation/followUp/completeQuestion"
,
type
:
'post'
,
async
:
false
,
contentType
:
'application/json'
,
data
:
data
,
success
:
function
(
res
){
console
.
log
(
res
)
medtap
.
pushWindow
(
'submitSuccessfully.html?followUpId='
+
discomfort
.
followUpId
)
}
})
}
}
discomfort
.
init
()
...
...
wechat_lung_questionnaire/javaScript/index.js
View file @
9c4ac900
...
...
@@ -47,6 +47,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
},
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
res
.
content
.
followUpUser
.
status
==
'1'
){
medtap
.
pushWindow
(
'pages/questionnaireDetails.html?followUpId='
+
index
.
followUpId
)
}
index
.
followUpId
=
res
.
content
.
followUpUser
.
id
var
mm
=
res
.
content
.
followUpUser
.
answerTime
$
(
'.mouth_title span'
).
text
(
mm
.
split
(
"-"
)[
1
])
...
...
wechat_lung_questionnaire/javaScript/myQuestionnaireList.js
View file @
9c4ac900
...
...
@@ -46,7 +46,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
}
// 点击进入详情
$
(
'.my_questionnaire_box'
).
on
(
'tap'
,
'.my_questionnaire_list'
,
function
(){
console
.
log
(
'跳转'
)
medtap
.
pushWindow
(
'../pages/questionnaireDetails.html?followUpId='
+
myQuestionnaireList
.
followUpId
)
})
}
...
...
wechat_lung_questionnaire/javaScript/questionnaireDetails.js
View file @
9c4ac900
...
...
@@ -377,9 +377,7 @@ define(['zepto','medtap'],function($,medtap){
'<div class="que_content_body">'
+
'<p class="body_title">基因检测报告:</p>'
+
'<ul class="body_img">'
+
'<li>'
+
'<img src="../images/question_submit_succeed_png@2x.png" alt="">'
+
'</li>'
+
'</ul>'
+
'</div>'
+
'<div class="que_content_body top_margin">'
+
...
...
@@ -388,6 +386,19 @@ define(['zepto','medtap'],function($,medtap){
'</div>'
+
'</div>'
$
(
'.question_five'
).
append
(
html
)
var
imglist
=
questionnaireDetails
.
queDetailsList
[
key
].
imgList
if
(
imglist
.
length
>
0
){
var
htmli
=
''
for
(
var
i
=
0
;
i
<
imglist
.
length
;
i
++
){
htmli
+=
'<li>'
+
'<img src="'
+
imglist
[
i
]
+
'" alt="">'
+
'</li>'
}
$
(
'.question_five .body_img'
).
append
(
htmli
)
}
if
(
imglist
.
length
==
0
){
$
(
'.question_five .question_two_img'
).
remove
()
}
}
break
;
case
'question14'
:
...
...
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