|
|
@@ -11,7 +11,7 @@ const QR = require("../utils/memberqrcode.js"); |
|
|
|
const util = require("../utils/util"); |
|
|
|
const bgColor = require("../utils/bgColor.js") |
|
|
|
let app = getApp(); |
|
|
|
const updateManager = tt.getUpdateManager(); |
|
|
|
const updateManager = tt.getUpdateManager() |
|
|
|
Page({ |
|
|
|
data: { |
|
|
|
userAvatarUrl: '', |
|
|
@@ -917,7 +917,18 @@ Page({ |
|
|
|
}, 1000) |
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
|
console.log('onCheckForUpdate'); |
|
|
|
const getEnvInfoSync = tt.getEnvInfoSync() |
|
|
|
const envType = getEnvInfoSync.microapp.envType |
|
|
|
console.log(envType, 'envType'); |
|
|
|
if (envType == 'development') return |
|
|
|
|
|
|
|
if (envType == 'preview') { |
|
|
|
tt.showToast({ |
|
|
|
title: 'preview mode', |
|
|
|
icon: "success" |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
updateManager.onCheckForUpdate(res => { |
|
|
|
console.log(res, 'onCheckForUpdate'); |
|
|
|
if (res.hasUpdate) { |
|
|
@@ -936,7 +947,6 @@ Page({ |
|
|
|
} |
|
|
|
}); |
|
|
|
}, 2500); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|