1.传值页面 123456789101112131415161718192021<script> export default { data() { return {} }, methods: { navBar() { let obj = { name: '阿清', age: 10, sex: '男' }; // 加密传递的对象数据 let item = encodeURIComponent(JSON.stringify(obj)) uni.navigateTo({ url: '/pages/navbar/navbar?item=' + item }) } } }</script> 2.接收的页面 1234567891011121314<script> export default { data() { return { userObj: {} } }, onLoad: function(option) { // decodeURIComponent 解密传过来的对象字符串 const item = JSON.parse(decodeURIComponent(option.item)); this.userObj = item } }</script>