You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
276 lines
6.4 KiB
276 lines
6.4 KiB
|
3 years ago
|
<template>
|
||
|
|
<div class="home app_content">
|
||
|
|
<!-- 导航栏 -->
|
||
|
|
<div class="header_body">
|
||
|
|
|
||
|
|
<header-nav
|
||
|
|
:slefBack="true"
|
||
|
|
@goBack="goBack"
|
||
|
|
:titelText="`企业详情查看`"
|
||
|
|
>
|
||
|
|
</header-nav>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<!-- 中间 -->
|
||
|
|
<div class="warp_body">
|
||
|
|
<div class="white-body">
|
||
|
|
<div class="carousel_box">
|
||
|
|
<div class="box-scan-one">
|
||
|
|
|
||
|
|
<span class="box-scan-text" @click="toEnterpriseBaseInfo">企业画像</span>
|
||
|
|
</div>
|
||
|
|
<div class="box-scan-two">
|
||
|
|
<span class="box-scan-text" @click="toEnterpriseWarningInfo">
|
||
|
|
<div class="card_box_span" style="padding-left: 1%;">
|
||
|
|
<van-icon v-if="data.warningInfo.warningLevel==1" name="warning" color="red" size="30" style="margin-top: 2%;" />
|
||
|
|
<van-icon v-else-if="data.warningInfo.warningLevel==2" name="warning" color="orange" size="30" style="margin-top: 2%;" />
|
||
|
|
<van-icon v-else-if="data.warningInfo.warningLevel==3" name="warning" color="#fed200" size="30" style="margin-top: 2%;" />
|
||
|
|
<van-icon v-else name="info" size="30" color="#fed200" />企业预警
|
||
|
|
</div>
|
||
|
|
</span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="boutique_box">
|
||
|
|
<div class="boutique_body">
|
||
|
|
|
||
|
|
<div class="box-qr-code" @click="toSign">
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script setup name="Home">
|
||
|
|
import {getEnterpriseMerchantAuthorization} from '@/api/Home';
|
||
|
|
import {queryEarlyWarning} from '../../api/enforce';
|
||
|
|
import {getEnterpriseInformation} from '../../api/enterprise'
|
||
|
|
const { useCommon } = $globalStore;
|
||
|
|
const router = useRouter();
|
||
|
|
let freshMap = reactive({
|
||
|
|
refreshLoad: false, // 是否刷新
|
||
|
|
listLoading: false, // 是否加载中
|
||
|
|
listFinished: false, // 是否加载完成标识
|
||
|
|
});
|
||
|
|
const data = reactive({
|
||
|
|
enterpriseNumber:"a7cbb677c11e4dffa810b4ad3abedc09$eb020e1a24a8a19a0bdc07b191aa9ce7",
|
||
|
|
// enterpriseNumber:route?.query?.enterpriseNumber,
|
||
|
|
warningInfo:{},
|
||
|
|
searchParam:{}
|
||
|
|
});
|
||
|
|
const boutiqueAttr = reactive({
|
||
|
|
columnNum: 4,
|
||
|
|
itemClass: "boutique_item",
|
||
|
|
goodsCradclass: "boutique-crad",
|
||
|
|
}); // 商品卡片展示
|
||
|
|
|
||
|
|
|
||
|
|
const toSign = async() =>{
|
||
|
|
router.push({
|
||
|
|
path: "/sign",
|
||
|
|
query:{
|
||
|
|
enterpriseNumber: data.enterpriseNumber
|
||
|
|
}
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
const toEnterpriseBaseInfo = async() =>{
|
||
|
|
router.push({
|
||
|
|
path: "/enterpriseBaseInfo",
|
||
|
|
query:{
|
||
|
|
enterpriseNumber: data.enterpriseNumber
|
||
|
|
}
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
const toEnterpriseWarningInfo = async() =>{
|
||
|
|
router.push({
|
||
|
|
path: "/enterpriseWarningInfo",
|
||
|
|
query:{
|
||
|
|
enterpriseNumber: data.enterpriseNumber
|
||
|
|
}
|
||
|
|
});
|
||
|
|
};
|
||
|
|
|
||
|
|
const toRegistrationListView = async() =>{
|
||
|
|
router.push({
|
||
|
|
path: "/enterprise/registrationList",
|
||
|
|
});
|
||
|
|
}
|
||
|
|
const toComplaintView = async() =>{
|
||
|
|
router.push({
|
||
|
|
path: "/enterprise/complaint",
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
// 触底加载
|
||
|
|
const onLoad = () => {
|
||
|
|
// recommendGoods(true);
|
||
|
|
};
|
||
|
|
|
||
|
|
onMounted(() => {
|
||
|
|
|
||
|
|
getEnterpriseInformation(data.enterpriseNumber,success =>{
|
||
|
|
if (null != success.data) {
|
||
|
|
data.searchParam.enterpriseNumber = success.data.enterpriseNumber;
|
||
|
|
//查询企业历史检查案件
|
||
|
|
queryEarlyWarning(data.searchParam,success =>{
|
||
|
|
data.warningInfo = success.data[0];
|
||
|
|
},error =>{
|
||
|
|
|
||
|
|
})
|
||
|
|
}
|
||
|
|
},error=>{
|
||
|
|
|
||
|
|
})
|
||
|
|
getEnterpriseMerchantAuthorization({merchantTel: useCommon.phonenumber},success =>{
|
||
|
|
if(!(success.data == null && success.data.length == 0)){
|
||
|
|
useCommon.SET_USER_ENTERPRISE_NUMBER(success.data[0].enterpriseNumber);
|
||
|
|
}
|
||
|
|
},error =>{
|
||
|
|
})
|
||
|
|
})
|
||
|
|
// 返回
|
||
|
|
const goBack = () => {
|
||
|
|
router.go(-1);
|
||
|
|
};
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style lang="less" scoped>
|
||
|
|
.home {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
height: 100%;
|
||
|
|
overflow: hidden;
|
||
|
|
background-color: #ebf3fb;
|
||
|
|
|
||
|
|
.warp_body {
|
||
|
|
background-image: linear-gradient(to bottom, #ebf3fb, transparent);
|
||
|
|
background-size: cover;
|
||
|
|
position: relative;
|
||
|
|
.carousel_box {
|
||
|
|
position: relative;
|
||
|
|
top: 2%;
|
||
|
|
height: 150px;
|
||
|
|
width: 100%;
|
||
|
|
background: url("/src/assets/images/scan-mean.jpg") no-repeat center center;
|
||
|
|
background-size: 60%;
|
||
|
|
opacity: 0.75;
|
||
|
|
|
||
|
|
.box-scan-one , .box-scan-two{
|
||
|
|
position: absolute;
|
||
|
|
top: 30%;
|
||
|
|
left: 15%;
|
||
|
|
height: 100px;
|
||
|
|
width: 30%;
|
||
|
|
font-size: 0.4rem;
|
||
|
|
color: #999;
|
||
|
|
.box-scan-text{
|
||
|
|
margin-top: 70%;
|
||
|
|
display: block;
|
||
|
|
width: 100%;
|
||
|
|
text-align: center
|
||
|
|
}
|
||
|
|
}
|
||
|
|
.box-scan-two{
|
||
|
|
left: auto;
|
||
|
|
right: 12.5%;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
.boutique_box {
|
||
|
|
position: relative;
|
||
|
|
top: 10%;
|
||
|
|
z-index: 100;
|
||
|
|
width: 100%;
|
||
|
|
|
||
|
|
.boutique_body {
|
||
|
|
padding: 0px 0px 10px 0px;
|
||
|
|
display: flex;
|
||
|
|
justify-content: center;
|
||
|
|
};
|
||
|
|
.box-qr-code{
|
||
|
|
width: 52%;
|
||
|
|
text-align: right;
|
||
|
|
height: 7rem;
|
||
|
|
//background-color: var(--van-primary-color);
|
||
|
|
background: url("../../assets/images/scan-btn.jpg") no-repeat center center;
|
||
|
|
background-size: 100%;
|
||
|
|
// border-radius: 0.26667rem;
|
||
|
|
// background-size: cover;
|
||
|
|
// border-radius: 50%;
|
||
|
|
// background-image: url("@/assets/images/scan.png");
|
||
|
|
.box-qr-code-text{
|
||
|
|
margin-right: 25%;
|
||
|
|
margin-top: 70%;
|
||
|
|
display: block;
|
||
|
|
font-size: 0.45333rem;
|
||
|
|
}
|
||
|
|
img{
|
||
|
|
position: absolute;
|
||
|
|
top: 0%;
|
||
|
|
left: 34%;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
.box-info{
|
||
|
|
width: 52%;
|
||
|
|
text-align: right;
|
||
|
|
height: 3.66667rem;
|
||
|
|
background-color: #ff976a;
|
||
|
|
border-radius: 10px;
|
||
|
|
background: url("@/assets/images/item_check.png");
|
||
|
|
background-size: cover;
|
||
|
|
|
||
|
|
.box-info-text{
|
||
|
|
margin-right: 3%;
|
||
|
|
margin-top: 2%;
|
||
|
|
display: block;
|
||
|
|
font-size: 17px
|
||
|
|
}
|
||
|
|
}
|
||
|
|
.box-complaint{
|
||
|
|
width: 36%;
|
||
|
|
text-align: right;
|
||
|
|
height: 3.66667rem;
|
||
|
|
background-color: #ff976a;
|
||
|
|
border-radius: 10px;
|
||
|
|
margin-left: 2%;
|
||
|
|
background: url("@/assets/images/item_complain.png");
|
||
|
|
background-size: cover;
|
||
|
|
.box-complaint-text{
|
||
|
|
margin-right: 5%;
|
||
|
|
margin-top: 3%;
|
||
|
|
display: block;
|
||
|
|
font-size: 17px
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.recommend_box {
|
||
|
|
.recommend_body {
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.white-body {
|
||
|
|
margin: 0 4%;
|
||
|
|
width: 92%;
|
||
|
|
height: 96%;
|
||
|
|
background-color: #fff;
|
||
|
|
border-radius: 0.25rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.nocode {
|
||
|
|
width: 100%;
|
||
|
|
color: #fb7905;
|
||
|
|
font-size: 0.45rem;
|
||
|
|
text-align: center;
|
||
|
|
line-height: 3;
|
||
|
|
}
|
||
|
|
</style>
|