Blame view

web/src/js/user/regulation-controller.js 875 Bytes
be5105bd   xu   app-wx(v0.1.0 bui...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
 * 维修流程协议
 */
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;
    }
);