浏览代码

feat: 调整采购单位搜索页面

zhangyuhan 3 年之前
父节点
当前提交
a04c649449

+ 1 - 1
src/web/staticres/js/biddingSearch.js

@@ -131,7 +131,7 @@ $(function() {
         if (goTemplateData.inIframe) {
           window.$BRACE.methods.open({
             route: {
-              link: '/jylab/supsearch/index.html'
+              link: '/jylab/supsearch/proposedProject.html'
             }
           })
         } else {

+ 38 - 30
src/web/staticres/js/pur-search-index-pc.js

@@ -235,7 +235,15 @@ var vm = new Vue({
             }
         },
         yeFan() {
-            location.href = '/jylab/purScopebusniess/index.html'
+          if (goTemplateData.inIframe) {
+            window.$BRACE.methods.open({
+              route: {
+                link: '/jylab/purScopebusniess/index.html'
+              }
+            })
+          } else {
+            window.location.href="/jylab/purScopebusniess/index.html"
+          }
         },
         // 整理数据列表
         initIndustryMap () {
@@ -250,7 +258,7 @@ var vm = new Vue({
                 level1.name = key
                 level1.level = 1
                 level1.id = `lv1-${getRandomString(8).toLowerCase()}`
-        
+
                 const level2Arr = []
                 this.industryListMapExp[key].forEach(item => {
                     const level2 = JSON.parse(JSON.stringify(this.industryExp))
@@ -259,11 +267,11 @@ var vm = new Vue({
                     level2.id = `lv2-${getRandomString(8).toLowerCase()}`
                     level2Arr.push(level2)
                 })
-        
+
                 level1.children = level2Arr
                 industryListMap.push(level1)
             }
-    
+
             this.industryListMap = industryListMap
             const tempArr = []
             this.industryListMap.forEach(v => {
@@ -288,7 +296,7 @@ var vm = new Vue({
             }
             case 1: {
               item.selected = !item.selected
-    
+
               this.industryListMap[0].selected = false
               // 二级子按钮状态跟随一级按钮
               item.children.forEach(level2 => {
@@ -298,7 +306,7 @@ var vm = new Vue({
             }
             case 2: {
               item.selected = !item.selected
-    
+
               // 找到当前点击的父级元素
               this.industryListMap.forEach(level1 => {
                 const selectedStateArr = []
@@ -313,7 +321,7 @@ var vm = new Vue({
                   }
                 }
               })
-    
+
               this.industryListMap[0].selected = false
               break
             }
@@ -321,14 +329,14 @@ var vm = new Vue({
               console.log('未知level')
             }
           }
-    
+
           if (item.level !== 0) {
             const allSelected = this.checkAllSelectedState()
             if (allSelected.allSelected || allSelected.allNotSelected) {
               this.setIndustryState()
             }
           }
-    
+
           if (this.selectorType === 'line') {
             this.onChange()
           }
@@ -341,7 +349,7 @@ var vm = new Vue({
           const level1StateArr = []
           // 所有标签选中状态
           const allSelectedArr = []
-    
+
           this.industryListMap.forEach(level1 => {
             if (level1.level !== 0) {
               level1StateArr.push(level1.selected)
@@ -351,7 +359,7 @@ var vm = new Vue({
               })
             }
           })
-    
+
           return {
             // 找不到false,就说明全部被选中
             allSelected: level1StateArr.indexOf(false) === -1,
@@ -373,12 +381,12 @@ var vm = new Vue({
                 iitem.selected = false
                 })
             })
-    
+
             this.industryListMap[0].selected = true
             } else {
             this.setIndustryState()
             this.industryListMap[0].selected = false
-    
+
             this.industryListMap.forEach(item => {
                 if (data[item.name]) {
                 // 如果恢复数组长度等于页面二级标签长度,则一级标签点亮
@@ -624,7 +632,7 @@ var vm = new Vue({
                           if (s.split(',')[0] == v.Buyer) {
                             v.customerId = s.split(',')[1]
                           }
-                          
+
                         } else {
                           v.claim1 = false
                         }
@@ -740,7 +748,7 @@ var vm = new Vue({
                 if (type == 0) {
                     if (tempArray1.length == 0) {// 批量取关
                         this.follow = true
-                        this.attention(String(this.selectName), type, true, 'pi') 
+                        this.attention(String(this.selectName), type, true, 'pi')
                     } else if (tempArray1.length == this.selectName.length) {// 批量关注
                         this.follow = false
                         this.attention(String(this.selectName), type, false, 'pi')
@@ -750,7 +758,7 @@ var vm = new Vue({
                 } else {
                     if (tempArray2.length == 0) {// 批量取认领
                         // this.claim = true
-                        this.attention(String(this.selectId), type, true, 'pi') 
+                        this.attention(String(this.selectId), type, true, 'pi')
                     } else if (tempArray2.length == this.selectName.length) {// 批量认领
                         this.claim = false
                         var top = index + 1 + 'px'
@@ -868,7 +876,7 @@ var vm = new Vue({
                         this.qyData = res.data.list
                     }
                 }.bind(this)
-            })  
+            })
         },
         qyChange() {
             // this.searchContent = ''
@@ -938,9 +946,9 @@ var vm = new Vue({
                     return lv
                   }
                 }
-          
+
                 var result = num / Math.pow(10000, lv)
-          
+
                 if (result > 10000 && lv < 2) {
                   return this.test(num, type, lv + 1)
                 } else {
@@ -972,7 +980,7 @@ var vm = new Vue({
             $('.tags-box').click(function (e) {
               e.stopPropagation()
             })
-      
+
             $('.tag-input').click(function (e) {
               e.stopPropagation()
               $(this).children('.tag-placeholder').hide()
@@ -1033,7 +1041,7 @@ var vm = new Vue({
                 // }
               }
             })
-      
+
             $('.tags-footer .button-cancel').on('click', function () {
               $('.tags-box').slideToggle(function () {
                 // 标签弹框消失时 清除上次选择的标签分类
@@ -1045,7 +1053,7 @@ var vm = new Vue({
                 $('.tag-placeholder').show()
               })
             })
-      
+
             window.activeTags = [] // 选中的自定义标签 作为全局变量使用
             // 解绑自定义标签
             function deleteInputTag (item) {
@@ -1055,9 +1063,9 @@ var vm = new Vue({
               inputTagList()
               $('.tags-item[data-id="' + id + '"]').removeClass('tags-active')
             }
-      
+
             window.deleteInputTag = deleteInputTag
-      
+
             function inputTagList () {
               var ht = ''
               $('.tag-labels').html(ht)
@@ -1073,7 +1081,7 @@ var vm = new Vue({
               }
               checkTagDisabled()
             }
-      
+
             // 渲染标签列表数据
             function renderTagsList (data) {
               if (data && data.length > 0) {
@@ -1108,7 +1116,7 @@ var vm = new Vue({
               }
               inputTagList()
             }
-      
+
             // 获取用户自定义标签
             function getUserTags () {
               $.ajax({
@@ -1121,7 +1129,7 @@ var vm = new Vue({
                 }
               })
             }
-      
+
             window.getUserTags = getUserTags
             // 添加标签后认领接口
             function saveChooseTags (params, callback) {
@@ -1151,7 +1159,7 @@ var vm = new Vue({
                 }
               })
             }
-      
+
             // 新增标签
             function addTagsAjax (name) {
               $.ajax({
@@ -1178,7 +1186,7 @@ var vm = new Vue({
                 }
               })
             }
-      
+
             function checkTagDisabled () {
               if (activeTags.length >= 3) {
                 // 禁用标签
@@ -1188,7 +1196,7 @@ var vm = new Vue({
                 $('.tags-list').find('.disabled').removeClass('disabled')
               }
             }
-      
+
             function baiduEvent (str) {
               try {
                 // eslint-disable-next-line no-undef

+ 26 - 6
src/web/templates/pc/pursearchindex.html

@@ -26,6 +26,26 @@
                 padding-top: 64px;
                 min-height: calc(100vh - 364px);
             }
+            .in-iframe .search-container {
+              padding-top: 0;
+              padding: 24px;
+              box-sizing: border-box;
+            }
+
+            .in-iframe .search-header-content {
+              padding-left: 86px;
+              padding-right: 86px;
+            }
+            .in-iframe .search-header,
+            .in-iframe .search-pur-container,
+            .in-iframe .selector-card-container {
+              background: #FFFFFF;
+              border-radius: 8px;
+            }
+            .in-iframe .search-pur-container .list-header {
+              border: none;
+              border-bottom: 1px solid #EBEBEB;
+            }
         </style>
 	</head>
 
@@ -164,10 +184,10 @@
                         <div class="leftTitle r-industry">业务范围:</div>
                         <div class="right_msg">
                             <span class="spa" :class="{g_active:qutive1}" @click="quanBu1('全部')">全部</span>
-                            <span 
-                                v-for="(item,index) in jobData" 
-                                :key="index" 
-                                class="spa" 
+                            <span
+                                v-for="(item,index) in jobData"
+                                :key="index"
+                                class="spa"
                                 :class="{'g_active':caiIndex1.indexOf(index)>-1}"
                                 @click="caiIndus1(item,index)"
                             >${String(item.key)}
@@ -309,7 +329,7 @@
                   $('.bus-card').find('.right_msg').css('height','22px')
               }
           })
-          
+
       })
   </script>
   <script type="text/javascript">
@@ -329,7 +349,7 @@
           });
       }
     })
-      
+
     function getAjaxAdv () {
         $.ajax({
           type: 'POST',