Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
Static
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
301364d8
authored
a year ago
by
agan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xg
parent
ba45a60f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
js/webAppComm.js
js/webAppComm.js
View file @
301364d8
...
...
@@ -575,14 +575,15 @@ webAppComm.prototype.toVibrate = function (duration) {
}
//43: 修改webview宽高
webAppComm
.
prototype
.
setRatio
=
function
(
type
,
wr
,
hr
,
position
)
{
webAppComm
.
prototype
.
setRatio
=
function
(
type
,
wr
,
hr
,
position
,
unit
)
{
let
obj
=
{
"cid"
:
43
,
"data"
:
{
"type"
:
type
,
//1活动框架 2游戏框架。
"width"
:
wr
,
// #单位为vw 默认值为-1 未传或传-1时,则不修改宽度
"height"
:
hr
,
//单位为vw 默认值为-1 未传或传-1时,则不修改高度
"position"
:
position
// 1右贴边 2左贴边 默认右贴边。
"position"
:
position
,
// 1右贴边 2左贴边 默认右贴边。
"unit"
:
unit
,
//单位 默认1 vw 2 pt
}
}
let
obj2
=
JSON
.
stringify
(
obj
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment