提交 b2e392c4b3f77a03f15dc103539e77ff0cb2590a

作者 wangyu
1 个父辈 3d02bae3

优化

... ... @@ -162,7 +162,7 @@ Page({
162 162 }
163 163 if (newdata[i].co_supporters && newdata[i].co_supporters.length>0){
164 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 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 51 success: function (res) {
52 52 if (res && res.data) {
53 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 })
... ...
注册登录 后发表评论