提交 ebef04ad6d76cd47430971cea117b4c1514321a6

作者 wangyu
1 个父辈 727a3f7c

优化专项附加扣除首页数据返回的判断

正在显示 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"
注册登录 后发表评论