yangc 8 жил өмнө
parent
commit
63337d2447

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

@@ -836,6 +836,12 @@ define(['app/app'], function (app) {
           $scope.setShowSimilarBrandList = function (flag) {
             $scope.showSimilarBrandList = flag;
           }
+
+          $scope.linkBoxIndex = -1;
+
+          $scope.setLinkBoxIndex = function (index) {
+            $scope.linkBoxIndex = index;
+          }
           
         }]);
 });

+ 7 - 0
src/main/webapp/resources/js/vendor/controllers/forstore/purchase_offer_ctrl.js

@@ -42,6 +42,7 @@ define(['app/app'], function(app) {
                 seekPurchase.getMyOfferPageInfo(param, function (data) {
                     params.total(data.totalElements);
                     $defer.resolve(data.content);
+                    $scope.seekListData = data.content;
                 }, function (response) {
                     toaster.pop('error', '获取求购列表失败');
                 });
@@ -152,6 +153,12 @@ define(['app/app'], function(app) {
             });
         }
 
+        $scope.linkBoxIndex = -1;
+
+        $scope.setLinkBoxIndex = function (index) {
+            $scope.linkBoxIndex = index;
+        }
+
     }]);
     app.register.controller('groundingSeekCtrl', ['$scope', 'toaster', 'seek', '$modalInstance', function ($scope, toaster, seek, $modalInstance) {
         $scope.seek = angular.copy(seek);

+ 7 - 0
src/main/webapp/resources/js/vendor/controllers/forstore/seek_purchase_ctrl.js

@@ -418,5 +418,12 @@ define(['app/app'], function (app) {
               $scope.inquiryItem.replies.splice(index, 1);
             }
           }
+
+          $scope.linkBoxIndex = -1;
+
+          $scope.setLinkBoxIndex = function (index) {
+            $scope.linkBoxIndex = index;
+          }
+
         }]);
 });

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

@@ -893,8 +893,8 @@
                             <div class="seek-list">
                                 <table>
                                     <tbody>
-                                    <tr ng-repeat="of in offer">
-                                        <td width="173" ng-bind="of.userName"></td>
+                                    <tr ng-repeat="of in offer track by $index">
+                                        <td width="173" ng-bind="of.vendName" title="{{of.vendName}}"></td>
                                         <td width="186" class="red-text" ng-bind="of.leadtime">4-6</td>
                                         <td width="186" class="seek-replies">
                                             <!--<span>{{of.currency + of.unitPrice | currencyStr}}</span>-->
@@ -911,7 +911,7 @@
                                         </td>
                                         <td width="195" ng-bind="of.produceDate || '-'"></td>
                                         <td width="221" class="operate">
-                                            <a>联系卖家<img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
+                                            <a ng-click="setLinkBoxIndex($index)">联系卖家<img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
 
                                             <img ng-if="of.agreed == 1" src="static/img/seekPurchase/recieved.png" alt="" class="ng-scope">
                                             <span ng-if="seek.agreed != 1" ng-click="adopt(of.id)">采纳报价</span>
@@ -1014,15 +1014,15 @@
             </div>
         </div>
     </div>
-    <div class="com-mall-del-box link-saler-box" style="display: none">
+    <div class="com-mall-del-box link-saler-box" ng-if="linkBoxIndex > -1">
         <div class="title">
-            <i></i>
+            <i ng-click="setLinkBoxIndex(-1)"></i>
         </div>
         <div class="content">
             <p><i class="fa fa-exclamation-circle"></i>抱歉,暂时无法与卖家在线沟通!</p>
-            <p>卖家联系电话:<span>13647096674</span></p>
+            <p>卖家联系电话:<span ng-bind="currentSeek.qutations[linkBoxIndex].userTel"></span></p>
             <div>
-                <a>我知道了</a>
+                <a ng-click="setLinkBoxIndex(-1)">我知道了</a>
             </div>
         </div>
     </div>

+ 41 - 0
src/main/webapp/resources/view/vendor/forstore/purchaseOffer.html

@@ -418,6 +418,35 @@
     .seek-purchase .BOM-header > div p {
         display: inline-block;
     }
