Browse Source

修复买家订单详情页订单备注显示错误

hulh 8 years ago
parent
commit
b954887138

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

@@ -185,6 +185,11 @@ define(['app/app'], function(app) {
 				// 查询店铺信息
 				$scope.findStoreInfoByStoreUuid($scope.order.storeid);
 
+				//订单备注
+				if ($scope.order.orderRemark){
+					$scope.remarkList = angular.fromJson($scope.order.orderRemark);
+				}
+
 				//发票信息
 				$scope.order.invoiceInfo = angular.fromJson($scope.order.invoiceAddress);
 

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

@@ -355,7 +355,7 @@
 					<dd class="oder-remark" ng-class="{'length3': order.orderDetails.length > 3}">
 						<span style="width: 100%;">
 							<em>订单备注:</em>
-							<i class="fl" ng-bind="order.orderRemark || '无'">用便宜的物流最好!</i>
+							<i class="fl" ng-bind="remarkList[order.storeid] || '无'">用便宜的物流最好!</i>
 							<!--<input type="text"  class="form-control" placeholder="请填写订单备注" ng-model="order.orderRemark"/>-->
 						</span>
 					</dd>