hookehuyr

fix 上传视频loading提示

......@@ -49,14 +49,14 @@ const handle = () => {
// 上传视频
const show = ref(false);
const onUpload = (v) => {
// show.value = true;
show.value = true;
// x_field_1是金数据表单传入的参数,老师上传的格式为:user_id-book_id-perf_id,perf_id 为 0
let str = `${props.user_id}-${v.id}-0`;
location.href = `${JSJ_FORM_B}?x_field_1=${str}`;
// BUG: 关闭loading临时处理
// setTimeout(() => {
// show.value = false;
// }, 2000);
setTimeout(() => {
show.value = false;
}, 2000);
}
onBeforeRouteLeave(() => {
......
......@@ -208,31 +208,30 @@ const noticeHtml = ref('')
const show = ref(false); // 跳转等待提示
const uploadVideo = () => {
if (userInfo.value.can_upload === 1) { // 可以上传
// show.value = true;
show.value = true;
// x_field_1 是金数据表单传入的参数,家长上传的格式为:user_id-book_id-perf_id,perf_id是当前缺省的儿童id
const str = `${userInfo.value.user_id}-${$route.query.id}-${userInfo.value.perf_id}`;
// 已读隐私条例,直接跳转上传页面
// TODO: 暂时屏蔽已读不显示,方便测试
$router.push({
path: '/client/privacyNotice',
query: {
str
}
})
// if (Cookies.get('privacy_notice')) {
// location.href = `${JSJ_FORM_C}?x_field_1=${str}`;
// // BUG: 关闭loading临时处理
// // setTimeout(() => {
// // show.value = false;
// // }, 2000);
// } else { // 跳转个人隐私阅读
// $router.push({
// path: '/client/privacyNotice',
// query: {
// str
// }
// })
// }
if (Cookies.get('privacy_notice')) {
location.href = `${JSJ_FORM_C}?x_field_1=${str}`;
// BUG: 关闭loading临时处理
setTimeout(() => {
show.value = false;
}, 2000);
} else { // 跳转个人隐私阅读
$router.push({
path: '/client/privacyNotice',
query: {
str
}
})
}
} else if (userInfo.value.can_upload === -1) { // 未实名认证
showNotice.value = true;
noticeText.value = '前往认证'
......
......@@ -43,20 +43,23 @@ const $route = useRoute();
const $router = useRouter();
const disagree = () => {
$router.go(-1)
$router.go(-1);
setTimeout(() => {
show.value = false;
}, 2000);
}
const show = ref(false); // 跳转等待提示
const agree = () => {
// show.value = true;
show.value = true;
Cookies.set('privacy_notice', '1');
// x_field_1 是金数据表单传入的参数,家长上传的格式为:user_id-book_id-perf_id,perf_id是当前缺省的儿童id
location.href = `${JSJ_FORM_C}?x_field_1=${$route.query.str}`;
// BUG: 关闭loading临时处理
// setTimeout(() => {
// show.value = false;
// }, 2000);
setTimeout(() => {
show.value = false;
}, 2000);
}
const videoInfo = {
......