regulation-controller.js 875 Bytes
/**
 * 维修流程协议
 */
define(
    "user/regulation-controller",
    [
        'mk7/controller'
    ],

    function(ctrl) {
        var $$ = Dom7;
        var t7 = Template7;
        var ctrl = new ctrl();
        ctrl.run = function () {
            var me = this;
            me.setPageTitle("维修流程");
            me.loadPage()
        }
        ctrl.bindEvents = function () {
            var me = this;
            console.log("bindEvents");

        }

        ctrl.loadPage = function () {
            var me = this;
            me.render();
            $$('#agreement-wrapper').remove();
            var page = $$('#regulation_content');
            var ele = $$('script#agreement-template');
            var compiled = t7.compile(ele.html());
            var doms = compiled({});
            page.append(doms);
        }

        return ctrl;
    }
);