diff --git a/.env.development b/.env.development index bc2a8d2a..f8c85ebb 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ ENV = 'development' #VITE_APP_BASE_API_Url = 'https://aits.jlbank.com.cn:7001' -VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' +VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' # DEV #VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001' diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index eb3df681..72be4024 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -8,8 +8,8 @@ }, { "bundleId" : "cn.com.jlbank.aits", - "certificateFile" : "/Users/jlbank/Desktop/tra-app/certificate/ios/开发证书.p12", - "certificateProfileFile" : "/Users/jlbank/Desktop/tra-app/certificate/ios/jiaixuedev.mobileprovision", + "certificateFile" : "/Users/jlbank/Desktop/lx_uniapp/tra-app/certificate/ios/开发证书.p12", + "certificateProfileFile" : "/Users/jlbank/Desktop/lx_uniapp/tra-app/certificate/ios/jiaixuedev.mobileprovision", "playground" : "standard", "runSignStatus" : 1, "type" : "uni-app:app-ios" diff --git a/src/components/touch-btn/touch-btn.ts b/src/components/touch-btn/touch-btn.ts index 9e4f8e95..64447e15 100644 --- a/src/components/touch-btn/touch-btn.ts +++ b/src/components/touch-btn/touch-btn.ts @@ -1,4 +1,4 @@ -import { ErrorCode, ShowErrorTipOptions } from './touch-btn.types'; +import { ErrorMessageEnum, ShowErrorTipOptions } from './touch-btn.types'; import { get_base_url } from '@/api/request.js'; import { getPhoneEnvBool } from '@/common/common.js'; const IsAndEnv = getPhoneEnvBool('AND') @@ -69,7 +69,7 @@ export const initWebSocket = (wsUrl : string) : Promise => { * @returns 固定返回false(保持原有返回值类型) */ export function showErrorTip( - errorCode : ErrorCode, + errorMsg : ErrorMessageEnum | string, options : ShowErrorTipOptions = {} ) : boolean { // 解构可选参数,设置默认延迟时间为200ms @@ -78,7 +78,7 @@ export function showErrorTip( // 延迟显示对应的错误提示 setTimeout(() => { uni.showToast({ - title: errorCode, // 直接使用枚举值作为提示文本 + title: errorMsg, // 直接使用枚举值作为提示文本 icon: 'none' }); }, delayTime); // 使用传入的延迟时间(或默认200ms) diff --git a/src/components/touch-btn/touch-btn.types.ts b/src/components/touch-btn/touch-btn.types.ts index 280bc31b..e83e273c 100644 --- a/src/components/touch-btn/touch-btn.types.ts +++ b/src/components/touch-btn/touch-btn.types.ts @@ -24,7 +24,7 @@ export type VoiceToTextSubStatus = export type WorkModeType = 'both' | 'text-only' | 'voice-only' ; /** 错误码枚举 - 直接映射提示文本 */ -export enum ErrorCode { +export enum ErrorMessageEnum { // 网络错误提示 NetworkError = '网络连接失败,请稍后再试!', // 录音时长过短提示 diff --git a/src/components/touch-btn/touch-btn.vue b/src/components/touch-btn/touch-btn.vue index 68d26c0e..73fed535 100644 --- a/src/components/touch-btn/touch-btn.vue +++ b/src/components/touch-btn/touch-btn.vue @@ -116,12 +116,13 @@