lex 2 年之前
父节点
当前提交
39e869be89

+ 1 - 1
src/school/companion-teacher/companion-teacher-register.tsx

@@ -304,7 +304,7 @@ export default defineComponent({
         )
       } else if (type === 'PRIVACY') {
         window.open(
-          window.location.origin + window.location.pathname + '#/privacyProtocol',
+          window.location.origin + window.location.pathname + '#/privacyProtocol?type=teacher',
           '_blank'
         )
       } else if (type === 'WITHDRAW') {

+ 6 - 3
src/views/preview-protocol/privacy.tsx

@@ -10,16 +10,19 @@ export default defineComponent({
     const query = this.$route.query
     return {
       showHeader: query.showHeader || '0',
+      type: query.type || '',
       name: '管乐团'
     }
   },
   mounted() {
-    if (state.platformType === 'SCHOOL') {
+    console.log(this.type, 'type')
+    if (state.platformType === 'SCHOOL' || this.type == 'school') {
       this.name = '管乐团管理端'
-    } else if (state.platformType === 'TEACHER') {
+    }
+    if (state.platformType === 'TEACHER' || this.type == 'teacher') {
       this.name = '管乐团伴学端'
     }
-
+    console.log(this.name)
     document.title = this.name + '隐私协议'
   },
   render() {