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
cb1293a2
Commit
cb1293a2
authored
Nov 29, 2019
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修改问卷详情部分样式与ilcc同步'
parent
0959df3b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
95 additions
and
90 deletions
+95
-90
common.css
wechat_lung_questionnaire/css/common.css
+30
-14
questionnaireDetails.css
wechat_lung_questionnaire/css/questionnaireDetails.css
+4
-0
examination.js
wechat_lung_questionnaire/javaScript/examination.js
+3
-9
furtherConsultation.js
wechat_lung_questionnaire/javaScript/furtherConsultation.js
+9
-12
geneDetection.js
wechat_lung_questionnaire/javaScript/geneDetection.js
+3
-9
generalPage.js
wechat_lung_questionnaire/javaScript/generalPage.js
+2
-3
index.js
wechat_lung_questionnaire/javaScript/index.js
+0
-1
myQuestionnaireList.js
wechat_lung_questionnaire/javaScript/myQuestionnaireList.js
+0
-1
otherTreatment.js
wechat_lung_questionnaire/javaScript/otherTreatment.js
+5
-5
questionnaireDetails.js
wechat_lung_questionnaire/javaScript/questionnaireDetails.js
+31
-28
targetedTherapy.js
wechat_lung_questionnaire/javaScript/targetedTherapy.js
+5
-5
questionnaireDetails.html
wechat_lung_questionnaire/pages/questionnaireDetails.html
+3
-3
No files found.
wechat_lung_questionnaire/css/common.css
View file @
cb1293a2
...
...
@@ -37,30 +37,33 @@
margin-top
:
.2rem
;
}
.que_title
{
height
:
1.04rem
;
/* height: 1.04rem; */
width
:
100%
;
border-bottom
:
.01rem
solid
#DDDDDD
;
text-align
:
center
;
font-size
:
.4rem
;
font-family
:
PingFangSC-Semibold
,
PingFang
SC
;
font-weight
:
600
;
color
:
rgba
(
17
,
17
,
17
,
1
);
line-height
:
1.04rem
;
padding
:
.4rem
0
;
color
:
#111
;
box-sizing
:
border-box
;
}
.que_content_title
{
font-size
:
.
36
rem
;
font-size
:
.
4
rem
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
5
00
;
color
:
rgba
(
17
,
17
,
17
,
1
)
;
margin
:
.4rem
0
;
font-weight
:
6
00
;
color
:
#999
;
margin-top
:
.3rem
;
}
.body_title
{
width
:
100%
;
height
:
.32rem
;
font-size
:
.32rem
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
rgba
(
17
,
17
,
17
,
1
);
font-family
:
PingFangSC-Semibold
,
PingFang
SC
;
font-weight
:
600
;
margin-top
:
.3rem
;
color
:
#111
;
line-height
:
.32rem
;
}
.body_content
{
...
...
@@ -69,9 +72,8 @@
font-size
:
.32rem
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#666
;
margin
:
.2rem
0
.4rem
;
color
:
#999
;
margin
:
.2rem
0
0
;
}
.body_img
{
display
:
flex
;
...
...
@@ -89,7 +91,11 @@
/* 详情中的单独样式 */
.left_line
{
border-left
:
.08rem
solid
#2CBCA0
;
padding-left
:
.16rem
padding-left
:
.16rem
;
font-size
:
0.36rem
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
600
;
color
:
#111
;
}
.top_margin
{
margin-top
:
.48rem
;
...
...
@@ -97,3 +103,12 @@
.que_content_body
{
overflow
:
hidden
;
}
.no_border
{
border
:
none
;
}
.no_marg_bot
{
padding
:
0
.32rem
0
;
}
.que_content_title_discomfort
{
display
:
none
;
}
\ No newline at end of file
wechat_lung_questionnaire/css/questionnaireDetails.css
View file @
cb1293a2
...
...
@@ -55,3 +55,6 @@ body {
height
:
.36rem
;
line-height
:
.36rem
;
}
.que_content_title_jc
{
display
:
none
;
}
\ No newline at end of file
wechat_lung_questionnaire/javaScript/examination.js
View file @
cb1293a2
...
...
@@ -51,7 +51,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
// 用户点击了无
$
(
'.noHas'
).
on
(
'tap'
,
function
(){
examination
.
flag
=
false
console
.
log
(
examination
.
flag
)
examination
.
checks
=
''
})
// 用户点击了有
...
...
@@ -71,13 +70,12 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
})
examination
.
checks
=
list
.
join
(
','
)
console
.
log
(
examination
.
checks
)
//
console.log(examination.checks)
})
// 点击下一题
$
(
'.next'
).
on
(
'tap'
,
function
(){
console
.
log
(
examination
.
flag
)
if
(
examination
.
flag
){
console
.
log
(
examination
.
checks
)
//
console.log(examination.checks)
var
dataHas
=
{
"adminId"
:
examination
.
adminId
,
"parentId"
:
examination
.
parentId
,
...
...
@@ -134,7 +132,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"adminId"
:
examination
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
// 如果没做过题那么answer没有
if
(
!
res
.
content
.
followAnswer
.
answer
)
{
...
...
@@ -150,7 +147,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
'12'
:
false
}
$
(
'.bloodTest'
).
prop
(
'checked'
,
true
)
console
.
log
(
examination
.
checks
)
//
console.log(examination.checks)
return
}
// console.log(res.content.followAnswer.answer.checks)
...
...
@@ -217,7 +214,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"adminId"
:
examination
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
var
parentId
=
res
.
content
.
previousQuestion
.
parentId
||
''
var
questionId
=
res
.
content
.
previousQuestion
.
questionId
||
''
...
...
@@ -233,7 +229,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
// 提交答案获取下一题id
getNextQuestion
:
function
(
data
){
var
crm
=
examination
.
adminId
==
''
?
''
:
'/crm'
console
.
log
(
data
)
medtap
.
submitAjax
({
url
:
'https://gateway.medtap.cn/operation/followUp'
+
crm
+
'/nextQuestion'
,
type
:
'post'
,
...
...
@@ -241,7 +236,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
contentType
:
'application/json'
,
data
:
data
,
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
// 获取下一题的id和序号通过url传递
var
parentId
=
res
.
content
.
nextQuestion
.
parentId
||
''
...
...
wechat_lung_questionnaire/javaScript/furtherConsultation.js
View file @
cb1293a2
...
...
@@ -51,7 +51,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
// 用户点击了有
$
(
'.has'
).
on
(
'tap'
,
function
(){
furtherConsultation
.
flag
=
true
console
.
log
(
furtherConsultation
.
flag
)
//
console.log(furtherConsultation.flag)
})
// tab切换(有无)
$
(
".tabbox li"
).
click
(
function
(){
...
...
@@ -162,8 +162,8 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
// 点击转移部位
$
(
'.input_item_move'
).
click
(
function
(){
furtherConsultation
.
movePicker
.
show
(
function
(
Items
)
{
console
.
log
(
Items
[
0
].
text
);
console
.
log
(
Items
[
0
].
value
);
//
console.log(Items[0].text);
//
console.log(Items[0].value);
$
(
'.input_item_move'
).
val
(
Items
[
0
].
text
)
})
})
...
...
@@ -177,7 +177,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
url
:
window
.
location
.
href
},
success
:
function
(
res
)
{
console
.
log
(
res
)
//
console.log(res)
var
data
=
res
.
content
;
wx
.
config
({
debug
:
false
,
...
...
@@ -197,7 +197,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
//选择图片
choseImage
:
function
()
{
$
(
'.upload_img'
).
on
(
'click'
,
function
()
{
console
.
log
(
'点击了选择图片'
)
//
console.log('点击了选择图片')
var
html
=
''
;
wx
.
ready
(
function
()
{
var
syncUpload
=
function
(
localIds
)
{
...
...
@@ -221,7 +221,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
sizeType
:
[
'original'
,
'compressed'
],
sourceType
:
[
'album'
,
'camera'
],
success
:
function
(
res
)
{
console
.
log
(
'选择图片的结果'
,
res
)
//
console.log('选择图片的结果',res)
furtherConsultation
.
localIds
=
res
.
localIds
;
//所有需要上传到图片预览
syncUpload
(
furtherConsultation
.
localIds
);
...
...
@@ -264,13 +264,13 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
'user-os'
:
'wechat'
},
success
:
function
(
data
)
{
console
.
log
(
'上传的data'
,
data
)
//
console.log('上传的data',data)
if
(
data
.
success
==
true
)
{
var
res
=
data
.
content
;
var
imgKey
=
res
.
url
;
furtherConsultation
.
imgList
.
push
(
imgKey
);
console
.
log
(
'上传后图片的imgKey'
,
imgKey
)
console
.
log
(
localId
)
//
console.log('上传后图片的imgKey',imgKey)
//
console.log(localId)
var
html
=
'<div class="image_files_item">'
+
'<img src="'
+
localId
+
'" class="image_files_img" imgkey="'
+
imgKey
+
'">'
+
'<img src="../images/post_delete_btn@2x.png" class="image_del" >'
+
...
...
@@ -295,7 +295,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"questionId"
:
furtherConsultation
.
questionId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
// 如果没做过题那么answer没有
if
(
!
res
.
content
.
followAnswer
.
answer
)
{
...
...
@@ -347,7 +346,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"followUpId"
:
furtherConsultation
.
followUpId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
var
parentId
=
res
.
content
.
previousQuestion
.
parentId
||
''
var
questionId
=
res
.
content
.
previousQuestion
.
questionId
||
''
...
...
@@ -366,7 +364,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
contentType
:
'application/json'
,
data
:
data
,
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
// 获取下一题的id和序号通过url传递
var
parentId
=
res
.
content
.
nextQuestion
.
parentId
||
''
...
...
wechat_lung_questionnaire/javaScript/geneDetection.js
View file @
cb1293a2
...
...
@@ -209,7 +209,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
//选择图片
choseImage
:
function
()
{
$
(
'.upload_img'
).
on
(
'click'
,
function
()
{
console
.
log
(
'点击了选择图片'
)
//
console.log('点击了选择图片')
var
html
=
''
;
wx
.
ready
(
function
()
{
var
syncUpload
=
function
(
localIds
)
{
...
...
@@ -257,12 +257,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
});
}
});
$
(
'#ImgUp'
).
on
(
'click'
,
'.image_del'
,
function
()
{
if
(
confirm
(
'确定要删除图片吗?'
))
{
$
(
this
).
parent
().
remove
();
console
.
log
(
$
(
this
))
}
});
},
//上传图片
upLoadImg
:
function
(
serverId
,
localId
)
{
...
...
@@ -367,7 +361,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"adminId"
:
geneDetection
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
var
parentId
=
res
.
content
.
previousQuestion
.
parentId
||
''
var
questionId
=
res
.
content
.
previousQuestion
.
questionId
||
''
...
...
@@ -412,7 +406,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
contentType
:
'application/json'
,
data
:
data
,
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
var
parentId
=
res
.
content
.
nextQuestion
.
parentId
||
''
var
nextquestionNo
=
res
.
content
.
nextQuestion
.
questionNo
||
''
...
...
wechat_lung_questionnaire/javaScript/generalPage.js
View file @
cb1293a2
...
...
@@ -228,7 +228,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
},
success
:
function
(
res
)
{
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
console
.
log
(
res
)
if
(
!
res
.
content
.
followAnswer
.
answer
)
{
return
}
...
...
@@ -264,7 +264,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"adminId"
:
generalPage
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
var
parentId
=
res
.
content
.
previousQuestion
.
parentId
||
''
var
questionId
=
res
.
content
.
previousQuestion
.
questionId
||
''
...
...
@@ -308,7 +308,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
contentType
:
'application/json'
,
data
:
data
,
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
var
parentId
=
res
.
content
.
nextQuestion
.
parentId
||
''
var
nextquestionNo
=
res
.
content
.
nextQuestion
.
questionNo
||
''
...
...
wechat_lung_questionnaire/javaScript/index.js
View file @
cb1293a2
...
...
@@ -50,7 +50,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"adminId"
:
index
.
adminId
},
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
res
.
content
.
followUpUser
.
status
==
'1'
&&
index
.
adminId
==
''
){
medtap
.
pushWindow
(
'pages/questionnaireDetails.html?followUpId='
+
index
.
followUpId
)
}
...
...
wechat_lung_questionnaire/javaScript/myQuestionnaireList.js
View file @
cb1293a2
...
...
@@ -27,7 +27,6 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"adminId"
:
myQuestionnaireList
.
adminId
},
success
:
function
(
res
)
{
console
.
log
(
res
)
var
html
=
''
var
QuestionnaireList
=
res
.
content
.
followUpList
for
(
var
i
=
0
;
i
<
QuestionnaireList
.
length
;
i
++
)
{
...
...
wechat_lung_questionnaire/javaScript/otherTreatment.js
View file @
cb1293a2
...
...
@@ -24,12 +24,12 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
// 用户点击了无
$
(
'.noHas'
).
click
(
function
(){
otherTreatment
.
flag
=
false
console
.
log
(
otherTreatment
.
flag
)
//
console.log(otherTreatment.flag)
})
// 用户点击了有
$
(
'.has'
).
click
(
function
(){
otherTreatment
.
flag
=
true
console
.
log
(
otherTreatment
.
flag
)
//
console.log(otherTreatment.flag)
})
// 点击下一题
$
(
'.next'
).
on
(
'click'
,
function
(){
...
...
@@ -123,7 +123,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"adminId"
:
otherTreatment
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
winPop
(
'获取数据失败'
)
if
(
!
res
.
content
.
followAnswer
.
answer
)
{
otherTreatment
.
flag
=
true
...
...
@@ -161,7 +161,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"adminId"
:
otherTreatment
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
winPop
(
'获取数据失败'
)
var
parentId
=
res
.
content
.
previousQuestion
.
parentId
||
''
var
questionId
=
res
.
content
.
previousQuestion
.
questionId
||
''
...
...
@@ -180,7 +180,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
contentType
:
'application/json'
,
data
:
data
,
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
winPop
(
'获取数据失败'
)
// 获取下一题的id和序号通过url传递
var
parentId
=
res
.
content
.
nextQuestion
.
parentId
||
''
...
...
wechat_lung_questionnaire/javaScript/questionnaireDetails.js
View file @
cb1293a2
This diff is collapsed.
Click to expand it.
wechat_lung_questionnaire/javaScript/targetedTherapy.js
View file @
cb1293a2
...
...
@@ -382,7 +382,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"adminId"
:
targetedTherapy
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
// 如果没做过题那么answer没有
if
(
!
res
.
content
.
followAnswer
.
answer
)
{
...
...
@@ -403,7 +403,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
$
(
'.input_item_city'
).
val
(
res
.
content
.
followAnswer
.
answer
.
cityVal
||
''
)
$
(
'.input_item_medicalType'
).
val
(
res
.
content
.
followAnswer
.
answer
.
medicalType
||
''
)
}
else
if
(
status
==
'0'
){
console
.
log
(
'1'
)
// 无
targetedTherapy
.
flag
=
false
$
(
'.noHas'
).
addClass
(
'active'
).
siblings
(
'.has'
).
removeClass
(
'active'
)
...
...
@@ -416,7 +416,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
$
(
'.input_item_isNext'
).
val
(
res
.
content
.
followAnswer
.
answer
.
isNextVal
||
''
)
$
(
'#content_body_programme'
).
val
(
res
.
content
.
followAnswer
.
answer
.
programme
||
''
)
}
console
.
log
(
targetedTherapy
.
flag
)
//
console.log(targetedTherapy.flag)
}
})
},
...
...
@@ -435,7 +435,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
"adminId"
:
targetedTherapy
.
adminId
,
},
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
var
parentId
=
res
.
content
.
previousQuestion
.
parentId
||
''
var
questionId
=
res
.
content
.
previousQuestion
.
questionId
||
''
...
...
@@ -455,7 +455,7 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
contentType
:
'application/json'
,
data
:
data
,
success
:
function
(
res
)
{
console
.
log
(
res
)
if
(
!
res
.
success
)
return
medtap
.
winPop
(
'获取数据失败'
)
// 获取下一题的id和序号通过url传递
var
parentId
=
res
.
content
.
nextQuestion
.
parentId
||
''
...
...
wechat_lung_questionnaire/pages/questionnaireDetails.html
View file @
cb1293a2
...
...
@@ -52,7 +52,7 @@
</div>
<div
class=
"question_four question"
>
<div
class=
"que_title que_title_isHide"
>
检验检查情况
检验检查情况
:
<span
class=
"que_content_title que_content_title_jc"
>
近一个月做过以下检验检查
</span>
</div>
<div
class=
"question6"
></div>
<div
class=
"question7"
></div>
...
...
@@ -66,8 +66,8 @@
</div>
<div
class=
"question_six question"
>
<div
class=
"que_title"
>
不适症状
<div
class=
"que_title
que_title_nobor
"
>
不适症状
:
<span
class=
"que_content_title que_content_title_discomfort"
>
近一个月没有不适症状
</span>
</div>
<div
class=
"question15"
></div>
<div
class=
"question16"
></div>
...
...
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