<template>
        <web-view :src="url"></web-view>
</template>

<script setup>
import { onLoad, onShow, onHide, onLaunch, onReady } from "@dcloudio/uni-app";
import { encrypt ,decrypt} from "@/utils/jsencrypt";

uni.getStorageSync("data2" )

// 原始数据
const data=JSON.parse(uni.getStorageSync("data" ))
console.log(data)

// 加密数据
const encryptedData = encrypt(JSON.stringify(data));

const dataToken=uni.getStorageSync("App-Token" )

// 构造URL
const url = `https://manager.usky.cn/mobile/#/pages/login?dataToken=${dataToken}&xcx=${encodeURIComponent(encryptedData)}`;
console.log(url)
// uni.hideHomeButton()

 
onShow(() => {

  // 设置导航栏颜色和背景色
  uni.setNavigationBarColor({
    frontColor:"#ffffff",
    backgroundColor:"#149EFF",
  });

})


</script> 

<style lang="scss" scoped>

</style>
