Browse Source

修改买家求购联系逻辑

yangc 7 years ago
parent
commit
9a7e6260c0
1 changed files with 30 additions and 16 deletions
  1. 30 16
      src/main/webapp/resources/view/usercenter/forstore/seekPurchase.html

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

@@ -313,11 +313,11 @@
         top: 12px;
         right: 10px;
     }
-    .seek-purchase .seek-purchase-content >table >tbody tr.expand-row table tbody tr td.operate a {
+    .seek-purchase .seek-purchase-content >table >tbody tr.expand-row table tbody tr td.operate > div > a {
         color: #5078cb;
         font-size: 12px;
     }
-    .seek-purchase .seek-purchase-content >table >tbody tr.expand-row table tbody tr td.operate span {
+    .seek-purchase .seek-purchase-content >table >tbody tr.expand-row table tbody tr td.operate > span {
         display: inline-block;
         width: 64px;
         height: 24px;
@@ -880,7 +880,7 @@
                                         </td>
                                         <td width="186" class="operate">
                                             <div style="display: inline-block" ng-controller="ChatContactCtrl as chat">
-                                                <a href="javascript:void(0)" ng-click="chat.contactWithOther('12345', go.enUU, chat.UserType.ENTERPRISE)">联系卖家<img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
+                                                <a href="javascript:void(0)" ng-click="chat.contactWithOther(null, go.enUU, chat.UserType.ENTERPRISE)">联系卖家<img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
                                                 <div class="com-mall-del-box link-saler-box" ng-if="showLinkBox">
                                                     <div class="title">
                                                         <i ng-click="setShowLinkBox(false)"></i>
@@ -942,7 +942,21 @@
                                         </td>
                                         <!--<td width="195" ng-bind="of.produceDate || '-'"></td>-->
                                         <td width="221" class="operate">
-                                            <a ng-click="setLinkBoxIndex($index)">联系卖家<img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
+                                            <div style="display: inline-block" ng-controller="ChatContactCtrl as chat">
+                                                <a href="javascript:void(0)" ng-click="chat.contactWithOther(null, currentSeek.qutations[$index].enterprise.uu, chat.UserType.ENTERPRISE)">联系卖家<img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
+                                                <div class="com-mall-del-box link-saler-box" ng-if="showLinkBox">
+                                                    <div class="title">
+                                                        <i ng-click="setShowLinkBox(false)"></i>
+                                                    </div>
+                                                    <div class="content">
+                                                        <p><i class="fa fa-exclamation-circle"></i>抱歉,暂时无法与卖家在线沟通!</p>
+                                                        <p>卖家联系电话:<span ng-bind="phone"></span></p>
+                                                        <div>
+                                                            <a ng-click="setShowLinkBox(false)">我知道了</a>
+                                                        </div>
+                                                    </div>
+                                                </div>
+                                            </div>
 
                                             <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>
@@ -1061,16 +1075,16 @@
             </div>
         </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="currentSeek.qutations[linkBoxIndex].userTel || '-'"></span></p>
-            <div>
-                <a ng-click="setLinkBoxIndex(-1)">我知道了</a>
-            </div>
-        </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="currentSeek.qutations[linkBoxIndex].userTel || '-'"></span></p>-->
+            <!--<div>-->
+                <!--<a ng-click="setLinkBoxIndex(-1)">我知道了</a>-->
+            <!--</div>-->
+        <!--</div>-->
+    <!--</div>-->
 </div>