跳轉到下一頁
=======html
<van-cell :title="$t('mine.feedback')"
icon="comment-circle"
is-link
@click="goToPage('fankui')"/>
=======JS
export default {
data() {
return{
methods: {
//不帶參數的
goToPage(name) {
// alert("1");
this.$router.push({name});
},
//或者
onAddress(){
this.$router.push({name:'myAddress'});
},
//帶有參數的
//獲取商品詳情
goToDetail(sid) {
//alert("aaa");
this.$router.push({
name: "goodsDetail",
params: {
id: sid
}
});
},
//返回上一頁
onClick() {
this.$router.go(-1);
//或者
this.$router.back();
},
}
}
}
}
