From 6f0d0cf26d4456b70ebba57449a078b46d61ae6a Mon Sep 17 00:00:00 2001 From: yvan.ni <765199919@qq.com> Date: Tue, 12 May 2020 14:18:45 +0800 Subject: [PATCH] 定义模板分享显示 --- pages/template/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pages/template/index.js b/pages/template/index.js index a19607b..af3ee7c 100644 --- a/pages/template/index.js +++ b/pages/template/index.js @@ -16,8 +16,11 @@ Page({ onLoad: function(e) { var th = this; - this.data.temp_id=e.sence; - if(!this.data.temp_id) this.data.temp_id=743; + this.data.temp_id=e.scene; + if(!this.data.temp_id) + this.data.temp_id=e.sence; + if(!this.data.temp_id) wx.showModal({ title:"未读取到模板ID" ,}) + }, async onShow() { -- libgit2 0.21.4