|
@@ -5,6 +5,12 @@
|
|
|
<div class="title">
|
|
<div class="title">
|
|
|
<p>High quality dealer</p>
|
|
<p>High quality dealer</p>
|
|
|
<h2>供应商列表</h2>
|
|
<h2>供应商列表</h2>
|
|
|
|
|
+ <div class="count">
|
|
|
|
|
+ <img src="/images/supplier/count.png" alt=""/>
|
|
|
|
|
+ <span v-for="(spCount, index) in all" :class="'_c' + index">
|
|
|
|
|
+ {{spCount}}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="search">
|
|
<div class="search">
|
|
|
<div class="input-group">
|
|
<div class="input-group">
|
|
@@ -85,9 +91,28 @@
|
|
|
},
|
|
},
|
|
|
list () {
|
|
list () {
|
|
|
return this.$store.state.supplier.merchant.merchant.data
|
|
return this.$store.state.supplier.merchant.merchant.data
|
|
|
|
|
+ },
|
|
|
|
|
+ all () {
|
|
|
|
|
+ let count = this.$store.state.supplier.merchant.merchantAll.data
|
|
|
|
|
+ let supplierCount = count.content ? count.totalElements + '' : '00000'
|
|
|
|
|
+ // console.log(this.formatNumber(supplierCount))
|
|
|
|
|
+ return this.formatNumber(supplierCount)
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ // 供应商数字格式转换
|
|
|
|
|
+ formatNumber (num) {
|
|
|
|
|
+ let _arr = []
|
|
|
|
|
+ for (var i = 0; i < num.length; i++) {
|
|
|
|
|
+ _arr.push(num[i])
|
|
|
|
|
+ }
|
|
|
|
|
+ if (_arr.length < 5) {
|
|
|
|
|
+ for (let j = _arr.length; j < 5; j++) {
|
|
|
|
|
+ _arr.unshift('0')
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ return _arr
|
|
|
|
|
+ },
|
|
|
addResource (id) {
|
|
addResource (id) {
|
|
|
if (this.isInFrame) {
|
|
if (this.isInFrame) {
|
|
|
this.$http.get(`/basic/enterprise /${id}/info`)
|
|
this.$http.get(`/basic/enterprise /${id}/info`)
|
|
@@ -199,6 +224,33 @@
|
|
|
margin:0;
|
|
margin:0;
|
|
|
line-height: 46px;
|
|
line-height: 46px;
|
|
|
}
|
|
}
|
|
|
|
|
+ div.count{
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ span {
|
|
|
|
|
+ font-size: 28px;
|
|
|
|
|
+ color: #4a2f01;
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 5px;
|
|
|
|
|
+ &:first-child(1){
|
|
|
|
|
+ left: 7px;
|
|
|
|
|
+ }
|
|
|
|
|
+ &:nth-child(2){
|
|
|
|
|
+ left: 7px;
|
|
|
|
|
+ }
|
|
|
|
|
+ &:nth-child(3){
|
|
|
|
|
+ left: 37px;
|
|
|
|
|
+ }
|
|
|
|
|
+ &:nth-child(4){
|
|
|
|
|
+ left: 67px;
|
|
|
|
|
+ }
|
|
|
|
|
+ &:nth-child(5){
|
|
|
|
|
+ left: 97px;
|
|
|
|
|
+ }
|
|
|
|
|
+ &:nth-child(6){
|
|
|
|
|
+ left: 127px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
&:before{
|
|
&:before{
|
|
|
content: '';
|
|
content: '';
|
|
|
display:block;
|
|
display:block;
|