case-data/pages/case/case.vue
zoujiandong a31fc3c1e6 6.13
2025-06-13 19:09:30 +08:00

36 lines
898 B
Vue

<template>
<view class="content">
<view class="page">
<web-view :src="src" ></web-view>
</view>
<tabBar :value="1"></tabBar>
</view>
</template>
<script setup>
import { reactive, ref } from 'vue';
import { onShow,onLoad } from "@dcloudio/uni-app";
import tabBar from '@/components/tabBar/tabBar.vue';
const src = ref('https://dev-caseplatform.igandan.com/web/home?token=');
onLoad((options)=>{
const { envVersion } = uni.getAccountInfoSync().miniProgram;
let token=''
if (envVersion == "release") {
token=uni.setStorageSync("AUTH_TOKEN_CASEDATA");
} else {
token= uni.setStorageSync("DEV_AUTH_TOKEN_CASEDATA");
};
src.value = 'https://dev-caseplatform.igandan.com/web/home?token='+token;
})
</script>
<style scoped>
.page{
width:100%;
height:calc(100vh - 100rpx);
overflow-y: scroll;
}
</style>