cyy-vue-material 1.0.34 → 1.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2,42 +2,17 @@
|
|
|
2
2
|
<div>
|
|
3
3
|
<div v-if="!props.selectImg.length" class="holder">请上传图片</div>
|
|
4
4
|
<template v-else>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
:style="{ borderRadius: props.photoCorner + '%' }"
|
|
15
|
-
:lazy-load="true"
|
|
16
|
-
:src="item['imgUrl']"
|
|
17
|
-
/>
|
|
18
|
-
<div :style="{ color: props.fontColor }">{{ item.name }}</div>
|
|
5
|
+
<div class="swiperBox">
|
|
6
|
+
<div class="swiper">
|
|
7
|
+
<swiper interval="4000" class="swiper-content" circular="true" autoplay="true" duration="1500" @change="setimg">
|
|
8
|
+
<block v-for="(item, index) in resultArr" :key="index">
|
|
9
|
+
<swiper-item class="img-item">
|
|
10
|
+
<img :lazy-load="true" :src="item['imgUrl']" @click="linkClick(item)" />
|
|
11
|
+
</swiper-item>
|
|
12
|
+
</block>
|
|
13
|
+
</swiper>
|
|
19
14
|
</div>
|
|
20
15
|
</div>
|
|
21
|
-
<div v-if="props.showStyle === 1">
|
|
22
|
-
<div class="classify-list" :style="{ paddingTop: props.paddingTop + 'px', paddingBottom: props.paddingBottom + 'px' }">
|
|
23
|
-
<div
|
|
24
|
-
class="classify-item"
|
|
25
|
-
:class="[props.photoSize === 1 ? 'classifyItemBig' : 'classifyItemSmall']"
|
|
26
|
-
:style="{ backgroundColor: props.backgroundColor }"
|
|
27
|
-
v-for="item in resultArr"
|
|
28
|
-
:key="index"
|
|
29
|
-
@click="linkClick(item)"
|
|
30
|
-
>
|
|
31
|
-
<div :class="[props.photoSize === 1 ? 'classifyFontBig' : 'classifyFontSmall']" :style="{ color: props.fontColor }">{{ item.name }}</div>
|
|
32
|
-
<img
|
|
33
|
-
:class="[props.photoSize === 1 ? 'classifyImgBig' : 'classifyImgSmall']"
|
|
34
|
-
:style="{ borderRadius: classifyPhotoCorner(props.photoCorner) + 'px' }"
|
|
35
|
-
:lazy-load="true"
|
|
36
|
-
:src="item['imgUrl']"
|
|
37
|
-
/>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
</div> -->
|
|
41
16
|
</template>
|
|
42
17
|
</div>
|
|
43
18
|
</template>
|
|
@@ -45,14 +20,9 @@
|
|
|
45
20
|
<script>
|
|
46
21
|
import { isEmpty, isUndefined } from "lodash-es";
|
|
47
22
|
export default {
|
|
48
|
-
name: "cyy-
|
|
23
|
+
name: "cyy-ArsenalCarousel",
|
|
49
24
|
data() {
|
|
50
|
-
return {
|
|
51
|
-
imgStyle: {
|
|
52
|
-
width: "100%",
|
|
53
|
-
boxSizing: "border-box",
|
|
54
|
-
},
|
|
55
|
-
};
|
|
25
|
+
return {};
|
|
56
26
|
},
|
|
57
27
|
props: {
|
|
58
28
|
props: {
|
|
@@ -102,6 +72,32 @@ export default {
|
|
|
102
72
|
width: 100%;
|
|
103
73
|
padding: 10px 0;
|
|
104
74
|
height: 60px;
|
|
105
|
-
background-color: rgb(
|
|
75
|
+
background-color: rgb(888, 431, 73);
|
|
76
|
+
}
|
|
77
|
+
.swiperBox {
|
|
78
|
+
width: 375px;
|
|
79
|
+
height: 150px;
|
|
80
|
+
border-radius: 10px;
|
|
81
|
+
|
|
82
|
+
.swiper {
|
|
83
|
+
width: 375px;
|
|
84
|
+
height: 150px;
|
|
85
|
+
|
|
86
|
+
.swiper-content {
|
|
87
|
+
height: 150px;
|
|
88
|
+
width: 100%;
|
|
89
|
+
|
|
90
|
+
.img-item {
|
|
91
|
+
padding: 0 12.5px;
|
|
92
|
+
box-sizing: border-box;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
img {
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: 100%;
|
|
99
|
+
border-radius: 10px;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
106
102
|
}
|
|
107
103
|
</style>
|
|
@@ -75,9 +75,8 @@ export default {
|
|
|
75
75
|
this.imgUrl = getUrl(this);
|
|
76
76
|
console.log("this.imgUrl", this.imgUrl);
|
|
77
77
|
const { goods = [] } = this.props;
|
|
78
|
-
const
|
|
79
|
-
const paramObj = {
|
|
80
|
-
console.log("🐽🐽🐽🐽🐽🐽🐽🐽m", goodsCode);
|
|
78
|
+
const skuCode = goods.toString();
|
|
79
|
+
const paramObj = { skuCodeStr: skuCode };
|
|
81
80
|
const res = await fetchGoodImpl(this, paramObj);
|
|
82
81
|
this.listArr = get(res, "list", []);
|
|
83
82
|
console.log("🐽🐽🐽🐽🐽🐽🐽🐽w", this.listArr);
|
|
@@ -209,9 +208,10 @@ button {
|
|
|
209
208
|
border-radius: 5px;
|
|
210
209
|
background-color: red;
|
|
211
210
|
color: white;
|
|
212
|
-
min-width: 74px;
|
|
211
|
+
// min-width: 74px;
|
|
213
212
|
margin: 0.5em 0.25em 0;
|
|
214
213
|
align-self: flex-end;
|
|
214
|
+
font-size: 12px;
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
}
|