wuxw7
2019-03-19 8cbef47a70e6771a8d894b2a2d4407f54d967a60
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
/**
    菜单 处理
**/
(function(vc){
    var vm = new Vue({
       el:'#menu-nav',
       data:{
           menus:[]
       },
       mounted:function(){
           this.getMenus();
       },
       methods:{
           getMenus:function(){
               var param = {
                   msg:this.message
               }
               //发送get请求
               vc.http.call('menu',
                            'getMenus',
                             param,
                             {
                                emulateJSON:true
                             },function(json){
                                vm.menus = JSON.parse(json);
                             },function(){
                                console.log('请求失败处理');
                             }
                           );
           }
       }
 
    });
 
})(window.vc)