lxnd 8 năm trước cách đây
mục cha
commit
7e9a3ab2b0
73 tập tin đã thay đổi với 163 bổ sung3 xóa
  1. 17 0
      .project
  2. 21 0
      yanshi/config.xml
  3. BIN
      yanshi/res/drawable-land-hdpi/screen.png
  4. BIN
      yanshi/res/drawable-land-ldpi/screen.png
  5. BIN
      yanshi/res/drawable-land-mdpi/screen.png
  6. BIN
      yanshi/res/drawable-land-xhdpi/screen.png
  7. BIN
      yanshi/res/drawable-land-xxhdpi/screen.png
  8. BIN
      yanshi/res/drawable-land-xxxhdpi/screen.png
  9. BIN
      yanshi/res/drawable-port-hdpi/screen.png
  10. BIN
      yanshi/res/drawable-port-ldpi/screen.png
  11. BIN
      yanshi/res/drawable-port-mdpi/screen.png
  12. BIN
      yanshi/res/drawable-port-xhdpi/screen.png
  13. BIN
      yanshi/res/drawable-port-xxhdpi/screen.png
  14. BIN
      yanshi/res/drawable-port-xxxhdpi/screen.png
  15. BIN
      yanshi/res/mipmap-hdpi/icon.png
  16. BIN
      yanshi/res/mipmap-ldpi/icon.png
  17. BIN
      yanshi/res/mipmap-mdpi/icon.png
  18. BIN
      yanshi/res/mipmap-xhdpi/icon.png
  19. BIN
      yanshi/res/mipmap-xxhdpi/icon.png
  20. BIN
      yanshi/res/mipmap-xxxhdpi/icon.png
  21. BIN
      yanshi/resources/android/icon/drawable-hdpi-icon.png
  22. BIN
      yanshi/resources/android/icon/drawable-ldpi-icon.png
  23. BIN
      yanshi/resources/android/icon/drawable-mdpi-icon.png
  24. BIN
      yanshi/resources/android/icon/drawable-xhdpi-icon.png
  25. BIN
      yanshi/resources/android/icon/drawable-xxhdpi-icon.png
  26. BIN
      yanshi/resources/android/icon/drawable-xxxhdpi-icon.png
  27. BIN
      yanshi/resources/android/splash/drawable-land-hdpi-screen.png
  28. BIN
      yanshi/resources/android/splash/drawable-land-ldpi-screen.png
  29. BIN
      yanshi/resources/android/splash/drawable-land-mdpi-screen.png
  30. BIN
      yanshi/resources/android/splash/drawable-land-xhdpi-screen.png
  31. BIN
      yanshi/resources/android/splash/drawable-land-xxhdpi-screen.png
  32. BIN
      yanshi/resources/android/splash/drawable-land-xxxhdpi-screen.png
  33. BIN
      yanshi/resources/android/splash/drawable-port-hdpi-screen.png
  34. BIN
      yanshi/resources/android/splash/drawable-port-ldpi-screen.png
  35. BIN
      yanshi/resources/android/splash/drawable-port-mdpi-screen.png
  36. BIN
      yanshi/resources/android/splash/drawable-port-xhdpi-screen.png
  37. BIN
      yanshi/resources/android/splash/drawable-port-xxhdpi-screen.png
  38. BIN
      yanshi/resources/android/splash/drawable-port-xxxhdpi-screen.png
  39. BIN
      yanshi/resources/icon.png
  40. BIN
      yanshi/resources/ios/icon/icon-40.png
  41. BIN
      yanshi/resources/ios/icon/icon-40@2x.png
  42. BIN
      yanshi/resources/ios/icon/icon-50.png
  43. BIN
      yanshi/resources/ios/icon/icon-50@2x.png
  44. BIN
      yanshi/resources/ios/icon/icon-60.png
  45. BIN
      yanshi/resources/ios/icon/icon-60@2x.png
  46. BIN
      yanshi/resources/ios/icon/icon-60@3x.png
  47. BIN
      yanshi/resources/ios/icon/icon-72.png
  48. BIN
      yanshi/resources/ios/icon/icon-72@2x.png
  49. BIN
      yanshi/resources/ios/icon/icon-76.png
  50. BIN
      yanshi/resources/ios/icon/icon-76@2x.png
  51. BIN
      yanshi/resources/ios/icon/icon-small.png
  52. BIN
      yanshi/resources/ios/icon/icon-small@2x.png
  53. BIN
      yanshi/resources/ios/icon/icon-small@3x.png
  54. BIN
      yanshi/resources/ios/icon/icon.png
  55. BIN
      yanshi/resources/ios/icon/icon@2x.png
  56. BIN
      yanshi/resources/ios/splash/Default-568h@2x~iphone.png
  57. BIN
      yanshi/resources/ios/splash/Default-667h.png
  58. BIN
      yanshi/resources/ios/splash/Default-736h.png
  59. BIN
      yanshi/resources/ios/splash/Default-Landscape-736h.png
  60. BIN
      yanshi/resources/ios/splash/Default-Landscape@2x~ipad.png
  61. BIN
      yanshi/resources/ios/splash/Default-Landscape~ipad.png
  62. BIN
      yanshi/resources/ios/splash/Default-Portrait@2x~ipad.png
  63. BIN
      yanshi/resources/ios/splash/Default-Portrait~ipad.png
  64. BIN
      yanshi/resources/ios/splash/Default@2x~iphone.png
  65. BIN
      yanshi/resources/ios/splash/Default~iphone.png
  66. BIN
      yanshi/resources/splash.png
  67. 40 0
      yanshi/www/js/app.js
  68. 28 2
      yanshi/www/js/controllers.js
  69. 1 1
      yanshi/www/templates/home.html
  70. 14 0
      yanshi/www/templates/show/line.html
  71. 14 0
      yanshi/www/templates/show/strom.html
  72. 14 0
      yanshi/www/templates/show/tn.html
  73. 14 0
      yanshi/www/templates/show/zhou.html

