From 1a6645ddc2a5ef389beaca0d03eebe02dd3338c2 Mon Sep 17 00:00:00 2001 From: hulinNeil <1289739946@qq.com> Date: Thu, 26 Jul 2018 20:33:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9push?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/hello-uniapp/platforms/app-plus/push/push.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/hello-uniapp/platforms/app-plus/push/push.vue b/examples/hello-uniapp/platforms/app-plus/push/push.vue index f2eadf9e8..e9234e54d 100644 --- a/examples/hello-uniapp/platforms/app-plus/push/push.vue +++ b/examples/hello-uniapp/platforms/app-plus/push/push.vue @@ -103,10 +103,9 @@ if (plus.os.name == 'iOS') { url += ('&token=' + encodeURIComponent(inf.token)); } - url += ('&title=' + encodeURIComponent('Hello H5+')); + url += ('&title=' + encodeURIComponent('Hello uniapp')); url += ('&content=' + encodeURIComponent('带透传数据推送通知,可通过plus.push API获取数据并进行业务逻辑处理!')); - url += ('&payload=' + encodeURIComponent( - '{"title":"Hello H5+ Test","content":"test content","payload":"1234567890"}')); + url += ('&payload=' + encodeURIComponent('\'{"title":"Hello uniapp Test","content":"test content","payload":"1234567890"}\'')); url += ('&version=' + encodeURIComponent(plus.runtime.version)); plus.runtime.openURL(url); } -- GitLab