You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
772 B

const app = getApp();
Component({
properties: {
data:Object
},
data: {
},
methods: {
5 years ago
enterInvite(){
let {type, id} = this.data.data;
let {envVersion} = global.config;
if(envVersion!='develop'&&envVersion!='trial')
return;
if(type=='course')
app.navigateTo({url:"{course_invite}?course_id="+id});
},
enterPage(){
5 years ago
let {type, id, identifier} = this.data.data;
switch(type){
case 'shixun':
5 years ago
return app.navigateTo({ url: "{shixun}?identifier=" + identifier});
case "course":
5 years ago
return app.navigateTo({url:"{course}?course_id="+id});
case "subject":
case "path":
return app.navigateTo({url:"{path}?subject_id="+id});
}
}
}
})