Commit da3dce5e authored by xxx's avatar xxx

111

parent 14f927c6
......@@ -68,11 +68,13 @@ export default {
},
mounted() {
if (window.plus) {
// 在这里调用5+ API
this.plusReady();
console.log('存在window.plus');
// 在这里调用5+ API
this.plusReady();
} else {
// 兼容老版本的plusready事件
document.addEventListener('plusready', this.plusReady(), false);
console.log('不存在window.plus');
// 兼容老版本的plusready事件
document.addEventListener('plusready', this.plusReady, false);
}
},
components: {
......@@ -80,7 +82,7 @@ export default {
},
methods: {
plusReady(){
plus.device.getInfo({
plus.device.getOAID({
success:function(e){
console.log('getDeviceInfo success: '+JSON.stringify(e));
},
......
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