diff --git a/pages/goods/goodsList/goodsList.js b/pages/goods/goodsList/goodsList.js index 8270dde..412d0b1 100644 --- a/pages/goods/goodsList/goodsList.js +++ b/pages/goods/goodsList/goodsList.js @@ -118,23 +118,19 @@ Page({ var arr= res.data.data; if(arr.is_end==1){ - th.setData({show_all:0}); - th.setData({err_txt:'活动已结束'}); + th.setData({show_all:0,err_txt:'活动已结束'}); return false; } if(arr.start_time>ut.gettimestamp()){ - th.setData({show_all:0}); - th.setData({err_txt:'活动还未开始'}); + th.setData({show_all:0,err_txt:'活动还未开始'}); return false; } if(arr.end_time回到首页 -