标签方式:
<navigator class="search" url="/pages/home/search" >搜索课程</navigator>
含参数跳转
<navigator :url="'/pages/course/courseList?name='+item3.name+'&cid='+item3.id">{{item3.name}}</navigator>
跳转到tab页
<navigator class="down-icon" open-type="switchTab" url="/pages/course/index">分类</navigator>
js跳转
let url = ~e.indexOf('platform') ? e : '/pages/API/' + e + '/' + e;
uni.navigateTo({
url: url
});