Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
hrs_app_h5
/
bill
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0fb5e7c8
authored
Jul 15, 2020
by
cocomilk2012
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
29a4079f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
src/views/Bill/index.vue
src/views/Bill/index.vue
View file @
0fb5e7c8
...
...
@@ -253,9 +253,23 @@ export default {
//event.persisted是否是缓存
location
.
reload
();
};
//TODO:根据UA判断:如果App版本
<
2.1
.
9
就走原来的充值逻辑;如果
App
版本
>=
2.1
.
9
就走新的充值逻辑;
//根据UA判断:如果App版本
<
2.1
.
9
就走原来的充值逻辑;如果
App
版本
>=
2.1
.
9
就走新的充值逻辑;
//TODO:安卓的单独判断
try
{
const
userAgent
=
navigator
.
userAgent
.
toLowerCase
();
if
(
userAgent
.
indexOf
(
"qqxbua"
)
!=
-
1
)
{
let
isAndroid
=
userAgent
.
indexOf
(
"android"
)
>
-
1
||
u
.
indexOf
(
"adr"
)
>
-
1
;
//android终端
if
(
isAndroid
)
{
let
temp
=
userAgent
.
split
(
"teammix/"
)[
1
];
let
version
=
temp
.
split
(
"(android"
)[
0
];
console
.
log
(
"version="
,
version
);
if
(
version
<
"2.1.9"
)
{
this
.
toPay_old
();
}
else
{
this
.
toPay_new
();
}
}
else
if
(
userAgent
.
indexOf
(
"qqxbua"
)
!=
-
1
)
{
let
tempArr
=
userAgent
.
split
(
"qqxbua:"
);
if
(
tempArr
.
length
>
1
)
{
const
tempStr
=
tempArr
[
1
];
...
...
@@ -271,6 +285,10 @@ export default {
}
else
{
this
.
toPay_old
();
}
}
catch
(
error
)
{
console
.
log
(
error
);
this
.
toPay_old
();
}
},
toPay_new
()
{
console
.
log
(
"topay_new"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment