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,267 +1,267 @@
1
- <template>
2
- <view>
3
- <view class="three-layout">
4
- <view class="three-layout-title" @click="jumpToSearch(floorList.cmsContlistReDomainList)">
5
- <view class="top-left" v-if="floorList.conttitleNameNow">{{ floorList.conttitleNameNow || "" }} </view>
6
- <view class="top-right">
7
- <view>更多</view>
8
- <image :lazy-load="true" src="@/static/car/arrow.png"></image>
9
- </view>
10
- </view>
11
-
12
- <view class="three-layout-content">
13
- <view class="three-layout-bigImg">
14
- <image :lazy-load="true" :src="floorList.conttitlePicurlNow ? checkImgUrl(floorList.conttitlePicurlNow) : ''" mode="aspectFill"></image>
15
- </view>
16
- <view class="three-layout-goods">
17
- <scroll-view scroll-x="true" scroll-with-animation="true" class="scroll-list scroll-top">
18
- <view class="scroll-item" v-for="(item, index) in floorList.cmsContlistReDomainList" :key="index" @click="toDetail(item.contlistPicurl3)">
19
- <image :lazy-load="true" :src="checkImgUrl(item.contlistCon || item.contlistPicurl)" mode="aspectFill" lazy-load="true"></image>
20
- <view class="mask-three-more" v-if="item.goodsSupplynum <= 0 || item.goodsProperty5 === '1'">{{ maskTitle(item.goodsProperty5) }}</view>
21
- <p><vop-label :goodsType="item.contlistPrice1"></vop-label>{{ item.contlistName }}</p>
22
- <view class="price-box">
23
- <view class="now-price">¥{{ $toFix(item.contlistPrice, 2, 2) || 0 }}</view>
24
- <view class="origin-price" v-if="item.contlistConNow == 1"> ¥{{ $toFix(item.contlistPicurl1, 2, 2) || 0 }}</view>
25
- </view>
26
- </view>
27
- </scroll-view>
28
- </view>
29
- </view>
30
- </view>
31
- </view>
32
- </template>
33
-
34
- <script>
35
- import { checkImgUrl } from "@/utils/checkImg.js";
36
- export default {
37
- props: {
38
- floorList: Object, // 楼层数据
39
- floorSymbol: String,
40
- },
41
- data() {
42
- return {
43
- checkImgUrl,
44
- };
45
- },
46
- methods: {
47
- toDetail(item) {
48
- this.$emit("toDetail", item);
49
- },
50
- jumpToSearch(item) {
51
- this.$emit("jumpToSearch", item, 1);
52
- },
53
- maskTitle(presale) {
54
- if (presale === "1") {
55
- return "预售中";
56
- } else {
57
- return "补货中";
58
- }
59
- },
60
- },
61
- mounted() {
62
- // console.log(this.floorList, 'mounted');
63
- },
64
- watch: {},
65
- filters: {},
66
- };
67
- </script>
68
-
69
- <style lang="scss" scoped>
70
- // 布局为三个一行排列方式 , 也为一部分通用部分
71
- .three-layout {
72
- // margin: 30rpx 25rpx;
73
- // box-shadow: 0px 10rpx 20rpx 0px rgba(0, 0, 0, 0.1);
74
- border-radius: 14rpx;
75
- // background: pink;
76
- // padding: 27rpx 20rpx 0rpx;
77
- .mask {
78
- position: absolute;
79
- display: block;
80
- width: 108rpx;
81
- height: 108rpx;
82
- line-height: 108rpx;
83
- background-color: #000;
84
- opacity: 0.5;
85
- font-size: 26 rpx;
86
- text-align: center;
87
- color: #ffffff;
88
- }
89
- .mask-three-nomore {
90
- position: absolute;
91
- top: 0;
92
- display: block;
93
- width: 196rpx;
94
- height: 196rpx;
95
- line-height: 196rpx;
96
- background-color: #000;
97
- opacity: 0.5;
98
- font-size: 26 rpx;
99
- text-align: center;
100
- color: #ffffff;
101
- }
102
- .mask-three-more {
103
- position: absolute;
104
- top: 0rpx;
105
- display: block;
106
- width: 196rpx;
107
- height: 196rpx;
108
- line-height: 196rpx;
109
- background-color: #000;
110
- opacity: 0.5;
111
- font-size: 26 rpx;
112
- text-align: center;
113
- color: #ffffff;
114
- }
115
- .three-layout-title {
116
- margin: 30rpx 25rpx;
117
- display: flex;
118
- justify-content: space-between;
119
- .top-left {
120
- font-size: 32rpx;
121
- font-family: PingFangSC-Semibold, PingFang SC;
122
- font-weight: 600;
123
- color: #333333;
124
- line-height: 44rpx;
125
- }
126
- .top-right {
127
- display: flex;
128
- align-items: center;
129
- view {
130
- color: #595959;
131
- font-size: 24rpx;
132
- }
133
- image {
134
- width: 12rpx;
135
- height: 18rpx;
136
- margin-left: 6rpx;
137
- }
138
- }
139
- }
140
- .three-layout-content {
141
- margin: 30rpx 29rpx;
142
- box-shadow: 0px 10rpx 20rpx 0px rgba(0, 0, 0, 0.1);
143
- border-radius: 14rpx;
144
- // border: 4rpx solid #f6f6f6;
145
- background: #fff;
146
- .three-layout-bigImg {
147
- image {
148
- border-radius: 14rpx 14rpx 0 0;
149
- display: inline-block;
150
- width: 100%;
151
- height: 378rpx;
152
- }
153
- }
154
- .three-layout-goods {
155
- display: flex;
156
- justify-content: center;
157
- padding: 0rpx 20rpx;
158
- padding-bottom: 20rpx;
159
- .goods-items {
160
- width: 212rpx;
161
- }
162
- }
163
- }
164
- }
165
-
166
- .scroll-list {
167
- width: 100%;
168
- white-space: nowrap;
169
- overflow: hidden;
170
- // padding: 0 16rpx;
171
- display: flex;
172
- justify-content: space-between;
173
- box-sizing: border-box;
174
- // margin-top: 20rpx;
175
-
176
- .scroll-item {
177
- display: inline-block;
178
- margin-right: 20rpx;
179
-
180
- image {
181
- width: 196rpx;
182
- height: 196rpx;
183
- border-radius: 10rpx;
184
- }
185
-
186
- p {
187
- width: 196rpx;
188
- white-space: normal;
189
- display: -webkit-box;
190
- -webkit-box-orient: vertical;
191
- -webkit-line-clamp: 1;
192
- overflow: hidden;
193
- font-size: 24rpx;
194
- font-family: PingFangSC-Regular, PingFang SC;
195
- font-weight: 400;
196
- color: #000000;
197
- line-height: 34rpx;
198
- }
199
-
200
- .price-box {
201
- margin-top: 5rpx;
202
- display: flex;
203
- align-items: center;
204
-
205
- .now-price {
206
- color: #eb2b27;
207
- font-weight: bold;
208
- font-size: 24rpx;
209
- }
210
-
211
- .origin-price {
212
- color: #8c8c8c;
213
- font-size: 22rpx;
214
- text-decoration: line-through;
215
- margin-left: 8rpx;
216
- }
217
- }
218
- }
219
- .un-scroll-item {
220
- display: inline-block;
221
- margin-right: 15rpx;
222
-
223
- image {
224
- width: 196rpx;
225
- height: 196rpx;
226
- // border-radius: 10rpx;
227
- }
228
-
229
- p {
230
- width: 196rpx;
231
- white-space: normal;
232
- display: -webkit-box;
233
- -webkit-box-orient: vertical;
234
- -webkit-line-clamp: 1;
235
- overflow: hidden;
236
- font-size: 24rpx;
237
- font-family: PingFangSC-Regular, PingFang SC;
238
- font-weight: 400;
239
- color: #000000;
240
- line-height: 34rpx;
241
- }
242
-
243
- .price-box {
244
- margin-top: 5rpx;
245
- display: flex;
246
- align-items: center;
247
-
248
- .now-price {
249
- color: #eb2b27;
250
- font-weight: bold;
251
- font-size: 24rpx;
252
- }
253
-
254
- .origin-price {
255
- color: #8c8c8c;
256
- font-size: 22rpx;
257
- text-decoration: line-through;
258
- margin-left: 8rpx;
259
- }
260
- }
261
- }
262
- }
263
-
264
- .scroll-top {
265
- margin-top: 20rpx;
266
- }
267
- </style>
1
+ <template>
2
+ <view>
3
+ <view class="three-layout">
4
+ <view class="three-layout-title" @click="jumpToSearch(floorList.cmsContlistReDomainList)">
5
+ <view class="top-left" v-if="floorList.conttitleNameNow">{{ floorList.conttitleNameNow || "" }} </view>
6
+ <view class="top-right">
7
+ <view>更多</view>
8
+ <image :lazy-load="true" src="@/static/car/arrow.png"></image>
9
+ </view>
10
+ </view>
11
+
12
+ <view class="three-layout-content">
13
+ <view class="three-layout-bigImg">
14
+ <image :lazy-load="true" :src="floorList.conttitlePicurlNow ? checkImgUrl(floorList.conttitlePicurlNow) : ''" mode="aspectFill"></image>
15
+ </view>
16
+ <view class="three-layout-goods">
17
+ <scroll-view scroll-x="true" scroll-with-animation="true" class="scroll-list scroll-top">
18
+ <view class="scroll-item" v-for="(item, index) in floorList.cmsContlistReDomainList" :key="index" @click="toDetail(item.contlistPicurl3)">
19
+ <image :lazy-load="true" :src="checkImgUrl(item.contlistCon || item.contlistPicurl)" mode="aspectFill" lazy-load="true"></image>
20
+ <view class="mask-three-more" v-if="item.goodsSupplynum <= 0 || item.goodsProperty5 === '1'">{{ maskTitle(item.goodsProperty5) }}</view>
21
+ <p><vop-label :goodsType="item.contlistPrice1"></vop-label>{{ item.contlistName }}</p>
22
+ <view class="price-box">
23
+ <view class="now-price">¥{{ $toFix(item.contlistPrice, 2, 2) || 0 }}</view>
24
+ <view class="origin-price" v-if="item.contlistConNow == 1"> ¥{{ $toFix(item.contlistPicurl1, 2, 2) || 0 }}</view>
25
+ </view>
26
+ </view>
27
+ </scroll-view>
28
+ </view>
29
+ </view>
30
+ </view>
31
+ </view>
32
+ </template>
33
+
34
+ <script>
35
+ import { checkImgUrl } from "@/utils/checkImg.js";
36
+ export default {
37
+ props: {
38
+ floorList: Object, // 楼层数据
39
+ floorSymbol: String,
40
+ },
41
+ data() {
42
+ return {
43
+ checkImgUrl,
44
+ };
45
+ },
46
+ methods: {
47
+ toDetail(item) {
48
+ this.$emit("toDetail", item);
49
+ },
50
+ jumpToSearch(item) {
51
+ this.$emit("jumpToSearch", item, 1);
52
+ },
53
+ maskTitle(presale) {
54
+ if (presale === "1") {
55
+ return "预售中";
56
+ } else {
57
+ return "补货中";
58
+ }
59
+ },
60
+ },
61
+ mounted() {
62
+ // console.log(this.floorList, 'mounted');
63
+ },
64
+ watch: {},
65
+ filters: {},
66
+ };
67
+ </script>
68
+
69
+ <style lang="scss" scoped>
70
+ // 布局为三个一行排列方式 , 也为一部分通用部分
71
+ .three-layout {
72
+ // margin: 30rpx 25rpx;
73
+ // box-shadow: 0px 10rpx 20rpx 0px rgba(0, 0, 0, 0.1);
74
+ border-radius: 14rpx;
75
+ // background: pink;
76
+ // padding: 27rpx 20rpx 0rpx;
77
+ .mask {
78
+ position: absolute;
79
+ display: block;
80
+ width: 108rpx;
81
+ height: 108rpx;
82
+ line-height: 108rpx;
83
+ background-color: #000;
84
+ opacity: 0.5;
85
+ font-size: 26 rpx;
86
+ text-align: center;
87
+ color: #ffffff;
88
+ }
89
+ .mask-three-nomore {
90
+ position: absolute;
91
+ top: 0;
92
+ display: block;
93
+ width: 196rpx;
94
+ height: 196rpx;
95
+ line-height: 196rpx;
96
+ background-color: #000;
97
+ opacity: 0.5;
98
+ font-size: 26 rpx;
99
+ text-align: center;
100
+ color: #ffffff;
101
+ }
102
+ .mask-three-more {
103
+ position: absolute;
104
+ top: 0rpx;
105
+ display: block;
106
+ width: 196rpx;
107
+ height: 196rpx;
108
+ line-height: 196rpx;
109
+ background-color: #000;
110
+ opacity: 0.5;
111
+ font-size: 26 rpx;
112
+ text-align: center;
113
+ color: #ffffff;
114
+ }
115
+ .three-layout-title {
116
+ margin: 30rpx 25rpx;
117
+ display: flex;
118
+ justify-content: space-between;
119
+ .top-left {
120
+ font-size: 32rpx;
121
+ font-family: PingFangSC-Semibold, PingFang SC;
122
+ font-weight: 600;
123
+ color: #333333;
124
+ line-height: 44rpx;
125
+ }
126
+ .top-right {
127
+ display: flex;
128
+ align-items: center;
129
+ view {
130
+ color: #595959;
131
+ font-size: 24rpx;
132
+ }
133
+ image {
134
+ width: 12rpx;
135
+ height: 18rpx;
136
+ margin-left: 6rpx;
137
+ }
138
+ }
139
+ }
140
+ .three-layout-content {
141
+ margin: 30rpx 29rpx;
142
+ box-shadow: 0px 10rpx 20rpx 0px rgba(0, 0, 0, 0.1);
143
+ border-radius: 14rpx;
144
+ // border: 4rpx solid #f6f6f6;
145
+ background: #fff;
146
+ .three-layout-bigImg {
147
+ image {
148
+ border-radius: 14rpx 14rpx 0 0;
149
+ display: inline-block;
150
+ width: 100%;
151
+ height: 378rpx;
152
+ }
153
+ }
154
+ .three-layout-goods {
155
+ display: flex;
156
+ justify-content: center;
157
+ padding: 0rpx 20rpx;
158
+ padding-bottom: 20rpx;
159
+ .goods-items {
160
+ width: 212rpx;
161
+ }
162
+ }
163
+ }
164
+ }
165
+
166
+ .scroll-list {
167
+ width: 100%;
168
+ white-space: nowrap;
169
+ overflow: hidden;
170
+ // padding: 0 16rpx;
171
+ display: flex;
172
+ justify-content: space-between;
173
+ box-sizing: border-box;
174
+ // margin-top: 20rpx;
175
+
176
+ .scroll-item {
177
+ display: inline-block;
178
+ margin-right: 20rpx;
179
+
180
+ image {
181
+ width: 196rpx;
182
+ height: 196rpx;
183
+ border-radius: 10rpx;
184
+ }
185
+
186
+ p {
187
+ width: 196rpx;
188
+ white-space: normal;
189
+ display: -webkit-box;
190
+ -webkit-box-orient: vertical;
191
+ -webkit-line-clamp: 1;
192
+ overflow: hidden;
193
+ font-size: 24rpx;
194
+ font-family: PingFangSC-Regular, PingFang SC;
195
+ font-weight: 400;
196
+ color: #000000;
197
+ line-height: 34rpx;
198
+ }
199
+
200
+ .price-box {
201
+ margin-top: 5rpx;
202
+ display: flex;
203
+ align-items: center;
204
+
205
+ .now-price {
206
+ color: #eb2b27;
207
+ font-weight: bold;
208
+ font-size: 24rpx;
209
+ }
210
+
211
+ .origin-price {
212
+ color: #8c8c8c;
213
+ font-size: 22rpx;
214
+ text-decoration: line-through;
215
+ margin-left: 8rpx;
216
+ }
217
+ }
218
+ }
219
+ .un-scroll-item {
220
+ display: inline-block;
221
+ margin-right: 15rpx;
222
+
223
+ image {
224
+ width: 196rpx;
225
+ height: 196rpx;
226
+ // border-radius: 10rpx;
227
+ }
228
+
229
+ p {
230
+ width: 196rpx;
231
+ white-space: normal;
232
+ display: -webkit-box;
233
+ -webkit-box-orient: vertical;
234
+ -webkit-line-clamp: 1;
235
+ overflow: hidden;
236
+ font-size: 24rpx;
237
+ font-family: PingFangSC-Regular, PingFang SC;
238
+ font-weight: 400;
239
+ color: #000000;
240
+ line-height: 34rpx;
241
+ }
242
+
243
+ .price-box {
244
+ margin-top: 5rpx;
245
+ display: flex;
246
+ align-items: center;
247
+
248
+ .now-price {
249
+ color: #eb2b27;
250
+ font-weight: bold;
251
+ font-size: 24rpx;
252
+ }
253
+
254
+ .origin-price {
255
+ color: #8c8c8c;
256
+ font-size: 22rpx;
257
+ text-decoration: line-through;
258
+ margin-left: 8rpx;
259
+ }
260
+ }
261
+ }
262
+ }
263
+
264
+ .scroll-top {
265
+ margin-top: 20rpx;
266
+ }
267
+ </style>