a页,wx.navigateBack返回到b页后,a页的代码不执行?画布旋转后的隐藏旋转?

小程序 文章 2020-09-08 12:01 512 0 全屏看文

AI助手支持GPT4.0

a页,wx.navigateBack返回到b页后,a页的代码不执行?画布旋转后的隐藏旋转?On page a, after wx.navigateBack returns to page b, the code on page a is not executed? Hidden rotation after canvas rotation?

a页,wx.navigateBack返回到b页后,a页的代码不执行?画布旋转后的隐藏旋转?

手签,现在点击完成(保存),需要旋转画布在执行保存,手签方向才是竖直的,保存成功后后退一步。需求:不体现旋转这个过程

想了两种办法:

1.隐藏旋转后的手签,但他俩是同一个id,怎么隐藏其中一个,保留另一个?

2.a页先后退一步到b页,在执行保存,但后退成功后,a页的保存代码就不执行了,为什么?这种方法可行吗?

还有什么解决方法?


If you click Finish (save), you need to rotate the canvas. After saving, the direction of the manual is vertical. After saving, step back. Requirements: there are two ways to avoid the rotation process: 1. Hide the rotated signature, but they are the same ID. how to hide one and keep the other? 2. Page a takes a step back to page B, and the save code of page a will not be executed after the back is successful. Why? Is this method feasible? What are the other solutions?

回答:

搞文艺的猿:

你在b页面,管a干什么,要么你就等a处理完,在跳转b


子不语:

你都回到b了,为什么a的代码还要执行?

请学会如何「提问」(👈戳我)【个体工商户】微信认证问题(👈戳我)

微喵网络:

已经返回b了,为什么还要执行a的代码?

-EOF-

AI助手支持GPT4.0