diff --git a/.env.development b/.env.development index e0c35b45..86c00cab 100644 --- a/.env.development +++ b/.env.development @@ -4,10 +4,10 @@ ENV = 'development' -#VITE_APP_BASE_API_Url = 'https://aits.jlbank.com.cn:7001' +VITE_APP_BASE_API_Url = 'https://aits.jlbank.com.cn:7001' -VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' +#VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' # VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' # VITE_APP_BASE_API_Url = 'http://192.168.247.200' diff --git a/src/pages/course/study.vue b/src/pages/course/study.vue index 85955203..a9f83892 100644 --- a/src/pages/course/study.vue +++ b/src/pages/course/study.vue @@ -5,7 +5,6 @@ {{ chooseRate }}倍 - diff --git a/src/pages/me/index.vue b/src/pages/me/index.vue index 2c269ea1..fae5efab 100644 --- a/src/pages/me/index.vue +++ b/src/pages/me/index.vue @@ -42,7 +42,12 @@ mode="heightFix" alt="当前徽章" > - + @@ -199,8 +204,11 @@ const socketStore = useSocketStore(); const badgeNumRef = ref(null); const currentPointsRef = ref(null); + const ENV = import.meta.env; const gotoTestPage = () => { - common.navigateTo('/pages/test/index'); + if (['development', 'sit', 'uat'].includes(ENV.MODE)) { + common.navigateTo('/pages/test/index'); + } }; const user_info = reactive({ userName: '', @@ -314,13 +322,10 @@ Object.assign(user_info, getUserInfo()); statistics_data['get_statistics_data'](); // 获取统计数据 // 获取今日是否签到消息 - initCheckInStatus(({isSigned, checkInDays, popUpStatus}) => { + initCheckInStatus(({ isSigned, checkInDays, popUpStatus }) => { user_info.checkInToday = isSigned ? 1 : 2; user_info.checkInDays = checkInDays; }); - - - }); onHide(() => { checkInRef.value && checkInRef.value.close();