Commit 47c94775ebdef095c1be5f6cc820f7a7850a6670
Merge branch 'dev' into 'test'
定义模板分享显示 See merge request !411
Showing
1 changed file
with
5 additions
and
2 deletions
pages/template/index.js
@@ -16,8 +16,11 @@ Page({ | @@ -16,8 +16,11 @@ Page({ | ||
16 | 16 | ||
17 | onLoad: function(e) { | 17 | onLoad: function(e) { |
18 | var th = this; | 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 | async onShow() { | 26 | async onShow() { |