hookehuyr

成功跳转页面更新

<!--
* @Date: 2022-06-29 18:18:02
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-25 17:30:16
* @LastEditTime: 2024-07-27 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>
......