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="!noticeList" :style="noDataStyle">请选择公告</div>
4
- <div
5
- class="noticeBox"
6
- :style="{
7
- marginTop: `${props.marginTop}px`,
8
- marginBottom: `${props.marginBottom}px`,
9
- backgroundColor: `${props.backgroundColor}`,
10
- }"
11
- v-else
12
- >
13
- <div class="notice-logo"><span>公告</span></div>
14
- <div class="notice-bar"></div>
15
- <div class="notice-content">
16
- <swiper class="notice-list" :vertical="props.vertical" circular="true" autoplay="true" interval="5000" duration="1000">
17
- <swiper-item v-for="notice in noticeList" :key="notice.noticeId">
18
- <div class="swiper-item" :style="{ color: `${props.color}` }" @click="handleToNotice(notice)">
19
- {{ notice.noticeTitle }}
20
- </div>
21
- </swiper-item>
22
- </swiper>
23
- </div>
24
- </div>
25
- </div>
26
- </template>
27
-
28
- <script>
29
- import { isLc } from "../../utils/index.js";
30
- import { fetchPost } from "../../api/http.js";
31
- import { queryNoticePageListByPlat, queryNoticePageList } from "../../api/index.js";
32
- import queryString from "query-string";
33
- export default {
34
- props: {
35
- props: {
36
- notice: {
37
- notice: Array,
38
- vertical: Boolean,
39
- color: String,
40
- backgroundColor: String,
41
- marginTop: Number,
42
- marginBottom: Number,
43
- },
44
- },
45
- },
46
- data() {
47
- return {
48
- noDataStyle: {
49
- width: "100%",
50
- height: "180px",
51
- lineHeight: "180px",
52
- fontSize: "30px",
53
- backgroundColor: "#ccc",
54
- color: "#aaa",
55
- textAlign: "center",
56
- },
57
- noticeList: [],
58
- };
59
- },
60
- mounted() {
61
- this.getIsLc();
62
- },
63
- methods: {
64
- getIsLc() {
65
- let that = this;
66
- if (isLc) {
67
- return this.LcGetNotice(that);
68
- }
69
- return this.getNotice(that);
70
- },
71
- async LcGetNotice(that) {
72
- const urlQuery = location.hash.replace(/[\\/#?]/g, "");
73
- const parsedQuery = queryString.parse(urlQuery);
74
- const query = {};
75
- query.modelTagvalueId = parsedQuery["modelTagvalueId"] ?? "";
76
- const url = `${queryNoticePageListByPlat}?modelTagvalueId=${query.modelTagvalueId}&noticeType=1`;
77
- const res = await fetchPost(url);
78
- that.noticeList = res;
79
- },
80
- async getNotice(that) {
81
- const res = await that.http.get(`${queryNoticePageList}`, { noticeType: 1 });
82
- that.noticeList = res;
83
- },
84
- handleToNotice(item) {
85
- if (isLc) {
86
- return;
87
- }
88
- this.$routers.push("noticeDedail", { id: item.noticeId });
89
- },
90
- },
91
- };
92
- </script>
93
-
94
- <style lang="less" scoped>
95
- .noticeBox {
96
- display: flex;
97
- align-items: center;
98
- height: 35px;
99
- box-sizing: border-box;
100
- box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.1);
101
- .notice-logo {
102
- display: flex;
103
- align-items: center;
104
- padding: 0.5px 10px;
105
- background: linear-gradient(270deg, #ff97bd 0%, #e50f41 100%);
106
- border-radius: 10px;
107
- span {
108
- font-size: 10px;
109
- font-family: PingFangSC-Regular, PingFang SC;
110
- font-weight: 400;
111
- color: #ffffff;
112
- line-height: 17px;
113
- }
114
- }
115
- .notice-bar {
116
- width: 1px;
117
- height: 12px;
118
- border: 1px solid #d8d8d8;
119
- background: #d8d8d8;
120
- margin: 0 10px;
121
- }
122
-
123
- .notice-content {
124
- flex: 1;
125
- overflow: hidden;
126
-
127
- .notice-list {
128
- display: flex;
129
- flex-direction: column;
130
- height: 1.25em;
131
- .swiper-item {
132
- color: #999999;
133
- }
134
- }
135
- }
136
- }
137
- </style>
1
+ <template>
2
+ <div>
3
+ <div v-if="!noticeList" :style="noDataStyle">请选择公告</div>
4
+ <div
5
+ class="noticeBox"
6
+ :style="{
7
+ marginTop: `${props.marginTop}px`,
8
+ marginBottom: `${props.marginBottom}px`,
9
+ backgroundColor: `${props.backgroundColor}`,
10
+ }"
11
+ v-else
12
+ >
13
+ <div class="notice-logo"><span>公告</span></div>
14
+ <div class="notice-bar"></div>
15
+ <div class="notice-content">
16
+ <swiper class="notice-list" :vertical="props.vertical" circular="true" autoplay="true" interval="5000" duration="1000">
17
+ <swiper-item v-for="notice in noticeList" :key="notice.noticeId">
18
+ <div class="swiper-item" :style="{ color: `${props.color}` }" @click="handleToNotice(notice)">
19
+ {{ notice.noticeTitle }}
20
+ </div>
21
+ </swiper-item>
22
+ </swiper>
23
+ </div>
24
+ </div>
25
+ </div>
26
+ </template>
27
+
28
+ <script>
29
+ import { isLc } from "../../utils/index.js";
30
+ import { fetchPost } from "../../api/http.js";
31
+ import { queryNoticePageListByPlat, queryNoticePageList } from "../../api/index.js";
32
+ import queryString from "query-string";
33
+ export default {
34
+ props: {
35
+ props: {
36
+ notice: {
37
+ notice: Array,
38
+ vertical: Boolean,
39
+ color: String,
40
+ backgroundColor: String,
41
+ marginTop: Number,
42
+ marginBottom: Number,
43
+ },
44
+ },
45
+ },
46
+ data() {
47
+ return {
48
+ noDataStyle: {
49
+ width: "100%",
50
+ height: "180px",
51
+ lineHeight: "180px",
52
+ fontSize: "30px",
53
+ backgroundColor: "#ccc",
54
+ color: "#aaa",
55
+ textAlign: "center",
56
+ },
57
+ noticeList: [],
58
+ };
59
+ },
60
+ mounted() {
61
+ this.getIsLc();
62
+ },
63
+ methods: {
64
+ getIsLc() {
65
+ let that = this;
66
+ if (isLc) {
67
+ return this.LcGetNotice(that);
68
+ }
69
+ return this.getNotice(that);
70
+ },
71
+ async LcGetNotice(that) {
72
+ const urlQuery = location.hash.replace(/[\\/#?]/g, "");
73
+ const parsedQuery = queryString.parse(urlQuery);
74
+ const query = {};
75
+ query.modelTagvalueId = parsedQuery["modelTagvalueId"] ?? "";
76
+ const url = `${queryNoticePageListByPlat}?modelTagvalueId=${query.modelTagvalueId}&noticeType=1`;
77
+ const res = await fetchPost(url);
78
+ that.noticeList = res;
79
+ },
80
+ async getNotice(that) {
81
+ const res = await that.http.get(`${queryNoticePageList}`, { noticeType: 1 });
82
+ that.noticeList = res;
83
+ },
84
+ handleToNotice(item) {
85
+ if (isLc) {
86
+ return;
87
+ }
88
+ this.$routers.push("noticeDedail", { id: item.noticeId });
89
+ },
90
+ },
91
+ };
92
+ </script>
93
+
94
+ <style lang="less" scoped>
95
+ .noticeBox {
96
+ display: flex;
97
+ align-items: center;
98
+ height: 35px;
99
+ box-sizing: border-box;
100
+ box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.1);
101
+ .notice-logo {
102
+ display: flex;
103
+ align-items: center;
104
+ padding: 0.5px 10px;
105
+ background: linear-gradient(270deg, #ff97bd 0%, #e50f41 100%);
106
+ border-radius: 10px;
107
+ span {
108
+ font-size: 10px;
109
+ font-family: PingFangSC-Regular, PingFang SC;
110
+ font-weight: 400;
111
+ color: #ffffff;
112
+ line-height: 17px;
113
+ }
114
+ }
115
+ .notice-bar {
116
+ width: 1px;
117
+ height: 12px;
118
+ border: 1px solid #d8d8d8;
119
+ background: #d8d8d8;
120
+ margin: 0 10px;
121
+ }
122
+
123
+ .notice-content {
124
+ flex: 1;
125
+ overflow: hidden;
126
+
127
+ .notice-list {
128
+ display: flex;
129
+ flex-direction: column;
130
+ height: 1.25em;
131
+ .swiper-item {
132
+ color: #999999;
133
+ }
134
+ }
135
+ }
136
+ }
137
+ </style>
@@ -1,57 +1,57 @@
1
- <template>
2
- <div style="overflow: hidden">
3
- <div :style="[computedStyle]" @click="goSearch">
4
- <img :src="props.icon" alt="" style="width: 20px; height: 20px; margin-top: 7px; margin-right: 10px" v-if="props.iconShow" />
5
- <div style="flex: 1" :style="{ color: props.fontColor }">{{ props.value }}</div>
6
- </div>
7
- </div>
8
- </template>
9
-
10
- <script>
11
- import pick from "lodash-es/pick.js";
12
- import omit from "lodash-es/omit.js";
13
- import { handlePlat, isLc } from "../../utils/index.js";
14
-
15
- export default {
16
- name: "cyy-search",
17
- props: {
18
- props: {
19
- value: String,
20
- fontColor: String,
21
- iconShow: Boolean,
22
- backgroundColor: String,
23
- icon: String,
24
- marginTop: Number,
25
- marginBottom: Number,
26
- },
27
- },
28
- mounted() {
29
- console.log(this.props, 2008);
30
- },
31
- computed: {
32
- computedStyle() {
33
- const variates = ["marginTop", "marginBottom"];
34
- const params = pick(this.props, variates);
35
- const resetProps = omit(this.props, variates);
36
-
37
- return {
38
- ...handlePlat(params),
39
- ...resetProps,
40
- display: 'flex',
41
- height: '34px',
42
- lineHeight: '34px',
43
- paddingLeft: '20px',
44
- borderRadius: "30px",
45
- };
46
- }
47
- },
48
- methods: {
49
- goSearch() {
50
- if (isLc) {
51
- return;
52
- }
53
- this.$emit("ToSearch");
54
- }
55
- }
56
- };
57
- </script>
1
+ <template>
2
+ <div style="overflow: hidden">
3
+ <div :style="[computedStyle]" @click="goSearch">
4
+ <img :src="props.icon" alt="" style="width: 20px; height: 20px; margin-top: 7px; margin-right: 10px" v-if="props.iconShow" />
5
+ <div style="flex: 1" :style="{ color: props.fontColor }">{{ props.value }}</div>
6
+ </div>
7
+ </div>
8
+ </template>
9
+
10
+ <script>
11
+ import pick from "lodash-es/pick.js";
12
+ import omit from "lodash-es/omit.js";
13
+ import { handlePlat, isLc } from "../../utils/index.js";
14
+
15
+ export default {
16
+ name: "cyy-search",
17
+ props: {
18
+ props: {
19
+ value: String,
20
+ fontColor: String,
21
+ iconShow: Boolean,
22
+ backgroundColor: String,
23
+ icon: String,
24
+ marginTop: Number,
25
+ marginBottom: Number,
26
+ },
27
+ },
28
+ mounted() {
29
+ console.log(this.props, 2008);
30
+ },
31
+ computed: {
32
+ computedStyle() {
33
+ const variates = ["marginTop", "marginBottom"];
34
+ const params = pick(this.props, variates);
35
+ const resetProps = omit(this.props, variates);
36
+
37
+ return {
38
+ ...handlePlat(params),
39
+ ...resetProps,
40
+ display: 'flex',
41
+ height: '34px',
42
+ lineHeight: '34px',
43
+ paddingLeft: '20px',
44
+ borderRadius: "30px",
45
+ };
46
+ }
47
+ },
48
+ methods: {
49
+ goSearch() {
50
+ if (isLc) {
51
+ return;
52
+ }
53
+ this.$emit("ToSearch");
54
+ }
55
+ }
56
+ };
57
+ </script>
@@ -1,117 +1,117 @@
1
- <template>
2
- <div>
3
- <div v-if="lowCode">
4
- <div class="lowCode-warp" :style="[sliderStyle]">
5
- <img :src="resultArr[0]['imgUrl']" alt="" style="width: 100%" />
6
- <ul>
7
- <li v-for="(item, index) in resultArr" :key="cyy"></li>
8
- </ul>
9
- </div>
10
- </div>
11
- <div v-else>
12
- <swiper
13
- :indicator-dots="true"
14
- :autoplay="props.autoplay"
15
- :interval="props.autoplayInterval"
16
- :vertical="reDirection"
17
- :circular="props.loop"
18
- :style="{
19
- height: imgH + 'rpx'
20
- }"
21
- >
22
- <swiper-item
23
- v-for="(item, index) in resultArr"
24
- :key="cyy"
25
- :style="[sliderStyle, { boxSizing: 'border-box' }]"
26
- >
27
- <img :src="item.imgUrl" alt="" mode="widthFix" style="width: 100%" />
28
- </swiper-item>
29
- </swiper>
30
- </div>
31
- </div>
32
- </template>
33
- <script>
34
- import { handlePlat, isLc } from '../../utils/index.js';
35
- import { isEmpty, isUndefined } from 'lodash-es';
36
- import pick from 'lodash-es/pick';
37
-
38
- export default {
39
- name: 'cyy-slider',
40
- data() {
41
- return {
42
- lowCode: isLc
43
- };
44
- },
45
- props: {
46
- props: {
47
- autoplay: Boolean,
48
- autoplayInterval: Number,
49
- direction: String,
50
- loop: Boolean,
51
- selectImg: Array,
52
- defaultValue: Array,
53
- imgHeight: Object,
54
- marginTop: Number,
55
- marginBottom: Number
56
- }
57
- },
58
- computed: {
59
- resultArr() {
60
- const { selectImg, defaultValue } = this.props;
61
- const computedArr = selectImg
62
- .filter((item) => !isUndefined(item))
63
- .filter(
64
- (item) => !Object.values(item).every((citem) => isUndefined(citem))
65
- );
66
- let arr = defaultValue;
67
- if (!isEmpty(computedArr)) {
68
- arr = computedArr;
69
- }
70
- return arr;
71
- },
72
- imgH() {
73
- const { imgHeight } = this.props;
74
- return (imgHeight.height / imgHeight.width) * 750;
75
- },
76
- sliderStyle() {
77
- const variates = ['marginTop', 'marginBottom'];
78
- const params = pick(this.props, variates);
79
-
80
- return {
81
- ...handlePlat(params)
82
- };
83
- },
84
- reDirection() {
85
- const { direction } = this.props;
86
- return direction !== 'horizontal';
87
- }
88
- }
89
- };
90
- </script>
91
-
92
- <style>
93
- .lowCode-warp {
94
- position: relative;
95
- }
96
-
97
- .lowCode-warp ul {
98
- position: absolute;
99
- bottom: 10px;
100
- text-align: center;
101
- width: 100%;
102
- padding: 0;
103
- }
104
-
105
- .lowCode-warp li {
106
- display: inline-block;
107
- width: 8px;
108
- height: 8px;
109
- border-radius: 50%;
110
- background-color: rgba(0, 0, 0, 0.3);
111
- margin: 0 4px;
112
- }
113
-
114
- .lowCode-warp li:first-child {
115
- background-color: #000000;
116
- }
117
- </style>
1
+ <template>
2
+ <div>
3
+ <div v-if="lowCode">
4
+ <div class="lowCode-warp" :style="[sliderStyle]">
5
+ <img :src="resultArr[0]['imgUrl']" alt="" style="width: 100%" />
6
+ <ul>
7
+ <li v-for="(item, index) in resultArr" :key="cyy"></li>
8
+ </ul>
9
+ </div>
10
+ </div>
11
+ <div v-else>
12
+ <swiper
13
+ :indicator-dots="true"
14
+ :autoplay="props.autoplay"
15
+ :interval="props.autoplayInterval"
16
+ :vertical="reDirection"
17
+ :circular="props.loop"
18
+ :style="{
19
+ height: imgH + 'rpx'
20
+ }"
21
+ >
22
+ <swiper-item
23
+ v-for="(item, index) in resultArr"
24
+ :key="cyy"
25
+ :style="[sliderStyle, { boxSizing: 'border-box' }]"
26
+ >
27
+ <img :src="item.imgUrl" alt="" mode="widthFix" style="width: 100%" />
28
+ </swiper-item>
29
+ </swiper>
30
+ </div>
31
+ </div>
32
+ </template>
33
+ <script>
34
+ import { handlePlat, isLc } from '../../utils/index.js';
35
+ import { isEmpty, isUndefined } from 'lodash-es';
36
+ import pick from 'lodash-es/pick';
37
+
38
+ export default {
39
+ name: 'cyy-slider',
40
+ data() {
41
+ return {
42
+ lowCode: isLc
43
+ };
44
+ },
45
+ props: {
46
+ props: {
47
+ autoplay: Boolean,
48
+ autoplayInterval: Number,
49
+ direction: String,
50
+ loop: Boolean,
51
+ selectImg: Array,
52
+ defaultValue: Array,
53
+ imgHeight: Object,
54
+ marginTop: Number,
55
+ marginBottom: Number
56
+ }
57
+ },
58
+ computed: {
59
+ resultArr() {
60
+ const { selectImg, defaultValue } = this.props;
61
+ const computedArr = selectImg
62
+ .filter((item) => !isUndefined(item))
63
+ .filter(
64
+ (item) => !Object.values(item).every((citem) => isUndefined(citem))
65
+ );
66
+ let arr = defaultValue;
67
+ if (!isEmpty(computedArr)) {
68
+ arr = computedArr;
69
+ }
70
+ return arr;
71
+ },
72
+ imgH() {
73
+ const { imgHeight } = this.props;
74
+ return (imgHeight.height / imgHeight.width) * 750;
75
+ },
76
+ sliderStyle() {
77
+ const variates = ['marginTop', 'marginBottom'];
78
+ const params = pick(this.props, variates);
79
+
80
+ return {
81
+ ...handlePlat(params)
82
+ };
83
+ },
84
+ reDirection() {
85
+ const { direction } = this.props;
86
+ return direction !== 'horizontal';
87
+ }
88
+ }
89
+ };
90
+ </script>
91
+
92
+ <style>
93
+ .lowCode-warp {
94
+ position: relative;
95
+ }
96
+
97
+ .lowCode-warp ul {
98
+ position: absolute;
99
+ bottom: 10px;
100
+ text-align: center;
101
+ width: 100%;
102
+ padding: 0;
103
+ }
104
+
105
+ .lowCode-warp li {
106
+ display: inline-block;
107
+ width: 8px;
108
+ height: 8px;
109
+ border-radius: 50%;
110
+ background-color: rgba(0, 0, 0, 0.3);
111
+ margin: 0 4px;
112
+ }
113
+
114
+ .lowCode-warp li:first-child {
115
+ background-color: #000000;
116
+ }
117
+ </style>