Commit 6cc864f6 by cocomilk2012

update

parent 55aab198
Showing with 45 additions and 6 deletions
<template>
<div class="main main-company" id="main_company">
<div class="list_wrap" v-if="dispatch_list.length > 0">
<div class="company-item-box" 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
class="company-item-box"
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 v-else class="no_data">
......@@ -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() {
setTimeout(() => {
this.callJSBridage();
}, 500);
this.id_no_encrytion = this.$route.query.id_no;
console.log(this.id_no_encrytion);
this.getDispatchList();
......@@ -60,9 +99,9 @@ export default class workInfo extends Vue {
</script>
<style lang="less">
.no_data{
.no_data {
color: #999;
padding:20px;
padding: 20px;
margin: auto;
font-size: 14px;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment