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
5a51b796
Commit
5a51b796
authored
Nov 22, 2019
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修改crmBUG22'
parent
8c3b9c1f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
12 deletions
+5
-12
discomfort.js
wechat_lung_questionnaire/javaScript/discomfort.js
+3
-5
furtherConsultation.js
wechat_lung_questionnaire/javaScript/furtherConsultation.js
+2
-7
No files found.
wechat_lung_questionnaire/javaScript/discomfort.js
View file @
5a51b796
...
...
@@ -71,7 +71,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
$
(
'.next'
).
text
(
'下一题'
)
discomfort
.
flag
=
true
// console.log(discomfort.flag)
discomfort
.
getQuestionAnswer
()
//
discomfort.getQuestionAnswer()
if
(
discomfort
.
checks
==
''
){
$
(
'.checkbox_pl'
).
prop
(
'checked'
,
true
)
discomfort
.
checks
=
'15'
...
...
@@ -88,6 +88,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
})
// 点击下一题
$
(
'.next'
).
on
(
'tap'
,
function
(){
console
.
log
(
discomfort
.
checks
)
if
(
discomfort
.
flag
){
var
dataHas
=
{
"adminId"
:
discomfort
.
adminId
,
...
...
@@ -146,7 +147,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"adminId"
:
discomfort
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
if
(
!
res
.
content
.
followAnswer
.
answer
)
{
discomfort
.
flag
=
true
...
...
@@ -371,8 +371,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
case
33
:
medtap
.
pushWindow
(
'discomfortGeneralPage.html?followUpId='
+
discomfort
.
followUpId
+
'&questionNo='
+
questionNo
+
'&questionId='
+
questionId
+
'&parentId='
+
parentId
+
'&lastChecks='
+
discomfort
.
checks
+
'&adminId='
+
discomfort
.
adminId
)
break
;
default
:
medtap
.
pushWindow
(
'submitSuccessfully.html?followUpId='
+
discomfort
.
followUpId
+
'&adminId='
+
discomfort
.
adminId
)
}
}
})
...
...
@@ -387,7 +385,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
contentType
:
'application/json'
,
data
:
data
,
success
:
function
(
res
){
console
.
log
(
res
)
//
console.log(res)
medtap
.
pushWindow
(
'submitSuccessfully.html?followUpId='
+
discomfort
.
followUpId
+
'&adminId='
+
discomfort
.
adminId
)
}
})
...
...
wechat_lung_questionnaire/javaScript/furtherConsultation.js
View file @
5a51b796
...
...
@@ -26,7 +26,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
// 图片https://地址
imgKey
:
''
,
init
:
function
(){
console
.
log
(
furtherConsultation
.
flag
)
//
console.log(furtherConsultation.flag)
// 点击删除图片
$
(
'#ImgUp'
).
on
(
'click'
,
'.image_del'
,
function
()
{
var
src
=
$
(
this
).
siblings
(
'img'
).
attr
(
'src'
)
...
...
@@ -42,7 +42,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
// 用户点击了无
$
(
'.noHas'
).
on
(
'tap'
,
function
(){
furtherConsultation
.
flag
=
false
console
.
log
(
furtherConsultation
.
flag
)
//
console.log(furtherConsultation.flag)
})
// 用户点击了有
$
(
'.has'
).
on
(
'tap'
,
function
(){
...
...
@@ -242,11 +242,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
});
}
});
$
(
'#ImgUp'
).
on
(
'click'
,
'.image_del'
,
function
()
{
if
(
confirm
(
'确定要删除图片吗?'
))
{
$
(
this
).
parent
().
remove
();
}
});
},
//上传图片
upLoadImg
:
function
(
serverId
,
localId
)
{
...
...
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