Commit 14f927c6 authored by xxx's avatar xxx

1

parent 84739a20
...@@ -67,6 +67,19 @@ export default { ...@@ -67,6 +67,19 @@ export default {
this.getCookie(); this.getCookie();
}, },
mounted() { mounted() {
if (window.plus) {
// 在这里调用5+ API
this.plusReady();
} else {
// 兼容老版本的plusready事件
document.addEventListener('plusready', this.plusReady(), false);
}
},
components: {
Keyboard
},
methods: {
plusReady(){
plus.device.getInfo({ plus.device.getInfo({
success:function(e){ success:function(e){
console.log('getDeviceInfo success: '+JSON.stringify(e)); console.log('getDeviceInfo success: '+JSON.stringify(e));
...@@ -76,10 +89,6 @@ export default { ...@@ -76,10 +89,6 @@ export default {
} }
}) })
}, },
components: {
Keyboard
},
methods: {
getCode() { getCode() {
httpGet(code).then((res) => { httpGet(code).then((res) => {
//console.log(res); //console.log(res);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment