Browse Source

修改查看物流提示语

hulh 7 years ago
parent
commit
f30d5ec8ba

+ 2 - 0
src/main/webapp/resources/js/usercenter/controllers/forstore/query_logistics_ctrl.js

@@ -49,6 +49,8 @@ define(['app/app', 'calendar'], function(app) {
                             $scope.logisticsInfo = eval ("(" + response.traces + ")");
                             $scope.logisticsInfo = eval ("(" + response.traces + ")");
                             statusOfLogistics($scope.logisticsInfo[$scope.logisticsInfo.length - 1].AcceptStation);
                             statusOfLogistics($scope.logisticsInfo[$scope.logisticsInfo.length - 1].AcceptStation);
                             $scope.hasInfo = true;
                             $scope.hasInfo = true;
+                        } else {
+                            $scope.logisticsInfo = [];
                         }
                         }
                     }, function(){
                     }, function(){
                         $scope.logisticsInfo = [];
                         $scope.logisticsInfo = [];

+ 2 - 0
src/main/webapp/resources/js/vendor/controllers/forstore/query_logistics_ctrl.js

@@ -48,6 +48,8 @@ define(['app/app', 'calendar'], function(app) {
                                 $scope.logisticsInfo = eval ("(" + response.traces + ")");
                                 $scope.logisticsInfo = eval ("(" + response.traces + ")");
                                 statusOfLogistics($scope.logisticsInfo[$scope.logisticsInfo.length - 1].AcceptStation);
                                 statusOfLogistics($scope.logisticsInfo[$scope.logisticsInfo.length - 1].AcceptStation);
                                 $scope.hasInfo = true;
                                 $scope.hasInfo = true;
+                            } else {
+                                $scope.logisticsInfo = [];
                             }
                             }
                         }, function(){
                         }, function(){
                             $scope.logisticsInfo = [];
                             $scope.logisticsInfo = [];

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

@@ -266,7 +266,8 @@
                                     <img src="static/img/all/empty-cart.png">
                                     <img src="static/img/all/empty-cart.png">
                                 </p>
                                 </p>
                                 <div class="empty-info">
                                 <div class="empty-info">
-                                    <p class="grey"> 暂时获取不到订单的物流信息 </p>
+                                    <p class="grey" ng-if="order.deliverytype == 1301">暂时获取不到物流信息,请到快递公司官网进行查询</p>
+                                    <p class="grey" ng-if="order.deliverytype != 1301">暂无物流信息,请<a style="color: #5078cb;" ng-controller="ChatContactCtrl as chat" ng-click="chat.contactWithOther(order.sellPhone, order.sellerenuu, chat.UserType.STORE)">联系卖家</a>咨询</p>
                                     <!--<a href="user#/order"><i class="fa fa-mail-reply fa-xs"></i>返回上一页</a>-->
                                     <!--<a href="user#/order"><i class="fa fa-mail-reply fa-xs"></i>返回上一页</a>-->
                                 </div>
                                 </div>
                             </div>
                             </div>

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

@@ -270,7 +270,8 @@
                                         <img src="static/img/all/empty-cart.png">
                                         <img src="static/img/all/empty-cart.png">
                                     </p>
                                     </p>
                                     <div class="empty-info">
                                     <div class="empty-info">
-                                        <p class="grey"> 暂时获取不到订单的的物流信息 </p>
+                                        <p class="grey" ng-if="purchase.sendType == 1301">暂时获取不到物流信息,请到快递公司官网进行查询</p>
+                                        <p class="grey" ng-if="purchase.sendType != 1301">暂无物流信息</p>
                                         <!--<a href="javascript:history.go(-1)"><i class="fa fa-mail-reply fa-xs"></i>返回上一页</a>-->
                                         <!--<a href="javascript:history.go(-1)"><i class="fa fa-mail-reply fa-xs"></i>返回上一页</a>-->
                                     </div>
                                     </div>
                                 </div>
                                 </div>