cyy-vue-material 1.0.41 → 1.0.42
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
package/src/App.vue
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<!-- <Title :props="titleProp" /> -->
|
|
4
|
-
<Goods :props="goodsProp" />
|
|
4
|
+
<!-- <Goods :props="goodsProp" /> -->
|
|
5
|
+
<Collocation :props="collocationProp" />
|
|
5
6
|
</div>
|
|
6
7
|
</template>
|
|
7
8
|
|
|
8
9
|
<script>
|
|
9
|
-
import { Title, Goods } from "./package/index";
|
|
10
|
+
import { Title, Goods, Collocation } from "./package/index";
|
|
10
11
|
|
|
11
12
|
export default {
|
|
12
13
|
data() {
|
|
@@ -15,7 +16,7 @@ export default {
|
|
|
15
16
|
value: "test",
|
|
16
17
|
},
|
|
17
18
|
goodsProp: {
|
|
18
|
-
arrange:
|
|
19
|
+
arrange: 4,
|
|
19
20
|
borderRadius: 0,
|
|
20
21
|
goods: ["2022010600000012", "2022010600000082", "2022010600000013"],
|
|
21
22
|
margin: 10,
|
|
@@ -23,11 +24,39 @@ export default {
|
|
|
23
24
|
paddingBottom: 0,
|
|
24
25
|
paddingTop: 0,
|
|
25
26
|
},
|
|
27
|
+
collocationProp: {
|
|
28
|
+
arrange: 3,
|
|
29
|
+
selectImg: [
|
|
30
|
+
"/paas/shop/2021011200000001/2023-03-08/27e0019a5c6a4cb5a70be74374900666.jpg",
|
|
31
|
+
],
|
|
32
|
+
goods: [
|
|
33
|
+
"2022010600000090",
|
|
34
|
+
"2022010600000013",
|
|
35
|
+
"2022010600000082",
|
|
36
|
+
"2023010900003440",
|
|
37
|
+
],
|
|
38
|
+
markedPrice: 1,
|
|
39
|
+
purchaseIcon: 1,
|
|
40
|
+
more: 1,
|
|
41
|
+
activityTitle: "活动标题",
|
|
42
|
+
activitySubtitle: "活动副标题",
|
|
43
|
+
goodsTag: [
|
|
44
|
+
{ id: 1, value: "零食很忙", id: 2, value: "零食优选" },
|
|
45
|
+
{ id: 3, value: "商品标签" },
|
|
46
|
+
],
|
|
47
|
+
textAlign: "center",
|
|
48
|
+
backgroundColor: "#ffffff",
|
|
49
|
+
cornerStyle: 10,
|
|
50
|
+
spacingStyle: 1,
|
|
51
|
+
marginTop: 10,
|
|
52
|
+
marginBottom: 20,
|
|
53
|
+
},
|
|
26
54
|
};
|
|
27
|
-
},
|
|
55
|
+
},
|
|
28
56
|
components: {
|
|
29
57
|
Title,
|
|
30
58
|
Goods,
|
|
59
|
+
Collocation,
|
|
31
60
|
},
|
|
32
61
|
};
|
|
33
62
|
</script>
|
|
@@ -112,7 +112,7 @@ export default {
|
|
|
112
112
|
flex-wrap: wrap;
|
|
113
113
|
.golds-item {
|
|
114
114
|
margin: 10px 0;
|
|
115
|
-
width:
|
|
115
|
+
width: 25%;
|
|
116
116
|
display: flex;
|
|
117
117
|
flex-direction: column;
|
|
118
118
|
justify-content: center;
|
|
@@ -120,7 +120,6 @@ export default {
|
|
|
120
120
|
flex-wrap: wrap;
|
|
121
121
|
box-sizing: border-box;
|
|
122
122
|
div {
|
|
123
|
-
width: 80px;
|
|
124
123
|
font-size: 11px;
|
|
125
124
|
font-family: PingFangSC-Medium, PingFang SC;
|
|
126
125
|
line-height: 15px;
|
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<div v-if="lowCode">
|
|
4
|
+
<div class="title-l" slot="left" :style="{ 'background-color': color }">
|
|
5
|
+
<div class="title-t">{{ props.siteName || "人才优选 品质优选" }}</div>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="Box">
|
|
8
|
+
<div class="boxBg">
|
|
9
|
+
<div class="one" :style="{ 'background-color': color }"></div>
|
|
10
|
+
<div class="two" :style="{ 'background-color': color }"></div>
|
|
11
|
+
</div>
|
|
12
|
+
<!-- 搜索栏 -->
|
|
13
|
+
<div class="search">
|
|
14
|
+
<div class="search--input">
|
|
15
|
+
<div class="search--input--box">搜索您喜欢的商品</div>
|
|
16
|
+
<div class="search--input--icon" :style="{ 'background-color': color }"><text class="iconfont icon-sousuo"></text></div>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<!-- 标签 -->
|
|
20
|
+
<div class="tag">
|
|
21
|
+
<div class="tag--item">
|
|
22
|
+
<div class="header-box" style="width: 32rpx; height: 32rpx; margin-right: 8rpx">
|
|
23
|
+
<img :lazy-load="true" :src="props.iconImg" mode="" style="width: 100%; height: 100%" />
|
|
24
|
+
</div>
|
|
25
|
+
<div class="" style="color: #fff; font-size: 24rpx">{{ props.mallSlogan }}</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<canvas id="canvasID" canvas-id="mycanvas" style="position: fixed; left: -500px"></canvas>
|
|
29
|
+
</div>
|
|
4
30
|
<div class="lowCode-warp" :style="{ paddingTop: props.paddingTop + 'px', paddingBottom: props.paddingBottom + 'px' }">
|
|
5
31
|
<img :src="resultArr[0]['imgUrl']" alt="" style="width: 100%" />
|
|
6
32
|
<ul>
|
|
@@ -42,6 +68,7 @@
|
|
|
42
68
|
:vertical="directionResult"
|
|
43
69
|
:autoplay="autoplayResult"
|
|
44
70
|
:duration="props.autoplayInterval"
|
|
71
|
+
@change="setimg"
|
|
45
72
|
>
|
|
46
73
|
<block v-for="(item, index) in resultArr" :key="index">
|
|
47
74
|
<swiper-item class="img-item">
|
|
@@ -80,7 +107,9 @@ export default {
|
|
|
80
107
|
},
|
|
81
108
|
},
|
|
82
109
|
mounted() {
|
|
83
|
-
|
|
110
|
+
if (this.props.selectImg.length) {
|
|
111
|
+
this.color = this.props.selectImg[0].color;
|
|
112
|
+
}
|
|
84
113
|
},
|
|
85
114
|
computed: {
|
|
86
115
|
autoplayResult() {
|
|
@@ -116,6 +145,14 @@ export default {
|
|
|
116
145
|
}
|
|
117
146
|
return item;
|
|
118
147
|
},
|
|
148
|
+
setimg(e) {
|
|
149
|
+
const index = e.detail.current;
|
|
150
|
+
this.color = this.props.selectImg[index].color;
|
|
151
|
+
this.$emit("setimg", this.color);
|
|
152
|
+
},
|
|
153
|
+
ToSearch() {
|
|
154
|
+
this.$emit("ToSearch");
|
|
155
|
+
},
|
|
119
156
|
linkClick(item) {
|
|
120
157
|
this.$emit("linkClick", item);
|
|
121
158
|
},
|
|
@@ -228,4 +265,13 @@ export default {
|
|
|
228
265
|
align-items: center;
|
|
229
266
|
}
|
|
230
267
|
}
|
|
268
|
+
.title-l {
|
|
269
|
+
margin: 0 5px;
|
|
270
|
+
height: 94px;
|
|
271
|
+
.title-t {
|
|
272
|
+
color: #fff;
|
|
273
|
+
font-size: 18px;
|
|
274
|
+
padding-left: 22px;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
231
277
|
</style>
|