Browse Source

修改连接

lex-xin 4 years ago
parent
commit
887d9b6c8c
2 changed files with 5 additions and 2 deletions
  1. 1 1
      src/utils/validate.js
  2. 4 1
      src/views/reaplceMusicPlayer/index.vue

+ 1 - 1
src/utils/validate.js

@@ -62,7 +62,7 @@ export function vaildTeachingUrl() {
   let url = window.location.href
   let returnUrl = ''
   if (/dev/.test(url)) { // dev 环境
-    returnUrl = 'http://mandev.dayaedu.com/'
+    returnUrl = 'http://mandev.dayaedu.com'
   } else if (/test/.test(url)) { // dev 环境
     returnUrl = 'http://mantest.dayaedu.com'
   } else if (/online/.test(url)) { //线上

+ 4 - 1
src/views/reaplceMusicPlayer/index.vue

@@ -298,7 +298,10 @@ export default {
         //   });
           let str;
           if (name == "调查链接") {
-            str = vaildStudentUrl()+`/#/questionnaire?o=${row.organId}&c=${row.cooperationOrganId}`;
+            let returnUrl = vaildStudentUrl()+`/#/questionnaire?o=${row.organId}&c=${row.cooperationOrganId}`;
+            // console.log(returnUrl)
+            let tempUrl = vaildStudentUrl()+`/#/transfer?returnUrl=${encodeURIComponent(returnUrl)}`
+            str = tempUrl
           } else if (name == "统计链接") {
             str = vaildTeachingUrl()+`/#/questionStatistics?o=${row.organId}&c=${row.cooperationOrganId}`;
           }