跳转到下一页
=======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(); }, } } } }

  

posted on 2020-09-24 16:19  我的梦想是开个小店  阅读(6254)  评论(0编辑  收藏  举报