Ver código fonte

1.添加多个请求成功,但是没有返回数据的判断
2.样式更改

kwonghinho 7 anos atrás
pai
commit
306df5be20
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      wx.demo.ywtinfo.com/js/appointmentDoctorList.js

+ 2 - 2
wx.demo.ywtinfo.com/js/appointmentDoctorList.js

@@ -62,7 +62,7 @@
                             '<div class="day">'+j.split('-')[2]+'</div>' +
                             '</li>';
                     }else if( !data[i][j] && j == selectedDate){
-                        ulStr += '<li name="'+j+'" class="has-appointment">' +
+                        ulStr += '<li name="'+j+'" class="active">' +
                             '<div class="week">'+new Date(j).pattern('E')+'</div>' +
                             '<div class="day">'+j.split('-')[2]+'</div>' +
                             '</li>';
@@ -120,7 +120,7 @@
             //初始化内容
             c('#morning').html('');
             c('#afternoon').html('');
-            if(data!=false){
+            if(data!=false && data.Schedules){
                 var doctorList = data.Schedules.Schedule;
                 for(var i in doctorList){
                     var docinfo = doctorList[i];