Commit dfb568ef by zujiaozhang

'添加问卷id'

parent 8aa967a7
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)
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment