guo00guo vor 5 Jahren
Ursprung
Commit
c7cad39c73

+ 7 - 7
src/pages/HomepageSearch/AgencyList.vue

@@ -32,10 +32,10 @@
       </el-row>
     </div>
     <div class="container" style="margin: 20px auto;">
-      <div class="create-body" v-if="!isModifyMode">
-        <div class="title h2">入驻品牌机构</div>
+      <div class="create-body">
+        <div class="title h2">测评机构</div>
         <el-collapse accordion style="margin: 0 30px">
-          <el-collapse-item v-for="(item,index) in agencyList" :key="item.id" class="item-template">
+          <el-collapse-item v-for="(item,index) in curAgencyList" :key="item.id" class="item-template">
             <template slot="title">
               <el-row style="width: 100%;font-size: 16px">
                 <el-col :span="2"><img :src="item.agencyPhoto" style="width: 50px; height: 50px;"></el-col>
@@ -48,7 +48,7 @@
             </template>
           </el-collapse-item>
           <el-pagination
-            v-if="agencyList&&agencyList.length"
+            v-if="curAgencyList&&curAgencyList.length"
             :page-size="9"
             layout="prev, pager, next"
             :total="totalElements"
@@ -99,7 +99,7 @@
                         "name": "专家",
                         "value": "3"
                     }],
-                // agencyList: [],
+                curAgencyList: this.agencyList,
                 activePage: 1,
                 totalElements: 0
             }
@@ -123,7 +123,7 @@
                     ]
                 }
                 Http.post(url, params).then((res) => {
-                    this.agencyList = res.data.agencyPage.content;
+                    this.curAgencyList = res.data.agencyPage.content;
                 })
             },
             checkLogin() {
@@ -150,7 +150,7 @@
                     ]
                 }
                 Http.post(url, params).then((res) => {
-                    this.agencyList = res.data.agencyPage.content;
+                    this.curAgencyList = res.data.agencyPage.content;
                 })
             },
             gotoHome() {

+ 6 - 6
src/pages/HomepageSearch/AgencyResidentList.vue

@@ -32,10 +32,10 @@
       </el-row>
     </div>
     <div class="container" style="margin: 20px auto;">
-      <div class="create-body" v-if="!isModifyMode">
+      <div class="create-body">
         <div class="title h2">入驻品牌机构</div>
         <el-collapse accordion style="margin: 0 30px">
-          <el-collapse-item v-for="(item,index) in agencyList" :key="item.id" class="item-template">
+          <el-collapse-item v-for="(item,index) in curAgencyList" :key="item.id" class="item-template">
             <template slot="title">
               <el-row style="width: 100%;font-size: 16px">
                 <el-col :span="8"><img :src="item.agencyPhoto" style="width: 50px; height: 50px;"></el-col>
@@ -47,7 +47,7 @@
             </template>
           </el-collapse-item>
           <el-pagination
-            v-if="agencyList&&agencyList.length"
+            v-if="curAgencyList&&curAgencyList.length"
             :page-size="9"
             layout="prev, pager, next"
             :total="totalElements"
@@ -98,7 +98,7 @@
                         "name": "专家",
                         "value": "3"
                     }],
-                // agencyList: [],
+                curAgencyList: this.agencyList,
                 activePage: 1,
                 totalElements: 0
             }
