hookehuyr

✨ feat(上传表单模块): 重新定义表单产量

...@@ -28,6 +28,8 @@ import icon_video from '@images/video.png' ...@@ -28,6 +28,8 @@ import icon_video from '@images/video.png'
28 import { ref, reactive, onMounted } from 'vue' 28 import { ref, reactive, onMounted } from 'vue'
29 import { useRoute, useRouter, onBeforeRouteLeave } from 'vue-router' 29 import { useRoute, useRouter, onBeforeRouteLeave } from 'vue-router'
30 30
31 +import { JSJ_FORM_B } from '@/constant'
32 +
31 const props = defineProps({ 33 const props = defineProps({
32 item: Object, 34 item: Object,
33 type: String, 35 type: String,
...@@ -46,7 +48,7 @@ const onUpload = (v) => { ...@@ -46,7 +48,7 @@ const onUpload = (v) => {
46 show.value = true; 48 show.value = true;
47 // x_field_1是金数据表单传入的参数,老师上传的格式为:user_id-book_id-perf_id,perf_id 为 0 49 // x_field_1是金数据表单传入的参数,老师上传的格式为:user_id-book_id-perf_id,perf_id 为 0
48 let str = `${props.user_id}-${v.id}-0`; 50 let str = `${props.user_id}-${v.id}-0`;
49 - location.href = `https://jsj.onwall.cn/f/g7D0MT?x_field_1=${str}`; 51 + location.href = `${JSJ_FORM_B}?x_field_1=${str}`;
50 // BUG: 关闭loading临时处理 52 // BUG: 关闭loading临时处理
51 setTimeout(() => { 53 setTimeout(() => {
52 show.value = false; 54 show.value = false;
......
1 +// 金数据表单 - 家长端
2 +export const JSJ_FORM_C = 'https://jsjs.onwall.cn/f/NAGn1D';
3 +
4 +// 金数据表单 - 老师端
5 +export const JSJ_FORM_B = 'https://jsj.onwall.cn/f/g7D0MT';
...@@ -145,6 +145,8 @@ import _ from 'lodash' ...@@ -145,6 +145,8 @@ import _ from 'lodash'
145 import { Toast } from 'vant'; 145 import { Toast } from 'vant';
146 import { wxInfo } from '@/utils/tools'; 146 import { wxInfo } from '@/utils/tools';
147 147
148 +import { JSJ_FORM_C } from '@/constant'
149 +
148 const $route = useRoute(); 150 const $route = useRoute();
149 const $router = useRouter(); 151 const $router = useRouter();
150 152
...@@ -258,7 +260,7 @@ const uploadVideo = () => { ...@@ -258,7 +260,7 @@ const uploadVideo = () => {
258 // 已读隐私条例,直接跳转上传页面 260 // 已读隐私条例,直接跳转上传页面
259 if (Cookies.get('privacy_notice')) { 261 if (Cookies.get('privacy_notice')) {
260 show.value = true; 262 show.value = true;
261 - location.href = `https://jsjs.onwall.cn/f/NAGn1D?x_field_1=${str}`; 263 + location.href = `${JSJ_FORM_C}?x_field_1=${str}`;
262 // BUG: 关闭loading临时处理 264 // BUG: 关闭loading临时处理
263 setTimeout(() => { 265 setTimeout(() => {
264 show.value = false; 266 show.value = false;
......
...@@ -37,6 +37,9 @@ import { useRoute, useRouter } from 'vue-router' ...@@ -37,6 +37,9 @@ import { useRoute, useRouter } from 'vue-router'
37 import axios from '@/utils/axios'; 37 import axios from '@/utils/axios';
38 import $ from 'jquery' 38 import $ from 'jquery'
39 import { Toast } from 'vant'; 39 import { Toast } from 'vant';
40 +
41 +import { JSJ_FORM_C } from '@/constant'
42 +
40 const $route = useRoute(); 43 const $route = useRoute();
41 const $router = useRouter(); 44 const $router = useRouter();
42 45
...@@ -50,7 +53,7 @@ const agree = () => { ...@@ -50,7 +53,7 @@ const agree = () => {
50 show.value = true; 53 show.value = true;
51 Cookies.set('privacy_notice', '1'); 54 Cookies.set('privacy_notice', '1');
52 // x_field_1 是金数据表单传入的参数,家长上传的格式为:user_id-book_id-perf_id,perf_id是当前缺省的儿童id 55 // x_field_1 是金数据表单传入的参数,家长上传的格式为:user_id-book_id-perf_id,perf_id是当前缺省的儿童id
53 - location.href = `https://jsjs.onwall.cn/f/NAGn1D?x_field_1=${$route.query.str}`; 56 + location.href = `${JSJ_FORM_C}?x_field_1=${$route.query.str}`;
54 // BUG: 关闭loading临时处理 57 // BUG: 关闭loading临时处理
55 setTimeout(() => { 58 setTimeout(() => {
56 show.value = false; 59 show.value = false;
......