提交 8318ab0efccd2ad27aa30a05d0ac47278a759baa

作者 wangyu
1 个父辈 649e203a

优化逻辑

... ... @@ -296,6 +296,12 @@ Page({
296 296 })
297 297 },
298 298
  299 + refundDetail:function(){//退税详情
  300 + wx.navigateTo({
  301 + url: 'refundDetail/refundDetail',
  302 + })
  303 + },
  304 +
299 305 updateText:function(data){
300 306 var text = ""
301 307 var text_status = ""
... ...
... ... @@ -113,7 +113,7 @@
113 113 </view>
114 114 </view>
115 115
116   - <view wx:if="{{refund_status=='1'}}" style="width:100%;height:300rpx;position: fixed;bottom: 0;background-color:#fff">
  116 + <view wx:if="{{refund_status=='1'&&false}}" style="width:100%;height:300rpx;position: fixed;bottom: 0;background-color:#fff">
117 117 <view style="display: flex;justify-content: center;margin-top:20rpx">
118 118 <text class="text_gray6_28">距离确认是否申请退税时间还有 </text>
119 119 <text class="text_yellow_28"> {{declare_end_days}} </text>
... ... @@ -127,6 +127,12 @@
127 127 </view>
128 128 </view>
129 129
  130 + <view wx:if="{{refund_status=='2'||refund_status=='3'||refund_status=='4'}}" style="width:100%;height:144rpx;position: fixed;bottom: 0;background-color:#fff">
  131 + <view bindtap="refundDetail" class="btn_white_radius" style="margin:30rpx ">
  132 + <view class="text_blue_34">查看退税详情</view>
  133 + </view>
  134 + </view>
  135 +
130 136 <view class="mask" wx:if="{{showModal_selfDeclare}}"></view>
131 137 <view class='modal_lg' style='' wx:if="{{showModal_selfDeclare}}">
132 138 <text class='text_black_bold'>个人如何自行完成汇算清缴申报?</text>
... ...
... ... @@ -8,6 +8,7 @@ Page({
8 8 */
9 9 data: {
10 10 year:"2019",
  11 + refund_status: "", //退税状态 "0" 无需退税; "1" 待退税;"2" 退税中"3" 退税成功;"4"退税失败;"5"放弃退税;
11 12 refundInfo:{}
12 13 },
13 14
... ...
1 1 <view>
2 2
3 3 <view style="background:#fff;padding:30rpx;margin-top:20rpx">
4   - <view style="margin-bottom:20rpx">
  4 + <view wx:if="{{refund_status=='4'}}" style="margin-bottom:20rpx">
5 5 <text class="text_black3_34">退税详情</text>
6 6 <view class="light_blue_bg" style="display:flex">
7 7 <text style="font-size:14px;color:#54B4F5;margin: 0 auto">退款成功</text>
8 8 </view>
9 9 </view>
10   - <view wx:if="{{false}}" style="margin-bottom:20rpx">
  10 + <view wx:else style="margin-bottom:20rpx">
11 11 <text class="text_black3_34">退税详情</text>
12 12 <view class="light_yellow_bg" style="display:flex">
13   - <text style="font-size:14px;color:#FF8F1F;margin: 0 auto">申请中</text>
  13 + <text style="font-size:14px;color:#FF8F1F;margin: 0 auto">{{refund_status=='2'?'申请中':'退税失败'}}</text>
14 14 </view>
15 15 </view>
16 16 <view class="divide_line" style="margin-bottom:20rpx"></view>
17 17 <view>
18 18 <text class="text_black6_32">开户人姓名</text>
19   - <text class="text_black6_32 float_right">张三</text>
  19 + <text class="text_black6_32 float_right">{{refundInfo.name}}</text>
20 20 </view>
21 21 <view>
22 22 <text class="text_black6_32">申请退税金额</text>
23   - <text class="text_black6_32 float_right">30000.00</text>
  23 + <text class="text_black6_32 float_right">{{refundInfo.accumulated_refund_tax}}</text>
24 24 </view>
25 25 <view>
26 26 <text class="text_black6_32">银行卡号</text>
27   - <text class="text_black6_32 float_right">62218828283939</text>
  27 + <text class="text_black6_32 float_right">{{refundInfo.bank_card_no}}</text>
28 28 </view>
29 29 <view>
30 30 <text class="text_black6_32">开户银行名称</text>
31   - <text class="text_black6_32 float_right">招商银行</text>
  31 + <text class="text_black6_32 float_right">{{refundInfo.bank}}</text>
32 32 </view>
33 33 <view>
34 34 <text class="text_black6_32">开户银行省份</text>
35   - <text class="text_black6_32 float_right">湖北</text>
  35 + <text class="text_black6_32 float_right">{{refundInfo.bank_province}}</text>
36 36 </view>
37 37 </view>
38 38 </view>
\ No newline at end of file
... ...
注册登录 后发表评论