@10yun/cv-mobile-ui 0.5.51 → 0.5.52
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/build/common_func.js +3 -1
- package/build/parse-create.js +17 -8
- package/build/parse-pages-pkg.js +10 -4
- package/empty-devtools.js +3 -0
- package/libs/aes.js +50 -0
- package/libs/bledefine/bledefine.js +51 -0
- package/libs/bledefine/ios-ble-statuscode.js +97 -0
- package/libs/nfc/hexiii-nfc.js +236 -0
- package/libs/nfc.js +179 -0
- package/libs/sdk/html2canvas.js +8 -0
- package/libs/sdk/sdk-h5.js +585 -0
- package/{plugins → libs}/storage2.js +0 -5
- package/{plugins → libs}/storage3.js +0 -4
- package/libs/validators/index.js +438 -0
- package/libs/weapp-qrcode.js +1108 -0
- package/package.json +2 -3
- package/ui-cv/components/cv-dialog-share/tui-share.vue +16 -16
- package/ui-fireui/components/{fui-actionsheet/fui-actionsheet.vue → u-action-sheet/u-action-sheet.vue} +21 -21
- package/ui-fireui/components/{fui-alert/fui-alert.vue → u-alert/u-alert.vue} +13 -13
- package/ui-fireui/components/{fui-badge/fui-badge.vue → u-badge/u-badge.vue} +16 -16
- package/ui-fireui/components/{fui-bottom-navigation/fui-bottom-navigation.vue → u-bottom-navigation/u-bottom-navigation.vue} +47 -46
- package/ui-fireui/components/{fui-bottom-popup/fui-bottom-popup.vue → u-bottom-popup/u-bottom-popup.vue} +9 -8
- package/ui-fireui/components/{fui-bubble-popup/fui-bubble-popup.vue → u-bubble-popup/u-bubble-popup.vue} +19 -15
- package/ui-fireui/components/{fui-button/fui-button.vue → u-button/u-button.vue} +69 -69
- package/ui-fireui/components/u-button/u-button2.vue +553 -0
- package/ui-fireui/components/{fui-calendar/fui-calendar.vue → u-calendar/u-calendar.vue} +78 -78
- package/ui-fireui/components/u-calendar/u-calendar2.vue +801 -0
- package/ui-fireui/components/{fui-card/fui-card.vue → u-card/u-card.vue} +24 -24
- package/ui-fireui/components/{fui-cascade-selection/fui-cascade-selection.vue → u-cascade-selection/u-cascade-selection.vue} +32 -32
- package/ui-fireui/components/{fui-circular-progress/fui-circular-progress.vue → u-circular-progress/u-circular-progress.vue} +14 -6
- package/ui-fireui/components/{fui-collapse/fui-collapse.vue → u-collapse/u-collapse.vue} +19 -19
- package/ui-fireui/components/{fui-countdown/fui-countdown.vue → u-countdown/u-countdown.vue} +28 -28
- package/ui-fireui/components/{fui-datetime/fui-datetime.vue → u-datetime/u-datetime.vue} +51 -51
- package/ui-fireui/components/{fui-divider/fui-divider.vue → u-divider/u-divider.vue} +6 -6
- package/ui-fireui/components/{fui-drawer/fui-drawer.vue → u-drawer/u-drawer.vue} +11 -11
- package/ui-fireui/components/{fui-dropdown-list/fui-dropdown-list.vue → u-dropdown-list/u-dropdown-list.vue} +11 -6
- package/ui-fireui/components/{fui-fab/fui-fab.vue → u-fab/u-fab.vue} +30 -30
- package/ui-fireui/components/{fui-footer/fui-footer.vue → u-footer/u-footer.vue} +19 -15
- package/ui-fireui/components/{fui-grid/fui-grid.vue → u-grid/u-grid.vue} +13 -5
- package/ui-fireui/components/{fui-grid-item/fui-grid-item.vue → u-grid-item/u-grid-item.vue} +19 -19
- package/ui-fireui/components/{fui-icon/fui-icon.vue → u-icon/u-icon.vue} +191 -191
- package/ui-fireui/components/{fui-image-cropper/fui-image-cropper.vue → u-image-cropper/u-image-cropper.vue} +44 -44
- package/ui-fireui/components/{fui-image-group/fui-image-group.vue → u-image-group/u-image-group.vue} +7 -7
- package/ui-fireui/components/{fui-keyboard/fui-keyboard.vue → u-keyboard/u-keyboard.vue} +29 -32
- package/ui-fireui/components/{fui-keyboard-input/fui-keyboard-input.vue → u-keyboard-input/u-keyboard-input.vue} +9 -9
- package/ui-fireui/components/{fui-list-cell/fui-list-cell.vue → u-list-cell/u-list-cell.vue} +23 -23
- package/ui-fireui/components/{fui-list-view/fui-list-view.vue → u-list-view/u-list-view.vue} +11 -11
- package/ui-fireui/components/{fui-loading/fui-loading.vue → u-loading/u-loading.vue} +6 -6
- package/ui-fireui/components/{fui-loadmore/fui-loadmore.vue → u-loadmore/u-loadmore.vue} +15 -15
- package/ui-fireui/components/{fui-modal/fui-modal.vue → u-modal/u-modal.vue} +58 -58
- package/ui-fireui/components/{fui-navigation-bar/fui-navigation-bar.vue → u-navigation-bar/u-navigation-bar.vue} +11 -10
- package/ui-fireui/components/{fui-no-data/fui-no-data.vue → u-no-data/u-no-data.vue} +11 -11
- package/ui-fireui/components/{fui-nomore/fui-nomore.vue → u-nomore/u-nomore.vue} +10 -10
- package/ui-fireui/components/{fui-numberbox/fui-numberbox.vue → u-numberbox/u-numberbox.vue} +12 -12
- package/ui-fireui/components/{fui-numberbox-border/fui-numberbox-border.vue → u-numberbox-border/u-numberbox-border.vue} +10 -10
- package/ui-fireui/components/{fui-picture-cropper/fui-picture-cropper.vue → u-picture-cropper/u-picture-cropper.vue} +42 -42
- package/ui-fireui/components/u-picture-cropper/u-picture-cropper.wxs +582 -0
- package/ui-fireui/components/{fui-round-progress/fui-round-progress.vue → u-round-progress/u-round-progress.vue} +2 -2
- package/ui-fireui/components/{fui-scroll-top/fui-scroll-top.vue → u-scroll-top/u-scroll-top.vue} +21 -21
- package/ui-fireui/components/{fui-sharemodel/fui-sharemodel.vue → u-share-model/u-share-model.vue} +24 -24
- package/ui-fireui/components/{fui-skeleton/fui-skeleton.vue → u-skeleton/u-skeleton.vue} +22 -22
- package/ui-fireui/components/{fui-steps/fui-steps.vue → u-steps/u-steps.vue} +27 -27
- package/ui-fireui/components/{fui-sticky/fui-sticky.vue → u-sticky/u-sticky.vue} +4 -4
- package/ui-fireui/components/{fui-sticky-wxs/fui-sticky-wxs.vue → u-sticky-wxs/u-sticky-wxs.vue} +7 -7
- package/ui-fireui/components/u-sticky-wxs/u-sticky.wxs +46 -0
- package/ui-fireui/components/{fui-swipe-action/fui-swipe-action.vue → u-swipe-action/u-swipe-action.vue} +11 -11
- package/ui-fireui/components/{fui-tabbar/fui-tabbar.vue → u-tabbar/u-tabbar.vue} +26 -30
- package/ui-fireui/components/{fui-tabs/fui-tabs.vue → u-tabs/u-tabs.vue} +17 -17
- package/ui-fireui/components/{fui-tabs2/fui-tabs2.vue → u-tabs2/u-tabs2.vue} +17 -17
- package/ui-fireui/components/{fui-tag/fui-tag.vue → u-tag/u-tag.vue} +362 -374
- package/ui-fireui/components/{fui-time-axis/fui-time-axis.vue → u-time-axis/u-time-axis.vue} +3 -3
- package/ui-fireui/components/{fui-timeaxis-item/fui-timeaxis-item.vue → u-timeaxis-item/u-timeaxis-item.vue} +4 -4
- package/ui-fireui/components/{fui-tips/fui-tips.vue → u-tips/u-tips.vue} +20 -20
- package/ui-fireui/components/{fui-toast/fui-toast.vue → u-toast/u-toast.vue} +13 -13
- package/ui-fireui/components/{fui-top-dropdown/fui-top-dropdown.vue → u-top-dropdown/u-top-dropdown.vue} +8 -8
- package/ui-fireui/components/{fui-upload/fui-upload.vue → u-upload/u-upload.vue} +30 -30
- package/ui-fireui/components/u-upload2/u-upload.vue +464 -0
- package/ui-fireui/components/{fui-uploadsamll/fui-uploadsamll.vue → u-uploadsamll/u-uploadsamll.vue} +34 -34
- package/ui-fireui/css/thorui.css +589 -0
- package/ui-fireui/{fireui.css → index.css} +306 -268
- package/ui-fireui/nvue/u-circular-progress/gcanvas/bridge/bridge-weex.js +241 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-2d/FillStyleLinearGradient.js +18 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-2d/FillStylePattern.js +8 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-2d/FillStyleRadialGradient.js +17 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-2d/RenderingContext.js +666 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/ActiveInfo.js +11 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Buffer.js +21 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Framebuffer.js +21 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/GLenum.js +298 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/GLmethod.js +142 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/GLtype.js +23 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Program.js +21 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Renderbuffer.js +21 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/RenderingContext.js +1191 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Shader.js +22 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/ShaderPrecisionFormat.js +11 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Texture.js +22 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/UniformLocation.js +22 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/classUtils.js +3 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/env/canvas.js +74 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/env/image.js +96 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/env/tool.js +24 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/index.js +47 -0
- package/ui-fireui/nvue/u-circular-progress/u-circular-progress.nvue +203 -0
- package/ui-fireui/nvue/u-icon/icons.js +188 -0
- package/ui-fireui/nvue/u-icon/u-icon.vue +78 -0
- package/ui-fireui/components/fui-picture-cropper/fui-picture-cropper.wxs +0 -560
- package/ui-fireui/components/fui-rate/fui-rate.vue +0 -167
- package/ui-fireui/components/fui-sticky-wxs/fui-sticky.wxs +0 -44
- /package/ui-fireui/components/{fui-calendar/fui-calendar.js → u-calendar/u-calendar.js} +0 -0
package/ui-fireui/components/{fui-time-axis/fui-time-axis.vue → u-time-axis/u-time-axis.vue}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="
|
|
2
|
+
<view class="up-timeaxis-class up-time-axis">
|
|
3
3
|
<slot></slot>
|
|
4
4
|
</view>
|
|
5
5
|
</template>
|
|
@@ -14,13 +14,13 @@ export default {
|
|
|
14
14
|
</script>
|
|
15
15
|
|
|
16
16
|
<style scoped>
|
|
17
|
-
.
|
|
17
|
+
.up-time-axis {
|
|
18
18
|
padding-left: 20px;
|
|
19
19
|
box-sizing: border-box;
|
|
20
20
|
position: relative;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.
|
|
23
|
+
.up-time-axis::before {
|
|
24
24
|
content: ' ';
|
|
25
25
|
position: absolute;
|
|
26
26
|
left: 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="
|
|
2
|
+
<view class="up-timeaxis-item">
|
|
3
3
|
<slot name="content"></slot>
|
|
4
|
-
<view class="
|
|
4
|
+
<view class="up-timeaxis-node" :style="{ backgroundColor: backgroundColor }">
|
|
5
5
|
<slot name="node"></slot>
|
|
6
6
|
</view>
|
|
7
7
|
</view>
|
|
@@ -24,7 +24,7 @@ export default {
|
|
|
24
24
|
</script>
|
|
25
25
|
|
|
26
26
|
<style scoped>
|
|
27
|
-
.
|
|
27
|
+
.up-timeaxis-item {
|
|
28
28
|
position: relative;
|
|
29
29
|
width: 100%;
|
|
30
30
|
display: flex;
|
|
@@ -32,7 +32,7 @@ export default {
|
|
|
32
32
|
margin-bottom: 25px;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
.
|
|
35
|
+
.up-timeaxis-node {
|
|
36
36
|
position: absolute;
|
|
37
37
|
top: 0;
|
|
38
38
|
left: -20px;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<view class="
|
|
4
|
-
</
|
|
5
|
-
<
|
|
2
|
+
<template v-if="position == 'top'">
|
|
3
|
+
<view class="up-tips-class up-toptips" :class="['up-' + type, show ? 'up-top-show' : '']">{{ msg }}</view>
|
|
4
|
+
</template>
|
|
5
|
+
<template v-else>
|
|
6
6
|
<view
|
|
7
|
-
class="
|
|
8
|
-
:class="[position == 'center' ? '
|
|
7
|
+
class="up-tips-class up-toast"
|
|
8
|
+
:class="[position == 'center' ? 'up-centertips' : 'up-bottomtips', show ? 'up-toast-show' : '']"
|
|
9
9
|
>
|
|
10
|
-
<view class="
|
|
10
|
+
<view class="up-tips-content" :class="['up-' + type]">
|
|
11
11
|
{{ msg }}
|
|
12
12
|
</view>
|
|
13
13
|
</view>
|
|
14
|
-
</
|
|
14
|
+
</template>
|
|
15
15
|
</template>
|
|
16
16
|
|
|
17
17
|
<script>
|
|
@@ -53,7 +53,7 @@ export default {
|
|
|
53
53
|
|
|
54
54
|
<style scoped>
|
|
55
55
|
/*顶部消息提醒 start*/
|
|
56
|
-
.
|
|
56
|
+
.up-toptips {
|
|
57
57
|
width: 100%;
|
|
58
58
|
padding: 18rpx 30rpx;
|
|
59
59
|
box-sizing: border-box;
|
|
@@ -72,7 +72,7 @@ export default {
|
|
|
72
72
|
transition: all 0.3s ease-in-out;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
.
|
|
75
|
+
.up-top-show {
|
|
76
76
|
transform: translateZ(0) translateY(0);
|
|
77
77
|
opacity: 1;
|
|
78
78
|
}
|
|
@@ -85,7 +85,7 @@ export default {
|
|
|
85
85
|
1、fixed 元素宽度无法自适应,所以增加了子元素
|
|
86
86
|
2、fixed 和 display冲突导致动画效果消失,暂时使用visibility替代
|
|
87
87
|
*/
|
|
88
|
-
.
|
|
88
|
+
.up-toast {
|
|
89
89
|
width: 80%;
|
|
90
90
|
box-sizing: border-box;
|
|
91
91
|
color: #fff;
|
|
@@ -101,12 +101,12 @@ export default {
|
|
|
101
101
|
justify-content: center;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
.
|
|
104
|
+
.up-toast-show {
|
|
105
105
|
visibility: visible;
|
|
106
106
|
opacity: 1;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
.
|
|
109
|
+
.up-tips-content {
|
|
110
110
|
word-wrap: break-word;
|
|
111
111
|
word-break: break-all;
|
|
112
112
|
border-radius: 8rpx;
|
|
@@ -114,7 +114,7 @@ export default {
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
/*底部消息提醒 start*/
|
|
117
|
-
.
|
|
117
|
+
.up-bottomtips {
|
|
118
118
|
bottom: 120rpx;
|
|
119
119
|
-webkit-transform: translateX(-50%);
|
|
120
120
|
transform: translateX(-50%);
|
|
@@ -123,7 +123,7 @@ export default {
|
|
|
123
123
|
/*底部消息提醒 end*/
|
|
124
124
|
|
|
125
125
|
/*居中消息提醒 start*/
|
|
126
|
-
.
|
|
126
|
+
.up-centertips {
|
|
127
127
|
top: 50%;
|
|
128
128
|
-webkit-transform: translate(-50%, -50%);
|
|
129
129
|
transform: translate(-50%, -50%);
|
|
@@ -135,23 +135,23 @@ export default {
|
|
|
135
135
|
|
|
136
136
|
/*背景颜色 start*/
|
|
137
137
|
|
|
138
|
-
.
|
|
138
|
+
.up-primary {
|
|
139
139
|
background-color: #5677fc;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
.
|
|
142
|
+
.up-green {
|
|
143
143
|
background-color: #19be6b;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
.
|
|
146
|
+
.up-warning {
|
|
147
147
|
background-color: #ff7900;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
.
|
|
150
|
+
.up-danger {
|
|
151
151
|
background-color: #ed3f14;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
.
|
|
154
|
+
.up-translucent {
|
|
155
155
|
background-color: rgba(0, 0, 0, 0.7);
|
|
156
156
|
}
|
|
157
157
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view
|
|
3
|
-
class="
|
|
4
|
-
:class="[visible ? '
|
|
3
|
+
class="up-toast"
|
|
4
|
+
:class="[visible ? 'up-toast-show' : '', content ? 'up-toast-padding' : '', icon ? '' : 'up-unicon-padding']"
|
|
5
5
|
:style="{ width: getWidth(icon, content) }"
|
|
6
6
|
>
|
|
7
|
-
<image :src="imgUrl" class="
|
|
8
|
-
<view class="
|
|
9
|
-
<view class="
|
|
7
|
+
<image :src="imgUrl" class="up-toast-img" v-if="icon"></image>
|
|
8
|
+
<view class="up-toast-text" :class="[icon ? '' : 'up-unicon']">{{ title }}</view>
|
|
9
|
+
<view class="up-toast-text up-content-ptop" v-if="content && icon">{{ content }}</view>
|
|
10
10
|
</view>
|
|
11
11
|
</template>
|
|
12
12
|
|
|
@@ -57,7 +57,7 @@ export default {
|
|
|
57
57
|
</script>
|
|
58
58
|
|
|
59
59
|
<style scoped>
|
|
60
|
-
.
|
|
60
|
+
.up-toast {
|
|
61
61
|
background-color: rgba(0, 0, 0, 0.75);
|
|
62
62
|
border-radius: 10rpx;
|
|
63
63
|
position: fixed;
|
|
@@ -78,39 +78,39 @@ export default {
|
|
|
78
78
|
box-sizing: border-box;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
.
|
|
81
|
+
.up-toast-padding {
|
|
82
82
|
padding-top: 50rpx !important;
|
|
83
83
|
padding-bottom: 50rpx !important;
|
|
84
84
|
}
|
|
85
|
-
.
|
|
85
|
+
.up-unicon-padding {
|
|
86
86
|
padding: 24rpx 40rpx !important;
|
|
87
87
|
word-break: break-all;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.
|
|
90
|
+
.up-toast-show {
|
|
91
91
|
visibility: visible;
|
|
92
92
|
opacity: 1;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
.
|
|
95
|
+
.up-toast-img {
|
|
96
96
|
width: 120rpx;
|
|
97
97
|
height: 120rpx;
|
|
98
98
|
display: block;
|
|
99
99
|
margin-bottom: 28rpx;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
.
|
|
102
|
+
.up-toast-text {
|
|
103
103
|
font-size: 30rpx;
|
|
104
104
|
line-height: 30rpx;
|
|
105
105
|
font-weight: 400;
|
|
106
106
|
color: #fff;
|
|
107
107
|
text-align: center;
|
|
108
108
|
}
|
|
109
|
-
.
|
|
109
|
+
.up-unicon {
|
|
110
110
|
line-height: 40rpx !important;
|
|
111
111
|
font-size: 32rpx !important;
|
|
112
112
|
}
|
|
113
|
-
.
|
|
113
|
+
.up-content-ptop {
|
|
114
114
|
padding-top: 10rpx;
|
|
115
115
|
font-size: 26rpx !important;
|
|
116
116
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view>
|
|
3
3
|
<view
|
|
4
|
-
class="
|
|
5
|
-
:class="[show ? '
|
|
4
|
+
class="up-top-dropdown up-dropdown-box"
|
|
5
|
+
:class="[show ? 'up-dropdown-show' : '']"
|
|
6
6
|
:style="{
|
|
7
7
|
height: height ? px(height) : 'auto',
|
|
8
8
|
width: width + 'vw',
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
</view>
|
|
19
19
|
<view
|
|
20
20
|
@touchmove.stop.prevent
|
|
21
|
-
class="
|
|
22
|
-
:class="[mask && show ? '
|
|
21
|
+
class="up-dropdown-mask"
|
|
22
|
+
:class="[mask && show ? 'up-mask-show' : '']"
|
|
23
23
|
@tap="handleClose"
|
|
24
24
|
></view>
|
|
25
25
|
</view>
|
|
@@ -92,7 +92,7 @@ export default {
|
|
|
92
92
|
</script>
|
|
93
93
|
|
|
94
94
|
<style scoped>
|
|
95
|
-
.
|
|
95
|
+
.up-dropdown-box {
|
|
96
96
|
position: fixed;
|
|
97
97
|
box-sizing: border-box;
|
|
98
98
|
border-bottom-right-radius: 24rpx;
|
|
@@ -105,11 +105,11 @@ export default {
|
|
|
105
105
|
top: 0;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
.
|
|
108
|
+
.up-dropdown-show {
|
|
109
109
|
/* visibility: visible; */
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
.
|
|
112
|
+
.up-dropdown-mask {
|
|
113
113
|
position: fixed;
|
|
114
114
|
top: 0;
|
|
115
115
|
left: 0;
|
|
@@ -122,7 +122,7 @@ export default {
|
|
|
122
122
|
visibility: hidden;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
.
|
|
125
|
+
.up-mask-show {
|
|
126
126
|
opacity: 1;
|
|
127
127
|
visibility: visible;
|
|
128
128
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="
|
|
3
|
-
<view class="
|
|
4
|
-
<view class="
|
|
5
|
-
<image :src="item" class="
|
|
6
|
-
<view v-if="!forbidDel" class="
|
|
2
|
+
<view class="up-container">
|
|
3
|
+
<view class="up-upload-box">
|
|
4
|
+
<view class="up-image-item" v-for="(item, index) in imageList" :key="index">
|
|
5
|
+
<image :src="item" class="up-item-img" @tap.stop="previewImage(index)" mode="aspectFill"></image>
|
|
6
|
+
<view v-if="!forbidDel" class="up-img-del" @tap.stop="delImage(index)">
|
|
7
7
|
<image class="del-img" src="/static/images/share/icon_del.png" mode="widthFix"></image>
|
|
8
8
|
</view>
|
|
9
|
-
<view v-if="statusArr[index] != 1" class="
|
|
10
|
-
<view class="
|
|
11
|
-
<text class="
|
|
9
|
+
<view v-if="statusArr[index] != 1" class="up-upload-mask">
|
|
10
|
+
<view class="up-upload-loading" v-if="statusArr[index] == 2"></view>
|
|
11
|
+
<text class="up-tips">{{ statusArr[index] == 2 ? '上传中...' : '上传失败' }}</text>
|
|
12
12
|
<view
|
|
13
|
-
class="
|
|
13
|
+
class="up-mask-btn"
|
|
14
14
|
v-if="statusArr[index] == 3"
|
|
15
15
|
@tap.stop="reUpLoad(index)"
|
|
16
|
-
hover-class="
|
|
16
|
+
hover-class="up-btn-hover"
|
|
17
17
|
:hover-stay-time="150"
|
|
18
18
|
>
|
|
19
19
|
重新上传
|
|
20
20
|
</view>
|
|
21
21
|
</view>
|
|
22
22
|
</view>
|
|
23
|
-
<view v-if="isShowAdd" class="
|
|
24
|
-
<uni-icons type="camera" size="30" color="#00AFC7"
|
|
23
|
+
<view v-if="isShowAdd" class="up-upload-add" @tap="chooseImage">
|
|
24
|
+
<uni-icons type="camera" size="30" color="#00AFC7" />
|
|
25
25
|
<view class="" style="font-size: 24rpx; margin-top: 20rpx">添加</view>
|
|
26
26
|
<!-- <image class="add-img" src="/static/images/share/ad.png" mode="widthFix"></image> -->
|
|
27
|
-
<!-- <view class="
|
|
27
|
+
<!-- <view class="up-upload-icon up-icon-plus"></view> -->
|
|
28
28
|
</view>
|
|
29
29
|
</view>
|
|
30
30
|
</view>
|
|
@@ -299,7 +299,7 @@ export default {
|
|
|
299
299
|
font-style: normal;
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
.
|
|
302
|
+
.up-upload-icon {
|
|
303
303
|
font-family: 'fuiUpload' !important;
|
|
304
304
|
font-style: normal;
|
|
305
305
|
-webkit-font-smoothing: antialiased;
|
|
@@ -307,21 +307,21 @@ export default {
|
|
|
307
307
|
padding: 10rpx;
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
.
|
|
310
|
+
.up-icon-delete:before {
|
|
311
311
|
content: '\e601';
|
|
312
312
|
}
|
|
313
313
|
|
|
314
|
-
.
|
|
314
|
+
.up-icon-plus:before {
|
|
315
315
|
content: '\e609';
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
.
|
|
318
|
+
.up-upload-box {
|
|
319
319
|
width: 100%;
|
|
320
320
|
display: flex;
|
|
321
321
|
flex-wrap: wrap;
|
|
322
322
|
}
|
|
323
323
|
|
|
324
|
-
.
|
|
324
|
+
.up-upload-add {
|
|
325
325
|
/* width: 240rpx;
|
|
326
326
|
height: 240rpx; */
|
|
327
327
|
width: 178rpx;
|
|
@@ -345,7 +345,7 @@ export default {
|
|
|
345
345
|
width: 36rpx;
|
|
346
346
|
height: 36rpx;
|
|
347
347
|
}
|
|
348
|
-
.
|
|
348
|
+
.up-image-item {
|
|
349
349
|
width: 178rpx;
|
|
350
350
|
height: 178rpx;
|
|
351
351
|
position: relative;
|
|
@@ -355,18 +355,18 @@ export default {
|
|
|
355
355
|
border-radius: 18rpx;
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
.
|
|
358
|
+
.up-image-item:nth-of-type(3n) {
|
|
359
359
|
margin-right: 0;
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
.
|
|
362
|
+
.up-item-img {
|
|
363
363
|
width: 178rpx;
|
|
364
364
|
height: 178rpx;
|
|
365
365
|
display: block;
|
|
366
366
|
border-radius: 18rpx;
|
|
367
367
|
}
|
|
368
368
|
|
|
369
|
-
.
|
|
369
|
+
.up-img-del {
|
|
370
370
|
width: 36rpx;
|
|
371
371
|
height: 36rpx;
|
|
372
372
|
position: absolute;
|
|
@@ -379,7 +379,7 @@ export default {
|
|
|
379
379
|
z-index: 999;
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
-
/* .
|
|
382
|
+
/* .up-img-del::before {
|
|
383
383
|
content: '';
|
|
384
384
|
width: 16rpx;
|
|
385
385
|
height: 1px;
|
|
@@ -389,7 +389,7 @@ export default {
|
|
|
389
389
|
background-color: #fff;
|
|
390
390
|
} */
|
|
391
391
|
|
|
392
|
-
.
|
|
392
|
+
.up-upload-mask {
|
|
393
393
|
width: 100%;
|
|
394
394
|
height: 100%;
|
|
395
395
|
position: absolute;
|
|
@@ -404,16 +404,16 @@ export default {
|
|
|
404
404
|
background-color: rgba(0, 0, 0, 0.6);
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
.
|
|
407
|
+
.up-upload-loading {
|
|
408
408
|
width: 28rpx;
|
|
409
409
|
height: 28rpx;
|
|
410
410
|
border-radius: 50%;
|
|
411
411
|
border: 2px solid;
|
|
412
412
|
border-color: #b2b2b2 #b2b2b2 #b2b2b2 #fff;
|
|
413
|
-
animation:
|
|
413
|
+
animation: up-rotate 0.7s linear infinite;
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
-
@keyframes
|
|
416
|
+
@keyframes up-rotate {
|
|
417
417
|
0% {
|
|
418
418
|
transform: rotate(0);
|
|
419
419
|
}
|
|
@@ -423,12 +423,12 @@ export default {
|
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
.
|
|
426
|
+
.up-tips {
|
|
427
427
|
font-size: 26rpx;
|
|
428
428
|
color: #fff;
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
-
.
|
|
431
|
+
.up-mask-btn {
|
|
432
432
|
padding: 4rpx 16rpx;
|
|
433
433
|
border-radius: 40rpx;
|
|
434
434
|
text-align: center;
|
|
@@ -440,7 +440,7 @@ export default {
|
|
|
440
440
|
justify-content: center;
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
-
.
|
|
443
|
+
.up-btn-hover {
|
|
444
444
|
opacity: 0.8;
|
|
445
445
|
}
|
|
446
446
|
</style>
|