瀏覽代碼

首页更新

guhongwei 5 年之前
父節點
當前提交
dc29b8433f
共有 6 個文件被更改,包括 54 次插入114 次删除
  1. 二進制
      src/assets/login.png
  2. 二進制
      src/assets/yunxing.png
  3. 二進制
      src/assets/zhanghao.png
  4. 二進制
      src/assets/ziyuan.png
  5. 38 83
      src/layout/index/mingshi.vue
  6. 16 31
      src/layout/index/native.vue

二進制
src/assets/login.png


二進制
src/assets/yunxing.png


二進制
src/assets/zhanghao.png


二進制
src/assets/ziyuan.png


+ 38 - 83
src/layout/index/mingshi.vue

@@ -1,53 +1,24 @@
 <template>
   <div id="mingshi">
     <el-row>
-      <!-- <el-col :span="24" class="news">
-        <el-col :span="24" class="topTit">
-          <el-col :span="18">
-            <span :style="`border-color:${borderColor}`">{{title}}</span>
-          </el-col>
-          <el-col :span="6" style="text-align:right;"> 
-            <el-link :underline="false" :style="`color:${Color}`" @click="$router.push({ path: `list/${mingshilist[0].id}` })">MORE<i class="el-icon-video-play"></i></el-link>
-          </el-col>
+      <el-col :span="24" class="info">
+        <el-col :span="11" class="text">
+          <el-image class="image" :src="ziyuan"></el-image>
+          <el-link :underline="false">资源介绍</el-link>
         </el-col>
-          <el-col :span="24" class="newsMain">
-            <el-col :span="24" v-for="(tag, index) in mingshilist" :key="index" :type="tag.type">
-              <el-col class="chengguolist" :span="24" v-for="(item, index) in tag.children" :key="index">
-                <el-col :span="16" @click.native="$router.push({ name: 'detail', params:{id:item.id} })">
-                  <p class="textOver">{{ item.title }}</p>
-                </el-col>
-                <el-col :span="8" style="text-align:right;">
-                  {{item.publish_time}}
-                </el-col>
-              </el-col>
-            </el-col>
-          </el-col>
-      </el-col> -->
-      <el-col :span="24" class="mingshi">
-        <el-col :span="24" class="image">
-          <el-link :underline="false">
-            <el-image :src='zyjs'>
-            </el-image>
-          </el-link>
+        <el-col :span="11" class="text">
+          <el-image class="image" :src="zhanghao"></el-image>
+          <el-link :underline="false">账号申请</el-link>
         </el-col>
-        <el-col :span="24" class="image">
-          <el-link :underline="false">
-            <el-image :src='zhsq'>
-            </el-image>
-          </el-link>
+        <el-col :span="11" class="text">
+          <el-image class="image" :src="login"></el-image>
+          <el-link :underline="false">计算登录</el-link>
         </el-col>
-        <el-col :span="24" class="image">
-          <el-link :underline="false">
-            <el-image :src='jsdl'>
-            </el-image>
-          </el-link>
-        </el-col>
-        <el-col :span="24" class="image">
-          <el-link :underline="false">
-            <el-image :src='yxsk'>
-            </el-image>
-          </el-link>
+        <el-col :span="11" class="text">
+          <el-image class="image" :src="yunxing"></el-image>
+          <el-link :underline="false">运行实况</el-link>
         </el-col>
+
       </el-col>
     </el-row>
   </div>
@@ -61,13 +32,10 @@ export default {
   },
   components: {},
   data: () => ({
-    borderColor: '#850000',
-    Color: '#850000',
-    title: "计算服务",
-    zyjs: require('../../assets/zyjs.jpg'),
-    zhsq: require('../../assets/zhsq.jpg'),
-    jsdl: require('../../assets/jsdl.jpg'),
-    yxsk: require('../../assets/yxsk.jpg'),
+    ziyuan: require('../../assets/ziyuan.png'),
+    zhanghao: require('../../assets/zhanghao.png'),
+    login: require('../../assets/login.png'),
+    yunxing: require('../../assets/yunxing.png'),
 
   }),
   created() { },
@@ -81,43 +49,30 @@ p {
   margin: 0;
   padding: 0;
 }
