起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2523|回复: 3

[结贴] 本地app,运行错误:shell不支持嵌套

[复制链接]

11

主题

27

帖子

57

积分

初级会员

Rank: 2

积分
57
QQ
发表于 2017-6-5 14:06:12 | 显示全部楼层 |阅读模式
请问这是什么原因?(对不起,问题有点多,管理员见谅!)
Screenshot_2017-06-05-13-58-01-877_com.hrbbona.ji.png

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35920
发表于 2017-6-5 14:11:45 | 显示全部楼层
平台的portal用的是shell,应该是自己的功能页中有进行了new ShellImpl导致嵌套了

自己的页面中打开页面直接用justep.shell.ShowPage就可以,不需要再new ShellImpl
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

11

主题

27

帖子

57

积分

初级会员

Rank: 2

积分
57
QQ
 楼主| 发表于 2017-6-5 14:21:50 | 显示全部楼层
jishuang 发表于 2017-6-5 14:11
平台的portal用的是shell,应该是自己的功能页中有进行了new ShellImpl导致嵌套了

自己的页面中打开页面直 ...
  1. define(function(require) {
  2.         var $ = require("jquery");
  3.         var justep = require("$UI/system/lib/justep");
  4.         var ShellImpl = require('$UI/system/lib/portal/shellImpl');

  5.         var Model = function() {
  6.                 this.callParent();
  7.                 var shellImpl = new ShellImpl(this, {
  8.                         "contentsXid" : "pages",
  9.                         "pageMappings" : {
  10.                                 "main" : {
  11.                                         url : this.transUrl('./main.w')
  12.                                 },
  13.                                 "aboutUs" : {
  14.                                         url : this.transUrl('../../../AboutUs/process/aboutUs/mainActivity.w')
  15.                                 },
  16.                                 "product" : {
  17.                                         url : this.transUrl('./channel/product.w')
  18.                                 },
  19.                                 "cases" : {
  20.                                         url : this.transUrl('./channel/cases.w')
  21.                                 },
  22.                                 "dynamic" : {
  23.                                         url : this.transUrl('./channel/dynamic.w')
  24.                                 },
  25.                                 "promotion" : {
  26.                                         url : this.transUrl('./channel/promotion.w')
  27.                                 },
  28.                                 "contactUs" : {
  29.                                         url : this.transUrl('./channel/contactUs.w')
  30.                                 },
  31.                                 "afterSales" : {
  32.                                         url : this.transUrl('./channel/afterSales.w')
  33.                                 },
  34.                                 "service" : {
  35.                                         url : this.transUrl('./channel/service.w')
  36.                                 },
  37.                                 "enterprise" : {
  38.                                         url : this.transUrl('./channel/enterprise.w')
  39.                                 },
  40.                                 "content1" : {
  41.                                         url : this.transUrl('./contents/content1.w')
  42.                                 },
  43.                                 "content2" : {
  44.                                         url : this.transUrl('./contents/content2.w')
  45.                                 },
  46.                                 "content3" : {
  47.                                         url : this.transUrl('./contents/content3.w')
  48.                                 },
  49.                                 "content4" : {
  50.                                         url : this.transUrl('./contents/content4.w')
  51.                                 }

  52.                         }
  53.                 });
  54.         };

  55.         Model.prototype.modelLoad = function(event) {
  56.                 justep.Shell.showPage("main");
  57.         };

  58.         Model.prototype.transUrl = function(url) {
  59.                 return require.toUrl(url);
  60.         };

  61.         return Model;
  62. });
复制代码



这是我自己的页面代码,请问在哪里用justep.shell.ShowPage??

谢谢!!
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35920
发表于 2017-6-5 15:17:57 | 显示全部楼层
自己要打开的页面的时候直接调用justep.shell.ShowPage
justep.Shell.showPage("main");应该把new ShellImpl去掉,
直接改为justep.Shell.showPage("./main.w");

远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-5-3 18:35 , Processed in 0.072990 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表