|
|
@@ -1,30 +1,20 @@
|
|
|
<template>
|
|
|
- <web-view :src="url"></web-view>
|
|
|
+ <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" )
|
|
|
-
|
|
|
+import { encrypt } from "@/utils/jsencrypt";
|
|
|
// 原始数据
|
|
|
const data=JSON.parse(uni.getStorageSync("data" ))
|
|
|
-console.log(data)
|
|
|
-
|
|
|
+data.form = "xcx"
|
|
|
// 加密数据
|
|
|
-const encryptedData = encrypt(JSON.stringify(data));
|
|
|
-
|
|
|
-const dataToken=uni.getStorageSync("App-Token" )
|
|
|
-
|
|
|
+const encryptedData = encodeURIComponent(encrypt(JSON.stringify(data)));
|
|
|
// 构造URL
|
|
|
-const url = `https://manager.usky.cn/mobile/#/pages/login?dataToken=${dataToken}&xcx=${encodeURIComponent(encryptedData)}`;
|
|
|
-console.log(url)
|
|
|
+const url = `https://manager.usky.cn/mobile/#/pages/index?xcxData=${encryptedData}`;
|
|
|
uni.hideHomeButton()
|
|
|
|
|
|
-
|
|
|
onShow(() => {
|
|
|
-
|
|
|
// 设置导航栏颜色和背景色
|
|
|
uni.setNavigationBarColor({
|
|
|
frontColor:"#ffffff",
|
|
|
@@ -32,10 +22,4 @@ onShow(() => {
|
|
|
});
|
|
|
|
|
|
})
|
|
|
-
|
|
|
-
|
|
|
-</script>
|
|
|
-
|
|
|
-<style lang="scss" scoped>
|
|
|
-
|
|
|
-</style>
|
|
|
+</script>
|