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.
- package/dist/index.js +1 -1
- package/package.json +34 -34
- package/src/App.vue +149 -149
- package/src/api/http.js +16 -16
- package/src/api/index.js +21 -21
- package/src/api/urlQuery.js +20 -20
- package/src/common/js/constant.js +5 -5
- package/src/common/js/index.js +1 -1
- package/src/components/vop-label.vue +29 -29
- package/src/index.dev.js +4 -4
- package/src/package/cyy-ArsenalActivity/components/u-cont-down.vue +316 -316
- package/src/package/cyy-ArsenalActivity/components/u-line-progress.vue +150 -150
- package/src/package/cyy-ArsenalActivity/cyy-ArsenalActivity.vue +820 -820
- package/src/package/cyy-ArsenalCarousel/cyy-ArsenalCarousel.vue +137 -137
- package/src/package/cyy-ArsenalClass/cyy-ArsenalClass.vue +564 -564
- package/src/package/cyy-ArsenalMyNavigation/cyy-ArsenalMyNavigation.vue +128 -125
- package/src/package/cyy-ArsenalMyTop/cyy-ArsenalMyTop.vue +211 -211
- package/src/package/cyy-ArsenalNavigation/cyy-ArsenalNavigation.vue +236 -236
- package/src/package/cyy-ArsenalPicture/cyy-ArsenalPicture.vue +228 -228
- package/src/package/cyy-ArsenalPromotion/cyy-ArsenalPromotion.vue +913 -899
- package/src/package/cyy-ArsenalRecommend/cyy-ArsenalRecommend.vue +56 -56
- package/src/package/cyy-ArsenalTop/cyy-ArsenalTop.vue +328 -328
- package/src/package/cyy-collocation/cyy-collocation.vue +639 -639
- package/src/package/cyy-goods/cyy-goods.vue +317 -317
- package/src/package/cyy-goodsOne/consult.vue +267 -267
- package/src/package/cyy-goodsOne/cyy-goodsOne.vue +217 -217
- package/src/package/cyy-image/cyy-image.vue +64 -64
- package/src/package/cyy-live/cyy-live.vue +196 -196
- package/src/package/cyy-new-product/cyy-new-product.vue +834 -834
- package/src/package/cyy-notice/cyy-notice.vue +137 -137
- package/src/package/cyy-search/cyy-search.vue +57 -57
- package/src/package/cyy-slider/cyy-slider.vue +117 -117
- package/src/package/cyy-title/cyy-title.vue +38 -38
- package/src/package/cyy-video/cyy-video.vue +49 -49
- package/src/package/index.js +21 -21
- package/src/utils/checkEnv.js +16 -16
- package/src/utils/fetchFactory.js +100 -100
- package/src/utils/index.js +2 -2
|
@@ -1,150 +1,150 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view class="u-progress" :style="{
|
|
3
|
-
borderRadius: round ? '100rpx' : 0,
|
|
4
|
-
height: height + 'rpx',
|
|
5
|
-
backgroundColor: inactiveColor
|
|
6
|
-
}">
|
|
7
|
-
<view :class="[
|
|
8
|
-
type ? `u-type-${type}-bg` : '',
|
|
9
|
-
striped ? 'u-striped' : '',
|
|
10
|
-
striped && stripedActive ? 'u-striped-active' : ''
|
|
11
|
-
]" class="u-active" :style="[progressStyle]">
|
|
12
|
-
<slot v-if="$slots.default || $slots.$default" />
|
|
13
|
-
<template v-else-if="showPercent">
|
|
14
|
-
{{percent + '%'}}
|
|
15
|
-
</template>
|
|
16
|
-
</view>
|
|
17
|
-
</view>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script>
|
|
21
|
-
/**
|
|
22
|
-
* lineProgress 线型进度条
|
|
23
|
-
* @description 展示操作或任务的当前进度,比如上传文件,是一个线形的进度条。
|
|
24
|
-
* @tutorial https://www.uviewui.com/components/lineProgress.html
|
|
25
|
-
* @property {String Number} percent 进度条百分比值,为数值类型,0-100
|
|
26
|
-
* @property {Boolean} round 进度条两端是否为半圆(默认true)
|
|
27
|
-
* @property {String} type 如设置,active-color值将会失效
|
|
28
|
-
* @property {String} active-color 进度条激活部分的颜色(默认#19be6b)
|
|
29
|
-
* @property {String} inactive-color 进度条的底色(默认#ececec)
|
|
30
|
-
* @property {Boolean} show-percent 是否在进度条内部显示当前的百分比值数值(默认true)
|
|
31
|
-
* @property {String Number} height 进度条的高度,单位rpx(默认28)
|
|
32
|
-
* @property {Boolean} striped 是否显示进度条激活部分的条纹(默认false)
|
|
33
|
-
* @property {Boolean} striped-active 条纹是否具有动态效果(默认false)
|
|
34
|
-
* @example <u-line-progress :percent="70" :show-percent="true"></u-line-progress>
|
|
35
|
-
*/
|
|
36
|
-
export default {
|
|
37
|
-
name: "u-line-progress",
|
|
38
|
-
props: {
|
|
39
|
-
// 两端是否显示半圆形
|
|
40
|
-
round: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
default: true
|
|
43
|
-
},
|
|
44
|
-
// 主题颜色
|
|
45
|
-
type: {
|
|
46
|
-
type: String,
|
|
47
|
-
default: ''
|
|
48
|
-
},
|
|
49
|
-
// 激活部分的颜色
|
|
50
|
-
activeColor: {
|
|
51
|
-
type: String,
|
|
52
|
-
default: '#19be6b'
|
|
53
|
-
},
|
|
54
|
-
inactiveColor: {
|
|
55
|
-
type: String,
|
|
56
|
-
default: '#ececec'
|
|
57
|
-
},
|
|
58
|
-
// 进度百分比,数值
|
|
59
|
-
percent: {
|
|
60
|
-
type: Number,
|
|
61
|
-
default: 0
|
|
62
|
-
},
|
|
63
|
-
// 是否在进度条内部显示百分比的值
|
|
64
|
-
showPercent: {
|
|
65
|
-
type: Boolean,
|
|
66
|
-
default: true
|
|
67
|
-
},
|
|
68
|
-
// 进度条的高度,单位rpx
|
|
69
|
-
height: {
|
|
70
|
-
type: [Number, String],
|
|
71
|
-
default: 28
|
|
72
|
-
},
|
|
73
|
-
// 是否显示条纹
|
|
74
|
-
striped: {
|
|
75
|
-
type: Boolean,
|
|
76
|
-
default: false
|
|
77
|
-
},
|
|
78
|
-
// 条纹是否显示活动状态
|
|
79
|
-
stripedActive: {
|
|
80
|
-
type: Boolean,
|
|
81
|
-
default: false
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
data() {
|
|
85
|
-
return {
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
computed: {
|
|
90
|
-
progressStyle() {
|
|
91
|
-
let style = {};
|
|
92
|
-
style.width = this.percent + '%';
|
|
93
|
-
if(this.activeColor) style.backgroundColor = this.activeColor;
|
|
94
|
-
return style;
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
methods: {
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
</script>
|
|
102
|
-
|
|
103
|
-
<style lang="less" scoped>
|
|
104
|
-
|
|
105
|
-
.u-progress {
|
|
106
|
-
overflow: hidden;
|
|
107
|
-
height: 5px;
|
|
108
|
-
display: inline-flex;
|
|
109
|
-
align-items: center;
|
|
110
|
-
width: 152px;
|
|
111
|
-
border-radius: 3px;
|
|
112
|
-
@media (max-width: 320px) {
|
|
113
|
-
width: 80px;
|
|
114
|
-
}
|
|
115
|
-
@media (min-width: 321px) and (max-width: 376px) {
|
|
116
|
-
width: 132px;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.u-active {
|
|
121
|
-
width: 0;
|
|
122
|
-
height: 100%;
|
|
123
|
-
align-items: center;
|
|
124
|
-
display: flex;
|
|
125
|
-
justify-items: flex-end;
|
|
126
|
-
justify-content: space-around;
|
|
127
|
-
font-size: 10px;
|
|
128
|
-
color: #ffffff;
|
|
129
|
-
transition: all 0.4s ease;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.u-striped {
|
|
133
|
-
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
|
134
|
-
background-size: 39px 39px;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.u-striped-active {
|
|
138
|
-
animation: progress-stripes 2s linear infinite;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
@keyframes progress-stripes {
|
|
142
|
-
0% {
|
|
143
|
-
background-position: 0 0;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
100% {
|
|
147
|
-
background-position: 39px 0;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<view class="u-progress" :style="{
|
|
3
|
+
borderRadius: round ? '100rpx' : 0,
|
|
4
|
+
height: height + 'rpx',
|
|
5
|
+
backgroundColor: inactiveColor
|
|
6
|
+
}">
|
|
7
|
+
<view :class="[
|
|
8
|
+
type ? `u-type-${type}-bg` : '',
|
|
9
|
+
striped ? 'u-striped' : '',
|
|
10
|
+
striped && stripedActive ? 'u-striped-active' : ''
|
|
11
|
+
]" class="u-active" :style="[progressStyle]">
|
|
12
|
+
<slot v-if="$slots.default || $slots.$default" />
|
|
13
|
+
<template v-else-if="showPercent">
|
|
14
|
+
{{percent + '%'}}
|
|
15
|
+
</template>
|
|
16
|
+
</view>
|
|
17
|
+
</view>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script>
|
|
21
|
+
/**
|
|
22
|
+
* lineProgress 线型进度条
|
|
23
|
+
* @description 展示操作或任务的当前进度,比如上传文件,是一个线形的进度条。
|
|
24
|
+
* @tutorial https://www.uviewui.com/components/lineProgress.html
|
|
25
|
+
* @property {String Number} percent 进度条百分比值,为数值类型,0-100
|
|
26
|
+
* @property {Boolean} round 进度条两端是否为半圆(默认true)
|
|
27
|
+
* @property {String} type 如设置,active-color值将会失效
|
|
28
|
+
* @property {String} active-color 进度条激活部分的颜色(默认#19be6b)
|
|
29
|
+
* @property {String} inactive-color 进度条的底色(默认#ececec)
|
|
30
|
+
* @property {Boolean} show-percent 是否在进度条内部显示当前的百分比值数值(默认true)
|
|
31
|
+
* @property {String Number} height 进度条的高度,单位rpx(默认28)
|
|
32
|
+
* @property {Boolean} striped 是否显示进度条激活部分的条纹(默认false)
|
|
33
|
+
* @property {Boolean} striped-active 条纹是否具有动态效果(默认false)
|
|
34
|
+
* @example <u-line-progress :percent="70" :show-percent="true"></u-line-progress>
|
|
35
|
+
*/
|
|
36
|
+
export default {
|
|
37
|
+
name: "u-line-progress",
|
|
38
|
+
props: {
|
|
39
|
+
// 两端是否显示半圆形
|
|
40
|
+
round: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: true
|
|
43
|
+
},
|
|
44
|
+
// 主题颜色
|
|
45
|
+
type: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: ''
|
|
48
|
+
},
|
|
49
|
+
// 激活部分的颜色
|
|
50
|
+
activeColor: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: '#19be6b'
|
|
53
|
+
},
|
|
54
|
+
inactiveColor: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: '#ececec'
|
|
57
|
+
},
|
|
58
|
+
// 进度百分比,数值
|
|
59
|
+
percent: {
|
|
60
|
+
type: Number,
|
|
61
|
+
default: 0
|
|
62
|
+
},
|
|
63
|
+
// 是否在进度条内部显示百分比的值
|
|
64
|
+
showPercent: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: true
|
|
67
|
+
},
|
|
68
|
+
// 进度条的高度,单位rpx
|
|
69
|
+
height: {
|
|
70
|
+
type: [Number, String],
|
|
71
|
+
default: 28
|
|
72
|
+
},
|
|
73
|
+
// 是否显示条纹
|
|
74
|
+
striped: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: false
|
|
77
|
+
},
|
|
78
|
+
// 条纹是否显示活动状态
|
|
79
|
+
stripedActive: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: false
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
data() {
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
computed: {
|
|
90
|
+
progressStyle() {
|
|
91
|
+
let style = {};
|
|
92
|
+
style.width = this.percent + '%';
|
|
93
|
+
if(this.activeColor) style.backgroundColor = this.activeColor;
|
|
94
|
+
return style;
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
methods: {
|
|
98
|
+
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
</script>
|
|
102
|
+
|
|
103
|
+
<style lang="less" scoped>
|
|
104
|
+
|
|
105
|
+
.u-progress {
|
|
106
|
+
overflow: hidden;
|
|
107
|
+
height: 5px;
|
|
108
|
+
display: inline-flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
width: 152px;
|
|
111
|
+
border-radius: 3px;
|
|
112
|
+
@media (max-width: 320px) {
|
|
113
|
+
width: 80px;
|
|
114
|
+
}
|
|
115
|
+
@media (min-width: 321px) and (max-width: 376px) {
|
|
116
|
+
width: 132px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.u-active {
|
|
121
|
+
width: 0;
|
|
122
|
+
height: 100%;
|
|
123
|
+
align-items: center;
|
|
124
|
+
display: flex;
|
|
125
|
+
justify-items: flex-end;
|
|
126
|
+
justify-content: space-around;
|
|
127
|
+
font-size: 10px;
|
|
128
|
+
color: #ffffff;
|
|
129
|
+
transition: all 0.4s ease;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.u-striped {
|
|
133
|
+
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
|
|
134
|
+
background-size: 39px 39px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.u-striped-active {
|
|
138
|
+
animation: progress-stripes 2s linear infinite;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@keyframes progress-stripes {
|
|
142
|
+
0% {
|
|
143
|
+
background-position: 0 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
100% {
|
|
147
|
+
background-position: 39px 0;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
</style>
|