Преглед изворни кода

买家中心评价相关页面创建

yangc пре 8 година
родитељ
комит
fc5e37637e

+ 18 - 0
src/main/webapp/resources/js/usercenter/app.js

@@ -377,6 +377,24 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'commo
 			templateUrl : 'static/view/usercenter/forstore/shipping_address_edit.html',
 			controller : 'ShippingAddressEditCtrl',
 			controllerUrl : 'app/controllers/forstore/shipping_address_edit_ctrl'
+		})).state('firstRate', angularAMD.route({
+			// 初次评价
+			url : '/rate/firstRate',
+			templateUrl : 'static/view/usercenter/forstore/first_rate.html',
+			controller : 'firstRateCtrl',
+			controllerUrl : 'app/controllers/forstore/first_rate_ctrl'
+		})).state('addRate', angularAMD.route({
+			// 追加评价
+			url : '/rate/addRate',
+			templateUrl : 'static/view/usercenter/forstore/add_rate.html',
+			controller : 'addRateCtrl',
+			controllerUrl : 'app/controllers/forstore/add_rate_ctrl'
+		})).state('showRate', angularAMD.route({
+			// 查看评价
+			url : '/rate/showRate',
+			templateUrl : 'static/view/usercenter/forstore/show_rate.html',
+			controller : 'showRateCtrl',
+			controllerUrl : 'app/controllers/forstore/show_rate_ctrl'
 		}));
 	}]);
 

+ 6 - 0
src/main/webapp/resources/js/usercenter/controllers/forstore/add_rate_ctrl.js

@@ -0,0 +1,6 @@
+define(['app/app'], function(app) {
+    app.register.controller('addRateCtrl', ['$scope', '$rootScope', '$stateParams', function ($scope, $rootScope, $stateParams) {
+
+        $scope.text = 'add rate page';
+    }]);
+});

+ 5 - 0
src/main/webapp/resources/js/usercenter/controllers/forstore/first_rate_ctrl.js

@@ -0,0 +1,5 @@
+define(['app/app'], function(app) {
+    app.register.controller('firstRateCtrl', ['$scope', '$rootScope', '$stateParams', function ($scope, $rootScope, $stateParams) {
+        $scope.text = 'first rate page';
+    }]);
+});

+ 5 - 0
src/main/webapp/resources/js/usercenter/controllers/forstore/show_rate_ctrl.js

@@ -0,0 +1,5 @@
+define(['app/app'], function(app) {
+    app.register.controller('showRateCtrl', ['$scope', '$rootScope', '$stateParams', function ($scope, $rootScope, $stateParams) {
+        $scope.text = 'show rate page';
+    }]);
+});

+ 7 - 0
src/main/webapp/resources/view/usercenter/forstore/add_rate.html

@@ -0,0 +1,7 @@
+<style>
+
+</style>
+
+<div>
+    <h1>{{text}}</h1>
+</div>

+ 7 - 1
src/main/webapp/resources/view/usercenter/forstore/buyer_order.html

@@ -741,8 +741,14 @@
 						</span>
 						<span class="oder_deal" ng-class="{'order-border-bottom-solid' : $index == order.orderDetails.length -1 || $index==2}">
                             <div ng-if="$index == 0">
-								<a class="operate-height" href="user#/order/pay/{{order.orderid | EncryptionFilter}}" style="display: block;">
+								<a class="operate-height" href="user#/rate/showRate" style="display: block;">
+                                  <em class="order-operation">已评价</em>
+                              	</a>
+								<a class="operate-height" href="user#/rate/addRate" style="display: block;">
                                   <em class="order-operation">追加评价</em>
+                              	</a>
+								<a class="operate-height" href="user#/rate/firstRate" style="display: block;">
+                                  <em class="order-operation">评价</em>
                               	</a>
                               <a class="operate-height" href="user#/order/pay/{{order.orderid | EncryptionFilter}}" ng-if="(order.status == 503 || order.status == 501) && order.auditPayFailReason == null" style="display: block;">
                                   <em class="order-operation">立即付款</em>

+ 7 - 0
src/main/webapp/resources/view/usercenter/forstore/first_rate.html

@@ -0,0 +1,7 @@
+<style>
+
+</style>
+
+<div>
+    <h1>{{text}}</h1>
+</div>

+ 7 - 0
src/main/webapp/resources/view/usercenter/forstore/show_rate.html

@@ -0,0 +1,7 @@
+<style>
+
+</style>
+
+<div>
+    <h1>{{text}}</h1>
+</div>