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
e3a75976
authored
May 09, 2020
by
张建朝
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of gitlab.corp.qinqinxiaobao.com:hrs_app_h5/bill
parents
a6deadd1
331d2945
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
37 deletions
src/assets/css/index.css
src/main.js
src/router/index.js
src/views/Bill/index.vue
src/views/Bill/record.vue
src/views/More/index.vue
src/views/OidcCallback.vue
src/assets/css/index.css
View file @
e3a75976
...
@@ -8,14 +8,14 @@ i {
...
@@ -8,14 +8,14 @@ i {
font-style
:
normal
;
font-style
:
normal
;
}
}
.iosStyle
{
.iosStyle
{
background-color
:
#0
77AEC
;
background-color
:
#0
978e7
;
}
}
.container
{
.container
{
padding-top
:
46px
;
padding-top
:
46px
;
}
}
/*未扣费*/
/*未扣费*/
.no_bill
{
.no_bill
{
color
:
#0
77AEC
;
color
:
#0
978e7
;
}
}
.mt0
{
.mt0
{
margin-top
:
0
!important
;
margin-top
:
0
!important
;
...
...
src/main.js
View file @
e3a75976
...
@@ -66,7 +66,7 @@ Vue.prototype.setPageNavState = function () {
...
@@ -66,7 +66,7 @@ Vue.prototype.setPageNavState = function () {
window
.
WebViewJavascriptBridge
.
callHandler
(
window
.
WebViewJavascriptBridge
.
callHandler
(
"setBarColor"
,
"setBarColor"
,
{
"barColor"
:
"#0
77aec
"
},
{
"barColor"
:
"#0
978e7
"
},
function
(
response
)
{
function
(
response
)
{
console
.
log
(
"main setBarColor的回传数据:"
,
response
);
console
.
log
(
"main setBarColor的回传数据:"
,
response
);
}
}
...
...
src/router/index.js
View file @
e3a75976
...
@@ -110,6 +110,5 @@ router.beforeEach((to, from, next) => {
...
@@ -110,6 +110,5 @@ router.beforeEach((to, from, next) => {
router
.
beforeEach
(
vuexOidcCreateRouterMiddleware
(
store
));
router
.
beforeEach
(
vuexOidcCreateRouterMiddleware
(
store
));
//TODO: 把callBack中的app_register_id逻辑替换到这里
export
default
router
export
default
router
src/views/Bill/index.vue
View file @
e3a75976
...
@@ -234,16 +234,10 @@ export default {
...
@@ -234,16 +234,10 @@ export default {
"loadPayUrl"
"loadPayUrl"
]),
]),
toPay
()
{
toPay
()
{
let
payUrl
=
const
failUrl
=
encodeURIComponent
(
"https://pay.qinqinxiaobao.com/callback/fail"
);
this
.
payUrl
+
const
successUrl
=
encodeURIComponent
(
"https://pay.qinqinxiaobao.com/callback/success"
);
"&accountType=1&payType=3&selected=1&failUrl="
+
let
payUrl
=
`
${
this
.
payUrl
}
&accountType=1&periodId=
${
this
.
currentPerId
}
&selected=1&failUrl=
${
failUrl
}
&successUrl=
${
successUrl
}
`
;
encodeURIComponent
(
"https://pay.qinqinxiaobao.com/callback/fail"
)
+
window
.
location
.
href
=
payUrl
;
"&successUrl="
+
encodeURIComponent
(
"https://pay.qinqinxiaobao.com/callback/success"
)
+
""
+
"&periodId="
+
this
.
currentPerId
;
window
.
open
(
payUrl
);
},
},
toPage
(
flag
)
{
toPage
(
flag
)
{
switch
(
flag
)
{
switch
(
flag
)
{
...
@@ -418,18 +412,25 @@ export default {
...
@@ -418,18 +412,25 @@ export default {
}
}
},
},
setBarHeight
()
{
setBarHeight
()
{
const
barHeight
=
localStorage
.
getItem
(
"barHeight"
);
setTimeout
(()
=>
{
const
conHeight
=
46
+
parseInt
(
barHeight
);
const
barHeight
=
localStorage
.
getItem
(
"barHeight"
);
console
.
log
(
"bill conHeight="
,
conHeight
);
const
conHeight
=
46
+
parseInt
(
barHeight
);
const
dom
=
document
.
getElementsByClassName
(
"iosStyle"
)[
0
];
const
dom
=
document
.
getElementsByClassName
(
"iosStyle"
)[
0
];
if
(
dom
)
{
if
(
dom
)
{
dom
.
setAttribute
(
"style"
,
"padding-top:"
+
barHeight
+
"px !important"
);
dom
.
setAttribute
(
}
"style"
,
"padding-top:"
+
barHeight
+
"px !important"
);
}
const
dom2
=
document
.
getElementsByClassName
(
"container"
)[
0
];
const
dom2
=
document
.
getElementsByClassName
(
"container"
)[
0
];
if
(
dom2
)
{
if
(
dom2
)
{
dom2
.
setAttribute
(
"style"
,
"padding-top:"
+
conHeight
+
"px !important"
);
dom2
.
setAttribute
(
}
"style"
,
"padding-top:"
+
conHeight
+
"px !important"
);
}
},
100
);
},
},
closeWebView
()
{
closeWebView
()
{
try
{
try
{
...
...
src/views/Bill/record.vue
View file @
e3a75976
...
@@ -101,7 +101,7 @@ export default {
...
@@ -101,7 +101,7 @@ export default {
this
.
setPageNavState
();
this
.
setPageNavState
();
this
.
globalNavLeftArrowClick
(
this
.
navLeftArrowClick
);
this
.
globalNavLeftArrowClick
(
this
.
navLeftArrowClick
);
this
.
accountId
=
this
.
$route
.
query
.
accountId
;
this
.
accountId
=
this
.
$route
.
query
.
accountId
;
const
f
or
mType
=
this
.
$route
.
query
.
fromType
;
const
f
ro
mType
=
this
.
$route
.
query
.
fromType
;
console
.
log
(
"fromType="
,
fromType
);
console
.
log
(
"fromType="
,
fromType
);
if
(
!
fromType
)
{
if
(
!
fromType
)
{
if
(
this
.
getBeginDate
>
"2020-04-30"
)
{
if
(
this
.
getBeginDate
>
"2020-04-30"
)
{
...
...
src/views/More/index.vue
View file @
e3a75976
...
@@ -75,16 +75,10 @@ export default {
...
@@ -75,16 +75,10 @@ export default {
methods
:
{
methods
:
{
...
mapActions
([
"loadMoreList"
,
"loadMoreSummary"
,
"loadPayUrl"
]),
...
mapActions
([
"loadMoreList"
,
"loadMoreSummary"
,
"loadPayUrl"
]),
toPay
()
{
toPay
()
{
let
payUrl
=
const
failUrl
=
encodeURIComponent
(
"https://pay.qinqinxiaobao.com/callback/fail"
);
this
.
payUrl
+
const
successUrl
=
encodeURIComponent
(
"https://pay.qinqinxiaobao.com/callback/success"
);
"&accountType=1&payType=3&selected=1&failUrl="
+
let
payUrl
=
`
${
this
.
payUrl
}
&accountType=19&selected=1&failUrl=
${
failUrl
}
&successUrl=
${
successUrl
}
`
;
encodeURIComponent
(
"https://pay.qinqinxiaobao.com/callback/fail"
)
+
window
.
location
.
href
=
payUrl
;
"&successUrl="
+
encodeURIComponent
(
"https://pay.qinqinxiaobao.com/callback/success"
)
+
""
+
"&periodId="
+
this
.
currentPerId
;
window
.
open
(
payUrl
);
},
},
toPage
()
{
toPage
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -123,7 +117,7 @@ export default {
...
@@ -123,7 +117,7 @@ export default {
this
.
setPageNavState
();
this
.
setPageNavState
();
this
.
globalNavLeftArrowClick
(
this
.
navLeftArrowClick
);
this
.
globalNavLeftArrowClick
(
this
.
navLeftArrowClick
);
await
this
.
getData
();
await
this
.
getData
();
//
this.payUrl = await this.loadPayUrl();
this
.
payUrl
=
await
this
.
loadPayUrl
();
}
}
};
};
</
script
>
</
script
>
...
...
src/views/OidcCallback.vue
View file @
e3a75976
...
@@ -46,6 +46,7 @@ export default {
...
@@ -46,6 +46,7 @@ export default {
res
=>
{
res
=>
{
console
.
log
(
"res="
,
res
);
console
.
log
(
"res="
,
res
);
if
(
res
.
status
==
200
)
{
if
(
res
.
status
==
200
)
{
const
accessToken
=
res
.
data
.
access_token
;
const
accessToken
=
res
.
data
.
access_token
;
//store.dispatch("changeToken", accessToken);
//store.dispatch("changeToken", accessToken);
localStorage
.
setItem
(
"token"
,
accessToken
);
localStorage
.
setItem
(
"token"
,
accessToken
);
...
...
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