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

ios支持购买

上级 98d8ee66
...@@ -141,15 +141,16 @@ export default { ...@@ -141,15 +141,16 @@ export default {
}, },
goPayIos() {}, goPayIos() {},
appSource() { appSource() {
const u = navigator.userAgent // const u = navigator.userAgent
const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) // const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
if (isiOS) { // if (isiOS) {
// this.$utils.msgshow('ios') // // this.$utils.msgshow('ios')
this.isSystem = 1 // this.isSystem = 1
} else { // } else {
// this.$utils.msgshow('安卓') // // this.$utils.msgshow('安卓')
this.isSystem = 0 // this.isSystem = 0
} // }
this.isSystem = 0
}, },
imagePreview() { imagePreview() {
ImagePreview(['https://zws-imgs-pub.ezijing.com/static/public/dcef7bc62237a077b10d7e49c44a1e51.jpg']) ImagePreview(['https://zws-imgs-pub.ezijing.com/static/public/dcef7bc62237a077b10d7e49c44a1e51.jpg'])
......
...@@ -139,15 +139,16 @@ export default { ...@@ -139,15 +139,16 @@ export default {
}, },
goPayIos() {}, goPayIos() {},
appSource() { appSource() {
const u = navigator.userAgent // const u = navigator.userAgent
const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) // const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
if (isiOS) { // if (isiOS) {
// this.$utils.msgshow('ios') // // this.$utils.msgshow('ios')
this.isSystem = 1 // this.isSystem = 1
} else { // } else {
// this.$utils.msgshow('安卓') // // this.$utils.msgshow('安卓')
this.isSystem = 0 // this.isSystem = 0
} // }
this.isSystem = 0
}, },
imagePreview() { imagePreview() {
ImagePreview(['https://zws-imgs-pub.ezijing.com/static/public/dcef7bc62237a077b10d7e49c44a1e51.jpg']) ImagePreview(['https://zws-imgs-pub.ezijing.com/static/public/dcef7bc62237a077b10d7e49c44a1e51.jpg'])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论