正在显示
7 个修改的文件
包含
65 行增加
和
59 行删除
1 | //app.js | 1 | //app.js |
2 | const appId = 'wxe91c67adba6ac02d'; | 2 | const appId = 'wxe91c67adba6ac02d'; |
3 | + | ||
3 | App({ | 4 | App({ |
4 | onLaunch: function() { | 5 | onLaunch: function() { |
5 | var that = this; | 6 | var that = this; |
@@ -143,7 +144,7 @@ App({ | @@ -143,7 +144,7 @@ App({ | ||
143 | appId: appId, | 144 | appId: appId, |
144 | com_id: "", | 145 | com_id: "", |
145 | onshow_count: 0, | 146 | onshow_count: 0, |
146 | - refresh_complete:false, | 147 | + refresh_complete: false, |
147 | // baseUrl: "http://47.99.47.16:20000/", | 148 | // baseUrl: "http://47.99.47.16:20000/", |
148 | // baseUrl: "http://47.96.75.229:20000/", | 149 | // baseUrl: "http://47.96.75.229:20000/", |
149 | // baseUrl: "http://192.144.144.220:20000/", | 150 | // baseUrl: "http://192.144.144.220:20000/", |
@@ -81,9 +81,9 @@ Page({ | @@ -81,9 +81,9 @@ Page({ | ||
81 | console.log("fail ", res.data) | 81 | console.log("fail ", res.data) |
82 | }, | 82 | }, |
83 | complete:function (res){ | 83 | complete:function (res){ |
84 | - wx.reLaunch({ | ||
85 | - url: '../main/guide/guide' | ||
86 | - }) | 84 | + // wx.reLaunch({ |
85 | + // url: '../main/guide/guide' | ||
86 | + // }) | ||
87 | } | 87 | } |
88 | }) | 88 | }) |
89 | }, | 89 | }, |
@@ -286,15 +286,15 @@ Page({ | @@ -286,15 +286,15 @@ Page({ | ||
286 | newdata[i].sec_loan_start = this.formatDate(newdata[i].sec_loan_start) | 286 | newdata[i].sec_loan_start = this.formatDate(newdata[i].sec_loan_start) |
287 | } | 287 | } |
288 | 288 | ||
289 | - if (newdata[i].children_id_card_no) { | ||
290 | - newdata[i].children_id_card_no = this.formatIdNum(newdata[i].children_id_card_no) | ||
291 | - } | ||
292 | - if (newdata[i].spouse_id_card_no) { | ||
293 | - newdata[i].spouse_id_card_no = this.formatIdNum(newdata[i].spouse_id_card_no) | ||
294 | - } | ||
295 | - if (newdata[i].id_card_no) { | ||
296 | - newdata[i].id_card_no = this.formatIdNum(newdata[i].id_card_no) | ||
297 | - } | 289 | + // if (newdata[i].children_id_card_no) { |
290 | + // newdata[i].children_id_card_no = this.formatIdNum(newdata[i].children_id_card_no) | ||
291 | + // } | ||
292 | + // if (newdata[i].spouse_id_card_no) { | ||
293 | + // newdata[i].spouse_id_card_no = this.formatIdNum(newdata[i].spouse_id_card_no) | ||
294 | + // } | ||
295 | + // if (newdata[i].id_card_no) { | ||
296 | + // newdata[i].id_card_no = this.formatIdNum(newdata[i].id_card_no) | ||
297 | + // } | ||
298 | 298 | ||
299 | if (newdata[i].house_address) { | 299 | if (newdata[i].house_address) { |
300 | if (newdata[i].house_address.province == newdata[i].house_address.city) { | 300 | if (newdata[i].house_address.province == newdata[i].house_address.city) { |
@@ -306,16 +306,7 @@ Page({ | @@ -306,16 +306,7 @@ Page({ | ||
306 | 306 | ||
307 | if (newdata[i].work_city) { | 307 | if (newdata[i].work_city) { |
308 | newdata[i].work_city_new = newdata[i].work_city.province + newdata[i].work_city.city | 308 | newdata[i].work_city_new = newdata[i].work_city.province + newdata[i].work_city.city |
309 | - } | ||
310 | - | ||
311 | - if (newdata[i].co_supporters && newdata[i].co_supporters.length > 0) { | ||
312 | - for (var j = 0; j < newdata[i].co_supporters.length; j++) { | ||
313 | - if (newdata[i].co_supporters[j].birthday) { | ||
314 | - newdata[i].co_supporters[j].birthday = this.formatDate(newdata[i].co_supporters[j].birthday) | ||
315 | - } | ||
316 | - newdata[i].co_supporters[j].id_card_no = this.formatIdNum(newdata[i].co_supporters[j].id_card_no) | ||
317 | - } | ||
318 | - } | 309 | + } |
319 | } | 310 | } |
320 | 311 | ||
321 | var housetype_new = this.data.house_type | 312 | var housetype_new = this.data.house_type |
@@ -325,6 +316,8 @@ Page({ | @@ -325,6 +316,8 @@ Page({ | ||
325 | console.log("housetype_new", housetype_new) | 316 | console.log("housetype_new", housetype_new) |
326 | if (housetype_new !="house_fund_loan"){ | 317 | if (housetype_new !="house_fund_loan"){ |
327 | btn_show = true | 318 | btn_show = true |
319 | + }else{ | ||
320 | + btn_show = false | ||
328 | } | 321 | } |
329 | this.setData({ | 322 | this.setData({ |
330 | house_type: housetype_new, | 323 | house_type: housetype_new, |
@@ -6,7 +6,7 @@ Page({ | @@ -6,7 +6,7 @@ Page({ | ||
6 | * 页面的初始数据 | 6 | * 页面的初始数据 |
7 | */ | 7 | */ |
8 | data: { | 8 | data: { |
9 | - | 9 | + isshow: false |
10 | }, | 10 | }, |
11 | 11 | ||
12 | /** | 12 | /** |
@@ -43,8 +43,12 @@ Page({ | @@ -43,8 +43,12 @@ Page({ | ||
43 | }, | 43 | }, |
44 | success: function(res) { | 44 | success: function(res) { |
45 | console.log("taxconfirm", res) | 45 | console.log("taxconfirm", res) |
46 | - if (res.data && (res.data.status == '1' || res.data.status == '2')) { //未完善 | 46 | + if (res.statusCode == 200 && !that.data.isshow && res.data.status != '0' ) { //未完善 |
47 | that.showModal(res.data) | 47 | that.showModal(res.data) |
48 | + } else { | ||
49 | + that.setData({ | ||
50 | + isshow: false | ||
51 | + }) | ||
48 | } | 52 | } |
49 | } | 53 | } |
50 | }) | 54 | }) |
@@ -53,6 +57,9 @@ Page({ | @@ -53,6 +57,9 @@ Page({ | ||
53 | 57 | ||
54 | showModal: function(data) { | 58 | showModal: function(data) { |
55 | var that = this | 59 | var that = this |
60 | + that.setData({ | ||
61 | + isshow: true | ||
62 | + }) | ||
56 | wx.showModal({ | 63 | wx.showModal({ |
57 | title: '温馨提示', | 64 | title: '温馨提示', |
58 | content: '您的自然人基础信息尚未完善,请先完善基础信息', | 65 | content: '您的自然人基础信息尚未完善,请先完善基础信息', |
@@ -60,7 +67,11 @@ Page({ | @@ -60,7 +67,11 @@ Page({ | ||
60 | showCancel: false, | 67 | showCancel: false, |
61 | confirmColor: '#357aeb', | 68 | confirmColor: '#357aeb', |
62 | success(res) { | 69 | success(res) { |
70 | + console.log("showModal", res) | ||
63 | if (res.confirm) { | 71 | if (res.confirm) { |
72 | + that.setData({ | ||
73 | + isshow: false | ||
74 | + }) | ||
64 | that.gotaxPerson() | 75 | that.gotaxPerson() |
65 | } | 76 | } |
66 | } | 77 | } |
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | var app = getApp(); | 2 | var app = getApp(); |
3 | var baseUrl = app.globalData.baseUrl; | 3 | var baseUrl = app.globalData.baseUrl; |
4 | Page({ | 4 | Page({ |
5 | - self_id:null, | 5 | + self_id: null, |
6 | /** | 6 | /** |
7 | * 页面的初始数据 | 7 | * 页面的初始数据 |
8 | */ | 8 | */ |
@@ -15,7 +15,7 @@ Page({ | @@ -15,7 +15,7 @@ Page({ | ||
15 | /** | 15 | /** |
16 | * 生命周期函数--监听页面加载 | 16 | * 生命周期函数--监听页面加载 |
17 | */ | 17 | */ |
18 | - onLoad: function (options) { | 18 | + onLoad: function(options) { |
19 | console.log('onLoad') | 19 | console.log('onLoad') |
20 | if (app.globalData.OSSUrl.length == 0) { | 20 | if (app.globalData.OSSUrl.length == 0) { |
21 | app.configOssUrl() | 21 | app.configOssUrl() |
@@ -26,20 +26,20 @@ Page({ | @@ -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 | console.log('onShow') | 38 | console.log('onShow') |
39 | this.getTaxList() | 39 | this.getTaxList() |
40 | }, | 40 | }, |
41 | 41 | ||
42 | - getTaxList: function () { | 42 | + getTaxList: function() { |
43 | var that = this; | 43 | var that = this; |
44 | wx.showLoading({ | 44 | wx.showLoading({ |
45 | title: '加载中', | 45 | title: '加载中', |
@@ -59,7 +59,7 @@ Page({ | @@ -59,7 +59,7 @@ Page({ | ||
59 | data: { | 59 | data: { |
60 | 'all': true | 60 | 'all': true |
61 | }, | 61 | }, |
62 | - success: function (res) { | 62 | + success: function(res) { |
63 | console.log('succ', res) | 63 | console.log('succ', res) |
64 | if (res.statusCode == 200) { | 64 | if (res.statusCode == 200) { |
65 | that.handleData(res.data); | 65 | that.handleData(res.data); |
@@ -93,7 +93,7 @@ Page({ | @@ -93,7 +93,7 @@ Page({ | ||
93 | }) | 93 | }) |
94 | }, | 94 | }, |
95 | 95 | ||
96 | - handleData: function (data) { | 96 | + handleData: function(data) { |
97 | if (data.items && data.items.length > 0) { | 97 | if (data.items && data.items.length > 0) { |
98 | var datalist = [] | 98 | var datalist = [] |
99 | 99 | ||
@@ -101,17 +101,17 @@ Page({ | @@ -101,17 +101,17 @@ Page({ | ||
101 | data.items[i].newmobile = this.formatMobile(data.items[i].mobile) | 101 | data.items[i].newmobile = this.formatMobile(data.items[i].mobile) |
102 | data.items[i].newidnum = this.formatIdNum(data.items[i].id_card_no) | 102 | data.items[i].newidnum = this.formatIdNum(data.items[i].id_card_no) |
103 | data.items[i].relative = data.items[i].family_ties | 103 | data.items[i].relative = data.items[i].family_ties |
104 | - if (data.items[i].family_ties=="本人"){ | 104 | + if (data.items[i].family_ties == "本人") { |
105 | this.self_id = data.items[i].id | 105 | this.self_id = data.items[i].id |
106 | - if (data.items[i].status!='0'){//0已完善 1未完善 | ||
107 | - this.setData({ | ||
108 | - text_tip: '自然人信息不完善,立即完善' | ||
109 | - }) | ||
110 | - }else{ | ||
111 | - this.setData({ | ||
112 | - text_tip: '去查看' | ||
113 | - }) | ||
114 | - } | 106 | + // if (data.items[i].status!='0'){//0已完善 1未完善 |
107 | + // this.setData({ | ||
108 | + // text_tip: '自然人信息不完善,立即完善' | ||
109 | + // }) | ||
110 | + // }else{ | ||
111 | + // this.setData({ | ||
112 | + // text_tip: '去查看' | ||
113 | + // }) | ||
114 | + // } | ||
115 | app.globalData.hostInfo = data.items[i] | 115 | app.globalData.hostInfo = data.items[i] |
116 | } | 116 | } |
117 | datalist.push(data.items[i]) | 117 | datalist.push(data.items[i]) |
@@ -123,7 +123,7 @@ Page({ | @@ -123,7 +123,7 @@ Page({ | ||
123 | console.log('handleData', this.data.taxlist) | 123 | console.log('handleData', this.data.taxlist) |
124 | }, | 124 | }, |
125 | 125 | ||
126 | - formatMobile: function (mobile) { | 126 | + formatMobile: function(mobile) { |
127 | if (mobile && mobile > 7) { | 127 | if (mobile && mobile > 7) { |
128 | return mobile.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2'); | 128 | return mobile.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2'); |
129 | } else { | 129 | } else { |
@@ -131,7 +131,7 @@ Page({ | @@ -131,7 +131,7 @@ Page({ | ||
131 | } | 131 | } |
132 | }, | 132 | }, |
133 | 133 | ||
134 | - formatIdNum: function (idnum) { | 134 | + formatIdNum: function(idnum) { |
135 | if (idnum && idnum.length >= 6 && idnum.length < 10) { | 135 | if (idnum && idnum.length >= 6 && idnum.length < 10) { |
136 | return idnum.substring(0, 2) + '****' + idnum.substring(idnum.length - 2, idnum.length); | 136 | return idnum.substring(0, 2) + '****' + idnum.substring(idnum.length - 2, idnum.length); |
137 | } else if (idnum.length >= 10) { | 137 | } else if (idnum.length >= 10) { |
@@ -141,20 +141,20 @@ Page({ | @@ -141,20 +141,20 @@ Page({ | ||
141 | } | 141 | } |
142 | }, | 142 | }, |
143 | 143 | ||
144 | - goadd: function (e) { | 144 | + goadd: function(e) { |
145 | console.log(e) | 145 | console.log(e) |
146 | wx.navigateTo({ | 146 | wx.navigateTo({ |
147 | url: 'addinfo/addinfo', | 147 | url: 'addinfo/addinfo', |
148 | }) | 148 | }) |
149 | }, | 149 | }, |
150 | 150 | ||
151 | - goedit: function (e) { | 151 | + goedit: function(e) { |
152 | console.log(e) | 152 | console.log(e) |
153 | - if (this.self_id != e.currentTarget.id){ | 153 | + if (this.self_id != e.currentTarget.id) { |
154 | wx.navigateTo({ | 154 | wx.navigateTo({ |
155 | url: 'addinfo/addinfo?id=' + e.currentTarget.id, | 155 | url: 'addinfo/addinfo?id=' + e.currentTarget.id, |
156 | }) | 156 | }) |
157 | - }else { | 157 | + } else { |
158 | wx.navigateTo({ | 158 | wx.navigateTo({ |
159 | url: 'editinfo/editinfo?id=' + e.currentTarget.id, | 159 | url: 'editinfo/editinfo?id=' + e.currentTarget.id, |
160 | }) | 160 | }) |
@@ -164,35 +164,35 @@ Page({ | @@ -164,35 +164,35 @@ Page({ | ||
164 | /** | 164 | /** |
165 | * 生命周期函数--监听页面隐藏 | 165 | * 生命周期函数--监听页面隐藏 |
166 | */ | 166 | */ |
167 | - onHide: function () { | 167 | + onHide: function() { |
168 | 168 | ||
169 | }, | 169 | }, |
170 | 170 | ||
171 | /** | 171 | /** |
172 | * 生命周期函数--监听页面卸载 | 172 | * 生命周期函数--监听页面卸载 |
173 | */ | 173 | */ |
174 | - onUnload: function () { | 174 | + onUnload: function() { |
175 | 175 | ||
176 | }, | 176 | }, |
177 | 177 | ||
178 | /** | 178 | /** |
179 | * 页面相关事件处理函数--监听用户下拉动作 | 179 | * 页面相关事件处理函数--监听用户下拉动作 |
180 | */ | 180 | */ |
181 | - onPullDownRefresh: function () { | 181 | + onPullDownRefresh: function() { |
182 | 182 | ||
183 | }, | 183 | }, |
184 | 184 | ||
185 | /** | 185 | /** |
186 | * 页面上拉触底事件的处理函数 | 186 | * 页面上拉触底事件的处理函数 |
187 | */ | 187 | */ |
188 | - onReachBottom: function () { | 188 | + onReachBottom: function() { |
189 | 189 | ||
190 | }, | 190 | }, |
191 | 191 | ||
192 | /** | 192 | /** |
193 | * 用户点击右上角分享 | 193 | * 用户点击右上角分享 |
194 | */ | 194 | */ |
195 | - onShareAppMessage: function () { | 195 | + onShareAppMessage: function() { |
196 | 196 | ||
197 | } | 197 | } |
198 | -}) | 198 | +}) |
@@ -36,7 +36,8 @@ | @@ -36,7 +36,8 @@ | ||
36 | <view class='rectangle_solid_bg'> | 36 | <view class='rectangle_solid_bg'> |
37 | <view style='padding: 0 15px '> | 37 | <view style='padding: 0 15px '> |
38 | <image class='arrow_wrap' src='/images/arrow_right.png'> </image> | 38 | <image class='arrow_wrap' src='/images/arrow_right.png'> </image> |
39 | - <text class='text_999_28'>{{text_tip}}</text> | 39 | + <text wx:if="{{item.family_ties=='本人'&&item.status!='0'}}" class='text_999_28'>自然人信息不完善,立即完善</text> |
40 | + <text wx:else class='text_999_28'>去查看</text> | ||
40 | </view> | 41 | </view> |
41 | </view> | 42 | </view> |
42 | </view> | 43 | </view> |
1 | { | 1 | { |
2 | - "description": "项目配置文件。", | 2 | + "description": "项目配置文件", |
3 | "packOptions": { | 3 | "packOptions": { |
4 | "ignore": [] | 4 | "ignore": [] |
5 | }, | 5 | }, |
@@ -11,9 +11,9 @@ | @@ -11,9 +11,9 @@ | ||
11 | "newFeature": true | 11 | "newFeature": true |
12 | }, | 12 | }, |
13 | "compileType": "miniprogram", | 13 | "compileType": "miniprogram", |
14 | - "libVersion": "2.2.2", | ||
15 | - "appid": "wxe91c67adba6ac02d", | ||
16 | - "projectname": "%E8%87%AA%E7%84%B6%E4%BA%BA%E7%A8%8E%E6%94%B6", | 14 | + "libVersion": "2.2.2", |
15 | + "appid": "wxe91c67adba6ac02d", | ||
16 | + "projectname": "%E8%87%AA%E7%84%B6%E4%BA%BA%E7%A8%8E%E6%94%B6", | ||
17 | "isGameTourist": false, | 17 | "isGameTourist": false, |
18 | "condition": { | 18 | "condition": { |
19 | "search": { | 19 | "search": { |
请
注册
或
登录
后发表评论