继续操作前请注册或者登录。
提交 b63a0df1 作者: 李程佳

样式修改

上级 f7f12625
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<title id="title">Document</title> <title id="title">Document</title>
<link rel="stylesheet" href="element-ui.min.css"> <link rel="stylesheet" href="element-ui.min.css">
<link rel="stylesheet" href="VFormRender.css"> <link rel="stylesheet" href="VFormRender.css">
...@@ -13,7 +14,7 @@ ...@@ -13,7 +14,7 @@
padding: 0; padding: 0;
/* max-width: 100%; */ /* max-width: 100%; */
} }
body html { body,html {
width: 100%; width: 100%;
height: 100%; height: 100%;
font-family: "微软雅黑"; font-family: "微软雅黑";
...@@ -30,7 +31,7 @@ ...@@ -30,7 +31,7 @@
</head> </head>
<body> <body>
<div id="app" v-loading="loading" style="width: 96vw;height: 100vh;"> <div id="app" v-loading="loading" style="width: 93vw;height: 100vh;">
<v-form-render :preview-state="true" identi-fication='XCX' :form-json="formJson" :form-data="formData" <v-form-render :preview-state="true" identi-fication='XCX' :form-json="formJson" :form-data="formData"
:option-data="optionData" ref="vFormRef"> :option-data="optionData" ref="vFormRef">
</v-form-render> </v-form-render>
...@@ -47,14 +48,8 @@ ...@@ -47,14 +48,8 @@
<script src="uni-webview.js"></script> <script src="uni-webview.js"></script>
<script src="jweixin.js"></script> <script src="jweixin.js"></script>
<script type="text/javascript" <script type="text/javascript"
src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=Qs1baeL6A2D4ws0DAVKpWGw5ILNRbyvb"></script> src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=3YILlt9BGfidJTSR3VOIi0QhTyWngyEX"></script>
<script> <script>
console.log("开始获取浏览器参数==>")
let keypair = sm2.generateKeyPairHex()
let publicKey = keypair.publicKey
let privateKey = keypair.privateKey
console.log('生成公钥', publicKey)
console.log('生成私钥', privateKey)
var vm var vm
let params = getUrlPatams() let params = getUrlPatams()
let urlParams = JSON.parse(params) let urlParams = JSON.parse(params)
...@@ -108,14 +103,14 @@ ...@@ -108,14 +103,14 @@
if (res.code === '000000') { if (res.code === '000000') {
sessionStorage.setItem('tempNo', res.retObj.tempNo) sessionStorage.setItem('tempNo', res.retObj.tempNo)
// 这里是模拟数据 // 这里是模拟数据
let json = await MockJson() // let json = await MockJson()
// 设置json串 // 设置json串
this.$refs.vFormRef.setFormJson(json) // this.$refs.vFormRef.setFormJson(json)
// // 获取json串 // 获取json串
// // let res1 = await this.getJsonCode(res.retObj.funcNo) let res1 = await this.getJsonCode(res.retObj.funcNo)
// // if (res1.code === '000000') { if (res1.code === '000000') {
// // this.$refs.vFormRef.setFormJson(res1.retObj.code) this.$refs.vFormRef.setFormJson(res1.retObj.code)
// // } }
} }
// 这里是模拟数据 // 这里是模拟数据
// let json = await MockJson() // let json = await MockJson()
...@@ -126,8 +121,6 @@ ...@@ -126,8 +121,6 @@
// await this.getLocation() // await this.getLocation()
}, },
mounted() { mounted() {
console.log('--------初始化vue成功--------------------')
// wx.miniProgram.postMessage({ data: '网页向小程序发送消息' })
}, },
methods: { methods: {
// 获取字典 // 获取字典
...@@ -201,7 +194,28 @@ ...@@ -201,7 +194,28 @@
} }
} }
}) })
// 监听 Hash 变化
// window.addEventListener('hashchange', () => {
//   const currentHash = window.location.hash; // 获取当前 Hash(如 "#/about?id=1")
//   const path = currentHash.split('?')[0];    // 提取路径部分(如 "#/about")
//   const params = new URLSearchParams(currentHash.split('?')[1] || ''); // 解析参数
//   console.log('路由路径:', path);
//   console.log('参数:', Object.fromEntries(params));
// const data = JSON.parse(Object.fromEntries(params).id)
// // vm.$refs.vFormRef.getWidgetRef()
// // alert(JSON.stringify(vm))
// for(const key in data){
// vm.$refs.vFormRef.getWidgetRef(key).setValue(data[key])
// }
// // vm.$refs.vFormRef.getWidgetRef("address1").setValue("testsrtsete")
// // alert(data)
// // alert(JSON.stringify(Object.fromEntries(params)))
// // alert(JSON.stringify(Object.fromEntries(params)))
// history.replaceState({}, document.title, window.location.pathname);
// });
} }
</script> </script>
</body> </body>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论