Procházet zdrojové kódy

fix: 发票类型选择企业在前、个人在后

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
skyline před 2 dny
rodič
revize
5943e6023e

+ 5 - 5
charge-front/src/pages-common/invoice/invoice-form.vue

@@ -46,14 +46,14 @@
         <view class="type-selector flex">
           <view
             class="type-option flex-center br-8 fs-28 py-12 px-24 mr-20"
-            :class="{ active: form.invoiceType === 'INDIVIDUAL' }"
-            @click="form.invoiceType = 'INDIVIDUAL'"
-          >个人</view>
-          <view
-            class="type-option flex-center br-8 fs-28 py-12 px-24"
             :class="{ active: form.invoiceType === 'ORGANIZATION' }"
             @click="form.invoiceType = 'ORGANIZATION'"
           >企业</view>
+          <view
+            class="type-option flex-center br-8 fs-28 py-12 px-24"
+            :class="{ active: form.invoiceType === 'INDIVIDUAL' }"
+            @click="form.invoiceType = 'INDIVIDUAL'"
+          >个人</view>
         </view>
       </view>
 

+ 1 - 1
charge-front/src/pages-user/invoice-title.vue

@@ -74,8 +74,8 @@
           <view class="form-group">
             <view class="form-label">发票类型</view>
             <view class="type-options">
-              <view class="type-opt" :class="{ active: editForm.invoiceType === 'INDIVIDUAL' }" @click="editForm.invoiceType = 'INDIVIDUAL'">个人</view>
               <view class="type-opt" :class="{ active: editForm.invoiceType === 'ORGANIZATION' }" @click="editForm.invoiceType = 'ORGANIZATION'">企业</view>
+              <view class="type-opt" :class="{ active: editForm.invoiceType === 'INDIVIDUAL' }" @click="editForm.invoiceType = 'INDIVIDUAL'">个人</view>
             </view>
           </view>