This commit is contained in:
zoujiandong
2025-06-13 19:09:30 +08:00
parent 518a5d1b47
commit a31fc3c1e6
40 changed files with 4210 additions and 532 deletions
+13 -5
View File
@@ -1,7 +1,7 @@
<template>
<view class="content">
<view class="page">
<web-view src="https:www.baidu.com/" ></web-view>
<web-view :src="src" ></web-view>
</view>
<tabBar :value="1"></tabBar>
</view>
@@ -9,12 +9,20 @@
<script setup>
import { reactive, ref } from 'vue';
import { onShow } from "@dcloudio/uni-app";
import { onShow,onLoad } from "@dcloudio/uni-app";
import tabBar from '@/components/tabBar/tabBar.vue';
const webviewStyles=reactive({
width:"100%",
height:'calc(100vh - 0rpx)'
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>