正在显示
3 个修改的文件
包含
43 行增加
和
29 行删除
1 | 1 | // pages/common/webview.js |
2 | +var baseUrl = getApp().globalData.baseUrl; | |
2 | 3 | Page({ |
3 | 4 | |
4 | 5 | /** |
... | ... | @@ -16,11 +17,11 @@ Page({ |
16 | 17 | onLoad: function (options) { |
17 | 18 | if(options.type == 1){ |
18 | 19 | this.setData({ |
19 | - h5_url:this.data.url01 | |
20 | + h5_url: this.updateUrl(this.data.url01) | |
20 | 21 | }) |
21 | 22 | }else{ |
22 | 23 | this.setData({ |
23 | - h5_url: this.data.url02 | |
24 | + h5_url: this.updateUrl(this.data.url02) | |
24 | 25 | }) |
25 | 26 | } |
26 | 27 | wx.setNavigationBarTitle({ |
... | ... | @@ -28,6 +29,12 @@ Page({ |
28 | 29 | }) |
29 | 30 | }, |
30 | 31 | |
32 | + updateUrl(s){ | |
33 | + if (baseUrl.indexOf("https")>-1 || baseUrl.indexOf("com")>-1){//正式环境 | |
34 | + return s.replace("dev","emp") | |
35 | + } | |
36 | + }, | |
37 | + | |
31 | 38 | /** |
32 | 39 | * Lifecycle function--Called when page is initially rendered |
33 | 40 | */ |
... | ... |
... | ... | @@ -69,6 +69,7 @@ Page({ |
69 | 69 | declare_status: result.data.declare_status, |
70 | 70 | refund_status: result.data.refund_status, |
71 | 71 | pay_status: result.data.pay_status, |
72 | + declaring_unit: result.data.declaring_unit, | |
72 | 73 | declaring_unit_status: result.data.declaring_unit_status, |
73 | 74 | new_refund_tax: Math.abs(result.data.refund_tax), |
74 | 75 | declare_end_date: format.getDateString(result.data.declare_end_time) , |
... | ... | @@ -328,36 +329,42 @@ Page({ |
328 | 329 | var text = "" |
329 | 330 | var text_status = "" |
330 | 331 | var text_title = "应补退税额" |
331 | - if (data.declare_status=='1'){//申报中 | |
332 | + if (data.declare_status=='2'){//申报中 | |
332 | 333 | text = "请等候申报结果" |
333 | 334 | } else {//申报成功 |
334 | - if (data.refund_tax > 0 || data.refund_tax == 0) { | |
335 | - text_title = "应补税额" | |
336 | - } else { | |
335 | + if (data.declare_result=='0') {//申报结果0:退税,1:补税,2:无需补退税 | |
337 | 336 | text_title = "应退税额" |
337 | + if (data.refund_status == "1") { | |
338 | + text = "请确认是否申请退款?" | |
339 | + } else if (data.refund_status == '2') { | |
340 | + text = "申请退税中" | |
341 | + text_status = "退税中" | |
342 | + } else if (data.refund_status == '4') { | |
343 | + text = "退税失败,请确认您的银行卡信息是否正确?" | |
344 | + text_status = "退税失败" | |
345 | + } else if (data.refund_status == '5') { | |
346 | + text = "您已放弃退税" | |
347 | + text_status = "已放弃" | |
348 | + } | |
349 | + } else if (data.declare_result == '1'){//补税 | |
350 | + text_title = "应补税额" | |
351 | + if (data.exempt == 'yes') { | |
352 | + text = "您已享受豁免" | |
353 | + text_status = "豁免" | |
354 | + } else if (data.pay_status == '1') { | |
355 | + text = "请等待企业为您代缴税款" | |
356 | + text_status = "待缴款" | |
357 | + } else if (data.pay_status == '2') { | |
358 | + text = "单位已为您代缴税款" | |
359 | + text_status = "已缴款" | |
360 | + } | |
338 | 361 | } |
339 | 362 | |
340 | - if (data.refund_status == "1") { | |
341 | - text = "请确认是否申请退款?" | |
342 | - } else if (data.refund_status == '2') { | |
343 | - text = "申请退税中" | |
344 | - text_status = "退税中" | |
345 | - } else if (data.refund_status == '4') { | |
346 | - text = "退税失败,请确认您的银行卡信息是否正确?" | |
347 | - text_status = "退税失败" | |
348 | - } else if (data.refund_status == '5') { | |
349 | - text = "您已放弃退税" | |
350 | - text_status = "已放弃" | |
351 | - } else if (data.exempt == 'yes') { | |
352 | - text = "您已享受豁免" | |
353 | - text_status = "豁免" | |
354 | - } else if (data.pay_status == '1') { | |
355 | - text = "请等待企业为您代缴税款" | |
356 | - text_status = "待缴款" | |
357 | - } else if (data.pay_status == '2') { | |
358 | - text = "单位已为您代缴税款" | |
359 | - text_status = "已缴款" | |
360 | - } | |
363 | + // if (data.refund_tax > 0 || data.refund_tax == 0) { | |
364 | + // text_title = "应补税额" | |
365 | + // } else { | |
366 | + // text_title = "应退税额" | |
367 | + // } | |
361 | 368 | } |
362 | 369 | this.setData({ |
363 | 370 | declare_text_extra:text, |
... | ... |
... | ... | @@ -39,8 +39,8 @@ |
39 | 39 | <image style="width:28rpx;height:28rpx;margin-right:12rpx;margin-top:6rpx" src="/images/warn_yellow.png"></image> |
40 | 40 | <text class="text_gray6_28">{{declare_text_extra}} </text> |
41 | 41 | </view> |
42 | - <view class="divide_line_f5f5f5"></view> | |
43 | - <view style="margin-top:20rpx"> | |
42 | + <view class="divide_line_f5f5f5" style="margin:20rpx 0"></view> | |
43 | + <view > | |
44 | 44 | <text class="text_gray6_28">收入总额:</text> |
45 | 45 | <text class="text_gray3_28 float_right" style="line-height:50rpx">¥{{payinfo.total_salary}}</text> |
46 | 46 | </view> |
... | ... |
请
注册
或
登录
后发表评论