Browse Source

评价:批量回复bug修改

wangdy 8 years ago
parent
commit
b89fbf1f3c

+ 6 - 2
src/main/webapp/resources/js/vendor/controllers/forstore/show_rate_ctrl.js

@@ -211,11 +211,15 @@ define(['app/app'], function(app) {
             } else if ($scope.rateType == "allRate") {
                 if ($scope.order.status == 523){
                     angular.forEach($scope.buyerRateGoods,function (item,index) {
-                        item.returnMeg = param.returnMeg;
+                        if (item.buyerRate == '此用户没有填写评价!'){
+                            if (!item.returnMeg || item.returnMeg =='' ){
+                                item.returnMeg = param.returnMeg;
+                            }
+                        }
                     })
                 }else if ($scope.order.status == 522){
                     angular.forEach($scope.buyerRateGoods,function (item,index) {
-                        if (item.buyerAfterRate){
+                        if (item.buyerAfterRate && !item.afterReturnMeg){
                             item.afterReturnMeg = param.returnMeg;
                         }
                     })

+ 1 - 1
src/main/webapp/resources/view/vendor/forstore/showRate.html

@@ -426,7 +426,7 @@
                         </div>
                         <div class="comment">
                             <span ng-bind="detail.buyerRate"></span></div>
-                        <span class="batch-reply single-reply" ng-show="detail.showRateReply && !detail.returnMeg" ng-click="getModal(detail, 'firstRate')">回复</span>
+                        <span class="batch-reply single-reply" ng-if="detail.buyerRate != '此用户没有填写评价!'" ng-show="detail.showRateReply && !detail.returnMeg" ng-click="getModal(detail, 'firstRate')">回复</span>
                     </div>
                     <div class="buyer-first-rate02 isRight" ng-mouseenter="detail.showAddRateReply = true" ng-mouseleave="detail.showAddRateReply = false" ng-if="detail.buyerAfterRate">
                         <div>