hookehuyr

style: 优化表单样式和占位文本

- 统一输入框占位文本样式
- 调整单位文字颜色
- 移除默认值和注释掉的样式
- 更新表单字段占位文本
...@@ -42,3 +42,7 @@ button::after { ...@@ -42,3 +42,7 @@ button::after {
42 border-top: 1rpx solid #f3f4f6; 42 border-top: 1rpx solid #f3f4f6;
43 z-index: 100; 43 z-index: 100;
44 } 44 }
45 +
46 +.input-placeholder, .textarea-placeholder {
47 + color: #9ca3af;
48 +}
......
1 <!-- 1 <!--
2 * @Date: 2023-12-20 14:11:11 2 * @Date: 2023-12-20 14:11:11
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-07-15 14:18:38 4 + * @LastEditTime: 2025-07-15 15:39:33
5 * @FilePath: /jgdl/src/components/payCard.vue 5 * @FilePath: /jgdl/src/components/payCard.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
11 <view style="padding: 2rem 1rem; text-align: center;"> 11 <view style="padding: 2rem 1rem; text-align: center;">
12 <view style="font-size: 32rpx;">实付金额</view> 12 <view style="font-size: 32rpx;">实付金额</view>
13 <view style="color: red; margin: 10rpx 0;"><text style="font-size: 50rpx;">¥</text><text style="font-size: 80rpx;">{{ price }}</text></view> 13 <view style="color: red; margin: 10rpx 0;"><text style="font-size: 50rpx;">¥</text><text style="font-size: 80rpx;">{{ price }}</text></view>
14 - <view style="font-size: 28rpx; margin-bottom: 20rpx;">支付剩余时间 <text style="color: red;">{{ formatTime(remain_time) }}</text></view> 14 + <!-- <view style="font-size: 28rpx; margin-bottom: 20rpx;">支付剩余时间 <text style="color: red;">{{ formatTime(remain_time) }}</text></view> -->
15 <nut-button block color="#fb923c" @tap="goToPay">立即支付</nut-button> 15 <nut-button block color="#fb923c" @tap="goToPay">立即支付</nut-button>
16 </view> 16 </view>
17 </nut-action-sheet> 17 </nut-action-sheet>
......
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
154 154
155 .unit { 155 .unit {
156 font-size: 28rpx; 156 font-size: 28rpx;
157 - color: #9ca3af; 157 + color: #666;
158 margin-left: 16rpx; 158 margin-left: 16rpx;
159 } 159 }
160 160
...@@ -168,12 +168,15 @@ ...@@ -168,12 +168,15 @@
168 .price-input { 168 .price-input {
169 font-size: 32rpx; 169 font-size: 32rpx;
170 color: #f97316; 170 color: #f97316;
171 - font-weight: 600; 171 + // font-weight: 600;
172 - text-align: right; 172 + // text-align: right;
173 border: none; 173 border: none;
174 outline: none; 174 outline: none;
175 background: transparent; 175 background: transparent;
176 width: 160rpx; 176 width: 160rpx;
177 + &::placeholder {
178 + color: #9ca3af !important;
179 + }
177 } 180 }
178 181
179 .market-price-symbol { 182 .market-price-symbol {
...@@ -185,7 +188,7 @@ ...@@ -185,7 +188,7 @@
185 .market-price-input { 188 .market-price-input {
186 font-size: 28rpx; 189 font-size: 28rpx;
187 color: #9ca3af; 190 color: #9ca3af;
188 - text-align: right; 191 + // text-align: right;
189 border: none; 192 border: none;
190 outline: none; 193 outline: none;
191 background: transparent; 194 background: transparent;
......
...@@ -3,7 +3,12 @@ ...@@ -3,7 +3,12 @@
3 <!-- 顶部导航 --> 3 <!-- 顶部导航 -->
4 <nut-config-provider :theme-vars="themeVars"> 4 <nut-config-provider :theme-vars="themeVars">
5 <nut-sticky top="0"> 5 <nut-sticky top="0">
6 - <nut-navbar v-if="!isAuthMode && !isMyCarMode" :title="isEditMode ? '编辑车源' : '发布车源'" left-show @on-click-back="goBack"> 6 + <nut-navbar v-if="!isAuthMode && !isMyCarMode" left-show @on-click-back="goBack">
7 + <template #content>
8 + <view class="content">
9 + <text class="title" style="font-size: 33rpx; font-weight: 500;">{{ isEditMode ? '编辑车源' : '发布车源' }}</text>
10 + </view>
11 + </template>
7 <template #left-show> 12 <template #left-show>
8 <RectLeft color="white" /> 13 <RectLeft color="white" />
9 </template> 14 </template>
...@@ -149,7 +154,7 @@ ...@@ -149,7 +154,7 @@
149 <!-- 行驶里程 --> 154 <!-- 行驶里程 -->
150 <nut-form-item label="行驶里程" prop="total_mileage_km" required 155 <nut-form-item label="行驶里程" prop="total_mileage_km" required
151 :rules="[{ required: true, message: '请输入行驶里程' }]"> 156 :rules="[{ required: true, message: '请输入行驶里程' }]">
152 - <nut-input v-model="formData.total_mileage_km" placeholder="1200" type="number" input-align="right"> 157 + <nut-input v-model="formData.total_mileage_km" placeholder="请输入" type="number" input-align="right">
153 <template #right> 158 <template #right>
154 <text class="unit">公里</text> 159 <text class="unit">公里</text>
155 </template> 160 </template>
...@@ -158,7 +163,7 @@ ...@@ -158,7 +163,7 @@
158 163
159 <!-- 续航里程 --> 164 <!-- 续航里程 -->
160 <nut-form-item label="续航里程" prop="range_km"> 165 <nut-form-item label="续航里程" prop="range_km">
161 - <nut-input v-model="formData.range_km" placeholder="60" type="number" input-align="right"> 166 + <nut-input v-model="formData.range_km" placeholder="请输入" type="number" input-align="right">
162 <template #right> 167 <template #right>
163 <text class="unit">公里</text> 168 <text class="unit">公里</text>
164 </template> 169 </template>
...@@ -167,7 +172,7 @@ ...@@ -167,7 +172,7 @@
167 172
168 <!-- 最高时速 --> 173 <!-- 最高时速 -->
169 <nut-form-item label="最高时速" prop="max_speed_kmh"> 174 <nut-form-item label="最高时速" prop="max_speed_kmh">
170 - <nut-input v-model="formData.max_speed_kmh" placeholder="25" type="number" input-align="right"> 175 + <nut-input v-model="formData.max_speed_kmh" placeholder="请输入" type="number" input-align="right">
171 <template #right> 176 <template #right>
172 <text class="unit">km/h</text> 177 <text class="unit">km/h</text>
173 </template> 178 </template>
...@@ -176,7 +181,7 @@ ...@@ -176,7 +181,7 @@
176 181
177 <!-- 电池容量 --> 182 <!-- 电池容量 -->
178 <nut-form-item label="电池容量" prop="battery_capacity_ah"> 183 <nut-form-item label="电池容量" prop="battery_capacity_ah">
179 - <nut-input v-model="formData.battery_capacity_ah" placeholder="20" type="number" 184 + <nut-input v-model="formData.battery_capacity_ah" placeholder="请输入" type="number"
180 input-align="right"> 185 input-align="right">
181 <template #right> 186 <template #right>
182 <text class="unit">Ah</text> 187 <text class="unit">Ah</text>
...@@ -374,10 +379,10 @@ const formData = reactive({ ...@@ -374,10 +379,10 @@ const formData = reactive({
374 brandModel: '', // 品牌型号组合字段,用于表单验证 379 brandModel: '', // 品牌型号组合字段,用于表单验证
375 manufacture_year: '', 380 manufacture_year: '',
376 new_level: '', 381 new_level: '',
377 - total_mileage_km: '100', 382 + total_mileage_km: '',
378 - range_km: '60', 383 + range_km: '',
379 - max_speed_kmh: '25', 384 + max_speed_kmh: '',
380 - battery_capacity_ah: '20', 385 + battery_capacity_ah: '',
381 // batteryWear: '', 386 // batteryWear: '',
382 brake_wear_level: '', 387 brake_wear_level: '',
383 tire_wear_level: '', 388 tire_wear_level: '',
......