This commit is contained in:
zoujiandong
2025-06-16 19:01:04 +08:00
parent c1309bc9fc
commit bbc99ec0dd
26 changed files with 488 additions and 260 deletions
+15 -3
View File
@@ -13,15 +13,27 @@
import tabBar from '@/components/tabBar/tabBar.vue';
const src = ref('')
onLoad((options)=>{
const { envVersion } = uni.getAccountInfoSync().miniProgram;
if(process.env.UNI_PLATFORM =="h5"){
let token='';
if(window.location.href.indexOf('//casedata.igandan.com')>-1){
token=uni.getStorageSync("AUTH_TOKEN_CASEDATA");
src.value = 'https://caseplatform.igandan.com/web/home?token='+token;
}else{
token=uni.getStorageSync("DEV_AUTH_TOKEN_CASEDATA");
src.value = 'https://dev-caseplatform.igandan.com/web/home?token='+token;
}
}else{
const { envVersion } = uni.getAccountInfoSync().miniProgram;
let token=''
if (envVersion == "release") {
token=uni.getStorageSync("AUTH_TOKEN_CASEDATA");
} else {
token= uni.getStorageSync("DEV_AUTH_TOKEN_CASEDATA");
};
console.log(token)
src.value = 'https://dev-caseplatform.igandan.com/web/home?token='+token;
src.value = 'https://dev-caseplatform.igandan.com/web/home?token='+token;
}
})
</script>