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: {
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(){
let {type, id, identifier} = this.data.data;
switch(type){
case 'shixun':
return app.navigateTo({ url: "{shixun}?identifier=" + identifier});
case "course":
return app.navigateTo({url:"{course}?course_id="+id});
case "subject":
case "path":
return app.navigateTo({url:"{path}?subject_id="+id});
}
}
}
})