clickCity(name) { console.log(name); let pages = getCurrentPages(); //获取page let prevPage = pages[pages.length - 2]; //上一个页面(父页面) console.log('上一页参数', prevPage); prevPage.$vm.cityClass = name; //修改上一页data里面的地址 uni.navigateBack({ delta: 1 }); }
标签:uniApp,console,name,携带,prevPage,一页,pages From: https://www.cnblogs.com/wangshishuai/p/16616683.html