app.js
2.86 KB
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
angular.module('myApp.services', ['LocalStorageModule']);
angular.module('myApp.directives', []);
var app = angular.module('myApp', [ "ui.router",'myApp.services', 'myApp.directives']);
app.config(['$stateProvider' , '$urlRouterProvider' , function($stateProvider, $urlRouterProvider){
$urlRouterProvider.otherwise("/main");
$stateProvider.state('main', {
url: "/main",
templateUrl: "html/main.html"
})
.state('login',{
url: "/login",
templateUrl: "html/login.html"
})
.state('trip',{
url: "/trip",
templateUrl: "html/trip.html",
controller: 'tripController'
})
.state('wallet',{
url: "/wallet",
templateUrl: "html/wallet.html"
})
.state('bond',{
url: "/bond/?longitude&latitude",
templateUrl: "html/bond.html"
})
.state('contact',{
url: "/contact",
templateUrl: "html/contact.html"
})
.state('opinion',{
url: "/opinion/?longitude&latitude",
templateUrl: "html/opinion.html"
})
.state('tripDetail',{
url: "/tripDetail/:orderId",
templateUrl: "html/tripDetail.html" ,
controller: 'tripDetailController'
})
.state('prepay',{
url: "/prepay",
templateUrl: "html/prepay.html"
})
.state('pay',{
url: "/pay",
templateUrl: "html/pay.html"
})
.state('bondPay',{
url: "/bondPay",
templateUrl: "html/bondPay.html"
})
.state('bondSuccess',{
url: "/bondSuccess",
templateUrl: "html/bondSuccess.html"
})
.state('rentDetail',{
url: "/rentDetail",
templateUrl: "html/rentDetail.html"
})
.state('unusual',{
url: "/unusual/:id",
templateUrl: "html/unusual.html"
})
.state('rechargeList',{
url: "/rechargeList",
templateUrl: "html/rechargeList.html"
})
.state('wxPayReturn',{
url: "/wxPayReturn/:type",
templateUrl: "html/wxPayReturn.html",
controller: 'wxPayReturnController'
})
}])
app.run(['globalService', function(globalService) {
globalService.init();
var loading = document.getElementById("appLoadingIndicator");
loading.style.display = "none";
}])
//$(window).bind("load resize",function(){
// $("body").css({zoom:$(window).width()/320,visibility:"visible"});
//});