-.textOver {
-  overflow: hidden;
-  text-overflow: ellipsis;
-  white-space: nowrap;
-}
-.news {
-  padding: 10px;
-}
-.topTit {
-  border-bottom: 1px solid #ccc;
-}
-.topTit span {
-  display: inline-block;
-  height: 30px;
-  border-bottom: 1px solid transparent;
-}
-.newsMain {
-  padding: 5px 0;
+.text {
+  height: 190px;
+  text-align: center;
+  -webkit-box-shadow: 0 0 2px #ccc;
+  box-shadow: 0 0 5px #ccc;
+  margin: 4px 5px;
+  border-radius: 10px;
 }
-.chengguolist {
-  padding: 10px 0;
-  border-bottom: 1px dashed #ccc;
-  margin: 1px;
+.text:hover {
+  -webkit-box-shadow: 0 0 2px #075597;
+  box-shadow: 0 0 5px #075597;
 }
-.chengguolist p:hover {
-  color: #850000;
-  cursor: pointer;
+.text:hover .el-link {
+  color: #075597;
 }
 .image {
-  padding: 10px 10px 0 10px;
+  width: 70px;
+  height: 70px;
+  padding: 25px;
 }
-.image .el-image {
-  width: 280px;
-  height: 85px;
-  border-radius: 10px;
-}
-.image .el-image__inner {
-  border-radius: 10px;
+.text .el-link {
+  color: #000;
+  font-size: 22px;
+  font-weight: bold;
+  font-family: cursive;
 }
 </style>

+ 16 - 31
src/layout/index/native.vue

@@ -2,51 +2,40 @@
   <div id="native">
     <el-row>
       <el-col :span="24">
-        <el-menu :default-active="activeIndex2" class="el-menu-demo" mode="horizontal"
-               background-color="#336699" text-color="#fff" active-text-color="#fff" style="height:40px;" :router="true">
-        <!-- 循环菜单↓ -->
-        <template v-for="(item, index) in menu">
-          <el-submenu :index="`${index}`" :key="index" v-if="item.type !== 'url' && item.type !== 'content'">
-            <!-- 输出一级栏目↓ -->
-            <template slot="title">
-              {{ item.title }}
-            </template>
-            <template v-for="(sub, subIndex) in item.children">
-              <el-submenu :index="`${index}-${subIndex}`" :key="subIndex+'sub'" v-if="sub.children">
+          <el-menu :default-active="activeIndex2" class="el-menu-demo" mode="horizontal" background-color="#336699"
+                   text-color="#fff" active-text-color="#fff" style="height:40px;" :router="true">
+            <template v-for="(item, index) in menu">
+              <el-submenu :index="`${index}`" :key="index" v-if="item.type !== 'url' && item.type !== 'content'">
                 <template slot="title">
-                  {{ sub.title }}
+                  {{ item.title }}
                 </template>
-                <template v-for="(thr,thrIndex) in sub.children">
-                  <el-menu-item :index="thr.path" :key="thrIndex+'thr'" v-if="thr.type !== 'url'">{{ thr.title }}</el-menu-item>
-                  <el-menu-item :index="``" :key="thrIndex+'thr'" @click="turnTo(thr.url)" v-else> {{ thr.title }}</el-menu-item>
+                <template v-for="(sub, subIndex) in item.children">
+                  <el-menu-item :index="`${index}-${subIndex}`" :key="subIndex+'sub'" v-if="sub.children"
+                                style="float:left">
+                    <template slot="title">
+                      {{ sub.title }}
+                    </template>
+                  </el-menu-item>
                 </template>
               </el-submenu>
-              <el-menu-item :index="sub.path" :key="subIndex+'sub'" v-else-if="sub.type === 'content'||sub.type==='column'">{{ sub.title }}</el-menu-item>
-              <el-menu-item :index="`${index}-${subIndex}`" :key="subIndex+'sub'" @click="turnTo(sub.url)" v-else> {{ sub.title }}</el-menu-item>
             </template>
-          </el-submenu>
-          <!-- 一级栏目非常规栏目情况 -->
-          <el-menu-item v-else-if="item.type === 'content'" :index="item.path" :key="index">{{ item.title }}</el-menu-item>
-          <el-menu-item v-else :index="``" :key="index" @click="turnTo(item.url)">{{ item.title }}</el-menu-item>
-          <!-- 输出一级栏目结束↑ -->
-        </template>
-        <!-- 循环菜单结束↑ -->
-      </el-menu>
+          </el-menu>
       </el-col>
     </el-row>
   </div>
 </template>
 
 <script>
-import { mapActions, mapState,mapMutations } from 'vuex';
+import { mapActions, mapState, mapMutations } from 'vuex';
 export default {
   name: 'native',
   props: {},
   components: {},
   data: () => ({
+
     activeIndex2: '',
   }),
-  created() {},
+  created() { },
   computed: {
     ...mapState(['menu']),
   },
@@ -59,10 +48,6 @@ export default {
 </script>
 
 <style lang="less" scoped>
-.el-menu--horizontal > .el-menu-item {
-  height: 40px;
-  line-height: 40px;
-}
 /deep/.el-menu--horizontal > .el-submenu .el-submenu__title {
   height: 40px;
   line-height: 40px;