正在显示
1 个修改的文件
包含
18 行增加
和
1 行删除
| ... | ... | @@ -8,6 +8,7 @@ Page({ |
| 8 | 8 | */ |
| 9 | 9 | data: { |
| 10 | 10 | showModal: false, |
| 11 | + canTap:true, | |
| 11 | 12 | inputValue: "", |
| 12 | 13 | comlist: [], |
| 13 | 14 | com_id: "", |
| ... | ... | @@ -86,6 +87,13 @@ Page({ |
| 86 | 87 | }) |
| 87 | 88 | return |
| 88 | 89 | } |
| 90 | + if (this.data.canTap) { | |
| 91 | + this.setData({ | |
| 92 | + canTap: false | |
| 93 | + }) | |
| 94 | + } else { | |
| 95 | + return | |
| 96 | + } | |
| 89 | 97 | var Authorization = app.globalData.Authorization; |
| 90 | 98 | wx.request({ |
| 91 | 99 | url: baseUrl + 'chatbot/v1/chats', |
| ... | ... | @@ -118,9 +126,18 @@ Page({ |
| 118 | 126 | // that.getChatinfo() |
| 119 | 127 | setTimeout(function() { |
| 120 | 128 | that.bottom() |
| 129 | + that.setData({ | |
| 130 | + canTap: true | |
| 131 | + }) | |
| 121 | 132 | }, 400); |
| 122 | - | |
| 123 | 133 | } |
| 134 | + }, | |
| 135 | + complete:function(res){ | |
| 136 | + setTimeout(function () { | |
| 137 | + that.setData({ | |
| 138 | + canTap: true | |
| 139 | + }) | |
| 140 | + }, 1000); | |
| 124 | 141 | } |
| 125 | 142 | }) |
| 126 | 143 | }, | ... | ... |
请
注册
或
登录
后发表评论