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
3bd508e2
authored
Jul 15, 2020
by
cocomilk2012
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
488b52a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
src/views/Bill/index.vue
src/views/More/index.vue
src/views/Bill/index.vue
View file @
3bd508e2
...
...
@@ -254,11 +254,10 @@ export default {
location
.
reload
();
};
//根据UA判断:如果App版本
<
2.1
.
9
就走原来的充值逻辑;如果
App
版本
>=
2.1
.
9
就走新的充值逻辑;
//TODO:安卓的单独判断
try
{
const
userAgent
=
navigator
.
userAgent
.
toLowerCase
();
if
(
userAgent
.
indexOf
(
"qqxbua"
)
!=
-
1
)
{
console
.
log
(
'ios'
);
console
.
log
(
"ios"
);
let
tempArr
=
userAgent
.
split
(
"qqxbua:"
);
if
(
tempArr
.
length
>
1
)
{
const
tempStr
=
tempArr
[
1
];
...
...
@@ -417,7 +416,6 @@ export default {
await
this
.
loadBillPeriod
().
then
(
data
=>
{
this
.
period
=
data
;
flag
=
true
;
this
.
initMonth
();
},
...
...
@@ -439,7 +437,7 @@ export default {
data
=>
{
this
.
data
.
balance
=
data
.
balance
;
this
.
data
.
waitPay
=
data
.
waitPay
;
this
.
nativePayUrl
=
`hrs100://native/SelectRechargeMode?periodId=
${
this
.
currentPerId
}
&fee=
${
this
.
data
.
waitPay
}
`
;
this
.
nativePayUrl
=
`hrs100://native/SelectRechargeMode?
accountType=-1&
periodId=
${
this
.
currentPerId
}
&fee=
${
this
.
data
.
waitPay
}
`
;
console
.
log
(
"this.nativePayUrl="
,
this
.
nativePayUrl
);
},
err
=>
{
...
...
@@ -499,6 +497,11 @@ export default {
}
}
}
//TODO:根据APP传过来的periodId赋值给this.currentPerId
const
query_periodID
=
this
.
$route
.
query
.
periodID
;
if
(
query_periodID
)
{
this
.
currentPerId
=
query_periodID
;
}
},
setBarHeightLowBee
()
{
setTimeout
(()
=>
{
...
...
src/views/More/index.vue
View file @
3bd508e2
...
...
@@ -157,7 +157,7 @@ export default {
data
=>
{
this
.
summary
=
data
;
console
.
log
(
"this.summary="
,
this
.
summary
);
this
.
nativePayUrl
=
`hrs100://native/SelectRechargeMode?
periodId=
${
this
.
currentPerId
}
&fee=
${
this
.
summary
.
waitPay
}
`
;
this
.
nativePayUrl
=
`hrs100://native/SelectRechargeMode?
accountType=19&periodId=0
&fee=
${
this
.
summary
.
waitPay
}
`
;
console
.
log
(
"this.nativePayUrl="
,
this
.
nativePayUrl
);
},
err
=>
{
...
...
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