From f26f29d84e0a68831a6af14dab3eec5500496d2e Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 28 五月 2025 16:48:52 +0800
Subject: [PATCH] 初始化项目

---
 pages/sys/home/index.vue |  122 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 122 insertions(+), 0 deletions(-)

diff --git a/pages/sys/home/index.vue b/pages/sys/home/index.vue
new file mode 100644
index 0000000..114f6a3
--- /dev/null
+++ b/pages/sys/home/index.vue
@@ -0,0 +1,122 @@
+<template>
+	<view class="wrap">
+		<template v-for="(item, index) in tabList">
+			<view class="work-stage-title">
+				<view>
+					<u-line style="border:5rpx solid #264DE9" length="33rpx" direction="col" color="#264DE9"
+						:hair-line="false"></u-line>
+				</view>
+				<view class="title-label">{{ item.title }}</view>
+			</view>
+			<u-grid :border="false">
+				<u-grid-item v-for="(baseListItem, baseListIndex) in item.list" :key="baseListIndex"
+					@click="navTo(baseListItem.url)">
+					<img :src="require(`@/static/custom/home/feed.png`)" alt="">
+					<text class="grid-text">{{ baseListItem.name }}</text>
+				</u-grid-item>
+			</u-grid>
+		</template>
+	</view>
+</template>
+<script>
+export default {
+	data() {
+		return {
+			tabList: [
+				{
+					title: '鐢熶骇绠$悊',
+					list: [
+						{
+							name: '鎶ュ伐',
+							url: '/pages/product/report/index',
+							icon: 'feeding'
+						},
+						{
+							name: '鍙栨秷鎶ュ伐',
+							url: '/',
+							icon: 'feeding'
+						},
+						{
+							name: '鎺ユ敹锛堥摐鏉嗭級',
+							url: '/',
+							icon: 'feeding'
+						},
+					]
+				},
+				{
+					title: '鍙戣揣绠$悊',
+					list: [
+						{
+							name: '绉诲簱',
+							url: '/pages/wareHouse/moveWareHouse/index',
+							icon: 'feeding'
+						},
+						{
+							name: '鐩樼偣鎶ュ憡鐩樼偣',
+							url: '/pages/wareHouse/inventory/index',
+							icon: 'feeding'
+						},
+						{
+							name: '鏍哥褰曞叆',
+							url: '/pages/wareHouse/packing/registration',
+							icon: 'feeding'
+						},
+					]
+				},
+				{
+					title: '浠撳簱绠$悊',
+					list: [
+						{
+							name: '棰嗘枡',
+							url: '/pages/wareHouse/moveWareHouse/index',
+							icon: 'feeding'
+						},
+						{
+							name: '鍙栨秷棰嗘枡',
+							url: '/pages/wareHouse/inventory/index',
+							icon: 'feeding'
+						},
+					]
+				}
+			]
+		};
+	},
+	onShow() {
+		//this.refreshCount();
+	},
+	methods: {
+		navTo(url) {
+			console.log(url)
+			uni.navigateTo({
+				url: url
+			});
+		}
+	}
+};
+</script>
+<style lang="scss">
+.wrap {
+	height: calc(100vh - 200rpx);
+	background: linear-gradient(to bottom, #e5f0ff, #f6f9ff);
+}
+
+.work-stage-title {
+	display: flex;
+	flex-direction: row;
+	align-items: center;
+	margin-bottom: 38rpx;
+	padding: 30rpx 30rpx;
+	padding-bottom: 0;
+
+	.title-label {
+		margin-left: 14rpx;
+		font-size: 34rpx;
+		font-weight: bold;
+		color: #283E65;
+	}
+}
+
+.u-grid-item {
+	background: transparent !important;
+}
+</style>
\ No newline at end of file

--
Gitblit v1.9.3