Jelajahi Sumber

cps:新增粉丝、下单记录页

panyong 3 tahun lalu
induk
melakukan
6a4271685f

+ 18 - 0
htmldev/cps/src/router/index.js

@@ -100,6 +100,24 @@ const routes = [
       isUseCache: false,
       isUseCache: false,
       keepAlive: true
       keepAlive: true
     }
     }
+  },
+  {
+    path: '/order', // 下单记录
+    name: 'Order',
+    component: _import('views/order/index'),
+    meta: {
+      isUseCache: false,
+      keepAlive: true
+    }
+  },
+  {
+    path: '/fans', // 粉丝
+    name: 'Fans',
+    component: _import('views/fans/index'),
+    meta: {
+      isUseCache: false,
+      keepAlive: true
+    }
   }
   }
 ]
 ]
 
 

+ 13 - 0
htmldev/cps/src/views/fans/index.vue

@@ -0,0 +1,13 @@
+<template>
+  <div>粉丝</div>
+</template>
+
+<script>
+export default {
+  name: 'index'
+}
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 2 - 2
htmldev/cps/src/views/mine/index.vue

@@ -6,7 +6,7 @@
       </div>
       </div>
     </div>
     </div>
     <ul>
     <ul>
-      <li>
+      <li @click="$router.push({name: 'Order'})">
         <p class="left">
         <p class="left">
           <i class="label icon-order"></i>
           <i class="label icon-order"></i>
           <span class="label">下单记录</span>
           <span class="label">下单记录</span>
@@ -25,7 +25,7 @@
           <i class="arrow"></i>
           <i class="arrow"></i>
         </p>
         </p>
       </li>
       </li>
-      <li>
+      <li @click="$router.push({name: 'Fans'})">
         <p class="left">
         <p class="left">
           <i class="label icon-wallet"></i>
           <i class="label icon-wallet"></i>
           <span class="label">粉丝</span>
           <span class="label">粉丝</span>