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
dfb568ef
Commit
dfb568ef
authored
Nov 21, 2019
by
zujiaozhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'添加问卷id'
parent
8aa967a7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
myQuestionnaireList.js
wechat_lung_questionnaire/javaScript/myQuestionnaireList.js
+4
-4
No files found.
wechat_lung_questionnaire/javaScript/myQuestionnaireList.js
View file @
dfb568ef
define
([
'zepto'
,
'medtap'
,
'mui'
,
'mui.picker'
],
function
(
$
,
medtap
,
mui
)
{
var
myQuestionnaireList
=
{
// 问卷id
followUpId
:
medtap
.
getRequest
(
'followUpId'
)
,
followUpId
:
''
,
init
:
function
(){
$
(
".tabbox li"
).
click
(
function
()
{
...
...
@@ -33,20 +33,20 @@ define(['zepto', 'medtap', 'mui', 'mui.picker'], function($, medtap, mui) {
var
mouthTime
=
times
[
1
]
var
yearTime
=
times
[
0
]
html
+=
'<li class="my_questionnaire_list" data-
id='
+
QuestionnaireList
[
i
].
status
+
'>'
html
+=
'<li class="my_questionnaire_list" data-
status='
+
QuestionnaireList
[
i
].
status
+
' data-id='
+
QuestionnaireList
[
i
].
id
+
'>'
+
yearTime
+
'年'
+
mouthTime
+
'月随访问卷'
+
'<span class="my_questionnaire_list_after">已完成</span></li>'
}
$
(
'.my_questionnaire_box'
).
append
(
html
)
var
list
=
document
.
querySelectorAll
(
'.my_questionnaire_box li'
)
for
(
var
i
=
0
;
i
<
list
.
length
;
i
++
){
if
(
list
[
i
].
dataset
.
id
!=
1
){
if
(
list
[
i
].
dataset
.
status
!=
1
){
list
[
i
].
children
[
0
].
hidden
=
true
}
}
// 点击进入详情
$
(
'.my_questionnaire_box'
).
on
(
'tap'
,
'.my_questionnaire_list'
,
function
(){
myQuestionnaireList
.
followUpId
=
$
(
this
).
attr
(
'data-id'
)
medtap
.
pushWindow
(
'../pages/questionnaireDetails.html?followUpId='
+
myQuestionnaireList
.
followUpId
)
})
}
...
...
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