收藏
回答

为什么顶部标题被覆盖成“测试一下”四个字?

app.json的配置:

当前页面的json:

问题在app.js,但我看不出哪出问题,删了就正常了

var e = require("@babel/runtime/helpers/interopRequireDefault"), t = e(require("./baseModel")), a = e(require("./utils/bluetooth")), l = e(require("./utils/qxbluetooth")), o = new t.default(), n = new a.default(), i = new l.default();


App({
    onLaunchfunction() {
        o.extendDateFunc(), this.versionUpdate(), wx.closeBluetoothAdapter();
    },
    onHidefunction() {
        var e = this;
        e.globalData.canClose = !0console.log("隐藏"), clearTimeout(e.globalData.timer1), 
        e.globalData.timer1 = null, e.globalData.deviceId && (e.globalData.timer1 = setTimeout(function() {
            e.globalData.canClose && (clearInterval(e.globalData.timer), e.globalData.timer = null, 
            e.globalData.canwrite = !1);
        }, 4e4)), this.globalData.canCloseblue && (n.closeConnectBluetooth(this.globalData.deviceId), 
        clearInterval(e.globalData.timer), e.globalData.timer = null, e.globalData.canwrite = !1);
    },
    onShowfunction() {
        var e = this;
        this.globalData.canClose = !1this.globalData.canCloseblue = !0;
        var t = wx.getStorageSync("yuangong");
        0 == t && this.globalData.deviceId && !this.globalData.blueconnected && (this.globalData.bluewarntext = "蓝牙已断开", 
        e.globalData.firstonload || (e.globalData.canwrite = !0, 
        this.globalData.bluewarntext = "正在搜索设备", setTimeout(function() {
            2 == e.globalData.blueType ? i.initBluetooth(e.globalData.blueName) : n.initBluetooth(e.globalData.blueName);
        }, 3500)));
    },
    versionUpdatefunction() {
        var e = wx.getUpdateManager();
        e.onCheckForUpdate(function(e{
            console.log(e.hasUpdate);
        }), e.onUpdateReady(function() {
            wx.showModal({
                title"更新提示",
                content"新版本已经准备好,是否重启应用?",
                successfunction(t{
                    t.confirm && e.applyUpdate();
                }
            });
        }), e.onUpdateFailed(function() {
            wx.showModal({
                title"更新提示",
                content"新版本下载失败",
                showCancel: !1
            });
        });
    },
    watchfunction(e{
        var t = this.globalData;
        Object.defineProperty(t, "bluewarntext", {
            configurable: !0,
            enumerable: !0,
            setfunction(t{
                e(t);
            },
            getfunction() {
                return this.globalData;
            }
        });
    },
    watchchartfunction(e{
        var t = this.globalData;
        Object.defineProperty(t, "haveChart", {
            configurable: !0,
            enumerable: !0,
            setfunction(t{
                e(t);
            },
            getfunction() {
                return this.globalData;
            }
        });
    },
    watpercentfunction(e{
        var t = this.globalData;
        Object.defineProperty(t, "percent", {
            configurable: !0,
            enumerable: !0,
            setfunction(t{
                e(t);
            },
            getfunction() {
                return this.globalData;
            }
        });
    },
    watbluetoffunction(e{
        var t = this.globalData;
        Object.defineProperty(t, "bluetof", {
            configurable: !0,
            enumerable: !0,
            setfunction(t{
                e(t);
            },
            getfunction() {
                return this.globalData;
            }
        });
    },
    watchopenlocationfunction(e{
        var t = this.globalData;
        Object.defineProperty(t, "openlocation", {
            configurable: !0,
            enumerable: !0,
            setfunction(t{
                e(t);
            },
            getfunction() {
                return this.globalData;
            }
        });
    },
    globalData: {
        percent0,
        time1"",
        time2"",
        time3"",
        time4"",
        time5"",
        firstBuff: [],
        timeBuff: [],
        timernull,
        timer1null,
        cabinet_id"",
        openblue: !1,
        bluetof: !1,
        openlocation: !1,
        blueconnected: !1,
        canClose: !1,
        firstonload: !1,
        canCloseblue: !0,
        canwrite: !0,
        bluewarntext"",
        haveChart3.9,
        cabinet_chart3.9,
        blueName164154859731,
        deviceId"",
        writeServicweId"",
        writeCharacteristicsId"",
        isbluetgnull,
        blue2g"",
        goodlist: [],
        productType"cabinet",
        opentype"",
        chargeLineIdnull,
        dryerIdnull,
        timetimernull,
        sendNums1,
        blueType"0",
        fromcodenull,
        needCharge: !1,
        haveLink: !1,
        mtidnull,
        pulldownxcx: !1,
        sheightnull,
        ChargeType2
    },
    setting: {}
});
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容