wxy hace 4 años
padre
commit
7531781ac2
Se han modificado 2 ficheros con 15 adiciones y 4 borrados
  1. 12 1
      src/views/user/index.vue
  2. 3 3
      src/views/user/parts/clickBtn.vue

+ 12 - 1
src/views/user/index.vue

@@ -6,7 +6,13 @@
           <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
         </el-col>
         <el-col :span="24" class="main">
-          个人中心
+          <el-col :span="24" class="info">
+            <el-col :span="8" class="img">
+              哈哈
+              <!-- <el-image :src="imgUrl" style="width:100%; height:100%"></el-image> -->
+            </el-col>
+            <el-col :span="16" class="name">{{ user.name }}</el-col>
+          </el-col>
         </el-col>
         <el-col :span="24" class="foot">
           <footInfo></footInfo>
@@ -35,6 +41,7 @@ export default {
       isleftarrow: '',
       // 返回
       navShow: true,
+      imgUrl: require('@/assets/test.jpg'),
     };
   },
   created() {},
@@ -65,6 +72,10 @@ export default {
 }
 .main {
   min-height: 570px;
+  .info {
+    height: 100px;
+    background-color: red;
+  }
 }
 .foot {
   position: absolute;

+ 3 - 3
src/views/user/parts/clickBtn.vue

@@ -2,13 +2,13 @@
   <div id="clickBtn">
     <el-row>
       <el-col :span="24" class="style">
-        <span v-if="user.role == '4' || user.role == '5' || user.role == '6' || user.role == '7'">
+        <span v-if="user.role == '4' || user.role == '5' || user.role == '6'">
           <van-cell is-link title="个人信息" @click="$router.push({ path: '/userCenter/user/index' })" />
           <van-cell is-link title="我的发布" @click="$router.push({ path: '/userCenter/myProduct/index' })" />
           <van-cell is-link title="事项管理" @click="$router.push({ path: '/userCenter/matter/index' })" />
           <van-cell is-link title="展会管理" @click="$router.push({ path: '/userCenter/dock/index' })" />
         </span>
-        <span v-else>
+        <!-- <span v-else>
           <span v-if="user.role == '0'">
             <van-cell is-link title="用户管理" @click="$router.push({ path: '/adminCenter/user/index' })" />
             <van-cell is-link title="对接会管理" @click="$router.push({ path: '/adminCenter/duijiehui/index' })" />
@@ -36,7 +36,7 @@
             <van-cell is-link title="统计报表" @click="$router.push({ path: '/vipDockCenter/statisInfo/index' })" />
             <van-cell is-link title="动态监测" @click="$router.push({ path: '/vipDockCenter/dynamicInfo/index' })" />
           </span>
-        </span>
+        </span> -->
       </el-col>
     </el-row>
   </div>