-
Notifications
You must be signed in to change notification settings - Fork 0
/
tyxroutes.js
116 lines (104 loc) · 3.62 KB
/
tyxroutes.js
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/**
* Created by Administrator on 2016/5/4 0004.
*/
angular.module('24EApp.tyxroutes',[])
.config(function($stateProvider, $urlRouterProvider){
// Ionic uses AngularUI Router which uses the concept of states
// Learn more here: https://github.com/angular-ui/ui-router
// Set up the various states which the app can be in.
// Each state's controller can be found in controllers.js
$urlRouterProvider.otherwise('/Login');
$stateProvider
//// if none of the above states are matched, use this as the fallback
//$urlRouterProvider.otherwise('/tab/home');
// setup an abstract state for the tabs directive
//起始页路由
.state('Route',{
url:"/Route",
//abstract:true,
views:{
'':{
templateUrl: "templates/Route.html",
controller:'RouteCtrr'
}
}
})
//一键下单
.state('OneKeyOder',{
url:"/OneKeyOder",
// data: {
// authorizedRoles: [USER_ROLES.admin, USER_ROLES.user],
// },
views:{
'':{
templateUrl:'templates/Client/OneKeyOder.html',
controller:'OneKeyOderCtr'
}
}
})
//一键下单后页
.state('OneKeyOderLater',{
url:"/OneKeyOderLater",
cache:'false',
views:{
'':{
templateUrl:'templates/Client/OneKeyOder-01.html',
controller:'OneKeyOderLaterCtr'
}
}
})
//代叫
.state('DaiJiao',{
url:"/DaiJiao",
params:{id:null},
cache:true,
views:{
'':{
templateUrl:'templates/Client/daijiao.html',
controller:'DaiJiaoCtr'
}
}
})
// 订单管理
.state('OrderManagement',{
url:"/OrderManagement",
views:{
'':{
templateUrl:'templates/Client/OrderManagement.html',
controller:'OrderManagementCtr'
}
}
})
// 订单管理
.state('PriceList',{
url:"/PriceList",
views:{
'':{
templateUrl:'templates/Client/PriceList.html',
controller:'PriceListCtr'
}
}
})
// 代办业务
.state('AgentService',{
url:"/AgentService",
views:{
'':{
templateUrl:'templates/Client/AgentService.html',
controller:'AgentServiceCtr'
}
}
})
// 支付页
.state('pag',{
url:"/pag",
params:{'order_number':null},
cache:false,
views:{
'':{
templateUrl:'templates/Client/pag.html',
controller:'pagCtr',
}
}
})
})