Просмотр исходного кода

fix(pptEasyClass): 修复分享弹窗参数传递和url拼接问题

1. 调整分享弹窗打开时传入的参数为正确的oidCode/orgCode和inviteCode
2. 修改分享链接的参数名,将ccid改为orgnum、classid改为classcode
lsc 1 неделя назад
Родитель
Сommit
1099484b36

+ 2 - 1
src/components/pptEasyClass/index.vue

@@ -932,7 +932,8 @@ export default {
     },
     // 打开分享弹窗
     openShareDialog() {
-      this.$refs.shareDialogRef.open(this.id, this.tcid2)
+      let code = this.userJson.oidCode || this.userJson.orgCode
+      this.$refs.shareDialogRef.open(code, this.inviteCode)
     }
     
   },

+ 2 - 1
src/components/pptEasyClass/indexPS.vue

@@ -932,7 +932,8 @@ export default {
       }
     },
     openShareDialog() {
-      this.$refs.shareDialogRef.open(this.id, this.tcid2)
+      let code = this.userJson.oidCode || this.userJson.orgCode
+      this.$refs.shareDialogRef.open(code, this.inviteCode)
     }
   },
   destroyed() {

+ 1 - 1
src/components/pptEasyClass/shareDialog.vue

@@ -88,7 +88,7 @@ export default {
       else if (this.lang.lang === 'en') {
         url = 'https://cloud.cocorobo.com'
       }
-      this.form.url = `${url}/admin.htm?ccid=${this.courseId}&classid=${this.classId}`;
+      this.form.url = `${url}/admin.htm?orgnum=${this.courseId}&classcode=${this.classId}`;
       // this.getData();
     },
     close() {