Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
temple_material_request
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-07-27 21:02:58 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
85a8214145ebaed83853bee134c5e1bfad65b26d
85a82141
1 parent
99bfed05
成功跳转页面更新
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
src/views/success.vue
src/views/success.vue
View file @
85a8214
<!--
* @Date: 2022-06-29 18:18:02
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-2
5 17:30:16
* @LastEditTime: 2024-07-2
7 21:02:29
* @FilePath: /temple_material_request/src/views/success.vue
* @Description: 文件描述
-->
...
...
@@ -47,6 +47,10 @@ const $route = useRoute();
const $router = useRouter();
useTitle($route.meta.title);
const activity_id = $route.query.activity_id ? $route.query.activity_id : '';
const form_id = $route.query.form_id ? $route.query.form_id : '';
const client_id = $route.query.client_id ? $route.query.client_id : '';
const styleObj = {
background: styleColor.baseColor,
border: styleColor.baseColor,
...
...
@@ -62,20 +66,18 @@ const handle = () => {
};
const goTo = (type) => {
// TODO:地址待定需要和后台沟通
if (type === 'home') { // 返回首页
// location.href = '/'
;
location.href = `http://oa.onwall.cn/f/main/?p=activity&form_id=${form_id}&i=${activity_id}`
;
/**
* 活动首页:
http://oa.onwall.cn/f/main/?p=activity&form_id=799652&i=801234
*/
} else { // 返回活动主页
// location.href = '/'
;
location.href = `https://oa-dev.onwall.cn/?p=volunteer_home&t=volunteer&c=${client_id}`
;
/**
* https://oa-dev.onwall.cn/?p=volunteer_home&t=volunteer&c=35697
*/
}
console.warn(type);
}
</script>
...
...
Please
register
or
login
to post a comment