正在显示
2 个修改的文件
包含
10 行增加
和
4 行删除
| @@ -6,7 +6,8 @@ Page({ | @@ -6,7 +6,8 @@ Page({ | ||
| 6 | * 页面的初始数据 | 6 | * 页面的初始数据 |
| 7 | */ | 7 | */ |
| 8 | data: { | 8 | data: { |
| 9 | - isshow: false | 9 | + isshow: false, |
| 10 | + mobile:"" | ||
| 10 | }, | 11 | }, |
| 11 | 12 | ||
| 12 | /** | 13 | /** |
| @@ -27,7 +28,13 @@ Page({ | @@ -27,7 +28,13 @@ Page({ | ||
| 27 | * 生命周期函数--监听页面显示 | 28 | * 生命周期函数--监听页面显示 |
| 28 | */ | 29 | */ |
| 29 | onShow: function() { | 30 | onShow: function() { |
| 30 | - this.taxconfirm(); | 31 | + var user = getApp().globalData.userInfo |
| 32 | + if (user && user.mobile.length==11){ | ||
| 33 | + this.setData({ | ||
| 34 | + mobile: user.mobile | ||
| 35 | + }) | ||
| 36 | + this.taxconfirm(); | ||
| 37 | + } | ||
| 31 | }, | 38 | }, |
| 32 | 39 | ||
| 33 | taxconfirm: function() { | 40 | taxconfirm: function() { |
| @@ -67,7 +74,6 @@ Page({ | @@ -67,7 +74,6 @@ Page({ | ||
| 67 | showCancel: false, | 74 | showCancel: false, |
| 68 | confirmColor: '#357aeb', | 75 | confirmColor: '#357aeb', |
| 69 | success(res) { | 76 | success(res) { |
| 70 | - console.log("showModal", res) | ||
| 71 | if (res.confirm) { | 77 | if (res.confirm) { |
| 72 | that.setData({ | 78 | that.setData({ |
| 73 | isshow: false | 79 | isshow: false |
请
注册
或
登录
后发表评论