+ 17 - 0
.project

xqd
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>myApp</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>com.aptana.ide.core.unifiedBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>com.aptana.projects.webnature</nature>
+	</natures>
+</projectDescription>

+ 21 - 0
yanshi/config.xml

xqd
@@ -16,7 +16,28 @@
   <preference name="FadeSplashScreenDuration" value="2000"/>
   <preference name="android-minSdkVersion" value="16"/>
   <preference name="BackupWebStorage" value="none"/>
+  <preference name="SplashScreen" value="screen"/>
   <feature name="StatusBar">
     <param name="ios-package" value="CDVStatusBar" onload="true"/>
   </feature>
+  <platform name="android">
+    <icon src="resources/android/icon/drawable-ldpi-icon.png" density="ldpi"/>
+    <icon src="resources/android/icon/drawable-mdpi-icon.png" density="mdpi"/>
+    <icon src="resources/android/icon/drawable-hdpi-icon.png" density="hdpi"/>
+    <icon src="resources/android/icon/drawable-xhdpi-icon.png" density="xhdpi"/>
+    <icon src="resources/android/icon/drawable-xxhdpi-icon.png" density="xxhdpi"/>
+    <icon src="resources/android/icon/drawable-xxxhdpi-icon.png" density="xxxhdpi"/>
+    <splash src="resources/android/splash/drawable-land-ldpi-screen.png" density="land-ldpi"/>
+    <splash src="resources/android/splash/drawable-land-mdpi-screen.png" density="land-mdpi"/>
+    <splash src="resources/android/splash/drawable-land-hdpi-screen.png" density="land-hdpi"/>
+    <splash src="resources/android/splash/drawable-land-xhdpi-screen.png" density="land-xhdpi"/>
+    <splash src="resources/android/splash/drawable-land-xxhdpi-screen.png" density="land-xxhdpi"/>
+    <splash src="resources/android/splash/drawable-land-xxxhdpi-screen.png" density="land-xxxhdpi"/>
+    <splash src="resources/android/splash/drawable-port-ldpi-screen.png" density="port-ldpi"/>
+    <splash src="resources/android/splash/drawable-port-mdpi-screen.png" density="port-mdpi"/>
+    <splash src="resources/android/splash/drawable-port-hdpi-screen.png" density="port-hdpi"/>
+    <splash src="resources/android/splash/drawable-port-xhdpi-screen.png" density="port-xhdpi"/>
+    <splash src="resources/android/splash/drawable-port-xxhdpi-screen.png" density="port-xxhdpi"/>
+    <splash src="resources/android/splash/drawable-port-xxxhdpi-screen.png" density="port-xxxhdpi"/>
+  </platform>
 </widget>

