正在显示
2 个修改的文件
包含
7 行增加
和
5 行删除
| @@ -162,7 +162,7 @@ Page({ | @@ -162,7 +162,7 @@ Page({ | ||
| 162 | } | 162 | } |
| 163 | if (newdata[i].co_supporters && newdata[i].co_supporters.length>0){ | 163 | if (newdata[i].co_supporters && newdata[i].co_supporters.length>0){ |
| 164 | for (var j = 0; j < newdata[i].co_supporters.length;j++){ | 164 | for (var j = 0; j < newdata[i].co_supporters.length;j++){ |
| 165 | - if (newdata[i].co_supporters[j].birthday && newdata[i].patient_birthday > 0) { | 165 | + if (newdata[i].co_supporters[j].birthday && newdata[i].birthday > 0) { |
| 166 | newdata[i].co_supporters[j].birthday = format.formatTime_date(newdata[i].co_supporters[j].birthday) | 166 | newdata[i].co_supporters[j].birthday = format.formatTime_date(newdata[i].co_supporters[j].birthday) |
| 167 | } | 167 | } |
| 168 | } | 168 | } |
| @@ -51,10 +51,12 @@ Page({ | @@ -51,10 +51,12 @@ Page({ | ||
| 51 | success: function (res) { | 51 | success: function (res) { |
| 52 | if (res && res.data) { | 52 | if (res && res.data) { |
| 53 | console.log("res", res) | 53 | console.log("res", res) |
| 54 | - that.setData({ | ||
| 55 | - showModal: res.data.items && res.data.items.length>0?false:false, | ||
| 56 | - comlist: res.data.items | ||
| 57 | - }) | 54 | + if (res.data.items && res.data.items.length > 0){ |
| 55 | + that.setData({ | ||
| 56 | + showModal: true, | ||
| 57 | + comlist: res.data.items | ||
| 58 | + }) | ||
| 59 | + } | ||
| 58 | } | 60 | } |
| 59 | } | 61 | } |
| 60 | }) | 62 | }) |
请
注册
或
登录
后发表评论