Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
miniProgramsFormRender
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
王正
miniProgramsFormRender
Commits
f7f12625
提交
f7f12625
authored
3月 10, 2025
作者:
李程佳
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改适配样式
上级
bb4ec28f
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
35 行增加
和
27 行删除
+35
-27
common.js
common.js
+0
-0
index.html
index.html
+35
-27
没有找到文件。
common.js
浏览文件 @
f7f12625
This source diff could not be displayed because it is too large. You can
view the blob
instead.
index.html
浏览文件 @
f7f12625
...
...
@@ -11,23 +11,26 @@
*
{
margin
:
0
;
padding
:
0
;
/* max-width: 100%; */
}
body
html
{
width
:
100%
;
height
:
100%
;
font-family
:
"微软雅黑"
;
overflow-x
:
hidden
;
padding
:
0
;
}
#container
{
width
:
100%
;
height
:
100%
;
overflow
:
hidden
;
}
body
,
html
{
width
:
100%
;
height
:
100%
;
margin
:
0
;
font-family
:
"微软雅黑"
;
}
#container
{
width
:
100%
;
height
:
100%
;
overflow
:
hidden
;
}
</style>
</head>
<body>
<div
id=
"app"
v-loading=
"loading"
style=
"
padding: 10px;width: 100
vw;height: 100vh;"
>
<div
id=
"app"
v-loading=
"loading"
style=
"
width: 96
vw;height: 100vh;"
>
<v-form-render
:preview-state=
"true"
identi-fication=
'XCX'
:form-json=
"formJson"
:form-data=
"formData"
:option-data=
"optionData"
ref=
"vFormRef"
>
</v-form-render>
...
...
@@ -43,20 +46,21 @@
<script
src=
"common.js"
></script>
<script
src=
"uni-webview.js"
></script>
<script
src=
"jweixin.js"
></script>
<script
type=
"text/javascript"
src=
"//api.map.baidu.com/api?type=webgl&v=1.0&ak=Qs1baeL6A2D4ws0DAVKpWGw5ILNRbyvb"
></script>
<script
type=
"text/javascript"
src=
"//api.map.baidu.com/api?type=webgl&v=1.0&ak=Qs1baeL6A2D4ws0DAVKpWGw5ILNRbyvb"
></script>
<script>
console
.
log
(
"开始获取浏览器参数==>"
)
let
keypair
=
sm2
.
generateKeyPairHex
()
let
keypair
=
sm2
.
generateKeyPairHex
()
let
publicKey
=
keypair
.
publicKey
let
privateKey
=
keypair
.
privateKey
console
.
log
(
'生成公钥'
,
publicKey
)
console
.
log
(
'生成私钥'
,
privateKey
)
console
.
log
(
'生成公钥'
,
publicKey
)
console
.
log
(
'生成私钥'
,
privateKey
)
var
vm
let
params
=
getUrlPatams
()
let
urlParams
=
JSON
.
parse
(
params
)
console
.
log
(
'-----------urlParams--'
,
urlParams
)
document
.
getElementById
(
'title'
).
innerHTML
=
urlParams
.
title
if
(
urlParams
.
sessionData
)
{
if
(
urlParams
.
sessionData
)
{
setSessionStorage
(
urlParams
.
sessionData
)
}
// 存放参数
...
...
@@ -65,7 +69,7 @@
let
headers
=
initRequestHead
()
console
.
log
(
"请求头"
,
headers
);
// 初始化请求类
let
request
=
initRequest
(
headers
,
urlParams
.
modeEvn
,
urlParams
.
SERVER_PUBLIC_KEY
,
urlParams
.
PRIVATE_KEY
)
let
request
=
initRequest
(
headers
,
urlParams
.
modeEvn
,
urlParams
.
SERVER_PUBLIC_KEY
,
urlParams
.
PRIVATE_KEY
)
// let request = initRequest(headers)
var
__glob_easyform_html_obj
=
{
async
customMethods
(
requestConfig
)
{
...
...
@@ -103,15 +107,15 @@
let
res
=
await
this
.
getFuncNo
()
if
(
res
.
code
===
'000000'
)
{
sessionStorage
.
setItem
(
'tempNo'
,
res
.
retObj
.
tempNo
)
// 这里是模拟数据
//
let json = await MockJson()
// 设置json串
//
this.$refs.vFormRef.setFormJson(json)
// 获取json串
let
res1
=
await
this
.
getJsonCode
(
res
.
retObj
.
funcNo
)
if
(
res1
.
code
===
'000000'
)
{
this
.
$refs
.
vFormRef
.
setFormJson
(
res1
.
retObj
.
code
)
}
// 这里是模拟数据
let
json
=
await
MockJson
()
// 设置json串
this
.
$refs
.
vFormRef
.
setFormJson
(
json
)
//
//
获取json串
// //
let res1 = await this.getJsonCode(res.retObj.funcNo)
// //
if (res1.code === '000000') {
// //
this.$refs.vFormRef.setFormJson(res1.retObj.code)
// //
}
}
// 这里是模拟数据
// let json = await MockJson()
...
...
@@ -121,6 +125,10 @@
// await this.getLoanJsonCode()
// await this.getLocation()
},
mounted
()
{
console
.
log
(
'--------初始化vue成功--------------------'
)
// wx.miniProgram.postMessage({ data: '网页向小程序发送消息' })
},
methods
:
{
// 获取字典
async
getDic
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论