BIN
yanshi/res/drawable-land-hdpi/screen.png


BIN
yanshi/res/drawable-land-ldpi/screen.png


BIN
yanshi/res/drawable-land-mdpi/screen.png


BIN
yanshi/res/drawable-land-xhdpi/screen.png


BIN
yanshi/res/drawable-land-xxhdpi/screen.png


BIN
yanshi/res/drawable-land-xxxhdpi/screen.png


BIN
yanshi/res/drawable-port-hdpi/screen.png


BIN
yanshi/res/drawable-port-ldpi/screen.png


BIN
yanshi/res/drawable-port-mdpi/screen.png


BIN
yanshi/res/drawable-port-xhdpi/screen.png


BIN
yanshi/res/drawable-port-xxhdpi/screen.png


BIN
yanshi/res/drawable-port-xxxhdpi/screen.png


BIN
yanshi/res/mipmap-hdpi/icon.png


BIN
yanshi/res/mipmap-ldpi/icon.png


BIN
yanshi/res/mipmap-mdpi/icon.png


BIN
yanshi/res/mipmap-xhdpi/icon.png


BIN
yanshi/res/mipmap-xxhdpi/icon.png


BIN
yanshi/res/mipmap-xxxhdpi/icon.png


BIN
yanshi/resources/android/icon/drawable-hdpi-icon.png


BIN
yanshi/resources/android/icon/drawable-ldpi-icon.png


BIN
yanshi/resources/android/icon/drawable-mdpi-icon.png


BIN
yanshi/resources/android/icon/drawable-xhdpi-icon.png


BIN
yanshi/resources/android/icon/drawable-xxhdpi-icon.png


BIN
yanshi/resources/android/icon/drawable-xxxhdpi-icon.png


BIN
yanshi/resources/android/splash/drawable-land-hdpi-screen.png


BIN
yanshi/resources/android/splash/drawable-land-ldpi-screen.png


BIN
yanshi/resources/android/splash/drawable-land-mdpi-screen.png


BIN
yanshi/resources/android/splash/drawable-land-xhdpi-screen.png


BIN
yanshi/resources/android/splash/drawable-land-xxhdpi-screen.png


BIN
yanshi/resources/android/splash/drawable-land-xxxhdpi-screen.png


BIN
yanshi/resources/android/splash/drawable-port-hdpi-screen.png


BIN
yanshi/resources/android/splash/drawable-port-ldpi-screen.png


BIN
yanshi/resources/android/splash/drawable-port-mdpi-screen.png


BIN
yanshi/resources/android/splash/drawable-port-xhdpi-screen.png


BIN
yanshi/resources/android/splash/drawable-port-xxhdpi-screen.png


BIN
yanshi/resources/android/splash/drawable-port-xxxhdpi-screen.png


BIN
yanshi/resources/icon.png


BIN
yanshi/resources/ios/icon/icon-40.png


BIN
yanshi/resources/ios/icon/icon-40@2x.png


BIN
yanshi/resources/ios/icon/icon-50.png


BIN
yanshi/resources/ios/icon/icon-50@2x.png


