Browse Source

在售产品

yangc 8 years ago
parent
commit
759c655dbc

+ 2 - 1
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_onSaleCtrl.js

@@ -355,7 +355,8 @@ define([ 'app/app' ], function(app) {
         };
 
         // 单选
-        $scope.chooseOne = function (goods) {
+        $scope.chooseOne = function (goods, $event) {
+            $event.stopPropagation();
             if (typeof goods.isChoosed == 'undefined' || !goods.isChoosed) {
                 goods.isChoosed = true;
             } else {

+ 48 - 3
src/main/webapp/resources/view/vendor/forstore/vendor_onSale.html

@@ -801,6 +801,33 @@
     .search-check .check > .operate-btn.more-operate .expander span:hover {
         color: #5078cb;
     }
+    .wanted_list01 .tab table > tbody > tr.batch-tr {
+        height: 40px;
+        text-align: center;
+    }
+    .wanted_list01 .tab table > tbody > tr.batch-tr td {
+        border-bottom: none;
+    }
+    .wanted_list01 .tab table > tbody > tr.batch-tr.active {
+        position: fixed;
+        bottom: 0;
+        z-index: 2000;
+    }
+    .wanted_list01 .tab table > tbody > tr.batch-tr.active td {
+        width: 1029px;
+        border-top: 0;
+    }
+    .wanted_list01 .tab table > tbody > tr.batch-tr td {
+        padding: 0;
+        border-top: #dff3fd 1px solid;
+    }
+    .wanted_list01 .tab table>tbody>tr>td .batch-line {
+        width: 100%;
+        height: 40px;
+        background: #dff3fd;
+        line-height: 40px;
+        text-align: center;
+    }
 </style>
 <div class="user_right fr">
     <!--货品管理-->
@@ -928,7 +955,7 @@
                     <tr class="edit-form" ng-if="!commodity.edit">
                         <td class="middle padding0 check-input">
                             <!-- <span><input type="checkbox" id="{{$index+1}}"/><label for="{{$index+1}}"></label><br/></span>-->
-                            <span><input type="checkbox" ng-checked="commodity.isChoosed"  ng-click="chooseOne(commodity)" id="{{$index+1}}"/><label for="{{$index+1}}"></label></span>
+                            <span><input type="checkbox" ng-checked="commodity.isChoosed"  ng-click="chooseOne(commodity, $event)" id="{{$index+1}}"/><label for="{{$index+1}}"></label></span>
                             <!--&lt;!&ndash;非标产品标志&ndash;&gt;-->
                             <!--<img ng-if="!commodity.uuid" src="static/img/store/common/nonstandard.png" alt="" class="standard"/>-->
                             <!--&lt;!&ndash;标产品标志&ndash;&gt;-->
@@ -1288,7 +1315,7 @@
                     </tbody>
                     <tbody>
                     <tr class="no-hover batch-tr" ng-if="(chooseAll || chooseAllPage) && currenctGoods.length != 0">
-                        <td colspan="7">
+                        <td colspan="9">
                             <div class="batch-line" ng-if="chooseAll && !chooseAllPage">
                                 已选中当前页
                                 <em class="red" ng-bind="goodsAll.numberOfElements"></em>个产品,
@@ -1381,4 +1408,22 @@
         position: relative;
         top: 7px;
     }
-</style>
+</style>
+<script>
+    $(function(){
+        $(document).on('click', function () {
+            if ($(document).scrollTop() + $(window).height() < $('.record-line').offset().top + $('.record-line').height()) {
+                $('.wanted_list01 .tab table>tbody>tr.batch-tr').addClass('active')
+            } else {
+                $('.wanted_list01 .tab table>tbody>tr.batch-tr').removeClass('active')
+            }
+        })
+        $(window).bind("scroll",function() {
+            if ($(document).scrollTop() + $(window).height() < $('.record-line').offset().top + $('.record-line').height()) {
+                $('.wanted_list01 .tab table>tbody>tr.batch-tr').addClass('active')
+            } else {
+                $('.wanted_list01 .tab table>tbody>tr.batch-tr').removeClass('active')
+            }
+        });
+    })
+</script>