帖子
帖子
用户
博客
课程
12
返回列表 发新帖
鱼跃跃 发表于 2017-12-4 15:57
首先感谢你的耐心回答,我的代码如下,A是启动页,B是首页,C是侧滑页,首先在B首页的apiready中调用如下 ...

我大概明白你的意思了,你可以换个启动页的思路,首先把你的A页面设置为默认的启动页,然后在A页面中执行这个代码试试
  1. api.openSlidLayout({
  2.                 type: 'left',
  3.                 fixedPaneStyle: {
  4.                     leftEdge: 100,
  5.                     leftScale: 1,
  6.                     leftMaskBg: "rgba(0,0,0,0.5)",
  7.                     leftBg: "rgba(0,0,0,0.5)"
  8.                 },
  9.                 slidPaneStyle: {
  10.                     leftEdge: api.winWidth/4
  11.                 },
  12.                 fixedPane: {
  13.                     name: 'C',
  14.                     url: 'widget://html/C.html',
  15.                     bgColor: '#fff',
  16.                     bounces: false,
  17.                     vScrollBarEnabled: true,
  18.                     hScrollBarEnabled: false
  19.                 },
  20.                 slidPane: {
  21.                     name: 'B',
  22.                     url: 'widget://html/B.html',
  23.                     bgColor: '#fff',
  24.                     bounces: false,
  25.                     vScrollBarEnabled: true,
  26.                     hScrollBarEnabled: false
  27.                 }
  28.             }, function(ret, err) {
  29.                   
  30.             });
复制代码
鱼跃跃 发表于 2017-12-4 15:57
首先感谢你的耐心回答,我的代码如下,A是启动页,B是首页,C是侧滑页,首先在B首页的apiready中调用如下 ...

这个代码你可以手动控制他执行的时间的,你可以等启动页操作完成后在执行,也可以直接执行,执行后就相当于打开了一个带侧滑的window
12
您需要登录后才可以回帖 登录

本版积分规则