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-05-17 10:43:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5b0391f7390d02419bd2920aad8a37c91607ab43
5b0391f7
1 parent
e2b75669
✨ feat(上传表单模块): 重新定义表单产量
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
src/components/BookCard/index.vue
src/constant.js
src/views/client/bookDetail.vue
src/views/client/privacyNotice.vue
src/components/BookCard/index.vue
View file @
5b0391f
...
...
@@ -28,6 +28,8 @@ import icon_video from '@images/video.png'
import { ref, reactive, onMounted } from 'vue'
import { useRoute, useRouter, onBeforeRouteLeave } from 'vue-router'
import { JSJ_FORM_B } from '@/constant'
const props = defineProps({
item: Object,
type: String,
...
...
@@ -46,7 +48,7 @@ const onUpload = (v) => {
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 = `
https://jsj.onwall.cn/f/g7D0MT
?x_field_1=${str}`;
location.href = `
${JSJ_FORM_B}
?x_field_1=${str}`;
// BUG: 关闭loading临时处理
setTimeout(() => {
show.value = false;
...
...
src/constant.js
0 → 100644
View file @
5b0391f
// 金数据表单 - 家长端
export
const
JSJ_FORM_C
=
'https://jsjs.onwall.cn/f/NAGn1D'
;
// 金数据表单 - 老师端
export
const
JSJ_FORM_B
=
'https://jsj.onwall.cn/f/g7D0MT'
;
src/views/client/bookDetail.vue
View file @
5b0391f
...
...
@@ -145,6 +145,8 @@ import _ from 'lodash'
import { Toast } from 'vant';
import { wxInfo } from '@/utils/tools';
import { JSJ_FORM_C } from '@/constant'
const $route = useRoute();
const $router = useRouter();
...
...
@@ -258,7 +260,7 @@ const uploadVideo = () => {
// 已读隐私条例,直接跳转上传页面
if (Cookies.get('privacy_notice')) {
show.value = true;
location.href = `
https://jsjs.onwall.cn/f/NAGn1D
?x_field_1=${str}`;
location.href = `
${JSJ_FORM_C}
?x_field_1=${str}`;
// BUG: 关闭loading临时处理
setTimeout(() => {
show.value = false;
...
...
src/views/client/privacyNotice.vue
View file @
5b0391f
...
...
@@ -37,6 +37,9 @@ import { useRoute, useRouter } from 'vue-router'
import axios from '@/utils/axios';
import $ from 'jquery'
import { Toast } from 'vant';
import { JSJ_FORM_C } from '@/constant'
const $route = useRoute();
const $router = useRouter();
...
...
@@ -50,7 +53,7 @@ const agree = () => {
show.value = true;
Cookies.set('privacy_notice', '1');
// x_field_1 是金数据表单传入的参数,家长上传的格式为:user_id-book_id-perf_id,perf_id是当前缺省的儿童id
location.href = `
https://jsjs.onwall.cn/f/NAGn1D
?x_field_1=${$route.query.str}`;
location.href = `
${JSJ_FORM_C}
?x_field_1=${$route.query.str}`;
// BUG: 关闭loading临时处理
setTimeout(() => {
show.value = false;
...
...
Please
register
or
login
to post a comment