|
登录成功打开:
- api.openWin({
- name: 'index',
- url: '../index.html',
- useWKWebView: true,
- historyGestureEnabled: false,
- allowEdit: true, //开启复制黏贴
- vScrollBarEnabled: false, //禁止垂直滚动
- slidBackEnabled: false,
- pageParam: {
- index: "#login"
- }
- });
复制代码
这里生成导航页面:
- api.openFrameGroup({
- name: 'group1',
- rect: {
- x: 0,
- y: 0,
- w: 'auto',
- h: 'auto',
- marginBottom: $('#tab_bottom').height() + 'px',
- },
- fixedOn: 'ui_layout',
- scrollEnabled: false,
- preload: 0, //预加载的个数
- frames: [
- {
- name: 'main',
- url: 'html/main.html'
- },
- {
- name: 'order', //整改
- url: 'html/Chat/myOrder.html',
- },
- {
- name: 'message', //消息
- url: 'html/Chat/chatIndex.html',
- allowAccessFromFile: true
- },
- {
- name: 'my', //我的页面
- url: 'html/myIiData.html', //my
- // useWKWebView: false //设置为true只能后端开启跨域配置
- allowAccessFromFile: true
- }
- ]
- },
- function (ret, err) {
- });
复制代码
我在main页面的apiready里调用,返回的就是false |
|