@@ -122,7 +122,7 @@
                     ]
                 }
                 Http.post(url, params).then((res) => {
-                    this.agencyList = res.data.agencyPage.content;
+                    this.curAgencyList = res.data.agencyPage.content;
                 })
             },
             checkLogin() {
@@ -149,7 +149,7 @@
                     ]
                 }
                 Http.post(url, params).then((res) => {
-                    this.agencyList = res.data.agencyPage.content;
+                    this.curAgencyList = res.data.agencyPage.content;
                 })
             },
             gotoHome() {

+ 6 - 6
src/pages/HomepageSearch/CompetitionList.vue

@@ -32,10 +32,10 @@
       </el-row>
     </div>
     <div class="container" style="margin: 20px auto;">
-      <div class="create-body" v-if="!isModifyMode">
+      <div class="create-body">
         <div class="title h2">众测大赛</div>
         <el-collapse accordion style="margin: 0 30px">
-          <el-collapse-item v-for="(item,index) in competitionList" :key="item.id" class="item-template">
+          <el-collapse-item v-for="(item,index) in curCompetitionList" :key="item.id" class="item-template">
             <template slot="title">
               <el-row style="width: 100%;font-size: 16px">
                 <el-col :span="2"><img :src="item.image" style="width: 50px; height: 50px;"></el-col>
@@ -46,7 +46,7 @@
             </template>
           </el-collapse-item>
           <el-pagination
-            v-if="competitionList&&competitionList.length"
+            v-if="curCompetitionList&&curCompetitionList.length"
             :page-size="9"
             layout="prev, pager, next"
             :total="totalElements"
@@ -81,7 +81,7 @@
                         "name": "大赛",
                         "value": "0"
                     }],
-                // competitionList: [],
+                curCompetitionList: this.competitionList,
                 activePage: 1,
                 totalElements: 0
             }
@@ -106,7 +106,7 @@
                 }
                 Http.post(url, params).then((res) => {
                     console.log(res.data)
-                    this.competitionList = res.data.content;
+                    this.curCompetitionList = res.data.content;
                 })
             },
             checkLogin() {
@@ -133,7 +133,7 @@
                     ]
                 }
                 Http.post(url, params).then((res) => {
-                    this.competitionList = res.data.content;
+                    this.curCompetitionList = res.data.content;
                 })
             },
             gotoHome() {

+ 7 - 7
src/pages/HomepageSearch/CrowdList.vue

@@ -32,10 +32,10 @@
       </el-row>
     </div>
     <div class="container" style="margin: 20px auto;">
-      <div class="create-body" v-if="!isModifyMode">
-        <div class="title h2">众测大赛</div>
+      <div class="create-body">
+        <div class="title h2">众测</div>
         <el-collapse accordion style="margin: 0 30px">
-          <el-collapse-item v-for="(item,index) in crowdList" :key="item.id" class="item-template">
+          <el-collapse-item v-for="(item,index) in curCrowdList" :key="item.id" class="item-template">
             <template slot="title">
               <el-row style="width: 100%;font-size: 16px">
                 <el-col :span="2"><img :src="item.image" style="width: 50px; height: 50px;"></el-col>
@@ -45,7 +45,7 @@
             </template>
           </el-collapse-item>
           <el-pagination
-            v-if="crowdList&&crowdList.length"
+            v-if="curCrowdList&&curCrowdList.length"
             :page-size="9"
             layout="prev, pager, next"
             :total="totalElements"
@@ -80,7 +80,7 @@
                         "name": "众测",
                         "value": "0"
                     }],
-                // crowdList: [],
+                curCrowdList: this.crowdList,
                 activePage: 1,
                 totalElements: 0
             }
