|
@@ -53,6 +53,7 @@ export default {
|
|
|
// sessionStorage.setItem('gotype', this.$route.path);
|
|
// sessionStorage.setItem('gotype', this.$route.path);
|
|
|
console.log('betaL',this.betaL);
|
|
console.log('betaL',this.betaL);
|
|
|
|
|
|
|
|
|
|
+ // teachaer 端
|
|
|
if (this.type == 1) {
|
|
if (this.type == 1) {
|
|
|
let query = {
|
|
let query = {
|
|
|
userid: this.userid,
|
|
userid: this.userid,
|
|
@@ -69,22 +70,23 @@ export default {
|
|
|
console.log('query',query);
|
|
console.log('query',query);
|
|
|
console.log('cardData',this.cardData);
|
|
console.log('cardData',this.cardData);
|
|
|
this.$router.push({ path: this.to, query: query })
|
|
this.$router.push({ path: this.to, query: query })
|
|
|
- }else if (this.type == 2) {
|
|
|
|
|
|
|
+ }else if (this.type == 2) {
|
|
|
let con = this.betaL =='beta'? 'https://beta.cloud.cocorobo.cn' : 'https://cloud.cocorobo.cn'
|
|
let con = this.betaL =='beta'? 'https://beta.cloud.cocorobo.cn' : 'https://cloud.cocorobo.cn'
|
|
|
console.log( `${con}${this.to}`);
|
|
console.log( `${con}${this.to}`);
|
|
|
window.location.href = `${con}${this.to}`;
|
|
window.location.href = `${con}${this.to}`;
|
|
|
-
|
|
|
|
|
}else if (this.type == 3) {
|
|
}else if (this.type == 3) {
|
|
|
- window.location.href = this.to;
|
|
|
|
|
- }else if (this.type == 4) {
|
|
|
|
|
- let con = this.betaL =='beta'? 'https://beta.pbl.cocorobo.cn' : 'https://pbl.cocorobo.cn'
|
|
|
|
|
- console.log( `${con}${this.to}`);
|
|
|
|
|
- window.location.href = `${con}${this.to}`;
|
|
|
|
|
- }else {
|
|
|
|
|
|
|
+ // cocoFlow 页面
|
|
|
let con = this.betaL =='beta'? '//beta.app.cocorobo.cn/#/' : '//app.cocorobo.cn/#/'
|
|
let con = this.betaL =='beta'? '//beta.app.cocorobo.cn/#/' : '//app.cocorobo.cn/#/'
|
|
|
|
|
+ window.location.href = `${con}${this.to}`;
|
|
|
|
|
+ }else if (this.type == 4) {
|
|
|
|
|
+ //学生端
|
|
|
|
|
+ let con = this.betaL =='beta'? 'https://beta.pbl.cocorobo.cn' : 'https://pbl.cocorobo.cn'
|
|
|
console.log( `${con}${this.to}`);
|
|
console.log( `${con}${this.to}`);
|
|
|
-
|
|
|
|
|
window.location.href = `${con}${this.to}`;
|
|
window.location.href = `${con}${this.to}`;
|
|
|
|
|
+ }else if (this.type == 5) {
|
|
|
|
|
+ // console.log( `${con}${this.to}`);
|
|
|
|
|
+ // 直接传的地址不用区分beta与正式
|
|
|
|
|
+ window.location.href = `${this.to}`;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|