Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
fxPark
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-04-19 10:31:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2f910f4e1893570f4d925ed7f969e73f473ed0cb
2f910f4e
1 parent
ec9ff4a0
fix 扫描到不合法植被信息返回首页,全部点亮时海报提示文字调整
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
src/utils/axios.js
src/views/fxPark/poster.vue
src/utils/axios.js
View file @
2f910f4
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-28 10:17:40
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-04-1
0 17:37:44
* @LastEditTime: 2024-04-1
9 10:19:02
* @FilePath: /fxPark/src/utils/axios.js
* @Description:
*/
...
...
@@ -62,8 +62,8 @@ axios.interceptors.response.use(
*/
router
.
replace
({
path
:
'/auth'
,
query
:
{
href
:
location
.
hash
,
prefixAPI
}
});
}
//
拦截B端未登录情况
if
([
'
老师请先登录!'
,
'老师不存在!'
].
includes
(
response
.
data
.
msg
))
{
router
.
replace
({
path
:
'/business/login
'
});
}
//
如果扫的二维码不是这次活动的二维码
if
([
'
这不是“碳寻”要找的植物二维码哦'
].
includes
(
response
.
data
.
msg
))
{
router
.
replace
({
path
:
'/
'
});
}
return
response
;
},
error
=>
{
...
...
src/views/fxPark/poster.vue
View file @
2f910f4
...
...
@@ -103,6 +103,9 @@ onMounted(async () => {
const resizePoster = () => { // 重置海报
tree_data.value = raw_data.value[posterIndex.value];
if (tree_data.value.is_tree === 0) { // 全点亮加个任务标题
tree_data.value.mission_title = '祝贺你完成“碳寻”任务!';
}
flag.value = true;
imgUrl.value = '';
imgSrc.value = tree_data.value.user_poster !== null ? tree_data.value.user_poster : tree_data.value.poster_pic;
...
...
Please
register
or
login
to post a comment