@@ -105,7 +105,7 @@
                 }
                 Http.post(url, params).then((res) => {
                     console.log(res.data)
-                    this.crowdList = res.data.content;
+                    this.curCrowdList = res.data.content;
                 })
             },
             checkLogin() {
@@ -132,7 +132,7 @@
                     ]
                 }
                 Http.post(url, params).then((res) => {
-                    this.crowdList = res.data.content;
+                    this.curCrowdList = res.data.content;
                 })
             },
             gotoHome() {

+ 1 - 0
src/pages/HomepageSearch/ExpertList.vue

@@ -33,6 +33,7 @@
     </div>
 
     <div class="container" style="margin: 20px auto;">
+      <div class="title h2">专家</div>
       <el-row>
         <el-col :span="18" class="">
           <el-row :gutter="15" style="margin-bottom: 10px">

+ 8 - 8
src/pages/HomepageSearch/ResourceList.vue

@@ -32,10 +32,10 @@
       </el-row>
     </div>
     <div class="container" style="margin: 20px auto;">
-      <div class="create-body" v-if="!isModifyMode">
+      <div class="create-body">
         <div class="title h2">众测资源</div>
         <el-collapse accordion style="margin: 0 30px">
-          <el-collapse-item v-for="(item,index) in reourceList" :key="item.id" class="item-template">
+          <el-collapse-item v-for="(item,index) in curResourceList" :key="item.id" class="item-template">
             <template slot="title">
               <el-row style="width: 100%;font-size: 16px">
                 <el-col :span="2"><img :src="item.photoUrl" style="width: 50px; height: 50px;"></el-col>
@@ -47,7 +47,7 @@
             </template>
           </el-collapse-item>
           <el-pagination
-            v-if="reourceList&&reourceList.length"
+            v-if="curResourceList&&curResourceList.length"
             :page-size="9"
             layout="prev, pager, next"
             :total="totalElements"
@@ -69,8 +69,8 @@
     import {notify} from "../../constants";
 
     export default {
-        name: "ReourceList",
-        props: ['searchVal', 'reourceList'],
+        name: "ResourceList",
+        props: ['searchVal', 'resourceList'],
         components: {TopSearch},
         data() {
             return {
@@ -98,7 +98,7 @@
                         "name": "专家",
                         "value": "3"
                     }],
-                expertList: [],
+                curResourceList: this.resourceList,
                 activePage: 1,
                 totalElements: 0
             }
@@ -123,7 +123,7 @@
                 }
                 Http.post(url, params).then((res) => {
                     console.log(res.data)
-                    this.reourceList = res.data.content;
+                    this.curResourceList = res.data.content;
                 })
             },
             checkLogin() {
@@ -150,7 +150,7 @@
                     ]
                 }
                 Http.post(url, params).then((res) => {
-                    this.reourceList = res.data.resourcePage.content;
+                    this.curResourceList = res.data.resourcePage.content;
                 })
             },
             gotoHome() {

+ 6 - 6
src/pages/HomepageSearch/UserList.vue

@@ -32,10 +32,10 @@
       </el-row>
     </div>
     <div class="container" style="margin: 20px auto;">
-      <div class="create-body" v-if="!isModifyMode">
+      <div class="create-body">
         <div class="title h2">众测人员</div>
         <el-collapse accordion style="margin: 0 30px">
-          <el-collapse-item v-for="(item,index) in userList" :key="item.id" class="item-template">
+          <el-collapse-item v-for="(item,index) in curUserList" :key="item.id" class="item-template">
             <template slot="title">
               <el-row style="width: 100%;font-size: 16px">
                 <el-col :span="2"><img :src="item.photoUrl" style="width: 50px; height: 50px;"></el-col>
@@ -47,7 +47,7 @@
             </template>
           </el-collapse-item>
           <el-pagination
-            v-if="userList&&userList.length"
+            v-if="curUserList&&curUserList.length"
             :page-size="9"
             layout="prev, pager, next"
             :total="totalElements"
@@ -82,7 +82,7 @@
                         "name": "众测人员",
                         "value": "0"
                     }],
-                // userList: [],
+                curUserList: this.userList,
                 activePage: 1,
                 totalElements: 0
             }
@@ -107,7 +107,7 @@
                 }
                 Http.post(url, params).then((res) => {
                     console.log(res.data)
-                    this.userList = res.data.content;
+                    this.curUserList = res.data.content;
                 })
             },
             checkLogin() {
@@ -134,7 +134,7 @@
                     ]
                 }
                 Http.post(url, params).then((res) => {
-                    this.userList = res.data.content;
+                    this.curUserList = res.data.content;
                 })
             },
             gotoHome() {