流程容器
require(["component/process_container"], function(f) { f($("#container")[0]).open(); });
var _html = [ '
', '
$name$
', '
'].join(""); $we.widget.reg("AA", { interfaces: { render: function() { this.append(this.el, _html, { name: "AA", }); }, }, init: function(el) { this.el = el; }, process: { start: function() { this.render(); }, end: function() { $(this.node.root).remove(); }, checkSucc: function() { this.notify("goNext", { mobile: "136*****93", v_date: "2012年11月10日23时45分13秒" }); } }, }); require(["component/process_ui", "business/bind_mobile"], function(f) { f([{ name: "开始", widget: "AA" }, { name: "结束", widget: "bind_mobile.end", params: { success: function() {} } }], { title:"手机绑定", el: $("#container")[0], bizStyle: "div" }).start(); });