Commit 6f0d0cf26d4456b70ebba57449a078b46d61ae6a
1 parent
8bfaa1c1
定义模板分享显示
Showing
1 changed file
with
5 additions
and
2 deletions
pages/template/index.js
... | ... | @@ -16,8 +16,11 @@ Page({ |
16 | 16 | |
17 | 17 | onLoad: function(e) { |
18 | 18 | var th = this; |
19 | - this.data.temp_id=e.sence; | |
20 | - if(!this.data.temp_id) this.data.temp_id=743; | |
19 | + this.data.temp_id=e.scene; | |
20 | + if(!this.data.temp_id) | |
21 | + this.data.temp_id=e.sence; | |
22 | + if(!this.data.temp_id) wx.showModal({ title:"未读取到模板ID" ,}) | |
23 | + | |
21 | 24 | }, |
22 | 25 | |
23 | 26 | async onShow() { | ... | ... |