cyy-vue-material 7.0.19 → 7.0.21

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.
Files changed (38) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +34 -34
  3. package/src/App.vue +149 -149
  4. package/src/api/http.js +16 -16
  5. package/src/api/index.js +21 -21
  6. package/src/api/urlQuery.js +20 -20
  7. package/src/common/js/constant.js +5 -5
  8. package/src/common/js/index.js +1 -1
  9. package/src/components/vop-label.vue +29 -29
  10. package/src/index.dev.js +4 -4
  11. package/src/package/cyy-ArsenalActivity/components/u-cont-down.vue +316 -316
  12. package/src/package/cyy-ArsenalActivity/components/u-line-progress.vue +150 -150
  13. package/src/package/cyy-ArsenalActivity/cyy-ArsenalActivity.vue +820 -820
  14. package/src/package/cyy-ArsenalCarousel/cyy-ArsenalCarousel.vue +137 -137
  15. package/src/package/cyy-ArsenalClass/cyy-ArsenalClass.vue +564 -564
  16. package/src/package/cyy-ArsenalMyNavigation/cyy-ArsenalMyNavigation.vue +128 -125
  17. package/src/package/cyy-ArsenalMyTop/cyy-ArsenalMyTop.vue +211 -211
  18. package/src/package/cyy-ArsenalNavigation/cyy-ArsenalNavigation.vue +236 -236
  19. package/src/package/cyy-ArsenalPicture/cyy-ArsenalPicture.vue +228 -228
  20. package/src/package/cyy-ArsenalPromotion/cyy-ArsenalPromotion.vue +913 -899
  21. package/src/package/cyy-ArsenalRecommend/cyy-ArsenalRecommend.vue +56 -56
  22. package/src/package/cyy-ArsenalTop/cyy-ArsenalTop.vue +328 -328
  23. package/src/package/cyy-collocation/cyy-collocation.vue +639 -639
  24. package/src/package/cyy-goods/cyy-goods.vue +317 -317
  25. package/src/package/cyy-goodsOne/consult.vue +267 -267
  26. package/src/package/cyy-goodsOne/cyy-goodsOne.vue +217 -217
  27. package/src/package/cyy-image/cyy-image.vue +64 -64
  28. package/src/package/cyy-live/cyy-live.vue +196 -196
  29. package/src/package/cyy-new-product/cyy-new-product.vue +834 -834
  30. package/src/package/cyy-notice/cyy-notice.vue +137 -137
  31. package/src/package/cyy-search/cyy-search.vue +57 -57
  32. package/src/package/cyy-slider/cyy-slider.vue +117 -117
  33. package/src/package/cyy-title/cyy-title.vue +38 -38
  34. package/src/package/cyy-video/cyy-video.vue +49 -49
  35. package/src/package/index.js +21 -21
  36. package/src/utils/checkEnv.js +16 -16
  37. package/src/utils/fetchFactory.js +100 -100
  38. package/src/utils/index.js +2 -2
