hookehuyr

成功跳转页面更新

1 <!-- 1 <!--
2 * @Date: 2022-06-29 18:18:02 2 * @Date: 2022-06-29 18:18:02
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2024-07-25 17:30:16 4 + * @LastEditTime: 2024-07-27 21:02:29
5 * @FilePath: /temple_material_request/src/views/success.vue 5 * @FilePath: /temple_material_request/src/views/success.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -47,6 +47,10 @@ const $route = useRoute(); ...@@ -47,6 +47,10 @@ const $route = useRoute();
47 const $router = useRouter(); 47 const $router = useRouter();
48 useTitle($route.meta.title); 48 useTitle($route.meta.title);
49 49
50 +const activity_id = $route.query.activity_id ? $route.query.activity_id : '';
51 +const form_id = $route.query.form_id ? $route.query.form_id : '';
52 +const client_id = $route.query.client_id ? $route.query.client_id : '';
53 +
50 const styleObj = { 54 const styleObj = {
51 background: styleColor.baseColor, 55 background: styleColor.baseColor,
52 border: styleColor.baseColor, 56 border: styleColor.baseColor,
...@@ -62,20 +66,18 @@ const handle = () => { ...@@ -62,20 +66,18 @@ const handle = () => {
62 }; 66 };
63 67
64 const goTo = (type) => { 68 const goTo = (type) => {
65 - // TODO:地址待定需要和后台沟通
66 if (type === 'home') { // 返回首页 69 if (type === 'home') { // 返回首页
67 - // location.href = '/'; 70 + location.href = `http://oa.onwall.cn/f/main/?p=activity&form_id=${form_id}&i=${activity_id}`;
68 /** 71 /**
69 * 活动首页: 72 * 活动首页:
70 http://oa.onwall.cn/f/main/?p=activity&form_id=799652&i=801234 73 http://oa.onwall.cn/f/main/?p=activity&form_id=799652&i=801234
71 */ 74 */
72 } else { // 返回活动主页 75 } else { // 返回活动主页
73 - // location.href = '/'; 76 + location.href = `https://oa-dev.onwall.cn/?p=volunteer_home&t=volunteer&c=${client_id}`;
74 /** 77 /**
75 * https://oa-dev.onwall.cn/?p=volunteer_home&t=volunteer&c=35697 78 * https://oa-dev.onwall.cn/?p=volunteer_home&t=volunteer&c=35697
76 */ 79 */
77 } 80 }
78 - console.warn(type);
79 } 81 }
80 </script> 82 </script>
81 83
......