6.13
This commit is contained in:
+13
-5
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user