From 2fb86861273957b18a27ae9f328c1be048bc7642 Mon Sep 17 00:00:00 2001 From: GL <954534408@qq.com> Date: Tue, 3 Nov 2020 14:52:11 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=B5=8B=E8=AF=95postmessa=E9=80=9A?= =?UTF-8?q?=E4=BF=A1=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/index.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index e3e54a4..8d1587c 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -43,7 +43,7 @@ export default { loginImgUrl: require('../../assets/images/logo.png'), username: '18872592633', password: '123456GD', - + appId:'', }; }, created() { @@ -57,7 +57,7 @@ export default { data: { phone: val.userName, password: val.password, - appId: "wx9ff823abeef23b94", + appId: this.appId, // latitude: 34.51685, // longitude: 110.89456, } @@ -75,10 +75,9 @@ export default { }, mounted() { - console.log(123); + //接收 父级盒子传入的appid window.addEventListener('message',function(event){ - console.log(event,'++////***'); - console.log( "收到" + event.origin + "消息:" + event.data); + this.appId = event.data }, false); }, };