App({
onLaunch() {
const account_info = wx.getAccountInfoSync()
const env_version = account_info.miniProgram.envVersion
this.global_data.is_dev = env_version === 'develop'
this.global_data.is_trial = env_version === 'trial'
this.global_data.is_release = env_version === 'release'
console.log({ env_version })
},
global_data: {
is_dev: false, // 开发环境
is_trial: false, // 体验环境
is_release: false, // 线上环境
},
})