正在显示
1 个修改的文件
包含
10 行增加
和
2 行删除
| ... | ... | @@ -6,7 +6,7 @@ Page({ |
| 6 | 6 | * 页面的初始数据 |
| 7 | 7 | */ |
| 8 | 8 | data: { |
| 9 | - | |
| 9 | + isshow:false | |
| 10 | 10 | }, |
| 11 | 11 | |
| 12 | 12 | /** |
| ... | ... | @@ -44,7 +44,9 @@ Page({ |
| 44 | 44 | success: function(res) { |
| 45 | 45 | console.log("taxconfirm", res) |
| 46 | 46 | if (res.statusCode==200 && (res.data.status == '1' || res.data.status == '2')) { //未完善 |
| 47 | - that.showModal(res.data) | |
| 47 | + if (!that.data.isshow){ | |
| 48 | + that.showModal(res.data) | |
| 49 | + } | |
| 48 | 50 | } |
| 49 | 51 | } |
| 50 | 52 | }) |
| ... | ... | @@ -53,6 +55,9 @@ Page({ |
| 53 | 55 | |
| 54 | 56 | showModal: function(data) { |
| 55 | 57 | var that = this |
| 58 | + that.setData({ | |
| 59 | + isshow: true | |
| 60 | + }) | |
| 56 | 61 | wx.showModal({ |
| 57 | 62 | title: '温馨提示', |
| 58 | 63 | content: '您的自然人基础信息尚未完善,请先完善基础信息', |
| ... | ... | @@ -62,6 +67,9 @@ Page({ |
| 62 | 67 | success(res) { |
| 63 | 68 | console.log("showModal",res) |
| 64 | 69 | if (res.confirm) { |
| 70 | + that.setData({ | |
| 71 | + isshow:false | |
| 72 | + }) | |
| 65 | 73 | that.gotaxPerson() |
| 66 | 74 | } |
| 67 | 75 | } | ... | ... |
请
注册
或
登录
后发表评论