采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
列表页,点击到详情页时,详情页操作后,点击返回如果更新列表页数据?除了从新加载,使用 wx.navigateTo(OBJECT) 做的跳转,返回时如果将数据回传到页面当中。
上面问题的“如果”错了,是“如何” var pages = getCurrentPages(); var prePage = pages[pages.length-2]; var data = res.content.logistical; prePage.setData({ 'orderInfo.logistical.reciver_name': data.reciver_name, 'orderInfo.logistical.reciver_mobile': data.reciver_mobile, 'orderInfo.logistical.reciver_address': data.reciver_address, 'orderInfo.logistical.reciver_postcode': data.reciver_postcode, 'orderInfo.order_state':10 }); wx.navigateBack() 目前是用上面的方法解决的。
- -,你的问题和解决方案没看出有什么关联。
使用,getCurrentPages,解决了
登录后可查看更多问答,登录/注册
全栈工程师/前后端都讲/架构思想/ RESTFul API、MySQL表设计
1.1k 23
1.3k 21
1.3k 19
995 18
1.0k 18