envVersion: ‘develop’, //开发版
envVersion: ‘trial’, //体验版
envVersion: ‘release’, //正式版
console.log('envVersion',__wxConfig.envVersion);
打印结果function version(){
console.log('envVersion',__wxConfig.envVersion);
let version = __wxConfig.envVersion;
switch(version){
case 'develop':
return 'https://开发板
break;
case 'trial':
return 'https://XXXX
break;
case 'release':
return 'https://正式版
break;
}
}