From 6297bbdb642ce6c89ee6512c77393645480afa39 Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Thu, 12 Aug 2021 16:58:24 +0800 Subject: [PATCH] no message --- pages/home/qrcode-info/index.js | 4 ++-- pages/home/qrcode-info/index.wxml | 9 +-------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/pages/home/qrcode-info/index.js b/pages/home/qrcode-info/index.js index bf406db..36433d1 100644 --- a/pages/home/qrcode-info/index.js +++ b/pages/home/qrcode-info/index.js @@ -20,7 +20,7 @@ Scene({ * 生命周期函数--监听页面加载 */ onLoad: function (options) { - if(!util.isEmpty(options.id)){ + if(options.id){ this.data.id = options.id this.data.userId = options.userId if(!util.isEmpty(options.type)){ @@ -82,7 +82,7 @@ Scene({ } }) }, - toDetail: function(){ + lookDetail: function(){ if(this.data.type == 0){ wx.navigateTo({ url: `/pages/home/customer-info/index?id=${this.data.id}&userId=${this.data.userId}` }) } else if(this.data.type == 1){ diff --git a/pages/home/qrcode-info/index.wxml b/pages/home/qrcode-info/index.wxml index 98c094e..e767ff1 100644 --- a/pages/home/qrcode-info/index.wxml +++ b/pages/home/qrcode-info/index.wxml @@ -4,7 +4,7 @@ - + {{form.name || form.enterpriseMemberName || ''}} @@ -18,12 +18,5 @@ - \ No newline at end of file