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-22 19:52:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
379d0018280b127aba771ea5100d2a0a92ebc172
379d0018
1 parent
d83e6e3a
✨ feat(上传功能模块): 上传根据普通话/方言跳转不同上传表单页
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
19 deletions
src/constant.js
src/views/client/bookDetail.vue
src/constant.js
View file @
379d001
...
...
@@ -2,13 +2,14 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-25 18:34:17
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-22 19:
34:49
* @LastEditTime: 2022-06-22 19:
51:41
* @FilePath: /tswj/src/constant.js
* @Description:
*/
// 金数据表单 - 家长端
// 金数据表单 - 家长端
(废弃)
export
const
JSJ_FORM_C
=
'https://jsjs.onwall.cn/f/NAGn1D'
;
// 金数据表单 - 普通话 / 方言
// 金数据表单 - 家长端(普通话/方言)
// TODO: 等待后端提供正式地址
export
const
JSJ_FORM_MANDARIN
=
'https://jsjs.onwall.cn/f/NAGn1D'
;
export
const
JSJ_FORM_LOCALISM
=
'https://jsjs.onwall.cn/f/NAGn1D'
;
...
...
src/views/client/bookDetail.vue
View file @
379d001
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-21 09:35:14
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-22 1
8:34:38
* @LastEditTime: 2022-06-22 1
9:47:53
* @FilePath: /tswj/src/views/client/bookDetail.vue
* @Description:
-->
...
...
@@ -130,7 +130,7 @@ import { useRoute, useRouter, onBeforeRouteLeave } from 'vue-router'
import { Cookies, _, storeToRefs, mainStore, Toast, hasEllipsis } from '@/utils/generatePackage'
import { MyButton, VideoCard, NoticeOverlay, DonateFlower, ShortcutFixed } from '@/utils/generateModules'
import { icon_video, icon_up, icon_down, icon_subscribed, icon_unsubscribe, no_image } from '@/utils/generateIcons'
import { JSJ_FORM_C } from '@/constant'
import { JSJ_FORM_C
, JSJ_FORM_MANDARIN, JSJ_FORM_LOCALISM
} from '@/constant'
import { useVideoList, useDefaultPerf, useScrollTop } from '@/composables';
import { addSubscribeAPI } from '@/api/C/book.js'
import { prepareDonateAPI } from '@/api/C/donate.js'
...
...
@@ -237,24 +237,34 @@ const uploadVideo = () => {
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}`;
// 已读隐私条例,直接跳转上传页面
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 (checkMandarin.value) {
location.href = `${JSJ_FORM_MANDARIN}?x_field_1=${str}`;
} else {
location.href = `${JSJ_FORM_LOCALISM}?x_field_1=${str}`;
}
})
// BUG: 关闭loading临时处理
setTimeout(() => {
show.value = false;
}, 2000);
}
// // 已读隐私条例,直接跳转上传页面
// 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
// }
// })
// setTimeout(() => {
// show.value = false;
// }, 2000);
// }
} else if (userInfo.value.can_upload === -1) { // 未实名认证
showNotice.value = true;
noticeText.value = '前往认证'
...
...
Please
register
or
login
to post a comment