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