Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
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
2022-06-02 20:15:00 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
857de6460aa239089f27c38baa56dfba7db0ff91
857de646
1 parent
489caaeb
fix 上传视频loading提示
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
31 deletions
src/components/BookCard/index.vue
src/views/client/bookDetail.vue
src/views/client/privacyNotice.vue
src/components/BookCard/index.vue
View file @
857de64
...
...
@@ -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(() => {
...
...
src/views/client/bookDetail.vue
View file @
857de64
...
...
@@ -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
// }
// })
// }
// $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 = '前往认证'
...
...
src/views/client/privacyNotice.vue
View file @
857de64
...
...
@@ -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 = {
...
...
Please
register
or
login
to post a comment