Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.7k views
in Technique[技术] by (71.8m points)

小程序页面上的二维码用微信扫码后页面怎么自动跳转?

image
页面/pages/login/index有这样一个二维码 用微信扫码授权后如何从pages/login/index跳转到pages/index/index页面 不是扫码的手机跳转到小程序 而是小程序页面的跳转


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

二维码应该为一个链接(携带参数),手机扫码后会跳转这个链接来告诉后台该码已扫(已请求)。
展示二维码的小程序使用websocket,或者隔1秒请求后台查询小程序码是否已扫描


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...