1.在界面A中添加windowdialog组件,src指向界面B。在界面A中打开界面B时将参数传递到界面吧。给界面B中的data控件赋值。在B界面require了这两个文件。
var $ = require("jquery");
var justep = require("$UI/system/lib/justep");
var biz = require('$UI/system/lib/biz');
参照平台提供的案列。在界面A中写如下代码。
var tm=this.comp('bizData1').getValue('tiaoma');
this.comp('windowDialog1').open({data : this.comp('bizData1').getValue('tiaoma')});
2.界面B中windowReceiver1的onreciver事件中接收语句:
this.comp('data1').setValue('tm',event.data);
var detailData = this.comp('data1');
detailData.refreshData();