hookehuyr

fix 扫描到不合法植被信息返回首页,全部点亮时海报提示文字调整

...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2022-05-28 10:17:40 3 * @Date: 2022-05-28 10:17:40
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2024-04-10 17:37:44 5 + * @LastEditTime: 2024-04-19 10:19:02
6 * @FilePath: /fxPark/src/utils/axios.js 6 * @FilePath: /fxPark/src/utils/axios.js
7 * @Description: 7 * @Description:
8 */ 8 */
...@@ -62,8 +62,8 @@ axios.interceptors.response.use( ...@@ -62,8 +62,8 @@ axios.interceptors.response.use(
62 */ 62 */
63 router.replace({ path: '/auth', query: { href: location.hash, prefixAPI } }); 63 router.replace({ path: '/auth', query: { href: location.hash, prefixAPI } });
64 } 64 }
65 - // 拦截B端未登录情况 65 + // 如果扫的二维码不是这次活动的二维码
66 - if (['老师请先登录!', '老师不存在!'].includes(response.data.msg)) { router.replace({ path: '/business/login' }); } 66 + if (['这不是“碳寻”要找的植物二维码哦'].includes(response.data.msg)) { router.replace({ path: '/' }); }
67 return response; 67 return response;
68 }, 68 },
69 error => { 69 error => {
......
...@@ -103,6 +103,9 @@ onMounted(async () => { ...@@ -103,6 +103,9 @@ onMounted(async () => {
103 103
104 const resizePoster = () => { // 重置海报 104 const resizePoster = () => { // 重置海报
105 tree_data.value = raw_data.value[posterIndex.value]; 105 tree_data.value = raw_data.value[posterIndex.value];
106 + if (tree_data.value.is_tree === 0) { // 全点亮加个任务标题
107 + tree_data.value.mission_title = '祝贺你完成“碳寻”任务!';
108 + }
106 flag.value = true; 109 flag.value = true;
107 imgUrl.value = ''; 110 imgUrl.value = '';
108 imgSrc.value = tree_data.value.user_poster !== null ? tree_data.value.user_poster : tree_data.value.poster_pic; 111 imgSrc.value = tree_data.value.user_poster !== null ? tree_data.value.user_poster : tree_data.value.poster_pic;
......