今日总结 路由传值+ 路由点击 +获取input的值+js实现路由跳转

<router-link :to="{ path:'/cart', query: {shopid:site.id}}" >

// 在query里放值

:to="{path:'/placeOrder',query:{orderItem:this.selectFoods,orderPrice:totalPrice,orderOrange:totalOrange,}}"

//多个传值

var shopid=this.$route.query.shopid;

//取值

@click.native

//点击事件

<textarea name="" id="" cols="30" rows="10" placeholder="添加备注"  v-model='value'></textarea>
    data() {
      return {
        goodid:[],
        orange:[],
        price:[],
        count:[],
        shop:[],
        value:''
      };
	var msg=this.value;
	methods: {
		      toPay(){
		      	this.$router.push({path:'/paymoney',query:{price:that.$route.query.orderPrice,order:that.order}});
		      },

猜你喜欢

转载自blog.csdn.net/qq_38674970/article/details/81298545