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
c95b9536
authored
Jul 13, 2020
by
cocomilk2012
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
2df3e8e1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
src/assets/js/bridge/birdge.js
src/views/Bill/index.vue
src/assets/js/bridge/birdge.js
View file @
c95b9536
...
@@ -87,6 +87,7 @@ class Bridge {
...
@@ -87,6 +87,7 @@ class Bridge {
* @param {Object=} args 请求对象
* @param {Object=} args 请求对象
*/
*/
getActionUrl
(
args
=
{})
{
getActionUrl
(
args
=
{})
{
console
.
log
(
'bridge.getActionUrl'
);
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
try
{
try
{
jsBridge
.
callHandler
(
"getActionUrl"
,
args
,
function
(
response
)
{
jsBridge
.
callHandler
(
"getActionUrl"
,
args
,
function
(
response
)
{
...
...
src/views/Bill/index.vue
View file @
c95b9536
...
@@ -251,22 +251,31 @@ export default {
...
@@ -251,22 +251,31 @@ export default {
//TODO:根据UA判断:如果App版本
<
2.1
.
9
就走原来的充值逻辑;如果
App
版本
>=
2.1
.
9
就走新的充值逻辑;
//TODO:根据UA判断:如果App版本
<
2.1
.
9
就走原来的充值逻辑;如果
App
版本
>=
2.1
.
9
就走新的充值逻辑;
const
userAgent
=
navigator
.
userAgent
.
toLowerCase
();
const
userAgent
=
navigator
.
userAgent
.
toLowerCase
();
if
(
userAgent
.
indexOf
(
"qqxbua"
)
!=
-
1
)
{
if
(
userAgent
.
indexOf
(
"qqxbua"
)
!=
-
1
)
{
let
tempArr
=
userAgent
.
split
(
"qqxbua:"
);
}
if
(
tempArr
.
length
>
1
)
{
const
version
=
"2.1.9"
;
const
tempStr
=
tempArr
[
1
];
const
QQXBUA
=
JSON
.
parse
(
tempStr
);
let
version
=
QQXBUA
.
version
;
console
.
log
(
'version='
,
version
);
if
(
version
<
"2.1.9"
)
{
if
(
version
<
"2.1.9"
)
{
this
.
toPay_old
();
this
.
toPay_old
();
}
else
{
}
else
{
this
.
toPay_new
();
this
.
toPay_new
();
}
}
}
}
else
{
this
.
toPay_new
();
}
},
},
toPay_new
()
{
toPay_new
()
{
console
.
log
(
"topay_new"
);
//TODO:先弹出一个遮罩层,点击任意按钮刷新页面
//TODO:先弹出一个遮罩层,点击任意按钮刷新页面
this
.
$bridge
.
getActionUrl
(
nativePayUrl
).
then
(
res
=>
{
this
.
$bridge
.
getActionUrl
(
this
.
nativePayUrl
).
then
(
res
=>
{
console
.
log
(
"getActionUrl in bill index"
);
console
.
log
(
"getActionUrl in bill index"
);
});
});
},
},
toPay_old
()
{
toPay_old
()
{
console
.
log
(
"topay_old"
);
this
.
$bridge
this
.
$bridge
.
setPageNavState
({
.
setPageNavState
({
headerColor
:
"#fff"
,
headerColor
:
"#fff"
,
...
...
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