|
|
@@ -1,191 +1,91 @@
|
|
|
<template>
|
|
|
<div class="display-card">
|
|
|
- <a><img src=""></a>
|
|
|
- <div class="content">
|
|
|
+ <span @click="cardClose" v-if="cardShow" class="cardClose"><img src="/images/all/close.png"></span>
|
|
|
+ <div class="content" v-if="cardShow">
|
|
|
<div>
|
|
|
- <h4>供应商</h4>
|
|
|
- <p>111</p>
|
|
|
+ <count-box></count-box>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <h4>交易金额</h4>
|
|
|
- <p>111</p>
|
|
|
+ <p><span v-text="all"></span></p>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <h4>询价单</h4>
|
|
|
- <p>111</p>
|
|
|
+ <p><span v-text="payMoney"></span></p>
|
|
|
</div>
|
|
|
- <a class="enter">立即入驻</a>
|
|
|
+ <div>
|
|
|
+ <p><span v-text="inquirySheet"></span></p>
|
|
|
+ </div>
|
|
|
+ <a class="enter" @click="onRegisterClick"><img src="/images/all/enter.png"></a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
-<!--<script>
|
|
|
+<script>
|
|
|
+ import CountBox from '../main/count/Box.vue'
|
|
|
export default {
|
|
|
- name: 'kind-category',
|
|
|
+ name: 'display-card',
|
|
|
data () {
|
|
|
return {
|
|
|
- activeKindId: 0
|
|
|
- // kinds: {}
|
|
|
+ cardShow: true
|
|
|
}
|
|
|
},
|
|
|
+ components: {
|
|
|
+ CountBox
|
|
|
+ },
|
|
|
methods: {
|
|
|
- showChildrenLayout (kind) {
|
|
|
- if (!kind.leaf) {
|
|
|
- this.activeKindId = kind.id
|
|
|
- if (!kind.children) {
|
|
|
- this.$emit('loadchild', kind.id)
|
|
|
- }
|
|
|
- }
|
|
|
+ cardClose () {
|
|
|
+ this.cardShow = false
|
|
|
},
|
|
|
- hideChildrenLayout () {
|
|
|
- this.activeKindId = null
|
|
|
+ onRegisterClick () {
|
|
|
+ this.$http.get('/register/page').then(response => {
|
|
|
+ if (response.data) {
|
|
|
+ window.location.href = response.data.content
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- kinds () {
|
|
|
- return this.$store.state.product.kind.kinds
|
|
|
+ payMoney () {
|
|
|
+ let count = this.$store.state.count.payMoney.data
|
|
|
+ let supplierCount = count.content ? count.totalElements + '' : '0'
|
|
|
+ return supplierCount
|
|
|
},
|
|
|
- kindsToShow () {
|
|
|
- // 只显示前13个根类目
|
|
|
- if (this.kinds.data) {
|
|
|
- return this.kinds.data.slice(0, 13)
|
|
|
- }
|
|
|
+ inquirySheet () {
|
|
|
+ let count = this.$store.state.count.inquirySheet.data
|
|
|
+ let supplierCount = count.content ? count.totalElements + '' : '0'
|
|
|
+ return supplierCount
|
|
|
+ },
|
|
|
+ all () {
|
|
|
+ let count = this.$store.state.supplier.merchant.merchantAll.data
|
|
|
+ let supplierCount = count.content ? count.totalElements + '' : '0'
|
|
|
+ return supplierCount
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-</script>-->
|
|
|
+</script>
|
|
|
<style lang="scss" scoped>
|
|
|
- /*@import '~assets/scss/variables';
|
|
|
- .kind-children .kind-children-layout{
|
|
|
- padding: 15px 0 0 0;
|
|
|
- }
|
|
|
- .kind-category {
|
|
|
- position: absolute;
|
|
|
- width: 200px;
|
|
|
- height: 477px;
|
|
|
-
|
|
|
- .kind-main {
|
|
|
- margin: 0;
|
|
|
- padding: 0;
|
|
|
- z-index: 10;
|
|
|
-
|
|
|
- .kind-main-item {
|
|
|
- height: 34.1px;
|
|
|
- line-height: 34.1px;
|
|
|
- padding: 0 10px 0 20px;
|
|
|
- background: rgba(80, 120, 203, 0.9);
|
|
|
- display: block;
|
|
|
-
|
|
|
- > a {
|
|
|
- color: #fff;
|
|
|
-
|
|
|
- > .iconfont {
|
|
|
- opacity: 0;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- &.item-more {
|
|
|
- background-color: #4c66bb;
|
|
|
- font-weight: bold;
|
|
|
- font-size: 12px;
|
|
|
- }
|
|
|
-
|
|
|
- &.active,&:hover {
|
|
|
- background-color: #a0b2eb;
|
|
|
-
|
|
|
- > a {
|
|
|
- font-weight: bold;
|
|
|
-
|
|
|
- > .iconfont {
|
|
|
- opacity: 1;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .kind-children {
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 200px;
|
|
|
- z-index: 9;
|
|
|
- box-shadow: 1px 0 3px #666;
|
|
|
-
|
|
|
- .kind-children-layout {
|
|
|
- background-color: #fff;
|
|
|
- width: 990px;
|
|
|
- height: 477px;
|
|
|
- font-size: 12px;
|
|
|
- overflow-y: auto;
|
|
|
- a {
|
|
|
- color: #000;
|
|
|
- }
|
|
|
- a:hover {
|
|
|
- color: #ff0006;
|
|
|
- }
|
|
|
- .kind-children-item-wrap {
|
|
|
- height: 100%;
|
|
|
- width: 100%;
|
|
|
-
|
|
|
- .kind-children-item {
|
|
|
- margin-bottom: $md-pad;
|
|
|
-
|
|
|
- dt {
|
|
|
- span {
|
|
|
- width: 90%;
|
|
|
- display: inline-block;
|
|
|
- font-weight: bold;
|
|
|
- overflow: hidden;
|
|
|
- clear: left;
|
|
|
- text-align: right;
|
|
|
- text-overflow: ellipsis;
|
|
|
- white-space: nowrap;
|
|
|
- }
|
|
|
- i{
|
|
|
- font-size: 12px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- dd {
|
|
|
- ul {
|
|
|
- margin: 0;
|
|
|
- padding: 0;
|
|
|
-
|
|
|
- li {
|
|
|
- border-left: $border;
|
|
|
- margin-bottom: $pad;
|
|
|
-
|
|
|
- span {
|
|
|
- margin: 0 $sm-pad;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }*/
|
|
|
.display-card{
|
|
|
- position: absolute;
|
|
|
+ position: fixed;
|
|
|
+ right: 100px;
|
|
|
+ top: 115px;
|
|
|
width: 144px;
|
|
|
- height: 517px;
|
|
|
- border: 1px solid black;
|
|
|
- a{
|
|
|
-
|
|
|
+ height: 527px;
|
|
|
+ z-index: 100;
|
|
|
+ .cardClose{
|
|
|
+ position: absolute;
|
|
|
+ right: 0px;
|
|
|
+ top: 0px;
|
|
|
+ opacity: 0.8;
|
|
|
}
|
|
|
.content{
|
|
|
- width: 130px;
|
|
|
- height: 499px;
|
|
|
- border-radius: 63px;
|
|
|
- background: blue;
|
|
|
+ margin-top: 10px;
|
|
|
+ width: 143px;
|
|
|
+ height: 517px;
|
|
|
+ background: url('/images/all/displayCard.png') no-repeat;
|
|
|
div{
|
|
|
height: 110px;
|
|
|
- h4{
|
|
|
- width: 100%;
|
|
|
- text-align: center;
|
|
|
- font-size: 18px;
|
|
|
- color: #fff000;
|
|
|
- font-family: MicrosoftYaHei-Bold;
|
|
|
+ padding-top: 55px;
|
|
|
+ &:first-child{
|
|
|
+ height: 110px;
|
|
|
+ padding-top: 1px;
|
|
|
}
|
|
|
p{
|
|
|
width: 100%;
|
|
|
@@ -195,10 +95,12 @@
|
|
|
}
|
|
|
}
|
|
|
.enter{
|
|
|
+ width: 100%;
|
|
|
display: inline-block;
|
|
|
- font-family: FZSKJW--GB1-0;
|
|
|
- font-size: 25px;
|
|
|
- color: #ffffff;
|
|
|
+ position: absolute;
|
|
|
+ bottom: 48px;
|
|
|
+ left: -4px;
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
}
|
|
|
}
|