| 
					
				 | 
			
			
				@@ -12,6 +12,7 @@ import iconLogo from '@/common/images/icon_logo.png' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import iconTeacher from '@/common/images/icon_teacher.png' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import logo from '../../images/logo.png' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { state } from '@/state' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import request from '@/helpers/request' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default defineComponent({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   name: 'share', 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -23,12 +24,25 @@ export default defineComponent({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   data() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       qrCode: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      copyQrCode: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       image: null as any 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  mounted() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    this.qrCode = 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      location.origin + '/student/#/inviteTeacher?id=' + this.teacherId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  async mounted() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.qrCode = 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        location.origin + '/student/#/inviteTeacher?id=' + this.teacherId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const shortRes = await request.post('/api-teacher/sysConfig/shortURL', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        requestType: 'form', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        data: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          orginURL: this.qrCode 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.copyQrCode = shortRes.data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } catch (e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     const canvas = document.getElementById('canvas') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     QRCode.toCanvas( 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -65,7 +79,9 @@ export default defineComponent({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               desc: '酷乐秀小酷Ai帮助我自主练习乐器,真的太好用啦!每天都要坚持练习哦~', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               image, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               video: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              type: 'image' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              type: 'image', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              button: ['copy'], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              url: this.copyQrCode 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           (res: any) => { 
			 |