正在显示
5 个修改的文件
包含
65 行增加
和
70 行删除
| ... | ... | @@ -2,23 +2,18 @@ |
| 2 | 2 | "pages": [ |
| 3 | 3 | "pages/main/guide/guide", |
| 4 | 4 | "pages/getPhone/getPhone", |
| 5 | - | |
| 6 | 5 | "pages/main/smartchat/chat", |
| 7 | - | |
| 8 | 6 | "pages/main/taxperson/home", |
| 9 | 7 | "pages/main/taxperson/editinfo/editinfo", |
| 10 | 8 | "pages/main/taxperson/addinfo/addinfo", |
| 11 | 9 | "pages/main/taxperson/idinfo/idinfo", |
| 12 | - | |
| 13 | 10 | "pages/main/addtionalreduce/home", |
| 14 | 11 | "pages/main/addtionalreduce/godeclare/godeclare", |
| 15 | 12 | "pages/main/addtionalreduce/godetail/godetail", |
| 16 | 13 | "pages/main/addtionalreduce/lookandupdate/lookandupdate", |
| 17 | 14 | "pages/main/addtionalreduce/addextrainfo/addextrainfo", |
| 18 | 15 | "pages/main/addtionalreduce/additiondetail/additiondetail", |
| 19 | - | |
| 20 | 16 | "pages/main/advancepayment/home", |
| 21 | - | |
| 22 | 17 | "pages/main/finalpayment/home", |
| 23 | 18 | "pages/main/finalpayment/inputinfo/inputinfo", |
| 24 | 19 | "pages/main/finalpayment/historylist/historylist", | ... | ... |
| ... | ... | @@ -7,9 +7,9 @@ Page({ |
| 7 | 7 | * Page initial data |
| 8 | 8 | */ |
| 9 | 9 | data: { |
| 10 | - datas: ["",""], | |
| 10 | + datas: ["", ""], | |
| 11 | 11 | is_declared: false, |
| 12 | - additionlist:[], | |
| 12 | + additionlist: [], | |
| 13 | 13 | declareStatus: { |
| 14 | 14 | "to_declare ": "待申报", |
| 15 | 15 | "declaring": "申报中", |
| ... | ... | @@ -22,23 +22,23 @@ Page({ |
| 22 | 22 | /** |
| 23 | 23 | * Lifecycle function--Called when page load |
| 24 | 24 | */ |
| 25 | - onLoad: function(options) { | |
| 25 | + onLoad: function (options) { | |
| 26 | 26 | console.log("onLoad"); |
| 27 | 27 | }, |
| 28 | 28 | |
| 29 | - godeclare: function() { | |
| 29 | + godeclare: function () { | |
| 30 | 30 | wx.navigateTo({ |
| 31 | 31 | url: 'godeclare/godeclare', |
| 32 | 32 | }) |
| 33 | 33 | }, |
| 34 | 34 | |
| 35 | - godetail: function() { | |
| 35 | + godetail: function () { | |
| 36 | 36 | wx.navigateTo({ |
| 37 | 37 | url: 'godetail/godetail', |
| 38 | 38 | }) |
| 39 | 39 | }, |
| 40 | 40 | |
| 41 | - lookandadd: function(e) { | |
| 41 | + lookandadd: function (e) { | |
| 42 | 42 | console.log("lookandadd", e); |
| 43 | 43 | wx.navigateTo({ |
| 44 | 44 | url: 'lookandupdate/lookandupdate?index=' + e.currentTarget.id, |
| ... | ... | @@ -48,20 +48,20 @@ Page({ |
| 48 | 48 | /** |
| 49 | 49 | * Lifecycle function--Called when page is initially rendered |
| 50 | 50 | */ |
| 51 | - onReady: function() { | |
| 51 | + onReady: function () { | |
| 52 | 52 | console.log("onReady"); |
| 53 | 53 | }, |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | 56 | * Lifecycle function--Called when page show |
| 57 | 57 | */ |
| 58 | - onShow: function() { | |
| 58 | + onShow: function () { | |
| 59 | 59 | console.log("onShow"); |
| 60 | 60 | var that = this |
| 61 | 61 | this.getAdditionList() |
| 62 | 62 | }, |
| 63 | 63 | |
| 64 | - getAdditionList: function() { | |
| 64 | + getAdditionList: function () { | |
| 65 | 65 | var that = this; |
| 66 | 66 | var Authorization = getApp().globalData.Authorization; |
| 67 | 67 | wx.request({ |
| ... | ... | @@ -74,12 +74,12 @@ Page({ |
| 74 | 74 | 'content-type': 'application/json', |
| 75 | 75 | "Authorization": Authorization |
| 76 | 76 | }, |
| 77 | - success: function(res) { | |
| 78 | - if(res&&res.data){ | |
| 79 | - console.log("res",res) | |
| 77 | + success: function (res) { | |
| 78 | + if (res && res.data) { | |
| 79 | + console.log("res", res) | |
| 80 | 80 | that.setData({ |
| 81 | - additionlist:res.data.items | |
| 82 | - }) | |
| 81 | + additionlist: res.data.items | |
| 82 | + }) | |
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | }) |
| ... | ... | @@ -88,35 +88,35 @@ Page({ |
| 88 | 88 | /** |
| 89 | 89 | * Lifecycle function--Called when page hide |
| 90 | 90 | */ |
| 91 | - onHide: function() { | |
| 91 | + onHide: function () { | |
| 92 | 92 | |
| 93 | 93 | }, |
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | 96 | * Lifecycle function--Called when page unload |
| 97 | 97 | */ |
| 98 | - onUnload: function() { | |
| 98 | + onUnload: function () { | |
| 99 | 99 | |
| 100 | 100 | }, |
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | 103 | * Page event handler function--Called when user drop down |
| 104 | 104 | */ |
| 105 | - onPullDownRefresh: function() { | |
| 105 | + onPullDownRefresh: function () { | |
| 106 | 106 | |
| 107 | 107 | }, |
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | 110 | * Called when page reach bottom |
| 111 | 111 | */ |
| 112 | - onReachBottom: function() { | |
| 112 | + onReachBottom: function () { | |
| 113 | 113 | |
| 114 | 114 | }, |
| 115 | 115 | |
| 116 | 116 | /** |
| 117 | 117 | * Called when user click on the top right corner to share |
| 118 | 118 | */ |
| 119 | - onShareAppMessage: function() { | |
| 119 | + onShareAppMessage: function () { | |
| 120 | 120 | |
| 121 | 121 | } |
| 122 | -}) | |
| \ No newline at end of file | ||
| 122 | +}) | ... | ... |
| ... | ... | @@ -12,25 +12,25 @@ Page({ |
| 12 | 12 | /** |
| 13 | 13 | * 生命周期函数--监听页面加载 |
| 14 | 14 | */ |
| 15 | - onLoad: function(options) { | |
| 16 | - | |
| 15 | + onLoad: function (options) { | |
| 16 | + | |
| 17 | 17 | }, |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * 生命周期函数--监听页面初次渲染完成 |
| 21 | 21 | */ |
| 22 | - onReady: function() { | |
| 22 | + onReady: function () { | |
| 23 | 23 | |
| 24 | 24 | }, |
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * 生命周期函数--监听页面显示 |
| 28 | 28 | */ |
| 29 | - onShow: function() { | |
| 29 | + onShow: function () { | |
| 30 | 30 | this.taxconfirm(); |
| 31 | 31 | }, |
| 32 | 32 | |
| 33 | - taxconfirm: function() { | |
| 33 | + taxconfirm: function () { | |
| 34 | 34 | var that = this; |
| 35 | 35 | var Authorization = getApp().globalData.Authorization; |
| 36 | 36 | console.log("Authorization", Authorization) |
| ... | ... | @@ -41,17 +41,17 @@ Page({ |
| 41 | 41 | 'content-type': 'application/json', |
| 42 | 42 | "Authorization": Authorization |
| 43 | 43 | }, |
| 44 | - success: function(res) { | |
| 44 | + success: function (res) { | |
| 45 | 45 | console.log("taxconfirm", res) |
| 46 | 46 | if (res.data && (res.data.status == '1' || res.data.status == '2')) { //未完善 |
| 47 | - that.showModal(res.data) | |
| 47 | + // that.showModal(res.data) | |
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | }) |
| 51 | 51 | } |
| 52 | 52 | }, |
| 53 | 53 | |
| 54 | - showModal: function(data) { | |
| 54 | + showModal: function (data) { | |
| 55 | 55 | wx.showModal({ |
| 56 | 56 | title: '温馨提示', |
| 57 | 57 | content: '您的自然人基础信息尚未完善,请先完善基础信息', |
| ... | ... | @@ -59,7 +59,7 @@ Page({ |
| 59 | 59 | showCancel: false, |
| 60 | 60 | confirmColor: '#357aeb', |
| 61 | 61 | success(res) { |
| 62 | - if(res.confirm){ | |
| 62 | + if (res.confirm) { | |
| 63 | 63 | if (data.status == '1' && data.id) { |
| 64 | 64 | wx.navigateTo({ |
| 65 | 65 | url: '../taxperson/editinfo/editinfo?id=' + data.id, |
| ... | ... | @@ -77,7 +77,7 @@ Page({ |
| 77 | 77 | /** |
| 78 | 78 | * 自然人信息采集 |
| 79 | 79 | */ |
| 80 | - gotaxPerson: function() { | |
| 80 | + gotaxPerson: function () { | |
| 81 | 81 | wx.navigateTo({ |
| 82 | 82 | url: '../taxperson/home', |
| 83 | 83 | }) |
| ... | ... | @@ -86,7 +86,7 @@ Page({ |
| 86 | 86 | /** |
| 87 | 87 | * 专项附加扣除 |
| 88 | 88 | */ |
| 89 | - goAdditionalDiduction: function() { | |
| 89 | + goAdditionalDiduction: function () { | |
| 90 | 90 | wx.navigateTo({ |
| 91 | 91 | url: '../addtionalreduce/home', |
| 92 | 92 | }) |
| ... | ... | @@ -95,7 +95,7 @@ Page({ |
| 95 | 95 | /** |
| 96 | 96 | * 预扣预缴 |
| 97 | 97 | */ |
| 98 | - goAdvancePayment: function() { | |
| 98 | + goAdvancePayment: function () { | |
| 99 | 99 | wx.navigateTo({ |
| 100 | 100 | url: '../advancepayment/home', |
| 101 | 101 | }) |
| ... | ... | @@ -104,13 +104,13 @@ Page({ |
| 104 | 104 | /** |
| 105 | 105 | * 汇算清缴 |
| 106 | 106 | */ |
| 107 | - goFinalPayment: function() { | |
| 107 | + goFinalPayment: function () { | |
| 108 | 108 | wx.navigateTo({ |
| 109 | 109 | url: '../finalpayment/home', |
| 110 | 110 | }) |
| 111 | 111 | }, |
| 112 | 112 | |
| 113 | - gochat: function() { | |
| 113 | + gochat: function () { | |
| 114 | 114 | wx.navigateTo({ |
| 115 | 115 | url: '../smartchat/chat', |
| 116 | 116 | }) |
| ... | ... | @@ -119,35 +119,35 @@ Page({ |
| 119 | 119 | /** |
| 120 | 120 | * 生命周期函数--监听页面隐藏 |
| 121 | 121 | */ |
| 122 | - onHide: function() { | |
| 122 | + onHide: function () { | |
| 123 | 123 | |
| 124 | 124 | }, |
| 125 | 125 | |
| 126 | 126 | /** |
| 127 | 127 | * 生命周期函数--监听页面卸载 |
| 128 | 128 | */ |
| 129 | - onUnload: function() { | |
| 129 | + onUnload: function () { | |
| 130 | 130 | |
| 131 | 131 | }, |
| 132 | 132 | |
| 133 | 133 | /** |
| 134 | 134 | * 页面相关事件处理函数--监听用户下拉动作 |
| 135 | 135 | */ |
| 136 | - onPullDownRefresh: function() { | |
| 136 | + onPullDownRefresh: function () { | |
| 137 | 137 | |
| 138 | 138 | }, |
| 139 | 139 | |
| 140 | 140 | /** |
| 141 | 141 | * 页面上拉触底事件的处理函数 |
| 142 | 142 | */ |
| 143 | - onReachBottom: function() { | |
| 143 | + onReachBottom: function () { | |
| 144 | 144 | |
| 145 | 145 | }, |
| 146 | 146 | |
| 147 | 147 | /** |
| 148 | 148 | * 用户点击右上角分享 |
| 149 | 149 | */ |
| 150 | - onShareAppMessage: function() { | |
| 150 | + onShareAppMessage: function () { | |
| 151 | 151 | |
| 152 | 152 | } |
| 153 | -}) | |
| \ No newline at end of file | ||
| 153 | +}) | ... | ... |
| ... | ... | @@ -15,7 +15,7 @@ Page({ |
| 15 | 15 | /** |
| 16 | 16 | * 生命周期函数--监听页面加载 |
| 17 | 17 | */ |
| 18 | - onLoad: function(options) { | |
| 18 | + onLoad: function (options) { | |
| 19 | 19 | console.log('onLoad') |
| 20 | 20 | if (app.globalData.OSSUrl.length == 0) { |
| 21 | 21 | app.configOssUrl() |
| ... | ... | @@ -26,20 +26,20 @@ Page({ |
| 26 | 26 | /** |
| 27 | 27 | * 生命周期函数--监听页面初次渲染完成 |
| 28 | 28 | */ |
| 29 | - onReady: function() { | |
| 29 | + onReady: function () { | |
| 30 | 30 | |
| 31 | 31 | }, |
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * 生命周期函数--监听页面显示 |
| 35 | 35 | */ |
| 36 | - onShow: function() { | |
| 36 | + onShow: function () { | |
| 37 | 37 | |
| 38 | 38 | console.log('onShow') |
| 39 | 39 | this.getTaxList() |
| 40 | 40 | }, |
| 41 | 41 | |
| 42 | - getTaxList: function() { | |
| 42 | + getTaxList: function () { | |
| 43 | 43 | var that = this; |
| 44 | 44 | wx.showLoading({ |
| 45 | 45 | title: '加载中', |
| ... | ... | @@ -59,21 +59,21 @@ Page({ |
| 59 | 59 | data: { |
| 60 | 60 | 'all': true |
| 61 | 61 | }, |
| 62 | - success: function(res) { | |
| 63 | - console.log('succ',res) | |
| 64 | - if(res.statusCode ==200){ | |
| 62 | + success: function (res) { | |
| 63 | + console.log('succ', res) | |
| 64 | + if (res.statusCode == 200) { | |
| 65 | 65 | that.handleData(res.data); |
| 66 | - }else{ | |
| 66 | + } else { | |
| 67 | 67 | wx.showModal({ |
| 68 | 68 | title: res.data.message, |
| 69 | 69 | content: '', |
| 70 | - showCancel:false, | |
| 70 | + showCancel: false, | |
| 71 | 71 | success: function (res) { |
| 72 | 72 | if (res.confirm) { |
| 73 | 73 | console.log('用户点击确定') |
| 74 | 74 | wx.redirectTo({ |
| 75 | 75 | url: '../../getPhone/getPhone', |
| 76 | - }) | |
| 76 | + }) | |
| 77 | 77 | } else if (res.cancel) { |
| 78 | 78 | console.log('用户点击取消') |
| 79 | 79 | } |
| ... | ... | @@ -93,16 +93,16 @@ Page({ |
| 93 | 93 | }) |
| 94 | 94 | }, |
| 95 | 95 | |
| 96 | - handleData: function(data) { | |
| 96 | + handleData: function (data) { | |
| 97 | 97 | if (data.items && data.items.length > 0) { |
| 98 | 98 | var datalist = [] |
| 99 | 99 | |
| 100 | 100 | for (var i = 0; i < data.items.length; i++) { |
| 101 | 101 | data.items[i].newmobile = this.formatMobile(data.items[i].mobile) |
| 102 | 102 | data.items[i].newidnum = this.formatIdNum(data.items[i].id_card_no) |
| 103 | - if (i==0){ | |
| 103 | + if (i == 0) { | |
| 104 | 104 | data.items[i].relative = "本人" |
| 105 | - }else{ | |
| 105 | + } else { | |
| 106 | 106 | data.items[i].relative = data.items[i].family_ties |
| 107 | 107 | } |
| 108 | 108 | datalist.push(data.items[i]) |
| ... | ... | @@ -115,7 +115,7 @@ Page({ |
| 115 | 115 | console.log('handleData', this.data.taxlist) |
| 116 | 116 | }, |
| 117 | 117 | |
| 118 | - formatMobile: function(mobile) { | |
| 118 | + formatMobile: function (mobile) { | |
| 119 | 119 | if (mobile && mobile > 7) { |
| 120 | 120 | return mobile.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2'); |
| 121 | 121 | } else { |
| ... | ... | @@ -123,7 +123,7 @@ Page({ |
| 123 | 123 | } |
| 124 | 124 | }, |
| 125 | 125 | |
| 126 | - formatIdNum: function(idnum) { | |
| 126 | + formatIdNum: function (idnum) { | |
| 127 | 127 | if (idnum && idnum.length >= 6 && idnum.length < 10) { |
| 128 | 128 | return idnum.substring(0, 2) + '****' + idnum.substring(idnum.length - 2, idnum.length); |
| 129 | 129 | } else if (idnum.length >= 10) { |
| ... | ... | @@ -133,7 +133,7 @@ Page({ |
| 133 | 133 | } |
| 134 | 134 | }, |
| 135 | 135 | |
| 136 | - getStatus: function(data) { | |
| 136 | + getStatus: function (data) { | |
| 137 | 137 | console.log('data', data) |
| 138 | 138 | if (data[0].family_ties.length < 1 && data[0].name.length > 0 && data[0].taxpayer_status.length > 0 && data[0].id_card_type.length > 0 && data[0].id_card_no.length > 0 && data[0].mobile.length > 0 && data[0].is_investor.length > 0 && data[0].is_specific_profession.length > 0) { |
| 139 | 139 | this.setData({ |
| ... | ... | @@ -146,14 +146,14 @@ Page({ |
| 146 | 146 | } |
| 147 | 147 | }, |
| 148 | 148 | |
| 149 | - goadd: function(e) { | |
| 149 | + goadd: function (e) { | |
| 150 | 150 | console.log(e) |
| 151 | 151 | wx.navigateTo({ |
| 152 | 152 | url: 'addinfo/addinfo', |
| 153 | 153 | }) |
| 154 | 154 | }, |
| 155 | 155 | |
| 156 | - goedit: function(e) { | |
| 156 | + goedit: function (e) { | |
| 157 | 157 | console.log(e) |
| 158 | 158 | wx.navigateTo({ |
| 159 | 159 | url: 'editinfo/editinfo?id=' + e.currentTarget.id, |
| ... | ... | @@ -163,35 +163,35 @@ Page({ |
| 163 | 163 | /** |
| 164 | 164 | * 生命周期函数--监听页面隐藏 |
| 165 | 165 | */ |
| 166 | - onHide: function() { | |
| 166 | + onHide: function () { | |
| 167 | 167 | |
| 168 | 168 | }, |
| 169 | 169 | |
| 170 | 170 | /** |
| 171 | 171 | * 生命周期函数--监听页面卸载 |
| 172 | 172 | */ |
| 173 | - onUnload: function() { | |
| 173 | + onUnload: function () { | |
| 174 | 174 | |
| 175 | 175 | }, |
| 176 | 176 | |
| 177 | 177 | /** |
| 178 | 178 | * 页面相关事件处理函数--监听用户下拉动作 |
| 179 | 179 | */ |
| 180 | - onPullDownRefresh: function() { | |
| 180 | + onPullDownRefresh: function () { | |
| 181 | 181 | |
| 182 | 182 | }, |
| 183 | 183 | |
| 184 | 184 | /** |
| 185 | 185 | * 页面上拉触底事件的处理函数 |
| 186 | 186 | */ |
| 187 | - onReachBottom: function() { | |
| 187 | + onReachBottom: function () { | |
| 188 | 188 | |
| 189 | 189 | }, |
| 190 | 190 | |
| 191 | 191 | /** |
| 192 | 192 | * 用户点击右上角分享 |
| 193 | 193 | */ |
| 194 | - onShareAppMessage: function() { | |
| 194 | + onShareAppMessage: function () { | |
| 195 | 195 | |
| 196 | 196 | } |
| 197 | -}) | |
| \ No newline at end of file | ||
| 197 | +}) | ... | ... |
请
注册
或
登录
后发表评论