A brief description: according to the company’s requirements, we developed a simple transfer H5 link to jump to the applet (it is said that the applet officially supports direct jump now), and the jQuery page obtains automatically generated parameters. Our process is mainly that the mobile APP sends a short message link to the user’s mobile phone, and the user clicks the link to jump to the browser. Jump through the browser to the small program (the link carries the parameters, the parameters are base64 encrypted, so there is one more step to decrypt the operation), very simple requirements, on the code: ‘
<div style="text-align: center; margin: 0 auto; display: block; padding: 8px 24px; margin-top: 400px;" > <img src="img/logo2x.png" style="width:130px; height: 120px;" > <p style="font-size: 30px; color:#4444BB;" "> < p style="width: 350px; height: 50px; text-align: center; font-size: 20px; display: block; margin: 0 auto; padding: 8px 24px; border: none; border-radius: 25px; background-color: #4444BB; color:#fff;" </button> </div> </div> </body> <script SRC ='js/jquery-1.9.1.min.js' SRC ='js/jquery.base64.js'></script> var wxUrlGlobal ='; $(function() { var data = getUrlParam("data"); Var wxUrl = $. Base64. Atob (true) data, the console, log (' -- -- -- -- -- -- -- -- -- get wx url -- -- -- -- -- -- -- -- -- -- '); console.log(wxUrl); wxUrlGlobal = wxUrl; location.href = wxUrl; }) / / get the parameters in the url function getUrlParam (name) {var reg = new RegExp (" (^ | &) "+ name +" = (/ ^ & *) (& | $) "); / / constructs a regular expression objects contain a target parameter var r = window. The location. The search. The substr (1) the match (reg); If (r! = null) return unescape(r[2]); return null; } function openWxLite () {location.href = wxUrlGlobal; } </script>Copy the code