BIN
yanshi/resources/ios/icon/icon-60.png


BIN
yanshi/resources/ios/icon/icon-60@2x.png


BIN
yanshi/resources/ios/icon/icon-60@3x.png


BIN
yanshi/resources/ios/icon/icon-72.png


BIN
yanshi/resources/ios/icon/icon-72@2x.png


BIN
yanshi/resources/ios/icon/icon-76.png


BIN
yanshi/resources/ios/icon/icon-76@2x.png


BIN
yanshi/resources/ios/icon/icon-small.png


BIN
yanshi/resources/ios/icon/icon-small@2x.png


BIN
yanshi/resources/ios/icon/icon-small@3x.png


BIN
yanshi/resources/ios/icon/icon.png


BIN
yanshi/resources/ios/icon/icon@2x.png


BIN
yanshi/resources/ios/splash/Default-568h@2x~iphone.png


BIN
yanshi/resources/ios/splash/Default-667h.png


BIN
yanshi/resources/ios/splash/Default-736h.png


BIN
yanshi/resources/ios/splash/Default-Landscape-736h.png


BIN
yanshi/resources/ios/splash/Default-Landscape@2x~ipad.png


BIN
yanshi/resources/ios/splash/Default-Landscape~ipad.png


BIN
yanshi/resources/ios/splash/Default-Portrait@2x~ipad.png


BIN
yanshi/resources/ios/splash/Default-Portrait~ipad.png


BIN
yanshi/resources/ios/splash/Default@2x~iphone.png


BIN
yanshi/resources/ios/splash/Default~iphone.png


BIN
yanshi/resources/splash.png


+ 40 - 0
yanshi/www/js/app.js

xqd
@@ -53,7 +53,47 @@ angular.module('starter', ['ionic', 'starter.controllers', 'starter.services'])
   			controller:'homeCtrl'
   		}
   	}
+  	
   })
+   .state('line',{
+  	url:'/line',
+  	views:{
+  		'':{
+  			templateUrl:'templates/show/line.html',
+  			controller:'lineCtrl'
+  		}
+  	}
+  })
+  .state('tn',{
+  	url:'/tn',
+  	views:{
+  		'':{
+  			templateUrl:'templates/show/tn.html',
+  			controller:'tnCtrl'
+  		}
+  	}
+  })
+ 
+  
+  .state('zhou',{
+  	url:'/zhou',
+  	views:{
+  		'':{
+  			templateUrl:'templates/show/zhou.html',
+  			controller:'zhouCtrl'
+  		}
+  	}
+  })
+	.state('strom',{
+  	url:'/strom',
+  	views:{
+  		'':{
+  			templateUrl:'templates/show/strom.html',
+  			controller:'stromCtrl'
+  		}
+  	}
+  })
+
 
  
 

+ 28 - 2
yanshi/www/js/controllers.js

xqd
@@ -38,5 +38,31 @@ angular.module('starter.controllers', [])
             });
 	}
 }])
-
-
+//展示首页控制器
+.controller('lineCtrl',["$scope",'$ionicHistory','$state',function($scope,$ionicHistory,$state){
+	$scope.go = function(target){
+		$ionicHistory.clearHistory();
+		$state.go(target)
+	}
+}])
+//TN曲线控制器
+.controller('tnCtrl',["$scope",'$ionicHistory','$state',function($scope,$ionicHistory,$state){
+	$scope.go = function(target){
+		$ionicHistory.clearHistory();
+		$state.go(target)
+	}
+}])
+//五轴图控制器
+.controller('zhouCtrl',["$scope",'$ionicHistory','$state',function($scope,$ionicHistory,$state){
+	$scope.go = function(target){
+		$ionicHistory.clearHistory();
+		$state.go(target)
+	}
+}])
+//效率云图控制器
+.controller('stromCtrl',["$scope",'$ionicHistory','$state',function($scope,$ionicHistory,$state){
+	$scope.go = function(target){
+		$ionicHistory.clearHistory();
+		$state.go(target)
+	}
+}])

