Просмотр исходного кода

config(alova): 注释掉默认的swagger文档地址

将alova配置文件中的默认swagger文档地址注释掉,避免在未指定input时自动加载该文档。
zhangtao 1 неделя назад
Родитель
Сommit
d647d0dec0

+ 1 - 1
alova.config.ts

@@ -13,7 +13,7 @@ export default <Config>{
        * 1. openapi json file url
        * 1. openapi json file url
        * 2. local file
        * 2. local file
        */
        */
-      input: 'https://petstore3.swagger.io/api/v3/openapi.json',
+      // input: 'https://petstore3.swagger.io/api/v3/openapi.json',
       /**
       /**
        * input file platform. Currently only swagger is supported.
        * input file platform. Currently only swagger is supported.
        * When this parameter is specified, the input field only needs to specify the document address without specifying the openapi file
        * When this parameter is specified, the input field only needs to specify the document address without specifying the openapi file

Разница между файлами не показана из-за своего большого размера
+ 303 - 248
pnpm-lock.yaml


+ 2 - 20
src/api/apiDefinitions.ts

@@ -15,7 +15,7 @@ Some useful links:
  *
  *
  * OpenAPI version: 3.0.4
  * OpenAPI version: 3.0.4
  *
  *
- * Contact: 
+ * Contact:
  *
  *
  * NOTE: This file is auto generated by the alova's vscode plugin.
  * NOTE: This file is auto generated by the alova's vscode plugin.
  *
  *
@@ -24,23 +24,5 @@ Some useful links:
  * **Do not edit the file manually.**
  * **Do not edit the file manually.**
  */
  */
 export default {
 export default {
-  'pet.updatePet': ['PUT', '/pet'],
-  'pet.addPet': ['POST', '/pet'],
-  'pet.findPetsByStatus': ['GET', '/pet/findByStatus'],
-  'pet.findPetsByTags': ['GET', '/pet/findByTags'],
-  'pet.getPetById': ['GET', '/pet/{petId}'],
-  'pet.updatePetWithForm': ['POST', '/pet/{petId}'],
-  'pet.deletePet': ['DELETE', '/pet/{petId}'],
-  'pet.uploadFile': ['POST', '/pet/{petId}/uploadImage'],
-  'store.getInventory': ['GET', '/store/inventory'],
-  'store.placeOrder': ['POST', '/store/order'],
-  'store.getOrderById': ['GET', '/store/order/{orderId}'],
-  'store.deleteOrder': ['DELETE', '/store/order/{orderId}'],
-  'user.createUser': ['POST', '/user'],
-  'user.createUsersWithListInput': ['POST', '/user/createWithList'],
-  'user.loginUser': ['GET', '/user/login'],
-  'user.logoutUser': ['GET', '/user/logout'],
-  'user.getUserByName': ['GET', '/user/{username}'],
-  'user.updateUser': ['PUT', '/user/{username}'],
-  'user.deleteUser': ['DELETE', '/user/{username}']
+  'sys.auth': ['POST', '/smqjh-auth/oauth2/token'],
 };
 };

+ 20 - 947
src/api/globals.d.ts

@@ -14,7 +14,7 @@ Some useful links:
  *
  *
  * OpenAPI version: 3.0.4
  * OpenAPI version: 3.0.4
  *
  *
- * Contact: 
+ * Contact:
  *
  *
  * NOTE: This file is auto generated by the alova's vscode plugin.
  * NOTE: This file is auto generated by the alova's vscode plugin.
  *
  *
@@ -96,963 +96,36 @@ type Alova2Method<
       >
       >
     : never;
     : never;
 
 
-export interface Category {
-  id?: number;
-  name?: string;
-}
-export interface Tag {
-  id?: number;
-  name?: string;
-}
-export interface Pet {
-  id?: number;
-  name: string;
-  category?: Category;
-  photoUrls: string[];
-  tags?: Tag[];
-  /**
-   * pet status in the store
-   */
-  status?: 'available' | 'pending' | 'sold';
-}
-export interface Order {
-  id?: number;
-  petId?: number;
-  quantity?: number;
-  shipDate?: string;
-  /**
-   * Order Status
-   */
-  status?: 'placed' | 'approved' | 'delivered';
-  complete?: boolean;
-}
-export interface User {
-  id?: number;
-  username?: string;
-  firstName?: string;
-  lastName?: string;
-  email?: string;
-  password?: string;
-  phone?: string;
-  /**
-   * User Status
-   */
-  userStatus?: number;
-}
 export interface ApiResponse {
 export interface ApiResponse {
   code?: number;
   code?: number;
   type?: string;
   type?: string;
   message?: string;
   message?: string;
 }
 }
+
+
 declare global {
 declare global {
   interface Apis {
   interface Apis {
-    pet: {
-      /**
-       * ---
-       *
-       * [PUT] Update an existing pet.
-       *
-       * **path:** /pet
-       *
-       * ---
-       *
-       * **RequestBody**
-       * ```ts
-       * type RequestBody = {
-       *   id?: number
-       *   name: string
-       *   category?: {
-       *     id?: number
-       *     name?: string
-       *   }
-       *   // [items] start
-       *   // [items] end
-       *   photoUrls: string[]
-       *   // [items] start
-       *   // [items] end
-       *   tags?: Array<{
-       *     id?: number
-       *     name?: string
-       *   }>
-       *   // pet status in the store
-       *   status?: 'available' | 'pending' | 'sold'
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = {
-       *   id?: number
-       *   name: string
-       *   category?: {
-       *     id?: number
-       *     name?: string
-       *   }
-       *   // [items] start
-       *   // [items] end
-       *   photoUrls: string[]
-       *   // [items] start
-       *   // [items] end
-       *   tags?: Array<{
-       *     id?: number
-       *     name?: string
-       *   }>
-       *   // pet status in the store
-       *   status?: 'available' | 'pending' | 'sold'
-       * }
-       * ```
-       */
-      updatePet<
-        Config extends Alova2MethodConfig<Pet> & {
-          data: Pet;
-        }
-      >(
-        config: Config
-      ): Alova2Method<Pet, 'pet.updatePet', Config>;
-      /**
-       * ---
-       *
-       * [POST] Add a new pet to the store.
-       *
-       * **path:** /pet
-       *
-       * ---
-       *
-       * **RequestBody**
-       * ```ts
-       * type RequestBody = {
-       *   id?: number
-       *   name: string
-       *   category?: {
-       *     id?: number
-       *     name?: string
-       *   }
-       *   // [items] start
-       *   // [items] end
-       *   photoUrls: string[]
-       *   // [items] start
-       *   // [items] end
-       *   tags?: Array<{
-       *     id?: number
-       *     name?: string
-       *   }>
-       *   // pet status in the store
-       *   status?: 'available' | 'pending' | 'sold'
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = {
-       *   id?: number
-       *   name: string
-       *   category?: {
-       *     id?: number
-       *     name?: string
-       *   }
-       *   // [items] start
-       *   // [items] end
-       *   photoUrls: string[]
-       *   // [items] start
-       *   // [items] end
-       *   tags?: Array<{
-       *     id?: number
-       *     name?: string
-       *   }>
-       *   // pet status in the store
-       *   status?: 'available' | 'pending' | 'sold'
-       * }
-       * ```
-       */
-      addPet<
-        Config extends Alova2MethodConfig<Pet> & {
-          data: Pet;
-        }
-      >(
-        config: Config
-      ): Alova2Method<Pet, 'pet.addPet', Config>;
-      /**
-       * ---
-       *
-       * [GET] Finds Pets by status.
-       *
-       * **path:** /pet/findByStatus
-       *
-       * ---
-       *
-       * **Query Parameters**
-       * ```ts
-       * type QueryParameters = {
-       *   // Status values that need to be considered for filter
-       *   status: 'available' | 'pending' | 'sold'
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = Array<{
-       *   id?: number
-       *   name: string
-       *   category?: {
-       *     id?: number
-       *     name?: string
-       *   }
-       *   // [items] start
-       *   // [items] end
-       *   photoUrls: string[]
-       *   // [items] start
-       *   // [items] end
-       *   tags?: Array<{
-       *     id?: number
-       *     name?: string
-       *   }>
-       *   // pet status in the store
-       *   status?: 'available' | 'pending' | 'sold'
-       * }>
-       * ```
-       */
-      findPetsByStatus<
-        Config extends Alova2MethodConfig<Pet[]> & {
-          params: {
-            /**
-             * Status values that need to be considered for filter
-             */
-            status: 'available' | 'pending' | 'sold';
-          };
-        }
-      >(
-        config: Config
-      ): Alova2Method<Pet[], 'pet.findPetsByStatus', Config>;
-      /**
-       * ---
-       *
-       * [GET] Finds Pets by tags.
-       *
-       * **path:** /pet/findByTags
-       *
-       * ---
-       *
-       * **Query Parameters**
-       * ```ts
-       * type QueryParameters = {
-       *   // Tags to filter by
-       *   // [items] start
-       *   // [items] end
-       *   tags: string[]
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = Array<{
-       *   id?: number
-       *   name: string
-       *   category?: {
-       *     id?: number
-       *     name?: string
-       *   }
-       *   // [items] start
-       *   // [items] end
-       *   photoUrls: string[]
-       *   // [items] start
-       *   // [items] end
-       *   tags?: Array<{
-       *     id?: number
-       *     name?: string
-       *   }>
-       *   // pet status in the store
-       *   status?: 'available' | 'pending' | 'sold'
-       * }>
-       * ```
-       */
-      findPetsByTags<
-        Config extends Alova2MethodConfig<Pet[]> & {
-          params: {
-            /**
-             * Tags to filter by
-             */
-            tags: string[];
-          };
-        }
-      >(
-        config: Config
-      ): Alova2Method<Pet[], 'pet.findPetsByTags', Config>;
-      /**
-       * ---
-       *
-       * [GET] Find pet by ID.
-       *
-       * **path:** /pet/{petId}
-       *
-       * ---
-       *
-       * **Path Parameters**
-       * ```ts
-       * type PathParameters = {
-       *   // ID of pet to return
-       *   petId: number
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = {
-       *   id?: number
-       *   name: string
-       *   category?: {
-       *     id?: number
-       *     name?: string
-       *   }
-       *   // [items] start
-       *   // [items] end
-       *   photoUrls: string[]
-       *   // [items] start
-       *   // [items] end
-       *   tags?: Array<{
-       *     id?: number
-       *     name?: string
-       *   }>
-       *   // pet status in the store
-       *   status?: 'available' | 'pending' | 'sold'
-       * }
-       * ```
-       */
-      getPetById<
-        Config extends Alova2MethodConfig<Pet> & {
-          pathParams: {
-            /**
-             * ID of pet to return
-             */
-            petId: number;
-          };
+    sys: {
+      auth<
+        Config extends Alova2MethodConfig<loginModel> & {
+          data: loginModel;
         }
         }
       >(
       >(
         config: Config
         config: Config
-      ): Alova2Method<Pet, 'pet.getPetById', Config>;
-      /**
-       * ---
-       *
-       * [POST] Updates a pet in the store with form data.
-       *
-       * **path:** /pet/{petId}
-       *
-       * ---
-       *
-       * **Path Parameters**
-       * ```ts
-       * type PathParameters = {
-       *   // ID of pet that needs to be updated
-       *   petId: number
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **Query Parameters**
-       * ```ts
-       * type QueryParameters = {
-       *   // Name of pet that needs to be updated
-       *   name?: string
-       *   // Status of pet that needs to be updated
-       *   status?: string
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = {
-       *   id?: number
-       *   name: string
-       *   category?: {
-       *     id?: number
-       *     name?: string
-       *   }
-       *   // [items] start
-       *   // [items] end
-       *   photoUrls: string[]
-       *   // [items] start
-       *   // [items] end
-       *   tags?: Array<{
-       *     id?: number
-       *     name?: string
-       *   }>
-       *   // pet status in the store
-       *   status?: 'available' | 'pending' | 'sold'
-       * }
-       * ```
-       */
-      updatePetWithForm<
-        Config extends Alova2MethodConfig<Pet> & {
-          pathParams: {
-            /**
-             * ID of pet that needs to be updated
-             */
-            petId: number;
-          };
-          params: {
-            /**
-             * Name of pet that needs to be updated
-             */
-            name?: string;
-            /**
-             * Status of pet that needs to be updated
-             */
-            status?: string;
-          };
-        }
-      >(
-        config: Config
-      ): Alova2Method<Pet, 'pet.updatePetWithForm', Config>;
-      /**
-       * ---
-       *
-       * [DELETE] Deletes a pet.
-       *
-       * **path:** /pet/{petId}
-       *
-       * ---
-       *
-       * **Path Parameters**
-       * ```ts
-       * type PathParameters = {
-       *   // Pet id to delete
-       *   petId: number
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = null
-       * ```
-       */
-      deletePet<
-        Config extends Alova2MethodConfig<null> & {
-          pathParams: {
-            /**
-             * Pet id to delete
-             */
-            petId: number;
-          };
-        }
-      >(
-        config: Config
-      ): Alova2Method<null, 'pet.deletePet', Config>;
-      /**
-       * ---
-       *
-       * [POST] Uploads an image.
-       *
-       * **path:** /pet/{petId}/uploadImage
-       *
-       * ---
-       *
-       * **Path Parameters**
-       * ```ts
-       * type PathParameters = {
-       *   // ID of pet to update
-       *   petId: number
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **Query Parameters**
-       * ```ts
-       * type QueryParameters = {
-       *   // Additional Metadata
-       *   additionalMetadata?: string
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **RequestBody**
-       * ```ts
-       * type RequestBody = Blob
-       * ```
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = {
-       *   code?: number
-       *   type?: string
-       *   message?: string
-       * }
-       * ```
-       */
-      uploadFile<
-        Config extends Alova2MethodConfig<ApiResponse> & {
-          pathParams: {
-            /**
-             * ID of pet to update
-             */
-            petId: number;
-          };
-          params: {
-            /**
-             * Additional Metadata
-             */
-            additionalMetadata?: string;
-          };
-          data: Blob;
-        }
-      >(
-        config: Config
-      ): Alova2Method<ApiResponse, 'pet.uploadFile', Config>;
-    };
-    store: {
-      /**
-       * ---
-       *
-       * [GET] Returns pet inventories by status.
-       *
-       * **path:** /store/inventory
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = Record<string, number>
-       * ```
-       */
-      getInventory<Config extends Alova2MethodConfig<Record<string, number>>>(
-        config?: Config
-      ): Alova2Method<Record<string, number>, 'store.getInventory', Config>;
-      /**
-       * ---
-       *
-       * [POST] Place an order for a pet.
-       *
-       * **path:** /store/order
-       *
-       * ---
-       *
-       * **RequestBody**
-       * ```ts
-       * type RequestBody = {
-       *   id?: number
-       *   petId?: number
-       *   quantity?: number
-       *   shipDate?: string
-       *   // Order Status
-       *   status?: 'placed' | 'approved' | 'delivered'
-       *   complete?: boolean
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = {
-       *   id?: number
-       *   petId?: number
-       *   quantity?: number
-       *   shipDate?: string
-       *   // Order Status
-       *   status?: 'placed' | 'approved' | 'delivered'
-       *   complete?: boolean
-       * }
-       * ```
-       */
-      placeOrder<
-        Config extends Alova2MethodConfig<Order> & {
-          data: Order;
-        }
-      >(
-        config: Config
-      ): Alova2Method<Order, 'store.placeOrder', Config>;
-      /**
-       * ---
-       *
-       * [GET] Find purchase order by ID.
-       *
-       * **path:** /store/order/{orderId}
-       *
-       * ---
-       *
-       * **Path Parameters**
-       * ```ts
-       * type PathParameters = {
-       *   // ID of order that needs to be fetched
-       *   orderId: number
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = {
-       *   id?: number
-       *   petId?: number
-       *   quantity?: number
-       *   shipDate?: string
-       *   // Order Status
-       *   status?: 'placed' | 'approved' | 'delivered'
-       *   complete?: boolean
-       * }
-       * ```
-       */
-      getOrderById<
-        Config extends Alova2MethodConfig<Order> & {
-          pathParams: {
-            /**
-             * ID of order that needs to be fetched
-             */
-            orderId: number;
-          };
-        }
-      >(
-        config: Config
-      ): Alova2Method<Order, 'store.getOrderById', Config>;
-      /**
-       * ---
-       *
-       * [DELETE] Delete purchase order by identifier.
-       *
-       * **path:** /store/order/{orderId}
-       *
-       * ---
-       *
-       * **Path Parameters**
-       * ```ts
-       * type PathParameters = {
-       *   // ID of the order that needs to be deleted
-       *   orderId: number
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = null
-       * ```
-       */
-      deleteOrder<
-        Config extends Alova2MethodConfig<null> & {
-          pathParams: {
-            /**
-             * ID of the order that needs to be deleted
-             */
-            orderId: number;
-          };
-        }
-      >(
-        config: Config
-      ): Alova2Method<null, 'store.deleteOrder', Config>;
-    };
-    user: {
-      /**
-       * ---
-       *
-       * [POST] Create user.
-       *
-       * **path:** /user
-       *
-       * ---
-       *
-       * **RequestBody**
-       * ```ts
-       * type RequestBody = {
-       *   id?: number
-       *   username?: string
-       *   firstName?: string
-       *   lastName?: string
-       *   email?: string
-       *   password?: string
-       *   phone?: string
-       *   // User Status
-       *   userStatus?: number
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = {
-       *   id?: number
-       *   username?: string
-       *   firstName?: string
-       *   lastName?: string
-       *   email?: string
-       *   password?: string
-       *   phone?: string
-       *   // User Status
-       *   userStatus?: number
-       * }
-       * ```
-       */
-      createUser<
-        Config extends Alova2MethodConfig<User> & {
-          data: User;
-        }
-      >(
-        config: Config
-      ): Alova2Method<User, 'user.createUser', Config>;
-      /**
-       * ---
-       *
-       * [POST] Creates list of users with given input array.
-       *
-       * **path:** /user/createWithList
-       *
-       * ---
-       *
-       * **RequestBody**
-       * ```ts
-       * type RequestBody = Array<{
-       *   id?: number
-       *   username?: string
-       *   firstName?: string
-       *   lastName?: string
-       *   email?: string
-       *   password?: string
-       *   phone?: string
-       *   // User Status
-       *   userStatus?: number
-       * }>
-       * ```
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = {
-       *   id?: number
-       *   username?: string
-       *   firstName?: string
-       *   lastName?: string
-       *   email?: string
-       *   password?: string
-       *   phone?: string
-       *   // User Status
-       *   userStatus?: number
-       * }
-       * ```
-       */
-      createUsersWithListInput<
-        Config extends Alova2MethodConfig<User> & {
-          data: User[];
-        }
-      >(
-        config: Config
-      ): Alova2Method<User, 'user.createUsersWithListInput', Config>;
-      /**
-       * ---
-       *
-       * [GET] Logs user into the system.
-       *
-       * **path:** /user/login
-       *
-       * ---
-       *
-       * **Query Parameters**
-       * ```ts
-       * type QueryParameters = {
-       *   // The user name for login
-       *   username?: string
-       *   // The password for login in clear text
-       *   password?: string
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = string
-       * ```
-       */
-      loginUser<
-        Config extends Alova2MethodConfig<string> & {
-          params: {
-            /**
-             * The user name for login
-             */
-            username?: string;
-            /**
-             * The password for login in clear text
-             */
-            password?: string;
-          };
-        }
-      >(
-        config: Config
-      ): Alova2Method<string, 'user.loginUser', Config>;
-      /**
-       * ---
-       *
-       * [GET] Logs out current logged in user session.
-       *
-       * **path:** /user/logout
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = null
-       * ```
-       */
-      logoutUser<Config extends Alova2MethodConfig<null>>(
-        config?: Config
-      ): Alova2Method<null, 'user.logoutUser', Config>;
-      /**
-       * ---
-       *
-       * [GET] Get user by user name.
-       *
-       * **path:** /user/{username}
-       *
-       * ---
-       *
-       * **Path Parameters**
-       * ```ts
-       * type PathParameters = {
-       *   // The name that needs to be fetched. Use user1 for testing
-       *   username: string
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = {
-       *   id?: number
-       *   username?: string
-       *   firstName?: string
-       *   lastName?: string
-       *   email?: string
-       *   password?: string
-       *   phone?: string
-       *   // User Status
-       *   userStatus?: number
-       * }
-       * ```
-       */
-      getUserByName<
-        Config extends Alova2MethodConfig<User> & {
-          pathParams: {
-            /**
-             * The name that needs to be fetched. Use user1 for testing
-             */
-            username: string;
-          };
-        }
-      >(
-        config: Config
-      ): Alova2Method<User, 'user.getUserByName', Config>;
-      /**
-       * ---
-       *
-       * [PUT] Update user resource.
-       *
-       * **path:** /user/{username}
-       *
-       * ---
-       *
-       * **Path Parameters**
-       * ```ts
-       * type PathParameters = {
-       *   // name that need to be deleted
-       *   username: string
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **RequestBody**
-       * ```ts
-       * type RequestBody = {
-       *   id?: number
-       *   username?: string
-       *   firstName?: string
-       *   lastName?: string
-       *   email?: string
-       *   password?: string
-       *   phone?: string
-       *   // User Status
-       *   userStatus?: number
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = null
-       * ```
-       */
-      updateUser<
-        Config extends Alova2MethodConfig<null> & {
-          pathParams: {
-            /**
-             * name that need to be deleted
-             */
-            username: string;
-          };
-          data: User;
-        }
-      >(
-        config: Config
-      ): Alova2Method<null, 'user.updateUser', Config>;
-      /**
-       * ---
-       *
-       * [DELETE] Delete user resource.
-       *
-       * **path:** /user/{username}
-       *
-       * ---
-       *
-       * **Path Parameters**
-       * ```ts
-       * type PathParameters = {
-       *   // The name that needs to be deleted
-       *   username: string
-       * }
-       * ```
-       *
-       * ---
-       *
-       * **Response**
-       * ```ts
-       * type Response = null
-       * ```
-       */
-      deleteUser<
-        Config extends Alova2MethodConfig<null> & {
-          pathParams: {
-            /**
-             * The name that needs to be deleted
-             */
-            username: string;
-          };
-        }
-      >(
-        config: Config
-      ): Alova2Method<null, 'user.deleteUser', Config>;
-    };
+      ): Alova2Method<loginModel, 'sys.auth', Config>;
+    }
+
   }
   }
 
 
   var Apis: Apis;
   var Apis: Apis;
 }
 }
+
+
+export interface loginModel{
+    captchaCode?: string;
+    code?: string;
+    grant_type?: string;
+    mobile?: string;
+    password?: string;
+    [property: string]: any;
+}

+ 5 - 5
src/pages/login/index.vue

@@ -7,11 +7,11 @@ definePage({
 })
 })
 async function handleGetPhone(e: WechatMiniprogram.ButtonGetPhoneNumber) {
 async function handleGetPhone(e: WechatMiniprogram.ButtonGetPhoneNumber) {
   console.log(e, '手机号')
   console.log(e, '手机号')
-  // uni.showLoading({ mask: true })
-  // await Apis.sys.auth({ data: {
-  //   grant_type: 'wechat',
-  //   mobile: '',
-  // } })
+  uni.showLoading({ mask: true })
+  await Apis.sys.auth({ data: {
+    grant_type: 'wechat',
+    mobile: '',
+  } })
 }
 }
 </script>
 </script>
 
 

