提交 8870cd763c8ca499937c3fa603a102369ad92115

作者 wangyu
2 个父辈 93fe8582 2ec40be3

Merge branch '机器人dev' into 海峡new

... ... @@ -111,6 +111,6 @@
111 111
112 112 </view>
113 113 <view wx:if="{{hascompleted&&additionlist.length<1}}" style='background:#fff;'>
114   - <image style='width:55%;height:254rpx;margin:400rpx 166rpx 0 166rpx;' src='/images/nodeclare_img.png'></image>
  114 + <image style='width:55%;height:254rpx;margin:400rpx 166rpx 0 166rpx;' src='/images/noreduce_img.png'></image>
115 115 </view>
116 116 </view>
\ No newline at end of file
... ...
... ... @@ -34,11 +34,11 @@ Page({
34 34 this.setData({
35 35 onresume:true
36 36 })
37   - this.checkUserInfo()
  37 + this.checkUserInfo("")
38 38 },
39 39
40 40 //判断该雇员是否有姓名和身份证号
41   - checkUserInfo: function() {
  41 + checkUserInfo: function (skip_type) {
42 42 var that = this;
43 43 Authorization = getApp().globalData.Authorization;
44 44 var real_auth_status = getApp().globalData.real_auth_status
... ... @@ -53,47 +53,16 @@ Page({
53 53 has_verify: true,
54 54 onresume: false,
55 55 })
56   - that.taxconfirm();
  56 + that.taxconfirm(skip_type);
57 57 } else {
58 58 that.setData({
59 59 has_verify: false
60 60 })
61 61 }
62   - // wx.request({
63   - // url: baseUrl + 'socialwork/v1/employees/verify',
64   - // data: {},
65   - // header: {
66   - // 'content-type': 'application/json',
67   - // "Authorization": Authorization
68   - // },
69   - // success: function(res) {
70   - // if (res.statusCode && res.statusCode >= 300) {
71   - // wx.showToast({
72   - // title: res.data.message,
73   - // icon: 'none',
74   - // duration: 1000
75   - // })
76   - // } else {
77   - // // that.setData({
78   - // // has_verify: false
79   - // // })
80   - // if (!res.data.need_verify) { //不需要再实名认证
81   - // that.setData({
82   - // has_verify: true
83   - // })
84   - // that.taxconfirm();
85   - // } else {
86   - // that.setData({
87   - // has_verify: false
88   - // })
89   - // }
90   - // }
91   - // }
92   - // })
93 62 }
94 63 },
95 64
96   - taxconfirm: function() {
  65 + taxconfirm: function(skip_type) {
97 66 var that = this;
98 67 Authorization = getApp().globalData.Authorization;
99 68
... ... @@ -111,6 +80,23 @@ Page({
111 80 that.setData({
112 81 isshow: false
113 82 })
  83 + if(skip_type=="1"){
  84 + wx.navigateTo({
  85 + url: '../taxperson/home',
  86 + })
  87 + } else if (skip_type == "2") {
  88 + wx.navigateTo({
  89 + url: '../addtionalreduce/home',
  90 + })
  91 + } else if (skip_type == "3") {
  92 + wx.navigateTo({
  93 + url: '../advancepayment/adPayHome',
  94 + })
  95 + } else if (skip_type == "4") {
  96 + wx.navigateTo({
  97 + url: '../finalpayment/home',
  98 + })
  99 + }
114 100 }
115 101 }
116 102 })
... ... @@ -133,7 +119,9 @@ Page({
133 119 that.setData({
134 120 isshow: false
135 121 })
136   - that.gotaxPerson()
  122 + wx.navigateTo({
  123 + url: '../taxperson/home',
  124 + })
137 125 }
138 126 }
139 127 })
... ... @@ -143,36 +131,28 @@ Page({
143 131 * 自然人信息采集
144 132 */
145 133 gotaxPerson: function() {
146   - wx.navigateTo({
147   - url: '../taxperson/home',
148   - })
  134 + this.checkUserInfo("1")
149 135 },
150 136
151 137 /**
152 138 * 专项附加扣除
153 139 */
154 140 goAdditionalDiduction: function() {
155   - wx.navigateTo({
156   - url: '../addtionalreduce/home',
157   - })
  141 + this.checkUserInfo("2")
158 142 },
159 143
160 144 /**
161 145 * 预扣预缴
162 146 */
163 147 goAdvancePayment: function() {
164   - wx.navigateTo({
165   - url: '../advancepayment/adPayHome',
166   - })
  148 + this.checkUserInfo("3")
167 149 },
168 150
169 151 /**
170 152 * 汇算清缴
171 153 */
172 154 goFinalPayment: function() {
173   - wx.navigateTo({
174   - url: '../finalpayment/home',
175   - })
  155 + this.checkUserInfo("4")
176 156 },
177 157
178 158 gochat: function() {
... ... @@ -224,6 +204,12 @@ Page({
224 204 })
225 205 },
226 206
  207 + close02:function(){
  208 + this.setData({
  209 + has_verify: true
  210 + })
  211 + },
  212 +
227 213 /**
228 214 * 生命周期函数--监听页面卸载
229 215 */
... ...
... ... @@ -81,3 +81,4 @@
81 81
82 82 </view>
83 83
  84 +<image wx:if="{{!has_verify&&onresume}}" style='width:44rpx;height:44rpx;right:0;left:0;margin:auto;margin-top:60rpx;position:absolute;z-index:10;' src="/images/close02.png" bindtap='close02'></image>
... ...
... ... @@ -54,6 +54,7 @@ Page({
54 54 bindtype: 'forigner',
55 55 placeholder: '是否境外人员',
56 56 disabled: true,
  57 + selected:"否",
57 58 values: ["否", "是"],
58 59 onChange: 'onPickerSelect'
59 60 },
... ...
... ... @@ -104,6 +104,7 @@ Page({
104 104 label: '纳税人类型',
105 105 bindtype: 'taxpayerType',
106 106 placeholder: '请选择纳税人类型',
  107 + selected:"居民",
107 108 values: ["居民", "非居民"],
108 109 onChange: 'onPickerSelect'
109 110 },
... ... @@ -113,6 +114,7 @@ Page({
113 114 bindtype: 'forigner',
114 115 placeholder: '请选择',
115 116 disabled: true,
  117 + selected:"否",
116 118 values: ["否", "是"],
117 119 onChange: 'onPickerSelect'
118 120 },
... ... @@ -752,7 +754,7 @@ Page({
752 754 this.data.hasOtherCard = true
753 755 this.data.overseas = '是'
754 756 this.data.taxpayerTypeData.disabled = false
755   - this.data.taxpayerTypeData.selected = ''
  757 + this.data.taxpayerTypeData.selected = '非居民'
756 758 if ('居民身份证' == new_type || '中国护照' == new_type) {
757 759 this.data.overseas = '否'
758 760 this.data.countryData.selected = '中国'
... ... @@ -1420,7 +1422,7 @@ Page({
1420 1422 "other_name": that.data.hasOtherCard ? that.data.other_name : '',
1421 1423 "family_ties": '本人',//that.data.relativeData.selected,
1422 1424 "native": that.data.countryData.selected,
1423   - "taxpayer_type": that.data.taxpayerTypeData.selected == '居民' ? 'resident' :'non-resident',
  1425 + "taxpayer_type": that.data.taxpayerTypeData.selected == '非居民' ? 'non-resident' :'resident',
1424 1426 "is_overseas_personnel": that.data.overseas,
1425 1427 'birth_native': that.data.hasOtherCard ? that.data.birthCountryData.selected : '',
1426 1428 "id_card_type": that.data.cardtypeData.selected, //selected_code,
... ...
注册登录 后发表评论