Open yhz0206 opened 2 months ago
bug
小程序业务(需求/支付/服务号)
冰甜短剧
IOS
8.37.1
v3.92.0
2024-05-27 11:16:31 至 2024-05-27 11:30:00
ios手机上,中转页跳转window.location.href = 'http://pay.zhangzhongzhifu.com/sdkServer/tools/h5.jsp?content=xxxxxxxxxx',无法跳转 安卓手机正常
ios手机上正常跳转
中转页跳转页面逻辑
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>冰甜小说</title> <style type="text/css">
{ margin: 0; padding: 0; } html, body { background-color: #f6f6ee; } body { font-size: 16px; width: 100%; height: 100vh; overflow: hidden; } .container { width: 100%; height: 100%; overflow: hidden; position: relative; } .container-img { width: 2.5rem; height: 2.5rem; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } .container-btn { width: 6.7rem; height: 0.9rem; line-height: 0.9rem; text-align: center; background-color: rgba(213,217,228,.5); color: #1392ef; font-size: 0.36rem; position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); border-radius: 0.2rem; } .container-btn2 {bottom: 1rem;} .container-btn3 {bottom: 3rem;} .container-btn4 {bottom: 4rem;} .container-btn5 {bottom: 5rem;}
width: 6.7rem; min-height: 0.9rem; background-color: rgba(213,217,228,.5); position: absolute; left: 50%; top: 2rem; transform: translateX(-50%); font-size: 0.24rem; box-sizing: border-box; word-break: break-all; padding: 0.1rem; } .container-btn:active { background-color: #d5d9e4; } </style> <script type="text/javascript"> (function(designW){var prevScreenW=null;function resize(){var screenW=window.innerWidth;if(prevScreenW==screenW){return}else{prevScreenW=screenW}document.documentElement.style.fontSize=100*screenW/designW+"px"}window.onresize=function(){resize()};resize();window.onload=function(){resize()}})(750); </script> </head> <body> <div class="container"> </div>
<script type="text/javascript">
// query处理 function getQueryParamByKey(paramName) { var url = document.location.href; console.log(url, '===========') var arrObj = url.split("?"); if (arrObj.length > 1) { var arrPara = arrObj[1].split("&"); var arr; for (var i = 0; i < arrPara.length; i++) { arr = arrPara[i].split("="); if (arr != null && arr[0] == paramName) { return decodeURIComponent(arr[1]); } } return ""; } else { return ""; } } // 如果url中有特殊字符则需要进行一下解码 let pathurl = getQueryParamByKey('paypathurl'); window.location.href = pathurl; </script> </body> </html>
您好开发者, 我们已收到你的问题, 已通知开发团队进行处理! 如您未阅读我们的开发文档,可先参阅开发文档 小红书问题处置流程 :sparkles: 感谢您的提问!:sparkles:
掌中付在ios上不支持,后续可以支持下吗
Issue类型
bug
问题模块
小程序业务(需求/支付/服务号)
所属的服务商
冰甜短剧
平台
IOS
小红书版本信息
8.37.1
基础库版本
v3.92.0
用户ID
发生问题的时间
2024-05-27 11:16:31 至 2024-05-27 11:30:00
问题描述
ios手机上,中转页跳转window.location.href = 'http://pay.zhangzhongzhifu.com/sdkServer/tools/h5.jsp?content=xxxxxxxxxx',无法跳转 安卓手机正常
期望结果
ios手机上正常跳转
重现步骤和复现问题的最小demo Github链接
中转页跳转页面逻辑
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>冰甜小说</title> <style type="text/css">
{ margin: 0; padding: 0; } html, body { background-color: #f6f6ee; } body { font-size: 16px; width: 100%; height: 100vh; overflow: hidden; } .container { width: 100%; height: 100%; overflow: hidden; position: relative; } .container-img { width: 2.5rem; height: 2.5rem; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } .container-btn { width: 6.7rem; height: 0.9rem; line-height: 0.9rem; text-align: center; background-color: rgba(213,217,228,.5); color: #1392ef; font-size: 0.36rem; position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); border-radius: 0.2rem; } .container-btn2 {bottom: 1rem;} .container-btn3 {bottom: 3rem;} .container-btn4 {bottom: 4rem;} .container-btn5 {bottom: 5rem;}
contentid {
width: 6.7rem; min-height: 0.9rem; background-color: rgba(213,217,228,.5); position: absolute; left: 50%; top: 2rem; transform: translateX(-50%); font-size: 0.24rem; box-sizing: border-box; word-break: break-all; padding: 0.1rem; } .container-btn:active { background-color: #d5d9e4; } </style> <script type="text/javascript"> (function(designW){var prevScreenW=null;function resize(){var screenW=window.innerWidth;if(prevScreenW==screenW){return}else{prevScreenW=screenW}document.documentElement.style.fontSize=100*screenW/designW+"px"}window.onresize=function(){resize()};resize();window.onload=function(){resize()}})(750); </script> </head> <body> <div class="container"> </div>
<script type="text/javascript">
// query处理 function getQueryParamByKey(paramName) { var url = document.location.href; console.log(url, '===========') var arrObj = url.split("?"); if (arrObj.length > 1) { var arrPara = arrObj[1].split("&"); var arr; for (var i = 0; i < arrPara.length; i++) { arr = arrPara[i].split("="); if (arr != null && arr[0] == paramName) { return decodeURIComponent(arr[1]); } } return ""; } else { return ""; } } // 如果url中有特殊字符则需要进行一下解码 let pathurl = getQueryParamByKey('paypathurl'); window.location.href = pathurl; </script> </body> </html>