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,137 +1,137 @@
1
- <template>
2
- <div>
3
- <div v-if="lowCode">
4
- <div class="lowCode-warp" :style="{ marginTop: props.marginTop + 'px', marginBottom: props.marginBottom + 'px' }">
5
- <img :src="resultArr[0]['imgUrl']" alt="" :style="{ borderRadius: classifyPhotoCorner(props.photoCorner) + 'px', width: '100%' }" />
6
- <ul>
7
- <li v-for="(item, index) in resultArr" :key="index"></li>
8
- </ul>
9
- </div>
10
- </div>
11
- <template v-else>
12
- <div class="swiperBox" :style="{ marginTop: props.marginTop + 'px', marginBottom: props.marginBottom + 'px' }">
13
- <div class="swiper">
14
- <swiper
15
- interval="4000"
16
- class="swiper-content"
17
- circular="true"
18
- :vertical="directionResult"
19
- :autoplay="autoplayResult"
20
- :duration="props.autoplayInterval"
21
- >
22
- <block v-for="(item, index) in resultArr" :key="index">
23
- <swiper-item class="img-item">
24
- <img
25
- :style="{ borderRadius: classifyPhotoCorner(props.photoCorner) + 'px' }"
26
- :lazy-load="true"
27
- :src="item['imgUrl']"
28
- @click="linkClick(item)"
29
- />
30
- </swiper-item>
31
- </block>
32
- </swiper>
33
- </div>
34
- </div>
35
- </template>
36
- </div>
37
- </template>
38
-
39
- <script>
40
- import { isLc } from "../../utils/index.js";
41
- import { isEmpty, isUndefined } from "lodash-es";
42
- export default {
43
- name: "cyy-ArsenalCarousel",
44
- data() {
45
- return {
46
- lowCode: isLc,
47
- };
48
- },
49
- props: {
50
- props: {
51
- photoCorner: Number, //图片边角
52
- autoPlay: Number, //自动播放
53
- autoplayInterval: Number, //轮播间隔
54
- direction: Number, //方向
55
- loop: Number, //循环播放
56
- marginTop: Number, //上边距
57
- marginBottom: Number, //下边距
58
- selectImg: Array, //添加图片
59
- },
60
- },
61
- mounted() {
62
- console.log(this.props, 2023);
63
- },
64
- computed: {
65
- autoplayResult() {
66
- if (this.props.autoPlay === 0) {
67
- return true;
68
- }
69
- return false;
70
- },
71
- directionResult() {
72
- if (this.props.direction === 0) {
73
- return false;
74
- }
75
- return true;
76
- },
77
- resultArr() {
78
- const { selectImg, defaultValue } = this.props;
79
- const computedArr = selectImg.filter((item) => !isUndefined(item)).filter((item) => !Object.values(item).every((citem) => isUndefined(citem)));
80
- let arr = defaultValue;
81
- if (!isEmpty(computedArr)) {
82
- arr = computedArr;
83
- }
84
- console.log(52, arr);
85
- return arr;
86
- },
87
- },
88
- methods: {
89
- classifyPhotoCorner(item) {
90
- if (item === 20) {
91
- return 10;
92
- }
93
- if (item === 50) {
94
- return 20;
95
- }
96
- return item;
97
- },
98
- linkClick(item) {
99
- this.$emit("linkClick", item);
100
- },
101
- },
102
- };
103
- </script>
104
- <style lang="less" scoped>
105
- .holder {
106
- width: 100%;
107
- padding: 10px 0;
108
- height: 60px;
109
- background-color: rgb(888, 431, 73);
110
- }
111
- .swiperBox {
112
- width: 100%;
113
- height: 150px;
114
- border-radius: 10px;
115
-
116
- .swiper {
117
- width: 100%;
118
- height: 150px;
119
-
120
- .swiper-content {
121
- height: 150px;
122
- width: 100%;
123
-
124
- .img-item {
125
- padding: 0 12.5px;
126
- box-sizing: border-box;
127
- }
128
- }
129
-
130
- img {
131
- width: 100%;
132
- height: 100%;
133
- border-radius: 10px;
134
- }
135
- }
136
- }
137
- </style>
1
+ <template>
2
+ <div>
3
+ <div v-if="lowCode">
4
+ <div class="lowCode-warp" :style="{ marginTop: props.marginTop + 'px', marginBottom: props.marginBottom + 'px' }">
5
+ <img :src="resultArr[0]['imgUrl']" alt="" :style="{ borderRadius: classifyPhotoCorner(props.photoCorner) + 'px', width: '100%' }" />
6
+ <ul>
7
+ <li v-for="(item, index) in resultArr" :key="index"></li>
8
+ </ul>
9
+ </div>
10
+ </div>
11
+ <template v-else>
12
+ <div class="swiperBox" :style="{ marginTop: props.marginTop + 'px', marginBottom: props.marginBottom + 'px' }">
13
+ <div class="swiper">
14
+ <swiper
15
+ interval="4000"
16
+ class="swiper-content"
17
+ circular="true"
18
+ :vertical="directionResult"
19
+ :autoplay="autoplayResult"
20
+ :duration="props.autoplayInterval"
21
+ >
22
+ <block v-for="(item, index) in resultArr" :key="index">
23
+ <swiper-item class="img-item">
24
+ <img
25
+ :style="{ borderRadius: classifyPhotoCorner(props.photoCorner) + 'px' }"
26
+ :lazy-load="true"
27
+ :src="item['imgUrl']"
28
+ @click="linkClick(item)"
29
+ />
30
+ </swiper-item>
31
+ </block>
32
+ </swiper>
33
+ </div>
34
+ </div>
35
+ </template>
36
+ </div>
37
+ </template>
38
+
39
+ <script>
40
+ import { isLc } from "../../utils/index.js";
41
+ import { isEmpty, isUndefined } from "lodash-es";
42
+ export default {
43
+ name: "cyy-ArsenalCarousel",
44
+ data() {
45
+ return {
46
+ lowCode: isLc,
47
+ };
48
+ },
49
+ props: {
50
+ props: {
51
+ photoCorner: Number, //图片边角
52
+ autoPlay: Number, //自动播放
53
+ autoplayInterval: Number, //轮播间隔
54
+ direction: Number, //方向
55
+ loop: Number, //循环播放
56
+ marginTop: Number, //上边距
57
+ marginBottom: Number, //下边距
58
+ selectImg: Array, //添加图片
59
+ },
60
+ },
61
+ mounted() {
62
+ console.log(this.props, 2023);
63
+ },
64
+ computed: {
65
+ autoplayResult() {
66
+ if (this.props.autoPlay === 0) {
67
+ return true;
68
+ }
69
+ return false;
70
+ },
71
+ directionResult() {
72
+ if (this.props.direction === 0) {
73
+ return false;
74
+ }
75
+ return true;
76
+ },
77
+ resultArr() {
78
+ const { selectImg, defaultValue } = this.props;
79
+ const computedArr = selectImg.filter((item) => !isUndefined(item)).filter((item) => !Object.values(item).every((citem) => isUndefined(citem)));
80
+ let arr = defaultValue;
81
+ if (!isEmpty(computedArr)) {
82
+ arr = computedArr;
83
+ }
84
+ console.log(52, arr);
85
+ return arr;
86
+ },
87
+ },
88
+ methods: {
89
+ classifyPhotoCorner(item) {
90
+ if (item === 20) {
91
+ return 10;
92
+ }
93
+ if (item === 50) {
94
+ return 20;
95
+ }
96
+ return item;
97
+ },
98
+ linkClick(item) {
99
+ this.$emit("linkClick", item);
100
+ },
101
+ },
102
+ };
103
+ </script>
104
+ <style lang="less" scoped>
105
+ .holder {
106
+ width: 100%;
107
+ padding: 10px 0;
108
+ height: 60px;
109
+ background-color: rgb(888, 431, 73);
110
+ }
111
+ .swiperBox {
112
+ width: 100%;
113
+ height: 150px;
114
+ border-radius: 10px;
115
+
116
+ .swiper {
117
+ width: 100%;
118
+ height: 150px;
119
+
120
+ .swiper-content {
121
+ height: 150px;
122
+ width: 100%;
123
+
124
+ .img-item {
125
+ padding: 0 12.5px;
126
+ box-sizing: border-box;
127
+ }
128
+ }
129
+
130
+ img {
131
+ width: 100%;
132
+ height: 100%;
133
+ border-radius: 10px;
134
+ }
135
+ }
136
+ }
137
+ </style>