@@ -1,236 +1,236 @@
1
- <template>
2
- <div>
3
- <div v-if="!resultArr.length" class="holder">
4
- <ul>
5
- <li v-for="(item, index) in skeleton" :key="index">
6
- <div></div>
7
- <span>{{ item }}</span>
8
- </li>
9
- </ul>
10
- </div>
11
- <template v-else>
12
- <div
13
- v-if="props.showStyle === 0"
14
- class="golds"
15
- :style="{ backgroundColor: props.backgroundColor, marginTop: props.marginTop + 'px', marginBottom: props.marginBottom + 'px' }"
16
- >
17
- <div
18
- class="golds-item"
19
- :class="[props.navigationNum === 5 ? 'navigationNum5' : 'navigationNum4']"
20
- v-for="(item, index) in resultArr"
21
- :key="index"
22
- @click="linkClick(item)"
23
- >
24
- <img
25
- :class="[props.photoSize === 1 ? 'photoSizeBig' : 'photoSizeSmall']"
26
- :style="{ borderRadius: props.photoCorner + '%' }"
27
- :lazy-load="true"
28
- :src="item['imgUrl']"
29
- />
30
- <div :style="{ color: props.fontColor }">{{ item.name }}</div>
31
- </div>
32
- </div>
33
- <div v-if="props.showStyle === 1">
34
- <div class="classify-list" :style="{ marginTop: props.marginTop + 'px', marginBottom: props.marginBottom + 'px' }">
35
- <div
36
- class="classify-item"
37
- :class="[props.photoSize === 1 ? 'classifyItemBig' : 'classifyItemSmall']"
38
- :style="{ backgroundColor: props.backgroundColor }"
39
- v-for="(item, index) in resultArr"
40
- :key="index"
41
- @click="linkClick(item)"
42
- >
43
- <div :class="[props.photoSize === 1 ? 'classifyFontBig' : 'classifyFontSmall']" :style="{ color: props.fontColor }">{{ item.name }}</div>
44
- <img
45
- :class="[props.photoSize === 1 ? 'classifyImgBig' : 'classifyImgSmall']"
46
- :style="{ borderRadius: classifyPhotoCorner(props.photoCorner) + 'px' }"
47
- :lazy-load="true"
48
- :src="item['imgUrl']"
49
- />
50
- </div>
51
- </div>
52
- </div>
53
- </template>
54
- </div>
55
- </template>
56
-
57
- <script>
58
- import { isEmpty, isUndefined } from "lodash-es";
59
- export default {
60
- name: "cyy-ArsenalPicture",
61
- data() {
62
- return {
63
- skeleton: ["导航1", "导航2", "导航3", "导航4"],
64
- imgStyle: {
65
- width: "100%",
66
- boxSizing: "border-box",
67
- },
68
- };
69
- },
70
- props: {
71
- props: {
72
- showStyle: Number, //展示风格
73
- photoSize: Number, //图片尺寸
74
- photoCorner: Number, //图片边角
75
- fontColor: String, //文字颜色
76
- backgroundColor: String, //背景颜色
77
- marginTop: Number, //上边距
78
- marginBottom: Number, //下边距
79
- selectImg: Array, //添加图片
80
- navigationNum: Number, //导航数量
81
- },
82
- },
83
- mounted() {
84
- if (this.props.navigationNum === 5) {
85
- this.skeleton = ["导航1", "导航2", "导航3", "导航4", "导航5"];
86
- }
87
- },
88
- computed: {
89
- resultArr() {
90
- const { selectImg, defaultValue } = this.props;
91
- const computedArr = selectImg
92
- .filter((item) => {
93
- return item !== null;
94
- })
95
- .filter((item) => !isUndefined(item))
96
- .filter((item) => !Object.values(item).every((citem) => isUndefined(citem)));
97
- let arr = defaultValue;
98
- if (!isEmpty(computedArr)) {
99
- arr = computedArr;
100
- }
101
- console.log(52, arr);
102
- return arr;
103
- },
104
- },
105
- methods: {
106
- classifyPhotoCorner(item) {
107
- if (item === 20) {
108
- return 8;
109
- }
110
- if (item === 50) {
111
- return 16;
112
- }
113
- return item;
114
- },
115
- linkClick(item) {
116
- this.$emit("linkClick", item);
117
- },
118
- },
119
- };
120
- </script>
121
- <style lang="less" scoped>
122
- .holder {
123
- width: 100%;
124
- padding: 10px 0;
125
- height: 75px;
126
- ul {
127
- display: flex;
128
- justify-content: space-between;
129
- list-style: none;
130
- padding: 0 10px;
131
- li {
132
- list-style: none;
133
- div {
134
- width: 40px;
135
- height: 40px;
136
- padding: 10px;
137
- background-color: pink;
138
- border-radius: 50%;
139
- span {
140
- display: flex;
141
- justify-content: center;
142
- font-size: 12px;
143
- }
144
- }
145
- }
146
- }
147
- }
148
- .golds {
149
- box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.1);
150
- border-radius: 14px;
151
- border-radius: 4px;
152
- display: flex;
153
- justify-content: space-between;
154
- flex-wrap: wrap;
155
- .golds-item {
156
- margin: 10px 0;
157
- display: flex;
158
- flex-direction: column;
159
- justify-content: center;
160
- align-items: center;
161
- flex-wrap: wrap;
162
- box-sizing: border-box;
163
- div {
164
- font-size: 11px;
165
- font-family: PingFangSC-Medium, PingFang SC;
166
- line-height: 15px;
167
- text-align: center;
168
- }
169
- }
170
- .navigationNum4 {
171
- width: 25%;
172
- }
173
- .navigationNum5 {
174
- width: 20%;
175
- }
176
- }
177
- .photoSizeBig {
178
- width: 58px;
179
- height: 58px;
180
- }
181
- .photoSizeSmall {
182
- width: 48px;
183
- height: 48px;
184
- }
185
- .classify-list {
186
- display: flex;
187
- justify-content: space-between;
188
- flex-wrap: wrap;
189
-
190
- .classify-item {
191
- margin-top: 20px;
192
- padding: 8px 5px 0.25px;
193
- box-sizing: border-box;
194
- box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.1);
195
- border-radius: 14px;
196
-
197
- div {
198
- font-weight: bold;
199
- }
200
-
201
- img {
202
- margin: 7.5px 0;
203
- }
204
- }
205
-
206
- .classify-item:nth-child(1) {
207
- margin-top: 0 !important;
208
- }
209
-
210
- .classify-item:nth-child(2) {
211
- margin-top: 0 !important;
212
- }
213
- }
214
- .classifyItemBig {
215
- width: 48%;
216
- }
217
- .classifyItemSmall {
218
- width: 46%;
219
- }
220
- .classifyImgBig {
221
- width: 100%;
222
- height: 90px;
223
- }
224
- .classifyImgSmall {
225
- width: 100%;
226
- height: 87.75px;
227
- }
228
- .classifyFontBig {
229
- height: 12px;
230
- font-size: 12px;
231
- }
232
- .classifyFontSmall {
233
- height: 12px;
234
- font-size: 11px;
235
- }
236
- </style>
1
+ <template>
2
+ <div>
3
+ <div v-if="!resultArr.length" class="holder">
4
+ <ul>
5
+ <li v-for="(item, index) in skeleton" :key="index">
6
+ <div></div>
7
+ <span>{{ item }}</span>
8
+ </li>
9
+ </ul>
10
+ </div>
11
+ <template v-else>
12
+ <div
13
+ v-if="props.showStyle === 0"
14
+ class="golds"
15
+ :style="{ backgroundColor: props.backgroundColor, marginTop: props.marginTop + 'px', marginBottom: props.marginBottom + 'px' }"
16
+ >
17
+ <div
18
+ class="golds-item"
19
+ :class="[props.navigationNum === 5 ? 'navigationNum5' : 'navigationNum4']"
20
+ v-for="(item, index) in resultArr"
21
+ :key="index"
22
+ @click="linkClick(item)"
23
+ >
24
+ <img
25
+ :class="[props.photoSize === 1 ? 'photoSizeBig' : 'photoSizeSmall']"
26
+ :style="{ borderRadius: props.photoCorner + '%' }"
27
+ :lazy-load="true"
28
+ :src="item['imgUrl']"
29
+ />
30
+ <div :style="{ color: props.fontColor }">{{ item.name }}</div>
31
+ </div>
32
+ </div>
33
+ <div v-if="props.showStyle === 1">
34
+ <div class="classify-list" :style="{ marginTop: props.marginTop + 'px', marginBottom: props.marginBottom + 'px' }">
35
+ <div
36
+ class="classify-item"
37
+ :class="[props.photoSize === 1 ? 'classifyItemBig' : 'classifyItemSmall']"
38
+ :style="{ backgroundColor: props.backgroundColor }"
39
+ v-for="(item, index) in resultArr"
40
+ :key="index"
41
+ @click="linkClick(item)"
42
+ >
43
+ <div :class="[props.photoSize === 1 ? 'classifyFontBig' : 'classifyFontSmall']" :style="{ color: props.fontColor }">{{ item.name }}</div>
44
+ <img
45
+ :class="[props.photoSize === 1 ? 'classifyImgBig' : 'classifyImgSmall']"
46
+ :style="{ borderRadius: classifyPhotoCorner(props.photoCorner) + 'px' }"
47
+ :lazy-load="true"
48
+ :src="item['imgUrl']"
49
+ />
50
+ </div>
51
+ </div>
52
+ </div>
53
+ </template>
54
+ </div>
55
+ </template>
56
+
57
+ <script>
58
+ import { isEmpty, isUndefined } from "lodash-es";
59
+ export default {
60
+ name: "cyy-ArsenalPicture",
61
+ data() {
62
+ return {
63
+ skeleton: ["导航1", "导航2", "导航3", "导航4"],
64
+ imgStyle: {
65
+ width: "100%",
66
+ boxSizing: "border-box",
67
+ },
68
+ };
69
+ },
70
+ props: {
71
+ props: {
72
+ showStyle: Number, //展示风格
73
+ photoSize: Number, //图片尺寸
74
+ photoCorner: Number, //图片边角
75
+ fontColor: String, //文字颜色
76
+ backgroundColor: String, //背景颜色
77
+ marginTop: Number, //上边距
78
+ marginBottom: Number, //下边距
79
+ selectImg: Array, //添加图片
80
+ navigationNum: Number, //导航数量
81
+ },
82
+ },
83
+ mounted() {
84
+ if (this.props.navigationNum === 5) {
85
+ this.skeleton = ["导航1", "导航2", "导航3", "导航4", "导航5"];
86
+ }
87
+ },
88
+ computed: {
89
+ resultArr() {
90
+ const { selectImg, defaultValue } = this.props;
91
+ const computedArr = selectImg
92
+ .filter((item) => {
93
+ return item !== null;
94
+ })
95
+ .filter((item) => !isUndefined(item))
96
+ .filter((item) => !Object.values(item).every((citem) => isUndefined(citem)));
97
+ let arr = defaultValue;
98
+ if (!isEmpty(computedArr)) {
99
+ arr = computedArr;
100
+ }
101
+ console.log(52, arr);
102
+ return arr;
103
+ },
104
+ },
105
+ methods: {
106
+ classifyPhotoCorner(item) {
107
+ if (item === 20) {
108
+ return 8;
109
+ }
110
+ if (item === 50) {
111
+ return 16;
112
+ }
113
+ return item;
114
+ },
115
+ linkClick(item) {
116
+ this.$emit("linkClick", item);
117
+ },
118
+ },
119
+ };
120
+ </script>
121
+ <style lang="less" scoped>
122
+ .holder {
123
+ width: 100%;
124
+ padding: 10px 0;
125
+ height: 75px;
126
+ ul {
127
+ display: flex;
128
+ justify-content: space-between;
129
+ list-style: none;
130
+ padding: 0 10px;
131
+ li {
132
+ list-style: none;
133
+ div {
134
+ width: 40px;
135
+ height: 40px;
136
+ padding: 10px;
137
+ background-color: pink;
138
+ border-radius: 50%;
139
+ span {
140
+ display: flex;
141
+ justify-content: center;
142
+ font-size: 12px;
143
+ }
144
+ }
145
+ }
146
+ }
147
+ }
148
+ .golds {
149
+ box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.1);
150
+ border-radius: 14px;
151
+ border-radius: 4px;
152
+ display: flex;
153
+ justify-content: space-between;
154
+ flex-wrap: wrap;
155
+ .golds-item {
156
+ margin: 10px 0;
157
+ display: flex;
158
+ flex-direction: column;
159
+ justify-content: center;
160
+ align-items: center;
161
+ flex-wrap: wrap;
162
+ box-sizing: border-box;
163
+ div {
164
+ font-size: 11px;
165
+ font-family: PingFangSC-Medium, PingFang SC;
166
+ line-height: 15px;
167
+ text-align: center;
168
+ }
169
+ }
170
+ .navigationNum4 {
171
+ width: 25%;
172
+ }
173
+ .navigationNum5 {
174
+ width: 20%;
175
+ }
176
+ }
177
+ .photoSizeBig {
178
+ width: 58px;
179
+ height: 58px;
180
+ }
181
+ .photoSizeSmall {
182
+ width: 48px;
183
+ height: 48px;
184
+ }
185
+ .classify-list {
186
+ display: flex;
187
+ justify-content: space-between;
188
+ flex-wrap: wrap;
189
+
190
+ .classify-item {
191
+ margin-top: 20px;
192
+ padding: 8px 5px 0.25px;
193
+ box-sizing: border-box;
194
+ box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.1);
195
+ border-radius: 14px;
196
+
197
+ div {
198
+ font-weight: bold;
199
+ }
200
+
201
+ img {
202
+ margin: 7.5px 0;
203
+ }
204
+ }
205
+
206
+ .classify-item:nth-child(1) {
207
+ margin-top: 0 !important;
208
+ }
209
+
210
+ .classify-item:nth-child(2) {
211
+ margin-top: 0 !important;
212
+ }
213
+ }
214
+ .classifyItemBig {
215
+ width: 48%;
216
+ }
217
+ .classifyItemSmall {
218
+ width: 46%;
219
+ }
220
+ .classifyImgBig {
221
+ width: 100%;
222
+ height: 90px;
223
+ }
224
+ .classifyImgSmall {
225
+ width: 100%;
226
+ height: 87.75px;
227
+ }
228
+ .classifyFontBig {
229
+ height: 12px;
230
+ font-size: 12px;
231
+ }
232
+ .classifyFontSmall {
233
+ height: 12px;
234
+ font-size: 11px;
235
+ }
236
+ </style>