+ 1 - 1
yanshi/www/templates/home.html

xqd
@@ -5,7 +5,7 @@
     <ion-scroll direction="y" class="pList-scroll"> 
     	<ion-refresher pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
          <ion-list>
-         	<ion-item ng-repeat = "excal in excals">
+         	<ion-item ng-repeat = "excal in excals" href="#/line">
          		{{excal.list}}
          	</ion-item>
          </ion-list>

+ 14 - 0
yanshi/www/templates/show/line.html

xqd
@@ -0,0 +1,14 @@
+<ion-view>
+	<ion-header-bar align-title="left" class="bar-positive">
+	    <a class="button icon-left ion-chevron-left button-clear" ng-click=go('home')></a>
+	</ion-header-bar>
+	<ion-content>
+	主页
+	  <div class="button-bar" >
+		  <a class="button" style="font-size: 15px;" ng-click=go('line')>主页</a>
+		  <a class="button" style="font-size: 15px;" ng-click=go('tn')>TN曲线</a>
+		  <a class="button" style="font-size: 15px;" ng-click=go('zhou')>五轴图</a>
+		  <a class="button" style="font-size: 15px;" ng-click=go('strom')>效率云图</a>
+		</div>
+	</ion-content>
+</ion-view>

+ 14 - 0
yanshi/www/templates/show/strom.html

xqd
@@ -0,0 +1,14 @@
+<ion-view>
+	<ion-header-bar align-title="left" class="bar-positive">
+	    <a class="button icon-left ion-chevron-left button-clear" ng-click=go('home')></a>
+	</ion-header-bar>
+	<ion-content>
+	效率云图
+	  <div class="button-bar" >
+		  <a class="button" style="font-size: 15px;" ng-click=go('line')>主页</a>
+		  <a class="button" style="font-size: 15px;" ng-click=go('tn')>TN曲线</a>
+		  <a class="button" style="font-size: 15px;" ng-click=go('zhou')>五轴图</a>
+		  <a class="button" style="font-size: 15px;" ng-click=go('strom')>效率云图</a>
+		</div>
+	</ion-content>
+</ion-view>

+ 14 - 0
yanshi/www/templates/show/tn.html

xqd
@@ -0,0 +1,14 @@
+<ion-view>
+	<ion-header-bar align-title="left" class="bar-positive">
+	    <a class="button icon-left ion-chevron-left button-clear" ng-click=go('home')></a>
+	</ion-header-bar>
+	<ion-content>
+	TN曲线
+	  <div class="button-bar" >
+		  <a class="button" style="font-size: 15px;" ng-click=go('line')>主页</a>
+		  <a class="button" style="font-size: 15px;" ng-click=go('tn')>TN曲线</a>
+		  <a class="button" style="font-size: 15px;" ng-click=go('zhou')>五轴图</a>
+		  <a class="button" style="font-size: 15px;" ng-click=go('strom')>效率云图</a>
+		</div>
+	</ion-content>
+</ion-view>

+ 14 - 0
yanshi/www/templates/show/zhou.html

xqd
@@ -0,0 +1,14 @@
+<ion-view>
+	<ion-header-bar align-title="left" class="bar-positive">
+	    <a class="button icon-left ion-chevron-left button-clear" ng-click=go('home')></a>
+	</ion-header-bar>
+	<ion-content>
+	五轴图
+	  <div class="button-bar" >
+		  <a class="button" style="font-size: 15px;" ng-click=go('line')>主页</a>
+		  <a class="button" style="font-size: 15px;" ng-click=go('tn')>TN曲线</a>
+		  <a class="button" style="font-size: 15px;" ng-click=go('zhou')>五轴图</a>
+		  <a class="button" style="font-size: 15px;" ng-click=go('strom')>效率云图</a>
+		</div>
+	</ion-content>
+</ion-view>