|
我大概明白你的意思了,你可以换个启动页的思路,首先把你的A页面设置为默认的启动页,然后在A页面中执行这个代码试试
- api.openSlidLayout({
- type: 'left',
- fixedPaneStyle: {
- leftEdge: 100,
- leftScale: 1,
- leftMaskBg: "rgba(0,0,0,0.5)",
- leftBg: "rgba(0,0,0,0.5)"
- },
- slidPaneStyle: {
- leftEdge: api.winWidth/4
- },
- fixedPane: {
- name: 'C',
- url: 'widget://html/C.html',
- bgColor: '#fff',
- bounces: false,
- vScrollBarEnabled: true,
- hScrollBarEnabled: false
- },
- slidPane: {
- name: 'B',
- url: 'widget://html/B.html',
- bgColor: '#fff',
- bounces: false,
- vScrollBarEnabled: true,
- hScrollBarEnabled: false
- }
- }, function(ret, err) {
-
- });
复制代码 |
|