From 4648a3bee638e9a99d2d80b66f8833b261a2db91 Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期四, 25 九月 2025 22:39:24 +0800
Subject: [PATCH] feat:设计 app ui

---
 app/pages/mine/info/index.vue |   56 +++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 53 insertions(+), 3 deletions(-)

diff --git a/app/pages/mine/info/index.vue b/app/pages/mine/info/index.vue
index 65c861a..3a1b9de 100644
--- a/app/pages/mine/info/index.vue
+++ b/app/pages/mine/info/index.vue
@@ -1,13 +1,23 @@
 <template>
   <view class="container">
     <uni-list>
-      <uni-list-item showExtraIcon="true" :extraIcon="{type: 'person-filled'}" title="鏄电О" :rightText="user.nickName" />
+      <uni-list-item showExtraIcon="true" :extraIcon="{type: 'person-filled'}" title="鐢ㄦ埛鍚�" :rightText="user.userName" />
       <uni-list-item showExtraIcon="true" :extraIcon="{type: 'phone-filled'}" title="鎵嬫満鍙风爜" :rightText="user.phonenumber" />
+      <uni-list-item showExtraIcon="true" :extraIcon="{type: 'location-filled'}" title="缁戝畾杞﹁締" :rightText="boundVehicle || '鏈粦瀹�'" />
+      <uni-list-item showExtraIcon="true" :extraIcon="{type: 'info-filled'}" title="App鐗堟湰鍙�" :rightText="version" />
       <uni-list-item showExtraIcon="true" :extraIcon="{type: 'email-filled'}" title="閭" :rightText="user.email" />
       <uni-list-item showExtraIcon="true" :extraIcon="{type: 'auth-filled'}" title="宀椾綅" :rightText="postGroup" />
       <uni-list-item showExtraIcon="true" :extraIcon="{type: 'staff-filled'}" title="瑙掕壊" :rightText="roleGroup" />
       <uni-list-item showExtraIcon="true" :extraIcon="{type: 'calendar-filled'}" title="鍒涘缓鏃ユ湡" :rightText="user.createTime" />
     </uni-list>
+    
+    <!-- 缁戝畾/瑙g粦杞﹁締鎿嶄綔 -->
+    <view class="vehicle-actions" v-if="boundVehicle">
+      <button class="unbind-btn" @click="unbindVehicle">鍙栨秷缁戝畾杞﹁締</button>
+    </view>
+    <view class="vehicle-actions" v-else>
+      <button class="bind-btn" @click="goToBindVehicle">缁戝畾杞﹁締</button>
+    </view>
   </view>
 </template>
 
@@ -19,7 +29,9 @@
       return {
         user: {},
         roleGroup: "",
-        postGroup: ""
+        postGroup: "",
+        boundVehicle: "", // 妯℃嫙缁戝畾鐨勮溅杈嗕俊鎭�
+        version: getApp().globalData.config.appInfo.version || "1.0.0" // App鐗堟湰鍙�
       }
     },
     onLoad() {
@@ -32,6 +44,22 @@
           this.roleGroup = response.roleGroup
           this.postGroup = response.postGroup
         })
+      },
+      
+      // 璺宠浆鍒扮粦瀹氳溅杈嗛〉闈�
+      goToBindVehicle() {
+        this.$tab.navigateTo('/pages/bind-vehicle')
+      },
+      
+      // 鍙栨秷缁戝畾杞﹁締
+      unbindVehicle() {
+        this.$modal.confirm('鏄惁鍙栨秷缁戝畾杞﹁締锛�').then(() => {
+          // 杩欓噷鍙互璋冪敤API鍙栨秷缁戝畾杞﹁締
+          this.boundVehicle = ""
+          this.$modal.showToast('鍙栨秷缁戝畾鎴愬姛')
+        }).catch(() => {
+          // 鐢ㄦ埛鍙栨秷鎿嶄綔
+        })
       }
     }
   }
@@ -41,4 +69,26 @@
   page {
     background-color: #ffffff;
   }
-</style>
+  
+  .vehicle-actions {
+    padding: 30rpx;
+    text-align: center;
+    
+    .bind-btn, .unbind-btn {
+      width: 80%;
+      height: 80rpx;
+      border-radius: 10rpx;
+      font-size: 32rpx;
+    }
+    
+    .bind-btn {
+      background-color: #007AFF;
+      color: white;
+    }
+    
+    .unbind-btn {
+      background-color: #ff4d4f;
+      color: white;
+    }
+  }
+</style>
\ No newline at end of file

--
Gitblit v1.9.1