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.
23 lines
414 B
23 lines
414 B
5 years ago
|
const app = getApp();
|
||
|
Component({
|
||
|
properties: {
|
||
|
data:Object
|
||
|
},
|
||
|
|
||
|
data: {
|
||
|
|
||
|
},
|
||
|
|
||
|
methods: {
|
||
|
enterPage(){
|
||
|
let {type} = this.data.data;
|
||
|
switch(type){
|
||
|
case 'shixun':
|
||
|
return app.navigateTo({ url: "{shixun}?identifier=" + this.data.data.identifier});
|
||
|
case "course":
|
||
|
return app.navigateTo({url:"{course}?course_id="+this.data.data.id});
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
})
|