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,217 +1,217 @@
1
- <template>
2
- <div>
3
- <div v-if="!props.goods" :style="noDataStyle">请选择商品样式一</div>
4
- <div v-else>
5
- <div class="three-layout">
6
- <div class="three-layout-title" @click="jumpToSearch()">
7
- <div class="top-left" v-if="!props.title.isShow">{{ props.title.title || "" }}</div>
8
- <div v-if="props.more === 1" class="top-right">
9
- <div>更多</div>
10
- <image :lazy-load="true" src="../../static/arrow.png"></image>
11
- </div>
12
- </div>
13
-
14
- <div class="three-layout-content">
15
- <div class="three-layout-bigImg">
16
- <image :lazy-load="true" :src="props.bill ? props.bill : ''" mode="aspectFill"></image>
17
- </div>
18
- <div class="three-layout-goods">
19
- <scroll-view scroll-x="true" scroll-with-animation="true" class="scroll-list scroll-top">
20
- <div class="scroll-item" v-for="(item, index) in listArr" :key="index" @click="toDetail()">
21
- <image :lazy-load="true" :src="'https://rcyx-mp-test.yoxuan.vip' + item.dataPic" mode="aspectFill" lazy-load="true"></image>
22
- <div class="mask-three-more" v-if="item.goodsSupplynum <= 0 || item.goodsProperty5 === '1'">{{ maskTitle(item.goodsProperty5) }}</div>
23
- <p><vop-label :goodsType="item.contlistPrice1"></vop-label>{{ item.goodsName }}</p>
24
- <div class="price-box">
25
- <div class="now-price">¥{{ item.pricesetMakeprice || 0 }}</div>
26
- <div class="origin-price" v-if="item.contlistConNow == 1">¥{{ item.pricesetBaseprice || 0 }}</div>
27
- </div>
28
- </div>
29
- </scroll-view>
30
- </div>
31
- </div>
32
- </div>
33
- </div>
34
- </div>
35
- </template>
36
-
37
- <script>
38
- import { fetchGoodImpl, isLc } from "../../utils/index.js";
39
- import { get } from "lodash-es";
40
- export default {
41
- name: "cyy-goodsOne",
42
- props: {
43
- props: {
44
- title: Object,
45
- more: Number,
46
- bill: String,
47
- SelectGoods: Object,
48
- arrange: Number,
49
- circular: Number,
50
- margin: Number,
51
- markedPrice: Number,
52
- marginTop: Number,
53
- paddingLeft: Number,
54
- paddingRight: Number,
55
- marginBottom: Number,
56
- },
57
- },
58
- data() {
59
- return {
60
- listArr: [],
61
- noDataStyle: {
62
- width: "100%",
63
- height: "180px",
64
- lineHeight: "180px",
65
- fontSize: "30px",
66
- backgroundColor: "#ccc",
67
- color: "#aaa",
68
- textAlign: "center",
69
- },
70
- };
71
- },
72
- mounted() {
73
- console.log(75);
74
- this.init();
75
- },
76
- methods: {
77
- async init() {
78
- console.log(196);
79
- const { goods = [] } = this.props;
80
- console.log(197);
81
- const goodsCode = goods.toString();
82
- console.log(198);
83
- const paramObj = { goodsCode };
84
- console.log(199, paramObj);
85
- const res = await fetchGoodImpl(this, paramObj);
86
- this.listArr = get(res, "list", []);
87
- console.log(201);
88
- console.log("🐽🐽🐽🐽🐽🐽🐽🐽", this.listArr);
89
- },
90
-
91
- goGoodsDetail(item) {
92
- if (isLc) {
93
- return;
94
- }
95
- const { skuCode, skuNo } = item;
96
- let params = {
97
- skuCode: skuCode,
98
- skuNo: skuNo,
99
- };
100
- this.$routers.push("detail", params);
101
- },
102
- jumpToSearch() {},
103
- },
104
- maskTitle(presale) {
105
- if (presale === "1") {
106
- return "预售中";
107
- } else {
108
- return "补货中";
109
- }
110
- },
111
- };
112
- </script>
113
-
114
- <style lang="less" scoped>
115
- .three-layout {
116
- border-radius: 7px;
117
- .mask-three-more {
118
- position: absolute;
119
- top: 0px;
120
- display: block;
121
- width: 98px;
122
- height: 98px;
123
- line-height: 98px;
124
- background-color: #000;
125
- opacity: 0.5;
126
- font-size: 52px;
127
- text-align: center;
128
- color: #ffffff;
129
- }
130
- .three-layout-title {
131
- margin: 15px 12.5px;
132
- display: flex;
133
- justify-content: space-between;
134
- .top-left {
135
- font-size: 16px;
136
- font-family: PingFangSC-Semibold, PingFang SC;
137
- font-weight: 600;
138
- color: #333333;
139
- line-height: 22px;
140
- }
141
- .top-right {
142
- display: flex;
143
- align-items: center;
144
- div {
145
- color: #595959;
146
- font-size: 12px;
147
- }
148
- image {
149
- width: 6px;
150
- height: 9px;
151
- margin-left: 3px;
152
- }
153
- }
154
- }
155
- .three-layout-content {
156
- margin: 15px 14.5px;
157
- box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.1);
158
- border-radius: 7px;
159
- background: #fff;
160
- .three-layout-bigImg {
161
- image {
162
- border-radius: 28px 28px 0 0;
163
- display: inline-block;
164
- width: 100%;
165
- height: 189px;
166
- }
167
- }
168
- .three-layout-goods {
169
- display: flex;
170
- justify-content: center;
171
- padding: 0px 10px;
172
- padding-bottom: 10px;
173
- .goods-items {
174
- width: 106px;
175
- }
176
- }
177
- }
178
- }
179
-
180
- .scroll-list {
181
- width: 100%;
182
- white-space: nowrap;
183
- overflow: hidden;
184
- display: flex;
185
- justify-content: space-between;
186
- box-sizing: border-box;
187
-
188
- .scroll-item {
189
- display: inline-block;
190
- margin-right: 10px;
191
-
192
- image {
193
- width: 98px;
194
- height: 98px;
195
- border-radius: 5px;
196
- }
197
-
198
- p {
199
- width: 98px;
200
- white-space: normal;
201
- display: -webkit-box;
202
- -webkit-box-orient: vertical;
203
- -webkit-line-clamp: 1;
204
- overflow: hidden;
205
- font-size: 12px;
206
- font-family: PingFangSC-Regular, PingFang SC;
207
- font-weight: 400;
208
- color: #000000;
209
- line-height: 17px;
210
- }
211
- }
212
- }
213
-
214
- .scroll-top {
215
- margin-top: 10px;
216
- }
217
- </style>
1
+ <template>
2
+ <div>
3
+ <div v-if="!props.goods" :style="noDataStyle">请选择商品样式一</div>
4
+ <div v-else>
5
+ <div class="three-layout">
6
+ <div class="three-layout-title" @click="jumpToSearch()">
7
+ <div class="top-left" v-if="!props.title.isShow">{{ props.title.title || "" }}</div>
8
+ <div v-if="props.more === 1" class="top-right">
9
+ <div>更多</div>
10
+ <image :lazy-load="true" src="../../static/arrow.png"></image>
11
+ </div>
12
+ </div>
13
+
14
+ <div class="three-layout-content">
15
+ <div class="three-layout-bigImg">
16
+ <image :lazy-load="true" :src="props.bill ? props.bill : ''" mode="aspectFill"></image>
17
+ </div>
18
+ <div class="three-layout-goods">
19
+ <scroll-view scroll-x="true" scroll-with-animation="true" class="scroll-list scroll-top">
20
+ <div class="scroll-item" v-for="(item, index) in listArr" :key="index" @click="toDetail()">
21
+ <image :lazy-load="true" :src="'https://rcyx-mp-test.yoxuan.vip' + item.dataPic" mode="aspectFill" lazy-load="true"></image>
22
+ <div class="mask-three-more" v-if="item.goodsSupplynum <= 0 || item.goodsProperty5 === '1'">{{ maskTitle(item.goodsProperty5) }}</div>
23
+ <p><vop-label :goodsType="item.contlistPrice1"></vop-label>{{ item.goodsName }}</p>
24
+ <div class="price-box">
25
+ <div class="now-price">¥{{ item.pricesetMakeprice || 0 }}</div>
26
+ <div class="origin-price" v-if="item.contlistConNow == 1">¥{{ item.pricesetBaseprice || 0 }}</div>
27
+ </div>
28
+ </div>
29
+ </scroll-view>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </template>
36
+
37
+ <script>
38
+ import { fetchGoodImpl, isLc } from "../../utils/index.js";
39
+ import { get } from "lodash-es";
40
+ export default {
41
+ name: "cyy-goodsOne",
42
+ props: {
43
+ props: {
44
+ title: Object,
45
+ more: Number,
46
+ bill: String,
47
+ SelectGoods: Object,
48
+ arrange: Number,
49
+ circular: Number,
50
+ margin: Number,
51
+ markedPrice: Number,
52
+ marginTop: Number,
53
+ paddingLeft: Number,
54
+ paddingRight: Number,
55
+ marginBottom: Number,
56
+ },
57
+ },
58
+ data() {
59
+ return {
60
+ listArr: [],
61
+ noDataStyle: {
62
+ width: "100%",
63
+ height: "180px",
64
+ lineHeight: "180px",
65
+ fontSize: "30px",
66
+ backgroundColor: "#ccc",
67
+ color: "#aaa",
68
+ textAlign: "center",
69
+ },
70
+ };
71
+ },
72
+ mounted() {
73
+ console.log(75);
74
+ this.init();
75
+ },
76
+ methods: {
77
+ async init() {
78
+ console.log(196);
79
+ const { goods = [] } = this.props;
80
+ console.log(197);
81
+ const goodsCode = goods.toString();
82
+ console.log(198);
83
+ const paramObj = { goodsCode };
84
+ console.log(199, paramObj);
85
+ const res = await fetchGoodImpl(this, paramObj);
86
+ this.listArr = get(res, "list", []);
87
+ console.log(201);
88
+ console.log("🐽🐽🐽🐽🐽🐽🐽🐽", this.listArr);
89
+ },
90
+
91
+ goGoodsDetail(item) {
92
+ if (isLc) {
93
+ return;
94
+ }
95
+ const { skuCode, skuNo } = item;
96
+ let params = {
97
+ skuCode: skuCode,
98
+ skuNo: skuNo,
99
+ };
100
+ this.$routers.push("detail", params);
101
+ },
102
+ jumpToSearch() {},
103
+ },
104
+ maskTitle(presale) {
105
+ if (presale === "1") {
106
+ return "预售中";
107
+ } else {
108
+ return "补货中";
109
+ }
110
+ },
111
+ };
112
+ </script>
113
+
114
+ <style lang="less" scoped>
115
+ .three-layout {
116
+ border-radius: 7px;
117
+ .mask-three-more {
118
+ position: absolute;
119
+ top: 0px;
120
+ display: block;
121
+ width: 98px;
122
+ height: 98px;
123
+ line-height: 98px;
124
+ background-color: #000;
125
+ opacity: 0.5;
126
+ font-size: 52px;
127
+ text-align: center;
128
+ color: #ffffff;
129
+ }
130
+ .three-layout-title {
131
+ margin: 15px 12.5px;
132
+ display: flex;
133
+ justify-content: space-between;
134
+ .top-left {
135
+ font-size: 16px;
136
+ font-family: PingFangSC-Semibold, PingFang SC;
137
+ font-weight: 600;
138
+ color: #333333;
139
+ line-height: 22px;
140
+ }
141
+ .top-right {
142
+ display: flex;
143
+ align-items: center;
144
+ div {
145
+ color: #595959;
146
+ font-size: 12px;
147
+ }
148
+ image {
149
+ width: 6px;
150
+ height: 9px;
151
+ margin-left: 3px;
152
+ }
153
+ }
154
+ }
155
+ .three-layout-content {
156
+ margin: 15px 14.5px;
157
+ box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.1);
158
+ border-radius: 7px;
159
+ background: #fff;
160
+ .three-layout-bigImg {
161
+ image {
162
+ border-radius: 28px 28px 0 0;
163
+ display: inline-block;
164
+ width: 100%;
165
+ height: 189px;
166
+ }
167
+ }
168
+ .three-layout-goods {
169
+ display: flex;
170
+ justify-content: center;
171
+ padding: 0px 10px;
172
+ padding-bottom: 10px;
173
+ .goods-items {
174
+ width: 106px;
175
+ }
176
+ }
177
+ }
178
+ }
179
+
180
+ .scroll-list {
181
+ width: 100%;
182
+ white-space: nowrap;
183
+ overflow: hidden;
184
+ display: flex;
185
+ justify-content: space-between;
186
+ box-sizing: border-box;
187
+
188
+ .scroll-item {
189
+ display: inline-block;
190
+ margin-right: 10px;
191
+
192
+ image {
193
+ width: 98px;
194
+ height: 98px;
195
+ border-radius: 5px;
196
+ }
197
+
198
+ p {
199
+ width: 98px;
200
+ white-space: normal;
201
+ display: -webkit-box;
202
+ -webkit-box-orient: vertical;
203
+ -webkit-line-clamp: 1;
204
+ overflow: hidden;
205
+ font-size: 12px;
206
+ font-family: PingFangSC-Regular, PingFang SC;
207
+ font-weight: 400;
208
+ color: #000000;
209
+ line-height: 17px;
210
+ }
211
+ }
212
+ }
213
+
214
+ .scroll-top {
215
+ margin-top: 10px;
216
+ }
217
+ </style>
@@ -1,64 +1,64 @@
1
- <template>
2
- <div>
3
- <div v-for="(item, index) in resultArr" :key="cyy">
4
- <img mode="widthFix" :style="[computedStyle, imgStyle]" :src="item['imgUrl']" alt="" />
5
- </div>
6
- </div>
7
- </template>
8
-
9
- <script>
10
- import pick from "lodash-es/pick.js";
11
- import omit from "lodash-es/omit.js";
12
- import { handlePlat } from "../../utils/index.js";
13
- import { isEmpty, isUndefined } from "lodash-es";
14
- export default {
15
- name: "cyy-cube",
16
- data() {
17
- return {
18
- imgStyle: {
19
- width: "100%",
20
- boxSizing: "border-box",
21
- },
22
- };
23
- },
24
- props: {
25
- props: {
26
- selectImg: Array,
27
- borderRadius: Number,
28
- marginTop: Number,
29
- paddingLeft: Number,
30
- paddingRight: Number,
31
- marginBottom: Number,
32
- defaultValue: Array,
33
- },
34
- },
35
- computed: {
36
- resultArr() {
37
- const { selectImg, defaultValue } = this.props;
38
- const computedArr = selectImg.filter((item) => !isUndefined(item)).filter((item) => !Object.values(item).every((citem) => isUndefined(citem)));
39
- let arr = defaultValue;
40
- if (!isEmpty(computedArr)) {
41
- arr = computedArr;
42
- }
43
- console.log(52, arr);
44
- return arr;
45
- },
46
- computedStyle() {
47
- const variates = ["borderRadius", "marginTop", "paddingLeft", "paddingRight", "marginBottom"];
48
- const params = pick(this.props, variates);
49
- const resetProps = omit(this.props, variates);
50
-
51
- return {
52
- ...handlePlat(params),
53
- ...resetProps,
54
- };
55
- },
56
- },
57
- };
58
- </script>
59
- <style lang="less" scoped>
60
- .lc-img-item {
61
- width: 100%;
62
- box-sizing: border-box;
63
- }
64
- </style>
1
+ <template>
2
+ <div>
3
+ <div v-for="(item, index) in resultArr" :key="cyy">
4
+ <img mode="widthFix" :style="[computedStyle, imgStyle]" :src="item['imgUrl']" alt="" />
5
+ </div>
6
+ </div>
7
+ </template>
8
+
9
+ <script>
10
+ import pick from "lodash-es/pick.js";
11
+ import omit from "lodash-es/omit.js";
12
+ import { handlePlat } from "../../utils/index.js";
13
+ import { isEmpty, isUndefined } from "lodash-es";
14
+ export default {
15
+ name: "cyy-cube",
16
+ data() {
17
+ return {
18
+ imgStyle: {
19
+ width: "100%",
20
+ boxSizing: "border-box",
21
+ },
22
+ };
23
+ },
24
+ props: {
25
+ props: {
26
+ selectImg: Array,
27
+ borderRadius: Number,
28
+ marginTop: Number,
29
+ paddingLeft: Number,
30
+ paddingRight: Number,
31
+ marginBottom: Number,
32
+ defaultValue: Array,
33
+ },
34
+ },
35
+ computed: {
36
+ resultArr() {
37
+ const { selectImg, defaultValue } = this.props;
38
+ const computedArr = selectImg.filter((item) => !isUndefined(item)).filter((item) => !Object.values(item).every((citem) => isUndefined(citem)));
39
+ let arr = defaultValue;
40
+ if (!isEmpty(computedArr)) {
41
+ arr = computedArr;
42
+ }
43
+ console.log(52, arr);
44
+ return arr;
45
+ },
46
+ computedStyle() {
47
+ const variates = ["borderRadius", "marginTop", "paddingLeft", "paddingRight", "marginBottom"];
48
+ const params = pick(this.props, variates);
49
+ const resetProps = omit(this.props, variates);
50
+
51
+ return {
52
+ ...handlePlat(params),
53
+ ...resetProps,
54
+ };
55
+ },
56
+ },
57
+ };
58
+ </script>
59
+ <style lang="less" scoped>
60
+ .lc-img-item {
61
+ width: 100%;
62
+ box-sizing: border-box;
63
+ }
64
+ </style>