正在显示
3 个修改的文件
包含
18 行增加
和
2 行删除
images/noDataIcon.jpg
0 → 100644
33.1 KB
| ... | ... | @@ -13,7 +13,9 @@ Page({ |
| 13 | 13 | currentTab: 0, |
| 14 | 14 | taxDatas: [], |
| 15 | 15 | salaryDatas: {}, |
| 16 | - choosed_date: '' | |
| 16 | + choosed_date: '', | |
| 17 | + hascompleted_tax:false, | |
| 18 | + hascompleted_sal: false | |
| 17 | 19 | }, |
| 18 | 20 | onLoad: function(options) { |
| 19 | 21 | var mydate = new Date(); |
| ... | ... | @@ -48,6 +50,9 @@ Page({ |
| 48 | 50 | if (!that.loadCount) { |
| 49 | 51 | wx.hideLoading() |
| 50 | 52 | } |
| 53 | + that.setData({ | |
| 54 | + hascompleted_tax: true | |
| 55 | + }) | |
| 51 | 56 | } |
| 52 | 57 | }) |
| 53 | 58 | wx.request({ |
| ... | ... | @@ -70,6 +75,9 @@ Page({ |
| 70 | 75 | if (!that.loadCount) { |
| 71 | 76 | wx.hideLoading() |
| 72 | 77 | } |
| 78 | + that.setData({ | |
| 79 | + hascompleted_sal: true | |
| 80 | + }) | |
| 73 | 81 | } |
| 74 | 82 | }) |
| 75 | 83 | ... | ... |
| ... | ... | @@ -15,8 +15,12 @@ |
| 15 | 15 | <view style='height:10rpx;background:#f8f8f8'></view> |
| 16 | 16 | <view class="swiper-box page" style="height:100%;margin-top:20rpx" bindchange="bindChange"> |
| 17 | 17 | <view wx:if="{{currentTab==0}}"> |
| 18 | + <view wx:if="{{hascompleted_tax&&taxDatas.length<1}}" style='background:#fff;width:100%; align-items: center;'> | |
| 19 | + <image style='width:418rpx;height:254rpx;margin: 0 auto;padding-top:300rpx; display: block;' mode="aspectFit" src='/images/noDataIcon.jpg'></image> | |
| 20 | + <view style='width:100%; font-family: PingFang-SC-Medium;font-size: 14px;color: #999999;letter-spacing: 0;text-align: center;'>还没有企业为您申报个税哦~</view> | |
| 21 | + </view> | |
| 18 | 22 | <view wx:for="{{taxDatas}}" style='margin-bottom:20rpx'> |
| 19 | - <view class='card_rectangle_bg_column' style='padding:30rpx' id='{{item.id}}' bindtap='goItemDetails'> | |
| 23 | + <view class='card_rectangle_bg_column' style='padding:30rpx' id='{s{item.id}}' bindtap='goItemDetails'> | |
| 20 | 24 | <text class='text_blue_36'>所得项目:{{item.method}}</text> |
| 21 | 25 | <view class='divide_line_f5f5f5' style='margin:30rpx 0'></view> |
| 22 | 26 | <!-- <text class='text_999_28'>累计收入额:{{item.personal_income}}</text> --> |
| ... | ... | @@ -29,6 +33,10 @@ |
| 29 | 33 | </view> |
| 30 | 34 | </view> |
| 31 | 35 | <view wx:else> <!-- 工资明细 --> |
| 36 | + <view wx:if="{{hascompleted_sal&&salaryDatas.length<1}}" style='background:#fff;'> | |
| 37 | + <image style='width:418rpx;height:254rpx;margin: 0 auto;padding-top:300rpx; display: block;' mode="aspectFit" src='/images/noDataIcon.jpg'></image> | |
| 38 | + <view style='width:100%; font-family: PingFang-SC-Medium;font-size: 14px;color: #999999;letter-spacing: 0;text-align: center;'>您还没有工资条哦~</view> | |
| 39 | + </view> | |
| 32 | 40 | <view wx:for="{{salaryDatas}}" style='margin-bottom:20rpx'> |
| 33 | 41 | <view class='card_rectangle_bg_column' style='padding:30rpx'> |
| 34 | 42 | <text class='text_blue_36'>薪酬批次工资: {{item.program}}</text> | ... | ... |
请
注册
或
登录
后发表评论