Methods {isAndroidOrIOS() {let type = uni.getSystemInfosync ().platform // Get the phone model console.log(this.tabbar,'asdasd'); switch(type){ case 'android': // uni.showModal({ // title: 'Android', // }); break; case 'ios': // uni.showModal({ // title: 'iOS', // }); break; default: // uni.showModal({ // title: 'Other', // }); break; }Copy the code