1. onApply() {
    2. let self = this;
    3. wx.getSystemInfo({
    4. success: function (e) {
    5. var a = e.model;
    6. if (a.indexOf("iPhone") != -1) {
    7. //是不是包含iphoneX
    8. if (a.indexOf("6" || "7" || "8") != -1) {
    9. self.globalData.isIphone = false;
    10. return;
    11. }
    12. self.globalData.isIphone = true;
    13. } else {
    14. self.globalData.isIphone = false;
    15. }
    16. }
    17. });
    18. }