模块引入
const openWeb = app.requireModule('startH5')
let openWeb = requireModuleJs('startH5');
方法
key | 类型 | Demo | 描述 |
---|---|---|---|
packageid | String | “1377169582132957184” | H5离线包id,必传 |
callback | - | “1” | 回调,用于接收返回的isNeedLogin 字符串,1需要 0不需要 |
方法
key | 类型 | Demo | 描述 |
---|---|---|---|
packageid | String | “1377169582132957184” | H5离线包id,必传 |
params | dictionary | {key:value} | 离线包页面相关参数 |
方法
key | 类型 | Demo | 描述 |
---|---|---|---|
packageid | String | “1377169582132957184” | H5离线包id,必传 |
params | dictionary | {key:value} | 离线包页面相关参数 |
statusBarColor | String | “#414a9a” | 容器状态栏设置 |
{
packageid: "1377169582132957184",
params: {
topBarConfig: {
bgColor: "#414a9a",
titleSize: 32,
middleTitle: "转账汇款",
titleColor: "",
leftConfig: {
leftTitle: "",
titleColor: "",
titleSize: 32,
},
rightConfig: {
rightTitle: "转账记录",
titleColor: "",
titleSize: 32,
},
},
},
statusBarColor: "#414a9a",
}
demo
openWeb.startH5({
packageid: "1377169582132957184",
params: {
topBarConfig: {
bgColor: "#414a9a",
titleSize: 32,
middleTitle: "转账汇款",
titleColor: "",
leftConfig: {
leftTitle: "",
titleColor: "",
titleSize: 32,
},
rightConfig: {
rightTitle: "转账记录",
titleColor: "",
titleSize: 32,
},
},
},
statusBarColor: "#414a9a",
});