fuwei 5 лет назад
Родитель
Сommit
7b79212ef8
3 измененных файлов с 68 добавлено и 29 удалено
  1. 52 0
      ghs/src/admin/billing/index.vue
  2. 5 29
      ghs/src/admin/home/workbench.vue
  3. 11 0
      ghs/src/pages.json

+ 52 - 0
ghs/src/admin/billing/index.vue

@@ -0,0 +1,52 @@
+<template>
+    <view>
+        <view class="input-wrap">
+			<app-search-module placeholder="请输入关键词搜索" @search="searchFn" />
+		</view>
+        <!-- :isFixed="true" -->
+        <app-tabs :tabs="tabs"  :currentTab="tabIndex" @change="change" itemWidth="33.33%" />
+    </view>
+</template>
+
+<script>
+    import AppSearchModule from '@/components/module/app-search'
+    import AppTabs from '@/components/plugin/tabs'
+    export default {
+        name: "Billing", // 开单
+        components: {
+         AppTabs,
+         AppSearchModule
+	    },
+        data() {
+            return {
+               tabIndex: 0,
+                tabs: [
+                    {
+                        name: '花材'
+                    },
+                    {
+                        name: '成品'
+                    },
+                    {
+                        name: '课程'
+                    }
+                ], 
+            }
+        },
+        methods:{
+            change(){
+
+            },
+            searchFn(){
+
+            }
+        }
+    }
+</script>
+
+<style lang="scss" scoped>
+    .input-wrap {
+        padding: 22px 20px 22px 30px;
+    }
+    
+</style>

+ 5 - 29
ghs/src/admin/home/workbench.vue

@@ -14,15 +14,15 @@
       </div>
       <div class="user-bottom">
         <div class="info-list">
-          <div class="info-list-name">浏览量</div>
+          <div class="info-list-name">访问量</div>
           <div class="info-list-value">{{ $util.numberFormat(data.todayData.visit) || 0 }}</div>
         </div>
         <div class="info-list">
-          <div class="info-list-name">新粉丝</div>
+          <div class="info-list-name">新客户</div>
           <div class="info-list-value">{{ $util.numberFormat(data.todayData.fans) || 0 }}</div>
         </div>
         <div class="info-list">
-          <div class="info-list-name">新客户</div>
+          <div class="info-list-name">支出</div>
           <div class="info-list-value">{{ $util.numberFormat(data.todayData.user) || 0 }}</div>
         </div>
       </div>
@@ -122,15 +122,6 @@ export default {
       },
       // 订单总览
       orderData: [
-        {
-          name: "待付款",
-          value: 0,
-          url: "/admin/home/order",
-          type: 4,
-          query: {
-            tabIndex: 1
-          }
-        },
         {
           name: "待配送",
           value: 0,
@@ -150,20 +141,7 @@ export default {
           }
         },
         {
-          name: "待通知",
-          value: 0
-        },
-        {
-          name: "已完结",
-          url: "/admin/home/order",
-          type: 4,
-          query: {
-            tabIndex: 4
-          },
-          value: 0
-        },
-        {
-          name: "全部",
+          name: "今日订单",
           url: "/admin/home/order",
           type: 4,
           query: {
@@ -327,9 +305,7 @@ export default {
       });
     },
     goToItem(item) {
-      
-        this.$util.pageTo(item);
-      
+      this.$util.pageTo(item);
     }
   }
 };

+ 11 - 0
ghs/src/pages.json

@@ -357,6 +357,17 @@
 					}
 				}
 			]
+		},
+		{
+			"root": "admin/billing",
+			"pages": [
+				{
+					"path": "index",
+					"style": {
+						"navigationBarTitleText": "开单"
+					}
+				}
+			]
 		}
 	],
 	"globalStyle": {