提交 6a4889336d062f53a6be1ce41fa31a7b6116c117

作者 pangy
1 个父辈 96534dde

预扣预缴。空页面

@@ -13,7 +13,9 @@ Page({ @@ -13,7 +13,9 @@ Page({
13 currentTab: 0, 13 currentTab: 0,
14 taxDatas: [], 14 taxDatas: [],
15 salaryDatas: {}, 15 salaryDatas: {},
16 - choosed_date: '' 16 + choosed_date: '',
  17 + hascompleted_tax:false,
  18 + hascompleted_sal: false
17 }, 19 },
18 onLoad: function(options) { 20 onLoad: function(options) {
19 var mydate = new Date(); 21 var mydate = new Date();
@@ -48,6 +50,9 @@ Page({ @@ -48,6 +50,9 @@ Page({
48 if (!that.loadCount) { 50 if (!that.loadCount) {
49 wx.hideLoading() 51 wx.hideLoading()
50 } 52 }
  53 + that.setData({
  54 + hascompleted_tax: true
  55 + })
51 } 56 }
52 }) 57 })
53 wx.request({ 58 wx.request({
@@ -70,6 +75,9 @@ Page({ @@ -70,6 +75,9 @@ Page({
70 if (!that.loadCount) { 75 if (!that.loadCount) {
71 wx.hideLoading() 76 wx.hideLoading()
72 } 77 }
  78 + that.setData({
  79 + hascompleted_sal: true
  80 + })
73 } 81 }
74 }) 82 })
75 83
@@ -15,8 +15,12 @@ @@ -15,8 +15,12 @@
15 <view style='height:10rpx;background:#f8f8f8'></view> 15 <view style='height:10rpx;background:#f8f8f8'></view>
16 <view class="swiper-box page" style="height:100%;margin-top:20rpx" bindchange="bindChange"> 16 <view class="swiper-box page" style="height:100%;margin-top:20rpx" bindchange="bindChange">
17 <view wx:if="{{currentTab==0}}"> 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 <view wx:for="{{taxDatas}}" style='margin-bottom:20rpx'> 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 <text class='text_blue_36'>所得项目:{{item.method}}</text> 24 <text class='text_blue_36'>所得项目:{{item.method}}</text>
21 <view class='divide_line_f5f5f5' style='margin:30rpx 0'></view> 25 <view class='divide_line_f5f5f5' style='margin:30rpx 0'></view>
22 <!-- <text class='text_999_28'>累计收入额:{{item.personal_income}}</text> --> 26 <!-- <text class='text_999_28'>累计收入额:{{item.personal_income}}</text> -->
@@ -29,6 +33,10 @@ @@ -29,6 +33,10 @@
29 </view> 33 </view>
30 </view> 34 </view>
31 <view wx:else> <!-- 工资明细 --> 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 <view wx:for="{{salaryDatas}}" style='margin-bottom:20rpx'> 40 <view wx:for="{{salaryDatas}}" style='margin-bottom:20rpx'>
33 <view class='card_rectangle_bg_column' style='padding:30rpx'> 41 <view class='card_rectangle_bg_column' style='padding:30rpx'>
34 <text class='text_blue_36'>薪酬批次工资: {{item.program}}</text> 42 <text class='text_blue_36'>薪酬批次工资: {{item.program}}</text>
注册登录 后发表评论