{{ item.title }}
@@ -162,9 +162,10 @@ export default {
},
mounted() {
this.resize = new ResizeObserver((e) => {
- if (e[0].contentRect.width <= 1000&&e[0].contentRect.width>=415) {
+ console.log(e[0].contentRect.width)
+ if (e[0].contentRect.width <= 1000&&e[0].contentRect.width>=446) {
this.resizeDom = 1
- } else if(e[0].contentRect.width < 415){
+ } else if(e[0].contentRect.width < 446){
this.resizeDom = 2
}else{
this.resizeDom = 0
@@ -225,8 +226,7 @@ export default {
}
.card-item {
- width: 24%;
- min-width: 246px;
+ width: calc(50% - 8px);
/* margin-right: 10px; */
}
diff --git a/src/views/home/widgets/components/component/StoreInfo.vue b/src/views/home/widgets/components/component/StoreInfo.vue
index ff5a5ca..044091a 100644
--- a/src/views/home/widgets/components/component/StoreInfo.vue
+++ b/src/views/home/widgets/components/component/StoreInfo.vue
@@ -1,20 +1,20 @@
-
+
{{ dataType === 'sales' ? '销售趋势' : '访问量趋势' }}
-
+
{{ dataType === 'sales' ? '门店销售额排名' : '门店访问量排名' }}
-
{{ i + 1 }}
+
{{ i + 1 }}
-
{{ item.title }}
+
{{ item.title }}
{{ storeType }}
{{ setNumMark(item.num) }}
@@ -40,6 +40,10 @@ export default {
default: function () {
return []
}
+ },
+ storeType:{
+ type:Number,
+ default:0
}
},
watch: {
@@ -145,12 +149,12 @@ export default {
font-size: 14px;
}
-.w-69 {
- width: 69%
+.w-65 {
+ width: 65%
}
-.w-30 {
- width: 30%
+.w-35 {
+ width: 35%
}
.w-100 {
@@ -173,6 +177,12 @@ export default {
border-radius: 50%;
background: #f5f5f5;
}
+.list-num-s{
+ width:12px;
+ height:12px;
+ line-height:12px;
+ font-size:10px;
+}
.list-top {
color: #fff;
diff --git a/src/views/home/widgets/index.vue b/src/views/home/widgets/index.vue
index 327d91e..44ebe9f 100644
--- a/src/views/home/widgets/index.vue
+++ b/src/views/home/widgets/index.vue
@@ -113,7 +113,7 @@
comp.disabled = true
}
}
- console.log(allCompsList)
+ // console.log(allCompsList)
return allCompsList
},
myCompsList(){