justep.Shell.showPage打开页面设置title时用的json格式设置的参数,那么就可以直接在json中设置参数如下:


var url ="$UI/appdemo/test/process/windowDialog/staticActivity1.a";

justep.Shell.showPage({url:url,title:"详细页",process:"/appdemo/test/process/windowDialog/windowDialogProcess",activity:"mainActivity",d1:"d1Value"});

其中的process和activity是功能需要的,d1是自定义的参数,当然这些参数也可以直接在url上拼接
如下:

      var url ="$UI/appdemo/test/process/windowDialog/staticActivity1.a?process=/appdemo/test/process/windowDialog/windowDialogProcess&activity=mainActivity&d1=d1Value";

      justep.Shell.showPage({url:url,title:"详细页",process:"/appdemo/test/process/windowDialog/windowDialogProcess",activity:"mainActivity",d1:"d1Value"},{d2: 'd2Value',d3: 'd3Value'});

这样传参d1会在url中显示出来,在接收端可以用this.getContext().getRequestParameter(‘d1’)的方式获取d1的值

如果不让参数在url中显示处理可以如下设置

      var url ="$UI/appdemo/test/process/windowDialog/staticActivity1.a";

      justep.Shell.showPage({url:url,title:"详细页",process:"/appdemo/test/process/windowDialog/windowDialogProcess",activity:"mainActivity"},{d2: 'd2Value',d3: 'd3Value'});

这样传参d2和d3就不会在url中显示,在接收端onParamsReceive事件中可以通过event.data.d2或者event.params.d2获取d2的值