From 3c352c275a299e7ef1c5d583ebd6e413068a01a6 Mon Sep 17 00:00:00 2001 From: ZhaoTongYao <531131322@qq.com> Date: Thu, 25 Feb 2021 09:41:54 +0800 Subject: [PATCH] =?UTF-8?q?1.6.24=20=E4=BF=AE=E5=A4=8D=E8=AF=89=E6=B1=82?= =?UTF-8?q?=E9=A1=BB=E7=9F=A5=E5=AF=8C=E6=96=87=E6=9C=AC=E6=98=BE=E7=A4=BA?= =?UTF-8?q?BUG=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 6 ++++++ pages/index/index.js | 13 ++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/app.json b/app.json index f1bff44..490601a 100644 --- a/app.json +++ b/app.json @@ -103,5 +103,11 @@ "desc": "微笑榆山将获取您的位置信息" } }, + "plugins": { + "work-plugin": { + "version": "1.0.2", + "provider": "wx0301bf7f534d97d1" + } + }, "sitemapLocation": "sitemap.json" } \ No newline at end of file diff --git a/pages/index/index.js b/pages/index/index.js index 666d2c9..8b26426 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -451,6 +451,17 @@ Page({ url: '../../pages/login/login' }) }) + }, + toPlugin () { + let token = wx.getStorageSync('token') + api.getCustomId().then(res => { + if (res.code == 0 && res.msg == 'success') { + wx.navigateTo({ + url: `plugin://work-plugin/main?token=${token}&customerId=${res.data}`, + }); + } + }).catch(err => { + console.log(err) + }) } - }) \ No newline at end of file