From 1fcfeff9911e0b37798d45f2e215eca66b18c8b4 Mon Sep 17 00:00:00 2001
From: pang.jiabao <pang_jiabao@163.com>
Date: 星期日, 21 十二月 2025 18:53:27 +0800
Subject: [PATCH] 入库启动功能完成

---
 pages/pakin/inboundStart.vue |   60 ++++++++++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 44 insertions(+), 16 deletions(-)

diff --git a/pages/pakin/inboundStart.vue b/pages/pakin/inboundStart.vue
index d7f2a84..46dfad1 100644
--- a/pages/pakin/inboundStart.vue
+++ b/pages/pakin/inboundStart.vue
@@ -1,5 +1,5 @@
 <template>
-  <view>
+  <view class="container">
     <uni-nav-bar
       left-icon="left"
       title="鍏ュ簱鍚姩"
@@ -10,11 +10,16 @@
 
     <!-- 杈撳叆鍖� -->
     <view class="code">
+      <!-- 鍏ュ簱绫诲瀷 -->
       <view class="item full-item">
         <view class="code-decs">鍏ュ簱绫诲瀷:</view>
-        <radio-group v-model="type" class="full-radio">
-          <radio class="radio" value="1">婊$鍏ュ簱</radio>
-          <radio class="radio" value="2">绌虹鍏ュ簱</radio>
+        <radio-group @change="onTypeChange" class="full-radio">
+          <label class="radio">
+            <radio value="1" :checked="type === '1'" />婊$鍏ュ簱
+          </label>
+          <label class="radio">
+            <radio value="2" :checked="type === '2'" />绌虹鍏ュ簱
+          </label>
         </radio-group>
       </view>
     </view>
@@ -33,7 +38,7 @@
     return {
       baseUrl: '',
       token: '',
-      type: '1' // 榛樿閫変腑婊$鍏ュ簱锛屽瓧绗︿覆绫诲瀷
+      type: '1' // 榛樿婊$鍏ュ簱
     }
   },
   onShow() {
@@ -44,12 +49,15 @@
     back() {
       uni.navigateBack()
     },
+    onTypeChange(e) {
+      this.type = e.detail.value
+    },
     reset() {
       this.type = '1'
     },
     submitCall() {
       uni.request({
-        url: this.baseUrl + '/inboundStart/auth',
+        url: this.baseUrl + '/mobile/inboundStart/auth',
         method: 'GET',
         header: { token: this.token },
         data: { type: this.type },
@@ -71,45 +79,65 @@
 <style>
 @import url('../../static/css/wms.css/wms.css');
 
+.container {
+  height: 100vh;
+  display: flex;
+  flex-direction: column;
+}
+
+/* 杈撳叆鍖� */
 .code {
   width: 100%;
   background-color: #fff;
-  padding-top: 0;
+  padding-top: 20rpx; /* 涓婃柟鐣欑┖ */
+  padding-bottom: 20rpx; /* 涓嬫柟鐣欑┖ */
 }
 
 .item {
   display: flex;
-  flex-direction: column; /* 宸﹀彸鏂囧瓧鍗犱竴琛� */
-  justify-content: center;
-  height: 140rpx; /* 涓婁笅闂磋窛瀹� */
-  padding: 0 24rpx;
+  flex-direction: column; /* 鏂囧瓧鍦ㄤ笂锛屽崟閫夋鍦ㄤ笅 */
+  align-items: flex-start;  /* 鏂囧瓧闈犲乏 */
+  justify-content: flex-start;
+  padding: 30rpx 24rpx;
   border-bottom: 1px solid #ebeef5;
+  min-height: 180rpx;
 }
 
 .code-decs {
   font-size: 38rpx;
   font-weight: 500;
   color: #303133;
-  margin-bottom: 20rpx;
+  margin-bottom: 25rpx; /* 鏂囧瓧涓庡崟閫夋闂磋窛 */
+  text-align: left;     /* 鏂囧瓧闈犲乏 */
 }
 
 .full-radio {
   display: flex;
-  justify-content: flex-start;
+  justify-content: center; /* 鍗曢�夋灞呬腑 */
+  flex-wrap: wrap;
 }
 
 .radio {
-  margin-right: 40rpx;
+  padding: 20rpx 50rpx;
+  border: 1px solid #dcdcdc;
+  border-radius: 16rpx;
+  margin: 0 20rpx 20rpx 20rpx;
   font-size: 36rpx;
   display: flex;
   align-items: center;
 }
 
+/* radio 鏈綋鏀惧ぇ */
+.radio radio {
+  transform: scale(1.3);
+  margin-right: 10rpx;
+}
+
+/* 搴曢儴鎸夐挳 */
 .buttom {
-  position: fixed;
-  bottom: 20rpx;
   width: 100%;
   display: flex;
   justify-content: space-around;
+  padding: 20rpx 0;
 }
 </style>
\ No newline at end of file

--
Gitblit v1.9.1