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
f350e008
Commit
f350e008
authored
Nov 22, 2019
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修改9问题bug'
parent
fec23f34
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
7 deletions
+14
-7
discomfort.js
wechat_lung_questionnaire/javaScript/discomfort.js
+5
-5
discomfortGeneralPage.js
...at_lung_questionnaire/javaScript/discomfortGeneralPage.js
+2
-1
questionnaireDetails.js
wechat_lung_questionnaire/javaScript/questionnaireDetails.js
+4
-1
submitSuccessfully.js
wechat_lung_questionnaire/javaScript/submitSuccessfully.js
+3
-0
No files found.
wechat_lung_questionnaire/javaScript/discomfort.js
View file @
f350e008
...
...
@@ -42,9 +42,9 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
// 选择改变状态
$
(
'.content_select_has .dowebok'
).
on
(
'change'
,
'input[type=checkbox]'
,
function
(){
console
.
log
(
$
(
this
)[
0
].
checked
,
$
(
this
)[
0
].
name
)
//
console.log($(this)[0].checked,$(this)[0].name)
discomfort
.
discomfortGPObj
[
$
(
this
)[
0
].
name
]
=
$
(
this
)[
0
].
checked
console
.
log
(
discomfort
.
discomfortGPObj
)
//
console.log(discomfort.discomfortGPObj)
discomfort
.
checkList
=
[]
for
(
var
key
in
discomfort
.
discomfortGPObj
){
if
(
discomfort
.
discomfortGPObj
[
key
]){
...
...
@@ -62,7 +62,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
// 用户点击了无
$
(
'.noHas'
).
on
(
'tap'
,
function
(){
discomfort
.
flag
=
false
console
.
log
(
discomfort
.
flag
)
//
console.log(discomfort.flag)
discomfort
.
checks
=
''
$
(
'.next'
).
text
(
'提交'
)
})
...
...
@@ -70,7 +70,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
$
(
'.has'
).
on
(
'tap'
,
function
(){
$
(
'.next'
).
text
(
'下一题'
)
discomfort
.
flag
=
true
console
.
log
(
discomfort
.
flag
)
//
console.log(discomfort.flag)
discomfort
.
getQuestionAnswer
()
if
(
discomfort
.
checks
==
''
){
$
(
'.checkbox_pl'
).
prop
(
'checked'
,
true
)
...
...
@@ -84,7 +84,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
}
})
discomfort
.
checks
=
list
.
join
(
','
)
console
.
log
(
discomfort
.
checks
)
//
console.log(discomfort.checks)
})
// 点击下一题
$
(
'.next'
).
on
(
'tap'
,
function
(){
...
...
wechat_lung_questionnaire/javaScript/discomfortGeneralPage.js
View file @
f350e008
...
...
@@ -220,7 +220,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
discomfortGeneralPage
.
isHandleVal
=
$
(
'.input_item_isHandle'
).
val
()
discomfortGeneralPage
.
dataText
=
$
(
'#content_body_fill'
).
val
()
if
(
discomfortGeneralPage
.
questionId
!=
'33'
&&
discomfortGeneralPage
.
questionId
!=
'32'
&&
discomfortGeneralPage
.
questionId
!=
'31'
){
if
(
ScoreVal
==
''
)
return
medtap
.
winPop
(
'请输入症状
评分
'
)
if
(
ScoreVal
==
''
)
return
medtap
.
winPop
(
'请输入症状
级别
'
)
}
var
data
=
{
...
...
@@ -339,6 +339,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
$
(
'.doctorExplanation'
).
show
()
}
$
(
'.input_item_symptomScore'
).
val
(
res
.
content
.
followAnswer
.
answer
.
symptomScoreVal
||
''
)
discomfortGeneralPage
.
symptomScoreVal
=
res
.
content
.
followAnswer
.
answer
.
symptomScoreVal
$
(
'.input_item_happenTime'
).
val
(
res
.
content
.
followAnswer
.
answer
.
happenTimeVal
||
''
)
$
(
'.input_item_isRelieve'
).
val
(
res
.
content
.
followAnswer
.
answer
.
isRelieveVal
||
''
)
$
(
'.input_item_isHandle'
).
val
(
res
.
content
.
followAnswer
.
answer
.
isHandleVal
||
''
)
...
...
wechat_lung_questionnaire/javaScript/questionnaireDetails.js
View file @
f350e008
...
...
@@ -69,7 +69,7 @@ define(['zepto','medtap'],function($,medtap){
'<p class="body_title">医生对疗效的判断:</p>'
+
'<p class="body_content">'
+
questionnaireDetails
.
queDetailsList
[
key
].
judge
+
'</p>'
+
'</div>'
+
'<div class="que_content_body">'
+
'<div class="que_content_body
content_body2
">'
+
'<p class="body_title">转移部位:</p>'
+
'<p class="body_content">'
+
questionnaireDetails
.
queDetailsList
[
key
].
movePositionVal
+
'</p>'
+
'</div>'
+
...
...
@@ -81,6 +81,9 @@ define(['zepto','medtap'],function($,medtap){
'</div>'
+
'</div>'
$
(
'.question_two'
).
append
(
html
)
if
(
questionnaireDetails
.
queDetailsList
[
key
].
movePositionVal
==
''
){
$
(
'.content_body2'
).
remove
()
}
var
imglist
=
questionnaireDetails
.
queDetailsList
[
key
].
imgKey
if
(
imglist
.
length
>
0
){
var
htmli
=
''
...
...
wechat_lung_questionnaire/javaScript/submitSuccessfully.js
View file @
f350e008
...
...
@@ -5,6 +5,9 @@ define(['zepto', 'medtap', 'mui'], function($, medtap, mui) {
// 修改人员id
adminId
:
medtap
.
getRequest
(
'adminId'
)
||
''
,
init
:
function
(){
if
(
submitSuccessfully
.
adminId
!=
''
){
$
(
'.tip_contact_service'
).
hide
()
}
$
(
'.tip_contact_service'
).
on
(
'tap'
,
function
(){
medtap
.
pushWindow
(
'../pages/myQuestionnaireList.html?followUpId='
+
submitSuccessfully
.
followUpId
+
'&adminId='
+
submitSuccessfully
.
adminId
)
})
...
...
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