Kaynağa Gözat

修改首页样式

guo00guo 5 yıl önce
ebeveyn
işleme
bb1698c32c

+ 1 - 1
src/components/Mine.vue

@@ -243,7 +243,7 @@ export default {
         xAxis: {
           type: 'category',
           boundaryGap: false,
-          data: ['2019年11月', '2019年12月', '2020年1月', '2020年2月', '2020年3月', '2020年4月', '2020年5月']
+          data: ['2020年1月', '2020年2月', '2020年3月', '2020年4月', '2020年5月', '2020年6月', '2020年7月']
         },
         yAxis: {
           type: 'value'

+ 2 - 1
src/components/commons/HomeSlice.vue

@@ -1,6 +1,7 @@
 <template>
   <div class="home-slice">
-    <el-row style="padding-top: 40px" v-loading="loading" element-loading-text="权限检查中...">
+<!--    <el-row style="padding-top: 40px" v-loading="loading" element-loading-text="权限检查中...">-->
+    <el-row style="padding-top: 40px">
       <el-col :span="14">
         <div class="slice-wrapper" style="padding-left: 20%">
           <div class="slice-title"><img src="../../assets/img/homeslice1.png" alt="slice1"></div>

+ 2 - 2
src/pages/Homepage/BrandCard.vue

@@ -4,9 +4,9 @@
       <span>入驻品牌机构</span>
       <a class="pull-right" style="color: rgba(0, 118, 203, 1); cursor: pointer" @click="goToMoreAgency()">more>></a>
     </div>
-    <div style="height: 96px">
+    <div style="height: 210px">
       <el-row :gutter="15">
-        <el-col v-for="item in residentAgencyList" :key="item.id" :span="6" style="height: 70px">
+        <el-col v-for="item in residentAgencyList" :key="item.id" :span="4" style="height: 90px; margin-bottom: 20px">
           <img :src="item.agencyPhoto==null?defaultValue.image:item.agencyPhoto" :alt="item.evaluationAgencyName" style="width: 70%;height: 100%; cursor: pointer;" @click="goToDetail(item.userId)"/>
         </el-col>
       </el-row>

+ 1 - 1
src/pages/Homepage/Homepage.vue

@@ -41,7 +41,7 @@
       </div>
     </div>
 
-    <div class="home-page container" v-loading="loading">
+    <div class="home-page container" >
       <el-row>
         <el-col :span="19" class="test-type-wrapper">
           <TestMenu :testTypeList="homeData.testTypeList"></TestMenu>

+ 6 - 3
src/pages/Square/PopularProjectAndTaskList.vue

@@ -37,8 +37,8 @@
       <div>
       </div>
     </div>
-    <div class="mine-body container" style="text-align: center;">
-      <el-tabs value="myProject" @tab-click="handleTabClick" v-loading="loading">
+    <div class="mine-body container" style="text-align: center;"  v-loading="loading">
+      <el-tabs value="myProject" @tab-click="handleTabClick">
         <el-tab-pane name="myProject" v-if="currTab == 'project'">
           <span v-if="projectAndTaskArr == null || projectAndTaskArr.length == 0"> 暂无项目 </span>
           <el-row v-if="projectAndTaskArr != null && projectAndTaskArr.length != 0" type="flex" align="middle"
@@ -111,7 +111,6 @@
     data() {
       return {
         loading: false,
-        loading: false,
         isLogin: false,
         searchType: 'project',
         searchVal: '',
@@ -156,6 +155,7 @@
         this.hideLoading();
       },
       getHotProject() {
+        this.showLoading();
         let params = {
           "keyword": this.searchVal,//搜索关键字
           "activePage": this.activePage,//指定页面
@@ -166,8 +166,10 @@
           this.projectAndTaskArr = res.data.content;
           this.totalElements = res.data.totalElements;
         })
+        this.hideLoading();
       },
       getHotTask() {
+        this.showLoading();
         let params = {
           "keyword": this.searchVal,//搜索关键字
           "activePage": this.activePage,//指定页面
@@ -177,6 +179,7 @@
           this.projectAndTaskArr = res.data.content;
           this.totalElements = res.data.totalElements;
         })
+        this.hideLoading();
       },
 
       gotoHome() {