提交 4e6bfc96 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 7d51e38c
...@@ -34,8 +34,9 @@ export default { ...@@ -34,8 +34,9 @@ export default {
components: { qrcodePay, h5Pay }, components: { qrcodePay, h5Pay },
data() { data() {
const UA = window.navigator.userAgent const UA = window.navigator.userAgent
const isMobile = /android|iphone|ipad|ipod/i.test(UA)
return { return {
isWechat: /micromessenger/i.test(UA), isWechat: isMobile && /micromessenger/i.test(UA),
order: { id: '', payment_url: '' }, order: { id: '', payment_url: '' },
dialogVisible: false, dialogVisible: false,
timer: null, timer: null,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论