提交 f5aaedca3420ee1fd8ec022b9f4e6b762ba29f95

作者 pangy
2 个父辈 f0d3720b 633497fe

Merge branch 'dev2.0' into dev_py

1 1 //app.js
2 2 const appId = 'wxe91c67adba6ac02d';
  3 +
3 4 App({
4 5 onLaunch: function() {
5 6 var that = this;
... ... @@ -143,7 +144,7 @@ App({
143 144 appId: appId,
144 145 com_id: "",
145 146 onshow_count: 0,
146   - refresh_complete:false,
  147 + refresh_complete: false,
147 148 // baseUrl: "http://47.99.47.16:20000/",
148 149 // baseUrl: "http://47.96.75.229:20000/",
149 150 // baseUrl: "http://192.144.144.220:20000/",
... ...
... ... @@ -81,9 +81,9 @@ Page({
81 81 console.log("fail ", res.data)
82 82 },
83 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 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 299 if (newdata[i].house_address) {
300 300 if (newdata[i].house_address.province == newdata[i].house_address.city) {
... ... @@ -306,16 +306,7 @@ Page({
306 306
307 307 if (newdata[i].work_city) {
308 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 312 var housetype_new = this.data.house_type
... ... @@ -325,6 +316,8 @@ Page({
325 316 console.log("housetype_new", housetype_new)
326 317 if (housetype_new !="house_fund_loan"){
327 318 btn_show = true
  319 + }else{
  320 + btn_show = false
328 321 }
329 322 this.setData({
330 323 house_type: housetype_new,
... ...
... ... @@ -6,7 +6,7 @@ Page({
6 6 * 页面的初始数据
7 7 */
8 8 data: {
9   -
  9 + isshow: false
10 10 },
11 11
12 12 /**
... ... @@ -43,8 +43,12 @@ Page({
43 43 },
44 44 success: function(res) {
45 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 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 57
54 58 showModal: function(data) {
55 59 var that = this
  60 + that.setData({
  61 + isshow: true
  62 + })
56 63 wx.showModal({
57 64 title: '温馨提示',
58 65 content: '您的自然人基础信息尚未完善,请先完善基础信息',
... ... @@ -60,7 +67,11 @@ Page({
60 67 showCancel: false,
61 68 confirmColor: '#357aeb',
62 69 success(res) {
  70 + console.log("showModal", res)
63 71 if (res.confirm) {
  72 + that.setData({
  73 + isshow: false
  74 + })
64 75 that.gotaxPerson()
65 76 }
66 77 }
... ...
... ... @@ -2,7 +2,7 @@
2 2 var app = getApp();
3 3 var baseUrl = app.globalData.baseUrl;
4 4 Page({
5   - self_id:null,
  5 + self_id: null,
6 6 /**
7 7 * 页面的初始数据
8 8 */
... ... @@ -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,7 +59,7 @@ Page({
59 59 data: {
60 60 'all': true
61 61 },
62   - success: function (res) {
  62 + success: function(res) {
63 63 console.log('succ', res)
64 64 if (res.statusCode == 200) {
65 65 that.handleData(res.data);
... ... @@ -93,7 +93,7 @@ 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
... ... @@ -101,17 +101,17 @@ Page({
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 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 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 115 app.globalData.hostInfo = data.items[i]
116 116 }
117 117 datalist.push(data.items[i])
... ... @@ -123,7 +123,7 @@ Page({
123 123 console.log('handleData', this.data.taxlist)
124 124 },
125 125
126   - formatMobile: function (mobile) {
  126 + formatMobile: function(mobile) {
127 127 if (mobile && mobile > 7) {
128 128 return mobile.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
129 129 } else {
... ... @@ -131,7 +131,7 @@ Page({
131 131 }
132 132 },
133 133
134   - formatIdNum: function (idnum) {
  134 + formatIdNum: function(idnum) {
135 135 if (idnum && idnum.length >= 6 && idnum.length < 10) {
136 136 return idnum.substring(0, 2) + '****' + idnum.substring(idnum.length - 2, idnum.length);
137 137 } else if (idnum.length >= 10) {
... ... @@ -141,20 +141,20 @@ Page({
141 141 }
142 142 },
143 143
144   - goadd: function (e) {
  144 + goadd: function(e) {
145 145 console.log(e)
146 146 wx.navigateTo({
147 147 url: 'addinfo/addinfo',
148 148 })
149 149 },
150 150
151   - goedit: function (e) {
  151 + goedit: function(e) {
152 152 console.log(e)
153   - if (this.self_id != e.currentTarget.id){
  153 + if (this.self_id != e.currentTarget.id) {
154 154 wx.navigateTo({
155 155 url: 'addinfo/addinfo?id=' + e.currentTarget.id,
156 156 })
157   - }else {
  157 + } else {
158 158 wx.navigateTo({
159 159 url: 'editinfo/editinfo?id=' + e.currentTarget.id,
160 160 })
... ... @@ -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 +})
\ No newline at end of file
... ...
... ... @@ -36,7 +36,8 @@
36 36 <view class='rectangle_solid_bg'>
37 37 <view style='padding: 0 15px '>
38 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 41 </view>
41 42 </view>
42 43 </view>
... ...
1 1 {
2   - "description": "项目配置文件",
  2 + "description": "项目配置文件",
3 3 "packOptions": {
4 4 "ignore": []
5 5 },
... ... @@ -11,9 +11,9 @@
11 11 "newFeature": true
12 12 },
13 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 17 "isGameTourist": false,
18 18 "condition": {
19 19 "search": {
... ...
注册登录 后发表评论