+    .seek-purchase .link-saler-box {
+        width: 289px;
+        height: auto;
+        min-height: auto;
+        border-radius: 2px;
+    }
+    .seek-purchase .link-saler-box .title {
+        background-color: #4290f7;
+        height: 22px;
+        line-height: 22px;
+        margin-bottom: 20px;
+    }
+    .seek-purchase .link-saler-box .content p {
+        line-height: 20px;
+        padding-top: 0;
+    }
+    .seek-purchase .link-saler-box .content p i {
+        color: #4290f7;
+        margin-right: 4px;
+    }
+    .seek-purchase .link-saler-box .content p span {
+        color: #f62d37;
+    }
+    .seek-purchase .link-saler-box .content div a {
+        width: 78px;
+        background: #4290f7;
+        margin: 18px 0 13px 0;
+        border-radius: 2px;
+    }
 </style>
 <div class="user_right fr seek-purchase">
     <!--求购询价-->
@@ -569,4 +598,16 @@
             </tbody>
         </table>
     </div>
+    <div class="com-mall-del-box link-saler-box" ng-if="linkBoxIndex > -1">
+        <div class="title">
+            <i ng-click="setLinkBoxIndex(-1)"></i>
+        </div>
+        <div class="content">
+            <p><i class="fa fa-exclamation-circle"></i>抱歉,暂时无法与买家在线沟通!</p>
+            <p>买家联系电话:<span ng-bind="seekListData[linkBoxIndex].userTel"></span></p>
+            <div>
+                <a ng-click="setLinkBoxIndex(-1)">我知道了</a>
+            </div>
+        </div>
+    </div>
 </div>

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

@@ -493,6 +493,35 @@
         margin-left: 15px;
         background: #acabab;
     }
+    .seek-purchase .link-saler-box {
+        width: 289px;
+        height: auto;
+        min-height: auto;
+        border-radius: 2px;
+    }
+    .seek-purchase .link-saler-box .title {
+        background-color: #4290f7;
+        height: 22px;
+        line-height: 22px;
+        margin-bottom: 20px;
+    }
+    .seek-purchase .link-saler-box .content p {
+        line-height: 20px;
+        padding-top: 0;
+    }
+    .seek-purchase .link-saler-box .content p i {
+        color: #4290f7;
+        margin-right: 4px;
+    }
+    .seek-purchase .link-saler-box .content p span {
+        color: #f62d37;
+    }
+    .seek-purchase .link-saler-box .content div a {
+        width: 78px;
+        background: #4290f7;
+        margin: 18px 0 13px 0;
+        border-radius: 2px;
+    }
 </style>
 <div class="user_right fr seek-purchase">
     <!--求购询价-->
@@ -613,7 +642,7 @@
                     <td class="left-time" ng-if="seek.remainingTime <= 0"><span>已截止</span></td>
                     <td class="left-time" ng-if="seek.remainingTime == null"><span style="color: red;">-</span></td>
                     <td class="operate">
-                        <a>联系买家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
+                        <a ng-click="setLinkBoxIndex($index)">联系买家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
                         <div ng-if="seek.quoted != 1 && seek.remainingTime > 0" ng-click="setSeekActive(seek, true, index)">我要报价</div>
                         <span ng-if="seek.quoted == 1">已报价 <img src="static/img/seekPurchase/check.png" alt=""></span>
                         <!--<img ng-if="seek.quoted == 1" src="static/img/seekPurchase/recieved.png" alt="">-->
@@ -718,4 +747,16 @@
             <span ng-click="setSeekActive(seek, false, index)">取消</span>
         </div>
     </div>
+    <div class="com-mall-del-box link-saler-box" ng-if="linkBoxIndex > -1">
+        <div class="title">
+            <i ng-click="setLinkBoxIndex(-1)"></i>
+        </div>
+        <div class="content">
+            <p><i class="fa fa-exclamation-circle"></i>抱歉,暂时无法与买家在线沟通!</p>
+            <p>买家联系电话:<span ng-bind="seekListData[linkBoxIndex].userTel"></span></p>
+            <div>
+                <a ng-click="setLinkBoxIndex(-1)">我知道了</a>
+            </div>
+        </div>
+    </div>
 </div>