vue 页面跳转,传数据
来源:互联网 发布:解毒丹 知乎 编辑:程序博客网 时间:2024/06/08 00:28
出数据页面
exchange(){ this.$router.push({path:'/shoppingconfirm',query: { mall_id: this.mallres.mall_id , name:this.mallres.name, cover:this.mallres.cover, price:this.mallres.price, mall_num:this.mall_num, }}); }
接数据页面
mounted(){ this.mall_id = this.$route.query.mall_id; this.name = this.$route.query.name; this.cover = this.$route.query.cover; this.price = this.$route.query.price; this.mall_num = this.$route.query.mall_num; this.remarks = this.$route.query.remarks; this.total = this.mall_num * this.price; if(this.$route.query.addressInfo != null){ this.addressInfo = JSON.parse(this.$route.query.addressInfo); }else{ this.getaddressinfo(); } }
阅读全文
0 0
- vue 页面跳转,传数据
- vue 点击传参 页面跳转
- vue-router跳转页面
- vue-router跳转页面
- vue页面跳转
- vue页面跳转参数传递
- 使用 vue-router 跳转页面
- vue页面跳转拦截器
- VUE 页面的跳转写法
- 使用vue-router页面跳转
- vue.js 页面跳转传值 localStorage本地存储
- Activity页面跳转及回传数据
- Vue.js实战之利用vue-router实现跳转页面
- vue 页面跳转(兄弟组件)通过路由或vuex 进行传递参数,并且实现刷新数据不消失
- vue路由跳转传参数
- 页面登录跳转获取数据
- 页面跳转与数据传递
- 页面跳转和数据传递
- idea创建springcloud项目图文教程(Feign实现负载均衡)(九)
- 《UNIX网络编程 卷2》 笔记: Posix消息队列(2)
- 枚举排列
- C语言内存管理函数总结(1)
- springboot学习三(springboot结合spring data jpa和freemarker显示)
- vue 页面跳转,传数据
- FreeRTOS列表和列表项
- npm包change-version的编写
- collections 模块整理
- ssm练手(CRUD) 2、修改sql方法,并利用JUnit结合数据库进行测试
- HDU 6191 DFS序+可持久化字典树
- 文章标题
- 实训开始!~~
- pyspark中like的用法