shish 6 лет назад
Родитель
Сommit
4f437bd919

+ 3 - 7
store/src/admin/home/workbench.vue

@@ -202,7 +202,7 @@ export default {
         {
           name: "数据统计",
           img: `${this.$constant.imgUrl}/retail/admin/tab-icon-5.png`,
-          url: "/admin/statistics/index"
+          url: "/admin/statistics/demo"
         },
         {
           name: "员工",
@@ -325,13 +325,9 @@ export default {
       });
     },
     goToItem(item) {
-      if (item.name == "数据统计") {
-        this.$msg("开发中...");
-      } else if (item.name == "进货") {
-        this.$msg("开发中...");
-      } else {
+      
         this.$util.pageTo(item);
-      }
+      
     }
   }
 };

+ 27 - 0
store/src/admin/statistics/demo.vue

@@ -0,0 +1,27 @@
+<template>
+<image src="https://img.huahb.com/example/stat.png" mode="widthFix"></image>
+</template>
+
+<script>
+export default {
+  name: "demo",
+  components: {
+  },
+  data() {
+    return {
+     
+    };
+  },
+  onLoad() {
+  },
+  onShow() {
+  },
+  methods: {
+    
+  }
+};
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 2 - 1
store/src/components/module/app-order-list.vue

@@ -3,7 +3,7 @@
 		<block v-if="!$util.isEmpty(info)">
 			<div class="list-left">
 				<div class="image">
-					<img :src="imgUrl | default_img" alt="商品图片" />
+					<image :src="imgUrl | default_img" mode="aspectFit" style="width:140rpx; height:140rpx;"></image>
 				</div>
 				<div class="list-msg">
 					<div class="title">{{ info.goodsName || info.title }}</div>
@@ -17,6 +17,7 @@
 				<div class="num">*{{ info.buyNum || info.num }}</div>
 			</div>
 		</block>
+
 	</div>
 </template>
 

+ 11 - 0
store/src/pages.json

@@ -340,6 +340,17 @@
 					}
 				}
 			]
+		},
+		{
+			"root": "admin/statistics",
+			"pages": [
+				{
+					"path": "demo",
+					"style": {
+						"navigationBarTitleText": "数据统计"
+					}
+				}
+			]
 		}
 	],
 	"globalStyle": {