正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -119,7 +119,7 @@ Page({ | @@ -119,7 +119,7 @@ Page({ | ||
119 | "Authorization": Authorization | 119 | "Authorization": Authorization |
120 | }, | 120 | }, |
121 | success: function (res) { | 121 | success: function (res) { |
122 | - if (res && res.data) { | 122 | + if (res.statusCode==200 && res.data) { |
123 | console.log("show_modal", !res.data.new_addition_status) | 123 | console.log("show_modal", !res.data.new_addition_status) |
124 | that.setData({ | 124 | that.setData({ |
125 | addition_data_last_year: res.data.last_addition_status, | 125 | addition_data_last_year: res.data.last_addition_status, |
@@ -204,7 +204,7 @@ Page({ | @@ -204,7 +204,7 @@ Page({ | ||
204 | "Authorization": Authorization | 204 | "Authorization": Authorization |
205 | }, | 205 | }, |
206 | success: function (res) { | 206 | success: function (res) { |
207 | - if (res && res.data) { | 207 | + if (res.statusCode==200 && res.data) { |
208 | console.log("res", res) | 208 | console.log("res", res) |
209 | that.setData({ | 209 | that.setData({ |
210 | choosed_date: "2020" | 210 | choosed_date: "2020" |
请
注册
或
登录
后发表评论