ZhouFeng 3 éve
szülő
commit
b524f353c5
4 módosított fájl, 66 hozzáadás és 36 törlés
  1. 1 1
      index.html
  2. 3 1
      package.json
  3. 61 33
      src/components/Home.vue
  4. 1 1
      src/views/home.vue

+ 1 - 1
index.html

@@ -3,7 +3,7 @@
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
-    <title>myvue</title>
+    <title>猎豹AI</title>
   </head>
   <body>
     <div id="app"></div>

+ 3 - 1
package.json

@@ -13,7 +13,6 @@
     "axios": "^0.21.4",
     "element-ui": "^2.15.5",
     "node-sass": "^6.0.1",
-    "sass-loader": "^4.0.0",
     "vue": "^2.5.2",
     "vue-router": "^3.0.1"
   },
@@ -36,6 +35,7 @@
     "friendly-errors-webpack-plugin": "^1.6.1",
     "html-webpack-plugin": "^2.30.1",
     "node-notifier": "^5.1.2",
+    "node-sass": "^6.0.1",
     "optimize-css-assets-webpack-plugin": "^3.2.0",
     "ora": "^1.2.0",
     "portfinder": "^1.0.13",
@@ -43,8 +43,10 @@
     "postcss-loader": "^2.0.8",
     "postcss-url": "^7.2.1",
     "rimraf": "^2.6.0",
+    "sass-loader": "^4.1.1",
     "semver": "^5.3.0",
     "shelljs": "^0.7.6",
+    "style-loader": "^3.2.1",
     "uglifyjs-webpack-plugin": "^1.1.1",
     "url-loader": "^0.5.8",
     "vue-loader": "^13.3.0",

+ 61 - 33
src/components/Home.vue

@@ -1,22 +1,17 @@
 <template>
-  <div>
-    <h3 style="height: 800px;">我是首页</h3>
-    <div>
-      <div>
-        <button type="button" @click.stop="$router.push('helloWorld')">添加规则</button>
-      </div>
-      <div v-for="(item, index) in ruleList" :key="index">
-        <div>
-          <span>规则名:</span>
-          <span>{{ item.rule }}</span>
-        </div>
-        <div>
-          <input v-model="item.rule" type="" name="" id="" value="" />
-          <button type="button" @click.stop="deleteItem(index)">删除</button>
-          <button type="button" @click.stop="saveRule(item.rule, index)">保存</button>
-        </div>
-      </div>
-    </div>
+  <div class="mainContent">
+    <el-row class="order_tab">
+        <el-col :span="15">
+          <div class="tab_list">
+            <div class="tab_item">
+              <div class="point">6</div>
+              <span>新订单</span>
+              <div class="tab_line"></div>
+            </div>
+          </div>
+        </el-col>
+        <el-col :span="9"></el-col>
+    </el-row>
   </div>
 </template>
 
@@ -24,26 +19,59 @@
   export default {
     data() {
       return {
-        ruleList: [
-          { id:1, rule: '', content: '' }
-        ]
+        
       }
     },
     methods: {
-      deleteItem(index) {
-        this.ruleList.splice(1, index)
-      },
-      saveRule(t, i) {
-        let obj = {
-          id: i + 2,
-          rule: t,
-          content: ''
-        }
-        this.ruleList.push( obj )
-      }
+     
     }
   }
 </script>
 
-<style>
+<style lang="scss" scoped="scoped">
+  .mainContent{
+    width: 100%;
+   .order_tab{
+    width: 100%;
+    height: 74px;
+    background: #FFF;
+    .tab_list{
+      width: 100%;
+      height: 74px;
+      padding-top: 20px;
+      padding-left: 36px;
+      box-sizing: border-box;
+      .tab_item{
+        width: 58px;
+        margin-right: 56px;
+        font-size: 16px;
+        font-weight: 500;
+        color: #FC7200;
+        position: relative;
+        text-align: center;
+        .tab_line{
+          width: 58px;
+          height: 6px;
+          background: #FC7200;
+          border-radius: 3px;
+          margin-top: 15px;
+        }
+        .point{
+          width: 16px;
+          height: 16px;
+          border-radius: 50%;
+          background: #F74141;
+          font-size: 12px;
+          font-weight: 400;
+          color: #FFFFFF;
+          position: absolute;
+          top: -5px;
+          right: -10px;
+          text-align: center;
+          line-height: 16px;
+        }
+      }
+    }
+   }
+  }
 </style>

+ 1 - 1
src/views/home.vue

@@ -15,7 +15,7 @@
           </el-dropdown-menu>
         </el-dropdown>
       </el-header>
-      <el-main>
+      <el-main style="background:#F1F2F5;">
         <router-view></router-view>
       </el-main>
     </el-container>