Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
frontend
/
qqxb-self-service
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
6cc864f6
authored
Jul 03, 2020
by
cocomilk2012
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
55aab198
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
6 deletions
src/views/ChooseCompany.vue
src/views/ChooseCompany.vue
View file @
6cc864f6
<
template
>
<
template
>
<div
class=
"main main-company"
id=
"main_company"
>
<div
class=
"main main-company"
id=
"main_company"
>
<div
class=
"list_wrap"
v-if=
"dispatch_list.length > 0"
>
<div
class=
"list_wrap"
v-if=
"dispatch_list.length > 0"
>
<div
class=
"company-item-box"
v-for=
"(item,index) in dispatch_list"
:key=
"index"
>
<div
<p
class=
"company-name"
@
click=
"toCompany_click(item.id)"
>
{{
item
.
fullName
}}
</p>
class=
"company-item-box"
<img
src=
"../assets/images/right_arrow.png"
alt=
"进入派遣公司"
title=
"进入派遣公司"
/>
v-for=
"(item, index) in dispatch_list"
:key=
"index"
>
<p
class=
"company-name"
@
click=
"toCompany_click(item.id)"
>
{{
item
.
fullName
}}
</p>
<img
src=
"../assets/images/right_arrow.png"
alt=
"进入派遣公司"
title=
"进入派遣公司"
/>
</div>
</div>
</div>
</div>
<div
v-else
class=
"no_data"
>
<div
v-else
class=
"no_data"
>
...
@@ -51,7 +60,37 @@ export default class workInfo extends Vue {
...
@@ -51,7 +60,37 @@ export default class workInfo extends Vue {
});
});
}
}
private
callJSBridage
()
{
const
userAgent
=
navigator
.
userAgent
.
toLowerCase
();
console
.
log
(
"userAgent="
,
userAgent
);
try
{
if
(
userAgent
.
indexOf
(
"qqxbua"
)
!=
-
1
)
{
console
.
log
(
"setPageNavState"
);
//@ts-ignore
this
.
$bridge
.
setPageNavState
({
isShowClose
:
false
,
isShowBack
:
true
,
isCloseLeft
:
false
,
isShowTitle
:
true
,
isShowNav
:
true
,
isCloseWebView
:
false
})
//@ts-ignore
.
then
(
res
=>
{
console
.
log
(
"couponlist setpageNavState callback"
,
res
);
});
}
}
catch
(
error
)
{
console
.
log
(
error
);
}
}
created
()
{
created
()
{
setTimeout
(()
=>
{
this
.
callJSBridage
();
},
500
);
this
.
id_no_encrytion
=
this
.
$route
.
query
.
id_no
;
this
.
id_no_encrytion
=
this
.
$route
.
query
.
id_no
;
console
.
log
(
this
.
id_no_encrytion
);
console
.
log
(
this
.
id_no_encrytion
);
this
.
getDispatchList
();
this
.
getDispatchList
();
...
@@ -60,9 +99,9 @@ export default class workInfo extends Vue {
...
@@ -60,9 +99,9 @@ export default class workInfo extends Vue {
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
.no_data
{
.no_data
{
color
:
#999
;
color
:
#999
;
padding
:
20px
;
padding
:
20px
;
margin
:
auto
;
margin
:
auto
;
font-size
:
14px
;
font-size
:
14px
;
}
}
...
...
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