|
@@ -53,7 +53,11 @@ export default {
|
|
|
dialogVisibleShare: {
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
- }
|
|
|
+ },
|
|
|
+ tid:{
|
|
|
+ type:String,
|
|
|
+ default:"",
|
|
|
+ }
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -77,7 +81,7 @@ export default {
|
|
|
},
|
|
|
setQr() {
|
|
|
setTimeout(() => {
|
|
|
- let url = 'https://beta.cloud.cocorobo.cn/#/classroomObservation';
|
|
|
+ let url = `https://beta.cloud.cocorobo.cn/aigpt/#/classroom_observation_board?tid=${this.tid}`;
|
|
|
this.origin = url;
|
|
|
this.$refs.qrCodeUrl.innerHTML = "";
|
|
|
var qrcode = new QRCode(this.$refs.qrCodeUrl, {
|
|
@@ -100,7 +104,7 @@ export default {
|
|
|
link.click();
|
|
|
},
|
|
|
copy() {
|
|
|
- this.copyText = 'https://beta.cloud.cocorobo.cn/#/classroomObservation';
|
|
|
+ this.copyText = `https://beta.cloud.cocorobo.cn/aigpt/#/classroom_observation_board?tid=${this.tid}`;
|
|
|
var clipboard = new Clipboard(".tag-read");
|
|
|
clipboard.on("success", e => {
|
|
|
this.$message.success("复制成功");
|
|
@@ -166,7 +170,12 @@ export default {
|
|
|
// console.log(top.origin);
|
|
|
// this.origin = top.origin
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ tid(){
|
|
|
+ if(this.dialogVisibleShare){
|
|
|
+ this.setQr();
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
mounted() {
|
|
|
// console.log("this.info", this.info);
|