Просмотр исходного кода

feat: 新增中标企业搜索

zhangyuhan 4 лет назад
Родитель
Сommit
dda9ff6648

+ 6 - 4
src/jfw/modules/app/src/web/staticres/jyapp/js/searchindex.js

@@ -880,8 +880,10 @@ var SuperSearch = {
 			}
 		}
 		SuperSearch.reqParam["pageNum"] = parseInt(pgNum);
-		SuperSearch.dropload = $('#supersearchPage #wrapper').dropload({
-			scrollArea: $("#supersearchPage .app-layout-content-b"),
+    var isMaxHeight = $(".app-layout-content-b").height()  - $("#v-search-group .van-tabs.van-tabs--line").height()
+    $("#supersearchPage .app-layout-content-b #wrapper").css({height: isMaxHeight, 'overflow-y': 'auto'})
+    SuperSearch.dropload = $('#supersearchPage #wrapper').dropload({
+			scrollArea: $("#supersearchPage .app-layout-content-b #wrapper"),
 			loadDownFn: function(me){
 				if(SuperSearch.dropload == null){
 					SuperSearch.dropload = me;
@@ -2437,10 +2439,10 @@ var SuperSearch = {
 	},
 	showToOrder:function(flag){
 		if(flag&&!SuperSearch.dyDiv){
-			$("#wrapper").css("margin-bottom","91px");
+			$("#wrapper").css("padding-bottom","91px");
 			$("#supersearchPage .resbm").removeClass("hidden");
 		}else{
-			$("#wrapper").css("margin-bottom","52px");
+			$("#wrapper").css("padding-bottom","52px");
 			$("#supersearchPage .resbm").addClass("hidden");
 		}
 	},

+ 3 - 0
src/jfw/modules/app/src/web/templates/weixin/search/mainSearch.html

@@ -136,6 +136,9 @@
         background-position: center;
         transition: all 0.2s;
     }
+    .app-layout-content-b {
+        overflow: hidden !important;
+    }
 
 </style>
 <div id="jyKeepComponent">

+ 13 - 3
src/jfw/modules/app/src/web/templates/weixin/search/tabSearch.html

@@ -656,6 +656,16 @@
                             </div>
                             <area-component ref="areaComponent" @select="updateScrollTop" v-show="activeTabIndex === 4"></area-component>
                             <money-component extra="万元" :tags="moneyTags" ref="moneyComponent"  v-show="activeTabIndex === 2"></money-component>
+                            <div v-show="activeTabIndex === 6">
+                                <ul class="ent-search-list-box" id="select-win-list"></ul>
+                                <form data-name="input-clear-box" class="search-win-box" action="javascript:return true">
+                                    <input type="search" id="search-win-input" placeholder="输入中标企业名称">
+                                    <div class="padding-icon">
+                                        <span class="j-icon base-icon icon-delete-gray"></span>
+                                    </div>
+                                </form>
+                                <ul class="ent-search-list-box"  id="search-win-list"></ul>
+                            </div>
                         </div>
                         <div class="pop-bottom" v-show="!isWaitBuy && isMoreSelect">
                             <van-button type="default" @click="resetCondition">重置</van-button>
@@ -935,14 +945,14 @@
                     </div>
                 </div>
                 <div class="wait-open-box hidden" data-wait-open="win">
-                    <ul class="ent-search-list-box" id="select-win-list"></ul>
+                    <ul class="ent-search-list-box" id="old-select-win-list"></ul>
                     <form data-name="input-clear-box" class="search-win-box" action="javascript:return true">
-                        <input type="search" id="search-win-input" placeholder="输入中标企业名称">
+                        <input type="search" id="old-search-win-input" placeholder="输入中标企业名称">
                         <div class="padding-icon">
                             <span class="j-icon base-icon icon-delete-gray"></span>
                         </div>
                     </form>
-                    <ul class="ent-search-list-box"  id="search-win-list"></ul>
+                    <ul class="ent-search-list-box"  id="old-search-win-list"></ul>
                 </div>
                 <div class="wait-open-box hidden" data-wait-open="buyer">
                     <div class="choose_industry">

+ 2 - 1
src/web/staticres/common-module/ent-search/ent-search-template.css

@@ -291,6 +291,7 @@
 
 .v-ent-search-group .jy-diy-pop > .van-overlay {
   position: absolute;
+  z-index: 2020;
 }
 
 .v-ent-search-group .jy-diy-pop > .van-popup {
@@ -299,7 +300,7 @@
   left: 0;
   width: 100%;
   background-color: #fff;
-  z-index: 2;
+  z-index: 2021;
 }
 
 .v-ent-search-group .jy-diy-pop .popup-content {

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
src/web/staticres/common-module/ent-search/ent-search-template.css.map


+ 35 - 11
src/web/staticres/common-module/ent-search/ent-search-template.js

@@ -524,7 +524,7 @@ var vMainSearchComponent = new Vue({
         finished: false
       },
       activeTabIndex: 0,
-      beforeTabIndex: 0,
+      beforeTabIndex: 1,
       entTabs: [
         {
           title: ''
@@ -566,24 +566,24 @@ var vMainSearchComponent = new Vue({
           {
             title: '有联系方式',
             checked: true,
-            key: ''
+            key: 'y'
           },
           {
             title: '无联系方式',
             checked: false,
-            key: '1'
+            key: 'n'
           }
         ],
         9: [
           {
             title: '有联系方式',
             checked: true,
-            key: ''
+            key: 'y'
           },
           {
             title: '无联系方式',
             checked: false,
-            key: '1'
+            key: 'n'
           }
         ]
       },
@@ -597,6 +597,8 @@ var vMainSearchComponent = new Vue({
         industry: '',
         buyerclass: '',
         winner: '',
+        winnertel: '',
+        buyertel: '',
       },
       industryComponentKey: new Date().getTime(),
       dateComponentKey: new Date().getTime(),
@@ -631,7 +633,7 @@ var vMainSearchComponent = new Vue({
     },
     changePower (type, member) {
       this.entTabs[7].disabled = type
-      // this.entTabs[6].hide = !member
+      this.entTabs[6].hide = !member
     },
     getMoreListToStr (key) {
       if (typeof this.conditionMap[key] !== "undefined" && this.conditionMap[key].length) {
@@ -727,6 +729,21 @@ var vMainSearchComponent = new Vue({
           }
           break
         }
+        case 6: {
+          if (type) {
+            tempParams = SuperSearch.filterWin ? SuperSearch.filterWin.select : []
+          } else {
+            SuperSearch.filterWin = {}
+            // 清除中标企业
+            $("#supersearchPage #select-win-list").html('')
+            $("#supersearchPage #search-win-list").html('')
+            $("#supersearchPage #search-win-input").val('')
+          }
+          if (tempParams) {
+            this.conditionStrMap.winner = tempParams.join(',')
+          }
+          break
+        }
         case 7: {
           var tempParams = {}
           if (type) {
@@ -743,6 +760,14 @@ var vMainSearchComponent = new Vue({
           }
           break
         }
+        case 8: {
+          this.conditionStrMap.winnertel = this.getMoreListToStr(8)
+          break
+        }
+        case 9: {
+          this.conditionStrMap.buyertel = this.getMoreListToStr(9)
+          break
+        }
       }
     },
     goUpBuyPage () {
@@ -858,21 +883,21 @@ var vMainSearchComponent = new Vue({
     },
     removeFixedScroll () {
       $("#selLable").show()
-      $(".app-layout-content-b").scrollTop(0)
+      // $(".app-layout-content-b").scrollTop(0)
       $(".app-layout-content-b").removeClass('ent-stop-scroll')
       $("#v-search-group .ent-search-list").css({height: 'unset'})
       $("#v-search-group .ent-search-pop").css({height: 'unset'})
     },
     fixedScroll () {
       $("#selLable").hide()
-      $(".app-layout-content-b").scrollTop(0)
+      // $(".app-layout-content-b").scrollTop(0)
       $(".app-layout-content-b").addClass('ent-stop-scroll')
       var isMaxHeight = $(".app-layout-content-b").height()  - $("#v-search-group .van-tabs.van-tabs--line").height()
       $("#v-search-group .ent-search-list").css({height: isMaxHeight})
       $("#v-search-group .ent-search-pop").css({height: isMaxHeight})
     },
     updateScrollTop () {
-      $(".app-layout-content-b").scrollTop(0)
+      // $(".app-layout-content-b").scrollTop(0)
     },
     selectEnt (ent) {
       console.log(ent)
@@ -931,8 +956,7 @@ var vMainSearchComponent = new Vue({
       this.checkNowPower()
       this.showEntSearch = type
       if (type) {
-        this.beforeTabIndex = 1
-        this.activeTabIndex = 1
+        this.activeTabIndex = Number(this.beforeTabIndex)
         this.togglePop(true)
         this.doQueryList()
       }

+ 2 - 1
src/web/staticres/common-module/ent-search/ent-search-template.scss

@@ -255,6 +255,7 @@
     height: unset;
     > .van-overlay {
       position: absolute;
+      z-index: 2020;
     }
     > .van-popup {
       position: absolute;
@@ -262,7 +263,7 @@
       left: 0;
       width: 100%;
       background-color: #fff;
-      z-index: 2;
+      z-index: 2021;
     }
     .popup-content {
       max-height: 40vh;

+ 9 - 7
src/web/staticres/js/wxSupersearch.js

@@ -853,9 +853,11 @@ var SuperSearch = {
 			}
 		}
 		SuperSearch.reqParam["pageNum"] = parseInt(pgNum);
-		SuperSearch.dropload = $('#supersearchPage #wrapper').dropload({
-			scrollArea: $("#supersearchPage .app-layout-content-b"),
-			loadDownFn: function(me){
+    var isMaxHeight = $(".app-layout-content-b").height()  - $("#v-search-group .van-tabs.van-tabs--line").height()
+    $("#supersearchPage .app-layout-content-b #wrapper").css({height: isMaxHeight, 'overflow-y': 'auto'})
+    SuperSearch.dropload = $('#supersearchPage #wrapper').dropload({
+      scrollArea: $("#supersearchPage .app-layout-content-b #wrapper"),
+      loadDownFn: function(me){
 				if(SuperSearch.dropload == null){
 					SuperSearch.dropload = me;
 				}
@@ -2264,11 +2266,11 @@ var SuperSearch = {
 	},
 	showToOrder:function(flag){
 		if(flag){
-			$("#wrapper").css("margin-bottom","91px");
-			$("#supersearchPage .resbm").removeClass("hidden");
+      $("#wrapper").css("padding-bottom","91px");
+      $("#supersearchPage .resbm").removeClass("hidden");
 		}else{
-			$("#wrapper").css("margin-bottom","52px");
-			$("#supersearchPage .resbm").addClass("hidden");
+      $("#wrapper").css("padding-bottom","52px");
+      $("#supersearchPage .resbm").addClass("hidden");
 		}
 	},
 	getHomeList:function(locationCity,nReq){

+ 4 - 0
src/web/templates/weixin/search/mainSearch.html

@@ -477,6 +477,10 @@
         .icon-xuanzhong:before {
             content: "\BB";
         }
+        .app-layout-content-b {
+            overflow: hidden !important;
+        }
+
 
     </style>
 </head>

+ 13 - 3
src/web/templates/weixin/search/tabSearch.html

@@ -664,6 +664,16 @@
                             </div>
                             <area-component ref="areaComponent" @select="updateScrollTop" v-show="activeTabIndex === 4"></area-component>
                             <money-component extra="万元" :tags="moneyTags" ref="moneyComponent"  v-show="activeTabIndex === 2"></money-component>
+                            <div v-show="activeTabIndex === 6">
+                                <ul class="ent-search-list-box" id="select-win-list"></ul>
+                                <form data-name="input-clear-box" class="search-win-box" action="javascript:return true">
+                                    <input type="search" id="search-win-input" placeholder="输入中标企业名称">
+                                    <div class="padding-icon">
+                                        <span class="j-icon base-icon icon-delete-gray"></span>
+                                    </div>
+                                </form>
+                                <ul class="ent-search-list-box"  id="search-win-list"></ul>
+                            </div>
                         </div>
                         <div class="pop-bottom" v-show="!isWaitBuy && isMoreSelect">
                             <van-button type="default" @click="resetCondition">重置</van-button>
@@ -943,14 +953,14 @@
                     </div>
                 </div>
                 <div class="wait-open-box hidden" data-wait-open="win">
-                    <ul class="ent-search-list-box" id="select-win-list"></ul>
+                    <ul class="ent-search-list-box" id="old-select-win-list"></ul>
                     <form data-name="input-clear-box" class="search-win-box" action="javascript:return true">
-                        <input type="search" id="search-win-input" placeholder="输入中标企业名称">
+                        <input type="search" id="old-search-win-input" placeholder="输入中标企业名称">
                         <div class="padding-icon">
                             <span class="j-icon base-icon icon-delete-gray"></span>
                         </div>
                     </form>
-                    <ul class="ent-search-list-box"  id="search-win-list"></ul>
+                    <ul class="ent-search-list-box"  id="old-search-win-list"></ul>
                 </div>
                 <div class="wait-open-box hidden" data-wait-open="buyer">
                     <div class="choose_industry">

Некоторые файлы не были показаны из-за большого количества измененных файлов