From 14681dfe7052cb76eefcc0c17d0a0d708e1ac9dd Mon Sep 17 00:00:00 2001
From: zhuguifei <zhuguifei@zhuguifeideiMac.local>
Date: 星期二, 13 五月 2025 16:31:14 +0800
Subject: [PATCH] 完成移动端基本功能

---
 eims-ui-mobile/src/pages/spare/index.vue |   68 ++++++++++++++++++++++++++++++++--
 1 files changed, 64 insertions(+), 4 deletions(-)

diff --git a/eims-ui-mobile/src/pages/spare/index.vue b/eims-ui-mobile/src/pages/spare/index.vue
index c1f8574..0dcec78 100644
--- a/eims-ui-mobile/src/pages/spare/index.vue
+++ b/eims-ui-mobile/src/pages/spare/index.vue
@@ -3,19 +3,79 @@
   layout: 'tabbar',
   needLogin: true,
   style: {
-    navigationBarTitleText: 'spare',
+    navigationBarTitleText: '澶囦欢',
   },
 }
 </route>
 
 <template>
-  <view class="pt-40 text-xl text-center text-green-500">澶囦欢</view>
+  <view class="bg-base">
+    <view class="flex px-4 py-3 bg-white">
+      <div class="box-border h-[150rpx] flex-1 bg-tag rounded-sm mr-2 px-2 py-2">
+        <wd-count-to
+          :startVal="0"
+          :endVal="0"
+          :fontSize="24"
+          color="text-color-base"
+        ></wd-count-to>
+        <view class="text-color-gray mt-1">搴撳瓨涓嶈冻</view>
+      </div>
+      <div class="box-border h-[150rpx] flex-1 bg-tag rounded-sm mr-2 px-2 py-2">
+        <wd-count-to
+          :startVal="0"
+          :endVal="0"
+          :fontSize="24"
+          color="text-color-base"
+        ></wd-count-to>
+        <view class="text-color-gray mt-1">搴撳瓨杩囬噺</view>
+      </div>
+    </view>
+    <wd-cell-group border>
+      <wd-cell
+        title="澶囦欢鍒楄〃"
+        is-link
+        to="/pages/spare/spare-list"
+        icon="list"
+        custom-icon-class="icon-color-base"
+      />
+      <wd-cell
+        title="娣诲姞澶囦欢"
+        is-link
+        icon="add"
+        custom-icon-class="icon-color-base"
+        @click="handleInfo"
+      />
+    </wd-cell-group>
+    <wd-cell-group border class="mt-2">
+      <wd-cell
+        title="娣诲姞鍑哄簱"
+        is-link
+        icon="add-circle"
+        custom-icon-class="icon-color-base"
+        @click="handleInfo"
+      />
+      <wd-cell
+        title="娣诲姞鍏ュ簱"
+        is-link
+        icon="add-circle"
+        custom-icon-class="icon-color-base"
+        @click="handleInfo"
+      />
+    </wd-cell-group>
+  </view>
 </template>
 
 <script lang="ts" setup>
-//
+function handleInfo() {
+  uni.showToast({
+    title: '鍔熻兘寮�鍙戜腑',
+    icon: 'none',
+  })
+}
 </script>
 
 <style lang="scss" scoped>
-//
+.bg-tag {
+  background: #f5f8ff;
+}
 </style>

--
Gitblit v1.9.3