finish mobile wechat payment

This commit is contained in:
RockYang
2024-06-22 12:10:43 +08:00
parent c24b4d7074
commit 691294b444
6 changed files with 433 additions and 82 deletions

View File

@@ -242,9 +242,9 @@ export function processPrompt(prompt) {
return prompt
}
// 判断是否为 iphone 设备
export function isIphone() {
return /iPhone/i.test(navigator.userAgent) && !/iPad/i.test(navigator.userAgent);
// 判断是否为微信浏览器
export function isWeChatBrowser() {
return /MicroMessenger/i.test( navigator.userAgent);
}
export function showLoginDialog(router) {