+ 1 - 1
src/subPack-xsb/my/afterSalesList/index.vue

@@ -27,7 +27,7 @@ definePage({
           <view class="box-border h-full w480rpx py28rpx pl20rpx">
           <view class="box-border h-full w480rpx py28rpx pl20rpx">
             <scroll-view scroll-x class="h-full w-full whitespace-nowrap">
             <scroll-view scroll-x class="h-full w-full whitespace-nowrap">
               <view class="flex items-center">
               <view class="flex items-center">
-                <view v-for="item in 20" :key="item" class="mr50rpx">
+                <view v-for="items in 20" :key="items" class="mr50rpx">
                   <image
                   <image
                     :src="`${StaticUrl}/shu.png`"
                     :src="`${StaticUrl}/shu.png`"
                     class="h120rpx w120rpx"
                     class="h120rpx w120rpx"

+ 24 - 23
src/subPack-xsb/my/order/index.vue

@@ -1,8 +1,8 @@
 <script setup lang="ts">
 <script setup lang="ts">
 import { getRect } from 'wot-design-uni/components/common/util'
 import { getRect } from 'wot-design-uni/components/common/util'
+import { handleCommonOrderStatusText, navTabTypeList, orderStatusList } from './order-data'
 import { StaticUrl } from '@/config'
 import { StaticUrl } from '@/config'
 import router from '@/router'
 import router from '@/router'
-import { handleCommonOrderStatusText, navTabTypeList, orderStatusList } from './order-data'
 
 
 definePage({
 definePage({
   name: 'xsb-order',
   name: 'xsb-order',
@@ -34,21 +34,30 @@ function handleChangeStatus(value: number) {
 <template>
 <template>
   <view class="page-xsb">
   <view class="page-xsb">
     <wd-navbar
     <wd-navbar
-      title="订单列表" :bordered="false"
-      :z-index="99"
-
-      safe-area-inset-top placeholder left-arrow fixed
+      title="订单列表" :bordered="false" :z-index="99" safe-area-inset-top left-arrow placeholder fixed
       @click-left="router.back()"
       @click-left="router.back()"
     />
     />
     <view class="nav bg-white px24rpx py18rpx">
     <view class="nav bg-white px24rpx py18rpx">
       <view class="flex items-center">
       <view class="flex items-center">
-        <view v-for="item in navTabTypeList" :key="item.value" class="mr64rpx flex flex-col items-center text-32rpx" :class="[navActiveTab == item.value ? 'font-semibold ' : 'text-#AAAAAA']" @click="handleChangeTypeNav(item.value)">
+        <view
+          v-for="item in navTabTypeList" :key="item.value" class="mr64rpx flex flex-col items-center text-32rpx"
+          :class="[navActiveTab == item.value ? 'font-semibold ' : 'text-#AAAAAA']"
+          @click="handleChangeTypeNav(item.value)"
+        >
           {{ item.name }}
           {{ item.name }}
-          <view class="mt10rpx bg-[var(--them-color)] transition-all transition-duration-400 ease-in" :class="[navActiveTab == item.value ? 'w40rpx h8rpx rounded-4rpx' : '']" />
+          <view
+            class="mt10rpx bg-[var(--them-color)] transition-all transition-duration-400 ease-in"
+            :class="[navActiveTab == item.value ? 'w40rpx h8rpx rounded-4rpx' : '']"
+          />
         </view>
         </view>
       </view>
       </view>
       <view class="mt20rpx flex items-center">
       <view class="mt20rpx flex items-center">
-        <view v-for="item in orderStatusList" :key="item.value" class="mr16rpx rounded-24rpx bg-#F6F6F6 px16rpx py6rpx text-24rpx" :class="[orderStatusActive == item.value ? 'bg-[var(--them-color)] text-white' : '']" @click="handleChangeStatus(item.value)">
+        <view
+          v-for="item in orderStatusList" :key="item.value"
+          class="mr16rpx rounded-24rpx bg-#F6F6F6 px16rpx py6rpx text-24rpx"
+          :class="[orderStatusActive == item.value ? 'bg-[var(--them-color)] text-white' : '']"
+          @click="handleChangeStatus(item.value)"
+        >
           {{ item.name }}
           {{ item.name }}
         </view>
         </view>
       </view>
       </view>
@@ -60,10 +69,7 @@ function handleChangeStatus(value: number) {
             <template #title>
             <template #title>
               <view class="flex items-center justify-between">
               <view class="flex items-center justify-between">
                 <view class="flex items-center">
                 <view class="flex items-center">
-                  <image
-                    :src="`${StaticUrl}/order-icon.png`"
-                    class="h36rpx w36rpx"
-                  />
+                  <image :src="`${StaticUrl}/order-icon.png`" class="h36rpx w36rpx" />
                   <view class="ml20rpx text-32rpx font-semibold">
                   <view class="ml20rpx text-32rpx font-semibold">
                     海马购官方旗舰店
                     海马购官方旗舰店
                   </view>
                   </view>
@@ -78,10 +84,7 @@ function handleChangeStatus(value: number) {
             <view>
             <view>
               <view class="mb20rpx box-border rounded-16rpx bg-#F9F9F9 p24rpx">
               <view class="mb20rpx box-border rounded-16rpx bg-#F9F9F9 p24rpx">
                 <view class="flex items-center">
                 <view class="flex items-center">
-                  <image
-                    :src="`${StaticUrl}/order-car.png`"
-                    class="h36rpx w36rpx"
-                  />
+                  <image :src="`${StaticUrl}/order-car.png`" class="h36rpx w36rpx" />
                   <view class="ml20rpx text-28rpx text-#222 font-semibold">
                   <view class="ml20rpx text-28rpx text-#222 font-semibold">
                     预计10:40前可送达
                     预计10:40前可送达
                   </view>
                   </view>
@@ -98,10 +101,7 @@ function handleChangeStatus(value: number) {
                   <scroll-view scroll-x class="h-full w-full whitespace-nowrap">
                   <scroll-view scroll-x class="h-full w-full whitespace-nowrap">
                     <view class="flex items-center">
                     <view class="flex items-center">
                       <view v-for="item in 20" :key="item" class="mr50rpx">
                       <view v-for="item in 20" :key="item" class="mr50rpx">
-                        <image
-                          :src="`${StaticUrl}/shu.png`"
-                          class="h120rpx w120rpx"
-                        />
+                        <image :src="`${StaticUrl}/shu.png`" class="h120rpx w120rpx" />
                       </view>
                       </view>
                     </view>
                     </view>
                   </scroll-view>
                   </scroll-view>
@@ -138,13 +138,14 @@ function handleChangeStatus(value: number) {
 
 
 <style scoped lang="scss">
 <style scoped lang="scss">
 .page-xsb {
 .page-xsb {
-  :deep(){
-    .wd-button.is-plain.is-error{
+  :deep() {
+    .wd-button.is-plain.is-error {
       color: #FF4D3A !important;
       color: #FF4D3A !important;
     }
     }
   }
   }
+
   .box-shadow {
   .box-shadow {
-    box-shadow: -6rpx 0rpx 6rpx 2rpx rgba(0,0,0,0.04);
+    box-shadow: -6rpx 0rpx 6rpx 2rpx rgba(0, 0, 0, 0.04);
   }
   }
 }
 }
 </style>
 </style>

Некоторые файлы не были показаны из-за большого количества измененных файлов