Commit 19d6d515b30704515972a0e7aa61fbc85fa92c08
1 parent
b8a4dca7
邀请明细,中beginPath的报警优化
Showing
1 changed file
with
5 additions
and
4 deletions
pages/user/Detailed/Detailed.js
@@ -189,9 +189,10 @@ Page({ | @@ -189,9 +189,10 @@ Page({ | ||
189 | } | 189 | } |
190 | 190 | ||
191 | this.data.is_loading=1; | 191 | this.data.is_loading=1; |
192 | - wx.showLoading({ title: '生成中...',}) | ||
193 | - | ||
194 | - var th = this; | 192 | + wx.showLoading({ title: '生成中...',}) |
193 | + this.setData({ canvasHidden: false }) | ||
194 | + | ||
195 | + var th = this; | ||
195 | 196 | ||
196 | //设置画板显示,才能开始绘图 | 197 | //设置画板显示,才能开始绘图 |
197 | var card_ming=th.data.bas_ming;//卡的图片 | 198 | var card_ming=th.data.bas_ming;//卡的图片 |
@@ -217,7 +218,7 @@ Page({ | @@ -217,7 +218,7 @@ Page({ | ||
217 | success: function (res) { | 218 | success: function (res) { |
218 | th.get_head_temp(function(){ | 219 | th.get_head_temp(function(){ |
219 | var vpath=res.path; | 220 | var vpath=res.path; |
220 | - th.setData({ canvasHidden: false }) | 221 | + |
221 | //开启画布 | 222 | //开启画布 |
222 | const ctx = wx.createCanvasContext('myCanvas'); | 223 | const ctx = wx.createCanvasContext('myCanvas'); |
223 | //先画背景 | 224 | //先画背景 |