企业类型:
@@ -396,6 +395,8 @@ export default {
}
.advanced-search {
position: absolute;
+ z-index: 999;
+ background: #fff;
left: 50%;
transform: translateX(-50%);
margin-top: 20px;
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 8b1742f..186c2ee 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -84,12 +84,12 @@ export default {
this.echartsData = {
"enterpriseRegeditCount": res.data.enterpriseRegeditCount,
- "userRegeditCount": res.data.userRegeditCount,
- "onlineUserCount": res.data.onlineUserCount
+ "unreviewedEnterpriseCount": res.data.unreviewedEnterpriseCount,
+ "auditedEnterpriseCount": res.data.auditedEnterpriseCount
}
this.setEcharts(this.echarts_1,this.echartsData.enterpriseRegeditCount,'注册企业')
- this.setEcharts(this.echarts_2,this.echartsData.userRegeditCount,'注册用户')
- this.setEcharts(this.echarts_3,this.echartsData.onlineUserCount,'在线用户')
+ this.setEcharts(this.echarts_2,this.echartsData.unreviewedEnterpriseCount,'待审核企业数')
+ this.setEcharts(this.echarts_3,this.echartsData.auditedEnterpriseCount,'已审核企业数')
})
},
jumpRouter(name){
@@ -105,7 +105,7 @@ export default {
var option = {
title: {
text: title,
- left:'38%',
+ left:'center',
top:'40px',
textStyle: {
fontWeight: 'normal',
diff --git a/src/views/home/index2.vue b/src/views/home/index2.vue
index 92931b8..f617baf 100644
--- a/src/views/home/index2.vue
+++ b/src/views/home/index2.vue
@@ -14,14 +14,31 @@
-
+
+
已认证
-
+
企业名称: {{companyInfo.enterpriseName}}
用户名: {{companyInfo.userName}}
手机号: {{companyInfo.phonenumber}}
- 上次登录时间: {{companyInfo.loginDate.split('T')[0]}}
+ 上次登录时间: {{companyInfo.loginDate}}
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+ 下载企业名片
+
+
@@ -57,8 +74,12 @@ import {getDay} from "@/utils/index"
// import echarts from "echarts";
import { list} from "@/api/monitor/operlog";
import {getIndexInfo} from "@/api/home/index"
+import vueQr from 'vue-qr'
export default {
name:'home',
+ components: {
+ vueQr
+ },
data() {
return {
day:getDay(),
@@ -70,7 +91,15 @@ export default {
pageNum: 1,
pageSize: 8
},
- companyInfo:{}
+ companyInfo:{},
+ enterpriseUrl:'',
+ // 表单参数
+ form: {
+ isItPublic:'0'
+ },
+ imageUrl:"",
+ companyID:'',
+ qrTest:"",
}
},
mounted() {
@@ -89,14 +118,30 @@ export default {
this.tableData = response.rows;
});
getIndexInfo().then(res =>{
- console.log(res);
this.companyInfo = res.data
if(this.companyInfo.loginDate) {
let times = this.companyInfo.loginDate.split("T")[0] + ' ' + this.companyInfo.loginDate.split("T")[1].split(".")[0]
this.companyInfo.loginDate = times
}
+ this.enterpriseUrl = this.companyInfo.enterpriseUrl || require("@/assets/images/profile.jpg")
+ this.companyID = this.companyInfo.enterpriseId
+ if(this.companyInfo.enterpriseUrl) {
+ this.imageUrl = require(this.companyInfo.enterpriseUrl)
+ }
+ this.changeIsPublic()
})
},
+ downloadImg () {
+ const iconUrl = this.$refs.Qrcode.$el.src
+ let a = document.createElement('a')
+ let event = new MouseEvent('click')
+ a.download = '二维码'
+ a.href = iconUrl
+ a.dispatchEvent(event)
+ },
+ changeIsPublic(val){
+ this.qrTest = this.companyID+'&' + this.form.isItPublic
+ },
jumpRouter(name){
this.$router.push({name:name})
},
diff --git a/src/views/login/login.vue b/src/views/login/login.vue
index 9e92d24..9580c41 100644
--- a/src/views/login/login.vue
+++ b/src/views/login/login.vue
@@ -1,7 +1,8 @@
+
- 食品原材料
+ 用户登录
@@ -55,7 +56,7 @@
@@ -157,6 +158,11 @@ export default {
height: 100%;
background-image: url("../../assets/images/login-background.jpg");
background-size: cover;
+ .logo-pic {
+ top: 50px;
+ left: 20%;
+ position: absolute;
+ }
}
.title {
margin: 0px auto 30px auto;
diff --git a/src/views/login/register.vue b/src/views/login/register.vue
index c3ab168..a2254ec 100644
--- a/src/views/login/register.vue
+++ b/src/views/login/register.vue
@@ -3,22 +3,9 @@
-
-
-
-
-
-
注册企业请使用真实有效的企业信息与用户信息,
- 系统平台会对注册企业进行信息认证,只有认证通过的企业才可以使用本平台。
-
+
@@ -46,61 +33,12 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{backBtn[stepActive-1]}}
- {{nextBtn[stepActive-1]}}
+ 返回
+ 注册
@@ -108,7 +46,7 @@
@@ -432,7 +257,7 @@ export default {
position: relative;
margin: 50px 0;
width: 800px;
- height: 500px;
+ height: 530px;
border-radius: 20px;
box-shadow: 0 0 10px 1px #a5a5a5;
padding: 30px;
diff --git a/src/views/login/retrievePassword.vue b/src/views/login/retrievePassword.vue
index e207c9a..466d9e9 100644
--- a/src/views/login/retrievePassword.vue
+++ b/src/views/login/retrievePassword.vue
@@ -98,10 +98,10 @@