@10yun/cv-mobile-ui 0.3.24 → 0.3.26
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/package.json +5 -2
- package/plugins/request.js +14 -2
- package/ui-cv/cv-banner/cv-banner.vue +23 -14
- package/ui-cv/cv-banner-card/cv-banner-card.vue +24 -16
- package/ui-cv/cv-block/cv-block.vue +6 -6
- package/ui-cv/cv-box/cv-box.vue +6 -7
- package/ui-cv/cv-button/cv-button.vue +32 -13
- package/ui-cv/cv-cell/cv-cell.vue +21 -25
- package/ui-cv/cv-checkbox/cv-checkbox.vue +22 -22
- package/ui-cv/cv-checkbox-tag/cv-checkbox-tag.vue +30 -25
- package/ui-cv/cv-code-sms/cv-code-sms.vue +60 -38
- package/ui-cv/cv-dialog-bottom/cv-dialog-bottom.vue +14 -18
- package/ui-cv/cv-dialog-full/cv-dialog-full.vue +14 -18
- package/ui-cv/cv-dialog-loading/cv-dialog-loading.vue +10 -17
- package/ui-cv/cv-dialog-share/cv-dialog-share.vue +4 -5
- package/ui-cv/cv-draw-barcode/cv-draw-barcode.vue +54 -51
- package/ui-cv/cv-draw-posters/cv-draw-posters.vue +53 -71
- package/ui-cv/cv-draw-progress/cv-draw-progress.vue +44 -39
- package/ui-cv/cv-draw-qrcode/cv-draw-qrcode.vue +48 -45
- package/ui-cv/cv-editor/compressImage.vue +47 -40
- package/ui-cv/cv-editor/cv-editor.vue +234 -124
- package/ui-cv/cv-editor-parse/cv-editor-parse.vue +21 -30
- package/ui-cv/cv-editor-parse/u-parse.vue +21 -30
- package/ui-cv/cv-filter-hm/cv-filter-hm.vue +140 -74
- package/ui-cv/cv-form-group/cv-form-group.vue +11 -13
- package/ui-cv/cv-form-item/cv-form-item.vue +35 -20
- package/ui-cv/cv-form-merge/cv-form-merge.vue +5 -10
- package/ui-cv/cv-geo-local/cv-geo-local.vue +50 -27
- package/ui-cv/cv-icons/cv-icons.vue +24 -19
- package/ui-cv/cv-info/cv-info.vue +9 -11
- package/ui-cv/cv-input-btn/cv-input-btn.vue +34 -13
- package/ui-cv/cv-input-digit/cv-input-digit.vue +31 -18
- package/ui-cv/cv-input-idcard/cv-input-idcard.vue +31 -21
- package/ui-cv/cv-input-number/cv-input-number.vue +29 -14
- package/ui-cv/cv-input-password/cv-input-password.vue +31 -20
- package/ui-cv/cv-input-text/cv-input-text.vue +32 -17
- package/ui-cv/cv-link/cv-link.vue +7 -7
- package/ui-cv/cv-lists-base/cv-lists-base.vue +148 -114
- package/ui-cv/cv-lists-swiper/cv-lists-swipe2r.vue +24 -15
- package/ui-cv/cv-lists-swiper/cv-lists-swiper.vue +85 -63
- package/ui-cv/cv-load-more/cv-load-more.vue +60 -28
- package/ui-cv/cv-message/cv-message.vue +5 -6
- package/ui-cv/cv-nav-col/cv-nav-col.vue +9 -13
- package/ui-cv/cv-nav-group/cv-nav-group.vue +6 -8
- package/ui-cv/cv-nav-row/cv-nav-row.vue +21 -25
- package/ui-cv/cv-picker-date/cv-picker-date.vue +28 -12
- package/ui-cv/cv-picker-datetime/cv-picker-datetime.vue +43 -21
- package/ui-cv/cv-picker-datetime5/cv-picker-datetime5.vue +108 -60
- package/ui-cv/cv-picker-region/cv-picker-region.vue +46 -32
- package/ui-cv/cv-picker-time/cv-picker-time.vue +26 -11
- package/ui-cv/cv-picker1/cv-picker1.vue +32 -17
- package/ui-cv/cv-picker2/cv-picker2.vue +46 -28
- package/ui-cv/cv-picker3/cv-picker3.vue +77 -44
- package/ui-cv/cv-radio/cv-radio.vue +17 -10
- package/ui-cv/cv-radio-sex/cv-radio-sex.vue +20 -21
- package/ui-cv/cv-radio-tag/cv-radio-tag.vue +22 -11
- package/ui-cv/cv-rate/cv-rate.vue +17 -13
- package/ui-cv/cv-search/cv-search.vue +17 -12
- package/ui-cv/cv-skeleton/cv-skeleton.vue +32 -27
- package/ui-cv/cv-skeleton/cv-skeleton2.vue +56 -33
- package/ui-cv/cv-skeleton-group/cv-skeleton-group.vue +4 -6
- package/ui-cv/cv-specs/cv-specs.vue +31 -30
- package/ui-cv/cv-switch/cv-switch.vue +4 -5
- package/ui-cv/cv-tab-lists/cv-tab-lists.vue +189 -128
- package/ui-cv/cv-textarea/cv-textarea.vue +31 -13
- package/ui-cv/cv-treaty/cv-treaty.vue +8 -8
- package/ui-cv/cv-update-app/cv-update-app.vue +68 -53
- package/ui-cv/cv-upload-avatar/cv-upload-avatar.vue +33 -31
- package/ui-cv/cv-upload-img/cv-upload-img.vue +97 -70
- package/ui-cv/dict/area-city.js +612 -612
- package/ui-cv/dict/area-county.js +3392 -3392
- package/ui-cv/dict/area-province.js +35 -35
- package/ui-cv/mixins/mixins-checkbox.js +9 -15
- package/ui-cv/mixins/mixins-common.js +7 -7
- package/ui-cv/mixins/mixins-input.js +11 -12
- package/ui-cv/mixins/mixins-picker.js +9 -13
- package/ui-cv/mixins/mixins-radio.js +10 -14
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="cv-form-group">
|
|
3
3
|
<view class="cv-form-group-title" v-if="label">
|
|
4
|
-
<view class="cv-form-group-title-item" :style="getStyle"
|
|
4
|
+
<view class="cv-form-group-title-item" :style="getStyle">
|
|
5
|
+
<text>{{ label }}</text>
|
|
6
|
+
</view>
|
|
5
7
|
</view>
|
|
6
8
|
<slot />
|
|
7
9
|
</view>
|
|
8
10
|
</template>
|
|
9
11
|
<script>
|
|
10
|
-
|
|
11
12
|
export default {
|
|
12
|
-
name:
|
|
13
|
+
name: 'cvFormGroup',
|
|
13
14
|
props: {
|
|
14
15
|
label: {
|
|
15
16
|
type: String,
|
|
@@ -34,23 +35,20 @@ export default {
|
|
|
34
35
|
};
|
|
35
36
|
},
|
|
36
37
|
data() {
|
|
37
|
-
return {
|
|
38
|
-
};
|
|
39
|
-
},
|
|
40
|
-
created: function () {
|
|
38
|
+
return {};
|
|
41
39
|
},
|
|
40
|
+
created: function () {},
|
|
42
41
|
computed: {
|
|
43
42
|
getStyle() {
|
|
44
43
|
let style = {};
|
|
45
44
|
// 如果没有自定义高度,就根据type为input还是textare来分配一个默认的高度
|
|
46
|
-
style.textAlign = this.labelAlign
|
|
45
|
+
style.textAlign = this.labelAlign;
|
|
47
46
|
return style;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
},
|
|
47
|
+
}
|
|
48
|
+
}
|
|
51
49
|
};
|
|
52
50
|
</script>
|
|
53
|
-
|
|
51
|
+
|
|
54
52
|
<style>
|
|
55
53
|
.cv-form-group {
|
|
56
54
|
margin-bottom: 10px;
|
|
@@ -76,7 +74,7 @@ export default {
|
|
|
76
74
|
top: 12px;
|
|
77
75
|
left: -10px;
|
|
78
76
|
position: absolute;
|
|
79
|
-
content:
|
|
77
|
+
content: ' ';
|
|
80
78
|
background: #22cec0;
|
|
81
79
|
}
|
|
82
80
|
</style>
|
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="cv-form-item" :class="localLayout=='col'?'cv-form-item-col':'cv-form-item-row'">
|
|
2
|
+
<view class="cv-form-item" :class="localLayout == 'col' ? 'cv-form-item-col' : 'cv-form-item-row'">
|
|
3
3
|
<text class="cv-form-item-lebel-title-must" v-if="must == true">*</text>
|
|
4
4
|
<view class="cv-form-item-area">
|
|
5
|
-
<view :class="localLayout=='col'?'cv-form-item-area-col':'cv-form-item-area-row'">
|
|
6
|
-
<view
|
|
5
|
+
<view :class="localLayout == 'col' ? 'cv-form-item-area-col' : 'cv-form-item-area-row'">
|
|
6
|
+
<view
|
|
7
|
+
class="cv-form-item-label"
|
|
8
|
+
:class="localLayout == 'col' ? 'cv-form-item-right-col' : 'cv-form-item-right-row'"
|
|
9
|
+
v-bind:style="labelStyle"
|
|
10
|
+
>
|
|
7
11
|
<view class="cv-form-item-lebel-title">
|
|
8
|
-
<text>{{label}}</text>
|
|
9
|
-
<text class="cv-form-item-lebel-tip" v-if="localLayout=='col'&&tip!=''">({{tip}})</text>
|
|
12
|
+
<text>{{ label }}</text>
|
|
13
|
+
<text class="cv-form-item-lebel-tip" v-if="localLayout == 'col' && tip != ''">({{ tip }})</text>
|
|
10
14
|
</view>
|
|
11
15
|
</view>
|
|
12
|
-
<view
|
|
16
|
+
<view
|
|
17
|
+
class="cv-form-item-right"
|
|
18
|
+
:class="localLayout == 'col' ? 'cv-form-item-right-col' : 'cv-form-item-right-row'"
|
|
19
|
+
v-bind:style="labelRightStyle"
|
|
20
|
+
>
|
|
13
21
|
<view class="cv-form-item-right-item">
|
|
14
22
|
<!-- 插槽 -->
|
|
15
23
|
<slot />
|
|
16
24
|
<!-- 三角形图标 -->
|
|
17
25
|
<view class="cv-form-item-right-item-icon" v-if="isIcon">
|
|
18
|
-
<view class="cv-form-item-right-item-icon-box" :class="iconTop?'cv-form-item-right-item-icon-box-top':''">
|
|
26
|
+
<view class="cv-form-item-right-item-icon-box" :class="iconTop ? 'cv-form-item-right-item-icon-box-top' : ''">
|
|
19
27
|
<view class="cv-form-item-right-item-icon-item"></view>
|
|
20
28
|
</view>
|
|
21
29
|
</view>
|
|
@@ -23,17 +31,21 @@
|
|
|
23
31
|
<view class="cv-form-item-right-item-right">
|
|
24
32
|
<!-- 一键清空 -->
|
|
25
33
|
<view class="cv-form-item-right-item-right-rtip" v-if="rtip != ''">
|
|
26
|
-
{{rtip}}
|
|
34
|
+
{{ rtip }}
|
|
27
35
|
</view>
|
|
28
|
-
<view class="cv-form-item-right-item-empty-icon" @click="onEmpty" v-if="onQClear==true &&inputValue!=''">
|
|
36
|
+
<view class="cv-form-item-right-item-empty-icon" @click="onEmpty" v-if="onQClear == true && inputValue != ''">
|
|
29
37
|
X
|
|
30
38
|
</view>
|
|
31
39
|
</view>
|
|
32
40
|
</view>
|
|
33
|
-
<view class="cv-form-item-right-message" v-if="messageDisplay == true"
|
|
41
|
+
<view class="cv-form-item-right-message" v-if="messageDisplay == true">
|
|
42
|
+
<text>{{ message }}</text>
|
|
43
|
+
</view>
|
|
34
44
|
</view>
|
|
35
45
|
</view>
|
|
36
|
-
<view class="cv-form-item-right-tip" v-if="localLayout=='row'&&tip!=''"
|
|
46
|
+
<view class="cv-form-item-right-tip" v-if="localLayout == 'row' && tip != ''">
|
|
47
|
+
<text>{{ tip }}</text>
|
|
48
|
+
</view>
|
|
37
49
|
</view>
|
|
38
50
|
</view>
|
|
39
51
|
</template>
|
|
@@ -41,7 +53,7 @@
|
|
|
41
53
|
import MixinsCommon from '../mixins/mixins-common.js';
|
|
42
54
|
export default {
|
|
43
55
|
mixins: [MixinsCommon],
|
|
44
|
-
name:
|
|
56
|
+
name: 'cvFormItem',
|
|
45
57
|
props: {
|
|
46
58
|
isIcon: {
|
|
47
59
|
type: Boolean,
|
|
@@ -68,22 +80,26 @@ export default {
|
|
|
68
80
|
},
|
|
69
81
|
message: {
|
|
70
82
|
type: String,
|
|
71
|
-
default:
|
|
83
|
+
default: ''
|
|
72
84
|
},
|
|
73
85
|
messageDisplay: {
|
|
74
86
|
type: Boolean,
|
|
75
87
|
default: false
|
|
76
|
-
}
|
|
88
|
+
}
|
|
77
89
|
},
|
|
78
90
|
data() {
|
|
79
91
|
return {
|
|
80
|
-
labelStyle: ''
|
|
92
|
+
labelStyle: ''
|
|
81
93
|
};
|
|
82
94
|
},
|
|
83
95
|
created: function () {
|
|
84
|
-
this.localLayout = this.layout ==
|
|
85
|
-
this.labelStyle =
|
|
86
|
-
|
|
96
|
+
this.localLayout = this.layout == 'col' ? 'col' : 'row';
|
|
97
|
+
this.labelStyle =
|
|
98
|
+
this.localLayout == 'row' ? (this.labelWidth > 0 ? 'width:' + this.labelWidth + 'px;' : 'display:none;') : '';
|
|
99
|
+
this.labelRightStyle =
|
|
100
|
+
this.localLayout == 'row' && this.labelWidth > 0
|
|
101
|
+
? 'width:' + 'calc(100% - 8px - 20px - ' + this.labelWidth + 'px);'
|
|
102
|
+
: 'padding-left:0;';
|
|
87
103
|
this.$forceUpdate();
|
|
88
104
|
},
|
|
89
105
|
methods: {
|
|
@@ -93,7 +109,7 @@ export default {
|
|
|
93
109
|
}
|
|
94
110
|
};
|
|
95
111
|
</script>
|
|
96
|
-
|
|
112
|
+
|
|
97
113
|
<style>
|
|
98
114
|
.cv-form-item {
|
|
99
115
|
font-size: 14px;
|
|
@@ -220,4 +236,3 @@ export default {
|
|
|
220
236
|
color: rgba(0, 0, 0, 0.6);
|
|
221
237
|
}
|
|
222
238
|
</style>
|
|
223
|
-
|
|
@@ -4,21 +4,16 @@
|
|
|
4
4
|
</view>
|
|
5
5
|
</template>
|
|
6
6
|
<script>
|
|
7
|
-
|
|
8
7
|
export default {
|
|
9
|
-
name:
|
|
10
|
-
props: {
|
|
11
|
-
|
|
12
|
-
},
|
|
8
|
+
name: 'cvFormMerge',
|
|
9
|
+
props: {},
|
|
13
10
|
data() {
|
|
14
|
-
return {
|
|
15
|
-
};
|
|
11
|
+
return {};
|
|
16
12
|
},
|
|
17
|
-
created: function () {
|
|
18
|
-
}
|
|
13
|
+
created: function () {}
|
|
19
14
|
};
|
|
20
15
|
</script>
|
|
21
|
-
|
|
16
|
+
|
|
22
17
|
<style>
|
|
23
18
|
.cv-form-merge {
|
|
24
19
|
margin-bottom: 10px;
|
|
@@ -1,18 +1,40 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="cv-geo-local-wrap">
|
|
3
|
-
<cv-form-item
|
|
4
|
-
:
|
|
3
|
+
<cv-form-item
|
|
4
|
+
:tip="tip"
|
|
5
|
+
:label="label"
|
|
6
|
+
:message="message"
|
|
7
|
+
:must="must"
|
|
8
|
+
:messageDisplay="messageDisplay"
|
|
9
|
+
:labelWidth="localLabelWidth"
|
|
10
|
+
:layout="localLayout"
|
|
11
|
+
:onQClear="onQClear"
|
|
12
|
+
:input-value="localVal"
|
|
13
|
+
>
|
|
5
14
|
<view class="cv-geo-local" ref="onEmpty">
|
|
6
|
-
<textarea
|
|
7
|
-
|
|
15
|
+
<textarea
|
|
16
|
+
class="cv-geo-local-item"
|
|
17
|
+
v-model="localVal"
|
|
18
|
+
:maxlength="maxlength"
|
|
19
|
+
:placeholder="placeholder"
|
|
20
|
+
placeholder-class="cv-geo-local-placeholder"
|
|
21
|
+
@input="updateInput"
|
|
22
|
+
auto-height
|
|
23
|
+
/>
|
|
8
24
|
<view @tap="chooseLocation" class="cv-geo-local-button">
|
|
9
25
|
<cv-icons type="action-search" size="20" color="#999999" />
|
|
10
26
|
</view>
|
|
11
27
|
</view>
|
|
12
28
|
</cv-form-item>
|
|
13
29
|
<view class="cv-geo-local-map" v-if="isShowMap">
|
|
14
|
-
<map
|
|
15
|
-
|
|
30
|
+
<map
|
|
31
|
+
style="width: 100%; height: 342rpx"
|
|
32
|
+
:longitude="map_location.longitude"
|
|
33
|
+
:latitude="map_location.latitude"
|
|
34
|
+
:scale="scale"
|
|
35
|
+
show-location
|
|
36
|
+
:markers="markers"
|
|
37
|
+
></map>
|
|
16
38
|
</view>
|
|
17
39
|
</view>
|
|
18
40
|
</template>
|
|
@@ -21,47 +43,48 @@
|
|
|
21
43
|
import MixinsInput from '../mixins/mixins-input.js';
|
|
22
44
|
export default {
|
|
23
45
|
mixins: [MixinsInput],
|
|
24
|
-
name:
|
|
46
|
+
name: 'cvGeoLocal',
|
|
25
47
|
options: {
|
|
26
|
-
addGlobalClass: true
|
|
48
|
+
addGlobalClass: true
|
|
27
49
|
},
|
|
28
50
|
props: {
|
|
29
51
|
placeholder: {
|
|
30
52
|
type: String,
|
|
31
|
-
default:
|
|
53
|
+
default: '小区、门牌号等'
|
|
32
54
|
},
|
|
33
55
|
isShowMap: {
|
|
34
56
|
type: Boolean,
|
|
35
57
|
default() {
|
|
36
|
-
return false
|
|
58
|
+
return false;
|
|
37
59
|
}
|
|
38
60
|
},
|
|
39
61
|
location: {
|
|
40
62
|
type: Object,
|
|
41
63
|
default() {
|
|
42
|
-
return {}
|
|
64
|
+
return {};
|
|
43
65
|
}
|
|
44
66
|
}
|
|
45
67
|
},
|
|
46
68
|
watch: {
|
|
47
|
-
map_location: {
|
|
69
|
+
map_location: {
|
|
70
|
+
//监听的对象
|
|
48
71
|
deep: true, //深度监听设置为 true
|
|
49
72
|
handler(n) {
|
|
50
73
|
if (this.isShowMap) {
|
|
51
|
-
this.initMarkers()
|
|
74
|
+
this.initMarkers();
|
|
52
75
|
}
|
|
53
76
|
}
|
|
54
77
|
},
|
|
55
78
|
location(n) {
|
|
56
79
|
if (this.isShowMap) {
|
|
57
|
-
console.log('change:location')
|
|
58
|
-
this.initLocation()
|
|
80
|
+
console.log('change:location');
|
|
81
|
+
this.initLocation();
|
|
59
82
|
}
|
|
60
83
|
},
|
|
61
84
|
value(n) {
|
|
62
85
|
if (this.isShowMap) {
|
|
63
|
-
console.log('change:value')
|
|
64
|
-
this.initLocation()
|
|
86
|
+
console.log('change:value');
|
|
87
|
+
this.initLocation();
|
|
65
88
|
}
|
|
66
89
|
}
|
|
67
90
|
},
|
|
@@ -72,7 +95,7 @@ export default {
|
|
|
72
95
|
scale: 12,
|
|
73
96
|
map_location: {
|
|
74
97
|
longitude: 116.397486,
|
|
75
|
-
latitude: 39.
|
|
98
|
+
latitude: 39.90865
|
|
76
99
|
}
|
|
77
100
|
};
|
|
78
101
|
},
|
|
@@ -85,26 +108,26 @@ export default {
|
|
|
85
108
|
this.map_location = this.location;
|
|
86
109
|
}
|
|
87
110
|
if (this.value) {
|
|
88
|
-
this.$set(this.map_location, 'address', this.value)
|
|
111
|
+
this.$set(this.map_location, 'address', this.value);
|
|
89
112
|
}
|
|
90
113
|
},
|
|
91
114
|
chooseLocation() {
|
|
92
115
|
uni.chooseLocation({
|
|
93
|
-
keyword: '小区 写字楼'
|
|
116
|
+
keyword: '小区 写字楼', //搜索关键字,仅App平台支持
|
|
94
117
|
success: (res) => {
|
|
95
|
-
if (res.errMsg ==
|
|
96
|
-
this.localVal = res.address
|
|
118
|
+
if (res.errMsg == 'chooseLocation:ok') {
|
|
119
|
+
this.localVal = res.address;
|
|
97
120
|
this.map_location = { ...res };
|
|
98
121
|
this.scale = 16;
|
|
99
|
-
this.$emit('location', { ...res })
|
|
100
|
-
this.$emit('input', this.localVal)
|
|
122
|
+
this.$emit('location', { ...res });
|
|
123
|
+
this.$emit('input', this.localVal);
|
|
101
124
|
}
|
|
102
125
|
}
|
|
103
|
-
})
|
|
126
|
+
});
|
|
104
127
|
},
|
|
105
128
|
initMarkers() {
|
|
106
129
|
let markers = [];
|
|
107
|
-
let map_location = this.map_location
|
|
130
|
+
let map_location = this.map_location;
|
|
108
131
|
markers.push({
|
|
109
132
|
latitude: map_location.latitude,
|
|
110
133
|
longitude: map_location.longitude,
|
|
@@ -123,7 +146,7 @@ export default {
|
|
|
123
146
|
}
|
|
124
147
|
}
|
|
125
148
|
};
|
|
126
|
-
</script>
|
|
149
|
+
</script>
|
|
127
150
|
<style>
|
|
128
151
|
.cv-geo-local-wrap {
|
|
129
152
|
display: contents;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<text
|
|
3
|
-
|
|
2
|
+
<text
|
|
3
|
+
:style="{ color: color, 'font-size': size + 'px' }"
|
|
4
|
+
class="cv-icons"
|
|
5
|
+
:class="rotate ? 'cv-icons-turn' : ''"
|
|
6
|
+
@click="_onClick"
|
|
7
|
+
>
|
|
8
|
+
{{ icons[type] }}
|
|
9
|
+
</text>
|
|
4
10
|
</template>
|
|
5
11
|
|
|
6
12
|
<script>
|
|
@@ -65,51 +71,50 @@ export default {
|
|
|
65
71
|
data() {
|
|
66
72
|
return {
|
|
67
73
|
icons: icons
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
created: function () {
|
|
74
|
+
};
|
|
71
75
|
},
|
|
76
|
+
created: function () {},
|
|
72
77
|
methods: {
|
|
73
78
|
_onClick() {
|
|
74
|
-
this.$emit('click')
|
|
79
|
+
this.$emit('click');
|
|
75
80
|
}
|
|
76
81
|
}
|
|
77
|
-
}
|
|
82
|
+
};
|
|
78
83
|
</script>
|
|
79
84
|
|
|
80
85
|
<style>
|
|
81
86
|
/* #ifndef APP-NVUE */
|
|
82
87
|
/* 基础相关图标库 */
|
|
83
|
-
@import url(
|
|
88
|
+
@import url('./iconfont/font-base.css');
|
|
84
89
|
|
|
85
90
|
/* 箭头相关图标库 */
|
|
86
|
-
@import url(
|
|
91
|
+
@import url('./iconfont/font-arrow.css');
|
|
87
92
|
|
|
88
93
|
/* 钱包相关图标库 */
|
|
89
|
-
@import url(
|
|
94
|
+
@import url('./iconfont/font-wallet.css');
|
|
90
95
|
|
|
91
96
|
/* 状态相关图标库 */
|
|
92
|
-
@import url(
|
|
97
|
+
@import url('./iconfont/font-status.css');
|
|
93
98
|
|
|
94
99
|
/* 订单相关图标库 */
|
|
95
|
-
@import url(
|
|
100
|
+
@import url('./iconfont/font-order.css');
|
|
96
101
|
|
|
97
102
|
/* 行为相关图标库 */
|
|
98
|
-
@import url(
|
|
103
|
+
@import url('./iconfont/font-action.css');
|
|
99
104
|
|
|
100
105
|
/* 人物相关图标库 */
|
|
101
|
-
@import url(
|
|
106
|
+
@import url('./iconfont/font-people.css');
|
|
102
107
|
|
|
103
108
|
/* 媒体相关图标库 */
|
|
104
|
-
@import url(
|
|
109
|
+
@import url('./iconfont/font-media.css');
|
|
105
110
|
|
|
106
111
|
/* 商城相关图标库 */
|
|
107
|
-
@import url(
|
|
112
|
+
@import url('./iconfont/font-mall.css');
|
|
108
113
|
/* #endif */
|
|
109
114
|
|
|
110
115
|
.cv-icons {
|
|
111
|
-
font-family: cv-icon-base, cv-icon-arrow, cv-icon-wallet, cv-icon-status,
|
|
112
|
-
cv-icon-
|
|
116
|
+
font-family: cv-icon-base, cv-icon-arrow, cv-icon-wallet, cv-icon-status, cv-icon-order, cv-icon-action, cv-icon-people,
|
|
117
|
+
cv-icon-media, cv-icon-mall;
|
|
113
118
|
text-decoration: none;
|
|
114
119
|
text-align: center;
|
|
115
120
|
}
|
|
@@ -134,4 +139,4 @@ export default {
|
|
|
134
139
|
transform: rotate(360deg);
|
|
135
140
|
}
|
|
136
141
|
}
|
|
137
|
-
</style>
|
|
142
|
+
</style>
|
|
@@ -2,36 +2,36 @@
|
|
|
2
2
|
<cv-form-item :label="label" :labelWidth="localLabelWidth" :layout="localLayout" :rtip="rtip">
|
|
3
3
|
<view class="cv-info-area" ref="onEmpty" v-bind:style="cvInfoArea">
|
|
4
4
|
<view class="cv-info-item">
|
|
5
|
-
<text>{{info}}</text>
|
|
5
|
+
<text>{{ info }}</text>
|
|
6
6
|
</view>
|
|
7
7
|
</view>
|
|
8
8
|
</cv-form-item>
|
|
9
9
|
</template>
|
|
10
10
|
|
|
11
11
|
<script>
|
|
12
|
-
import MixinsCommon from '../mixins/mixins-common'
|
|
12
|
+
import MixinsCommon from '../mixins/mixins-common';
|
|
13
13
|
export default {
|
|
14
14
|
mixins: [MixinsCommon],
|
|
15
|
-
name:
|
|
15
|
+
name: 'cvInfo',
|
|
16
16
|
inject: {
|
|
17
17
|
cvFormGroup: {
|
|
18
18
|
default() {
|
|
19
|
-
return null
|
|
19
|
+
return null;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
props: {
|
|
24
24
|
info: {
|
|
25
25
|
type: [Number, String],
|
|
26
|
-
default:
|
|
26
|
+
default: ''
|
|
27
27
|
},
|
|
28
28
|
rtip: {
|
|
29
29
|
type: String,
|
|
30
|
-
default:
|
|
30
|
+
default: ''
|
|
31
31
|
},
|
|
32
32
|
infoAlign: {
|
|
33
33
|
type: String,
|
|
34
|
-
default:
|
|
34
|
+
default: 'right'
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
data() {
|
|
@@ -40,18 +40,16 @@ export default {
|
|
|
40
40
|
};
|
|
41
41
|
},
|
|
42
42
|
watch: {
|
|
43
|
-
value(newVal) {
|
|
44
|
-
}
|
|
43
|
+
value(newVal) {}
|
|
45
44
|
},
|
|
46
45
|
created: function () {
|
|
47
46
|
this._dealStyle();
|
|
48
47
|
},
|
|
49
48
|
methods: {
|
|
50
|
-
|
|
51
49
|
_dealStyle() {
|
|
52
50
|
this.cvInfoArea = {
|
|
53
51
|
textAlign: this.infoAlign
|
|
54
|
-
}
|
|
52
|
+
};
|
|
55
53
|
}
|
|
56
54
|
}
|
|
57
55
|
};
|
|
@@ -1,12 +1,33 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<cv-form-item
|
|
2
|
+
<cv-form-item
|
|
3
|
+
:tip="tip"
|
|
4
|
+
:label="label"
|
|
5
|
+
:message="message"
|
|
6
|
+
:messageDisplay="messageDisplay"
|
|
7
|
+
:labelWidth="localLabelWidth"
|
|
8
|
+
:layout="localLayout"
|
|
9
|
+
>
|
|
3
10
|
<view class="cv-code-area">
|
|
4
11
|
<view class="cv-code-input-area" v-bind:style="inputAreaStyle">
|
|
5
|
-
<input
|
|
6
|
-
|
|
12
|
+
<input
|
|
13
|
+
class="cv-code-input-item"
|
|
14
|
+
placeholder-class="cv-code-input-item-placeholder"
|
|
15
|
+
v-model="localVal"
|
|
16
|
+
:maxlength="maxlength"
|
|
17
|
+
:placeholder="placeholder"
|
|
18
|
+
@input="updateInput"
|
|
19
|
+
@blur="onBlur"
|
|
20
|
+
/>
|
|
7
21
|
</view>
|
|
8
22
|
<view class="cv-code-button-area" v-bind:style="buttonAreaStyle">
|
|
9
|
-
<button
|
|
23
|
+
<button
|
|
24
|
+
class="cv-code-button-item"
|
|
25
|
+
:class="btnDisabled ? 'cv-code-button-wait' : ''"
|
|
26
|
+
:disabled="btnDisabled"
|
|
27
|
+
@tap="click"
|
|
28
|
+
>
|
|
29
|
+
{{ btnText }}
|
|
30
|
+
</button>
|
|
10
31
|
</view>
|
|
11
32
|
</view>
|
|
12
33
|
</cv-form-item>
|
|
@@ -15,18 +36,18 @@
|
|
|
15
36
|
import MixinsCommon from '../mixins/mixins-common.js';
|
|
16
37
|
export default {
|
|
17
38
|
mixins: [MixinsCommon],
|
|
18
|
-
name:
|
|
39
|
+
name: 'cvInputBtn',
|
|
19
40
|
inject: {
|
|
20
41
|
cvFormGroup: {
|
|
21
42
|
default() {
|
|
22
|
-
return null
|
|
43
|
+
return null;
|
|
23
44
|
}
|
|
24
45
|
}
|
|
25
46
|
},
|
|
26
47
|
props: {
|
|
27
48
|
label: {
|
|
28
49
|
type: String,
|
|
29
|
-
default:
|
|
50
|
+
default: ''
|
|
30
51
|
},
|
|
31
52
|
maxlength: {
|
|
32
53
|
type: [Number, String],
|
|
@@ -34,11 +55,11 @@ export default {
|
|
|
34
55
|
},
|
|
35
56
|
value: {
|
|
36
57
|
type: [Number, String],
|
|
37
|
-
default:
|
|
58
|
+
default: ''
|
|
38
59
|
},
|
|
39
60
|
btnText: {
|
|
40
61
|
type: String,
|
|
41
|
-
default:
|
|
62
|
+
default: '发送'
|
|
42
63
|
},
|
|
43
64
|
btnWidth: {
|
|
44
65
|
type: Number,
|
|
@@ -46,7 +67,7 @@ export default {
|
|
|
46
67
|
},
|
|
47
68
|
message: {
|
|
48
69
|
type: String,
|
|
49
|
-
default:
|
|
70
|
+
default: ''
|
|
50
71
|
},
|
|
51
72
|
messageDisplay: {
|
|
52
73
|
type: Boolean,
|
|
@@ -55,13 +76,13 @@ export default {
|
|
|
55
76
|
btnDisabled: {
|
|
56
77
|
type: Boolean,
|
|
57
78
|
default: false
|
|
58
|
-
}
|
|
79
|
+
}
|
|
59
80
|
},
|
|
60
81
|
data() {
|
|
61
82
|
return {
|
|
62
83
|
localVal: '',
|
|
63
84
|
buttonAreaStyle: '',
|
|
64
|
-
inputAreaStyle: ''
|
|
85
|
+
inputAreaStyle: ''
|
|
65
86
|
};
|
|
66
87
|
},
|
|
67
88
|
watch: {
|
|
@@ -120,4 +141,4 @@ export default {
|
|
|
120
141
|
background-color: #007aff;
|
|
121
142
|
color: #ffffff;
|
|
122
143
|
}
|
|
123
|
-
</style>
|
|
144
|
+
</style>
|