jufubao-forms 1.0.0-beta1
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/README.md +27 -0
- package/commands.js +84 -0
- package/commands.update.change.js +176 -0
- package/file.config.js +16 -0
- package/get.package.path.js +22 -0
- package/get.package.path.js.tpl +22 -0
- package/package.json +119 -0
- package/src/CreateClientID.js +16 -0
- package/src/ICONS.js +1148 -0
- package/src/common/authorize.js +261 -0
- package/src/common/getBusinessImageUrl.js +39 -0
- package/src/common/getServiceUrl.js +38 -0
- package/src/common/paysdk/jweixin.js +98 -0
- package/src/components/CusCouponChose/CusCouponChose.vue +1024 -0
- package/src/components/CusCouponItem/CusCouponItem.vue +298 -0
- package/src/components/CusEnter/CusEnter.vue +333 -0
- package/src/components/CusPoster/CusPoster.vue +213 -0
- package/src/components/CusPoster/CusSwiperDot.vue +234 -0
- package/src/components/CusProduct/CusProduct.vue +362 -0
- package/src/components/CusSwiperDot/CusSwiperDot.vue +234 -0
- package/src/components/CusTab/CusTab.vue +411 -0
- package/src/components/CusVideo/CusVideo.vue +170 -0
- package/src/components/JfbFormsDynamicForm/Api.js +66 -0
- package/src/components/JfbFormsDynamicForm/Attr.js +35 -0
- package/src/components/JfbFormsDynamicForm/JfbFormsDynamicForm.vue +767 -0
- package/src/components/JfbFormsDynamicForm/JfbFormsDynamicFormLess.less +79 -0
- package/src/components/JfbFormsDynamicForm/JfbFormsDynamicFormMixin.js +30 -0
- package/src/components/JfbFormsDynamicForm/Mock.js +194 -0
- package/src/components/JfbFormsDynamicForm/XdFormDate.vue +71 -0
- package/src/components/JfbFormsDynamicForm/ld-select/ld-select.vue +329 -0
- package/src/components/JfbFormsDynamicForm/uni-datetime-picker/calendar-item.vue +177 -0
- package/src/components/JfbFormsDynamicForm/uni-datetime-picker/calendar.vue +930 -0
- package/src/components/JfbFormsDynamicForm/uni-datetime-picker/i18n/en.json +22 -0
- package/src/components/JfbFormsDynamicForm/uni-datetime-picker/i18n/index.js +8 -0
- package/src/components/JfbFormsDynamicForm/uni-datetime-picker/i18n/zh-Hans.json +22 -0
- package/src/components/JfbFormsDynamicForm/uni-datetime-picker/i18n/zh-Hant.json +22 -0
- package/src/components/JfbFormsDynamicForm/uni-datetime-picker/time-picker.vue +934 -0
- package/src/components/JfbFormsDynamicForm/uni-datetime-picker/uni-datetime-picker.vue +1042 -0
- package/src/components/JfbFormsDynamicForm/uni-datetime-picker/util.js +403 -0
- package/src/components/JfbFormsList/Api.js +20 -0
- package/src/components/JfbFormsList/Attr.js +70 -0
- package/src/components/JfbFormsList/JfbFormsList.vue +228 -0
- package/src/components/JfbFormsList/JfbFormsListLess.less +79 -0
- package/src/components/JfbFormsList/JfbFormsListMixin.js +30 -0
- package/src/components/JfbFormsList/Mock.js +38 -0
- package/src/components/JfbFormsQuestionAndAnswer/Api.js +43 -0
- package/src/components/JfbFormsQuestionAndAnswer/Attr.js +14 -0
- package/src/components/JfbFormsQuestionAndAnswer/JfbFormsQuestionAndAnswer.vue +506 -0
- package/src/components/JfbFormsQuestionAndAnswer/JfbFormsQuestionAndAnswerLess.less +79 -0
- package/src/components/JfbFormsQuestionAndAnswer/JfbFormsQuestionAndAnswerMixin.js +30 -0
- package/src/components/JfbFormsQuestionAndAnswer/Mock.js +144 -0
- package/src/components/SkeProduct/SkeProduct.vue +241 -0
- package/src/config.app.plus.js +6 -0
- package/src/config.h5.js +13 -0
- package/src/config.mp.weixin.js +13 -0
- package/src/config.project.js +15 -0
- package/src/mixins/cardListMixins.js +187 -0
- package/src/mixins/colorCardMixins.js +122 -0
- package/src/mixins/componentsMixins.js +900 -0
- package/src/mixins/extsMixins.js +3 -0
- package/src/mixins/locationMixins.js +119 -0
- package/src/mixins/newLocaltionMixins.js +754 -0
- package/src/mixins/openDebuggerMixins.js +74 -0
- package/src/mixins/pageEditx.js +347 -0
- package/src/mixins/pageEvent.js +311 -0
- package/src/mixins/pageMain.js +120 -0
- package/src/mixins/pageUitls.js +738 -0
- package/src/mixins/posterMixins.js +122 -0
- package/src/mixins/scrollListFixedHeigthMixins.js +174 -0
- package/src/mocks.js +4 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="uni-calendar-item__weeks-box" :class="{
|
|
3
|
+
'uni-calendar-item--disable':weeks.disable,
|
|
4
|
+
'uni-calendar-item--before-checked-x':weeks.beforeMultiple,
|
|
5
|
+
'uni-calendar-item--multiple': weeks.multiple,
|
|
6
|
+
'uni-calendar-item--after-checked-x':weeks.afterMultiple,
|
|
7
|
+
}" @click="choiceDate(weeks)" @mouseenter="handleMousemove(weeks)">
|
|
8
|
+
<view class="uni-calendar-item__weeks-box-item" :class="{
|
|
9
|
+
'uni-calendar-item--checked':calendar.fullDate === weeks.fullDate && (calendar.userChecked || !checkHover),
|
|
10
|
+
'uni-calendar-item--checked-range-text': checkHover,
|
|
11
|
+
'uni-calendar-item--before-checked':weeks.beforeMultiple,
|
|
12
|
+
'uni-calendar-item--multiple': weeks.multiple,
|
|
13
|
+
'uni-calendar-item--after-checked':weeks.afterMultiple,
|
|
14
|
+
'uni-calendar-item--disable':weeks.disable,
|
|
15
|
+
}">
|
|
16
|
+
<text v-if="selected && weeks.extraInfo" class="uni-calendar-item__weeks-box-circle"></text>
|
|
17
|
+
<text class="uni-calendar-item__weeks-box-text uni-calendar-item__weeks-box-text-disable uni-calendar-item--checked-text">{{weeks.date}}</text>
|
|
18
|
+
</view>
|
|
19
|
+
<view :class="{'uni-calendar-item--today': weeks.isToday}"></view>
|
|
20
|
+
</view>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script>
|
|
24
|
+
export default {
|
|
25
|
+
props: {
|
|
26
|
+
weeks: {
|
|
27
|
+
type: Object,
|
|
28
|
+
default () {
|
|
29
|
+
return {}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
calendar: {
|
|
33
|
+
type: Object,
|
|
34
|
+
default: () => {
|
|
35
|
+
return {}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
selected: {
|
|
39
|
+
type: Array,
|
|
40
|
+
default: () => {
|
|
41
|
+
return []
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
checkHover: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: false
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
methods: {
|
|
50
|
+
choiceDate(weeks) {
|
|
51
|
+
this.$emit('change', weeks)
|
|
52
|
+
},
|
|
53
|
+
handleMousemove(weeks) {
|
|
54
|
+
this.$emit('handleMouse', weeks)
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<style lang="scss" >
|
|
61
|
+
$uni-primary: #007aff !default;
|
|
62
|
+
|
|
63
|
+
.uni-calendar-item__weeks-box {
|
|
64
|
+
flex: 1;
|
|
65
|
+
/* #ifndef APP-NVUE */
|
|
66
|
+
display: flex;
|
|
67
|
+
/* #endif */
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
align-items: center;
|
|
71
|
+
margin: 1px 0;
|
|
72
|
+
position: relative;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.uni-calendar-item__weeks-box-text {
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
// font-family: Lato-Bold, Lato;
|
|
78
|
+
font-weight: bold;
|
|
79
|
+
color: darken($color: $uni-primary, $amount: 40%);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.uni-calendar-item__weeks-box-item {
|
|
83
|
+
position: relative;
|
|
84
|
+
/* #ifndef APP-NVUE */
|
|
85
|
+
display: flex;
|
|
86
|
+
/* #endif */
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
align-items: center;
|
|
90
|
+
width: 40px;
|
|
91
|
+
height: 40px;
|
|
92
|
+
/* #ifdef H5 */
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
/* #endif */
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
.uni-calendar-item__weeks-box-circle {
|
|
99
|
+
position: absolute;
|
|
100
|
+
top: 5px;
|
|
101
|
+
right: 5px;
|
|
102
|
+
width: 8px;
|
|
103
|
+
height: 8px;
|
|
104
|
+
border-radius: 8px;
|
|
105
|
+
background-color: #dd524d;
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.uni-calendar-item__weeks-box .uni-calendar-item--disable {
|
|
110
|
+
cursor: default;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.uni-calendar-item--disable .uni-calendar-item__weeks-box-text-disable {
|
|
114
|
+
color: #D1D1D1;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.uni-calendar-item--today {
|
|
118
|
+
position: absolute;
|
|
119
|
+
top: 10px;
|
|
120
|
+
right: 17%;
|
|
121
|
+
background-color: #dd524d;
|
|
122
|
+
width:6px;
|
|
123
|
+
height: 6px;
|
|
124
|
+
border-radius: 50%;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.uni-calendar-item--extra {
|
|
128
|
+
color: #dd524d;
|
|
129
|
+
opacity: 0.8;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.uni-calendar-item__weeks-box .uni-calendar-item--checked {
|
|
133
|
+
background-color: $uni-primary;
|
|
134
|
+
border-radius: 50%;
|
|
135
|
+
box-sizing: border-box;
|
|
136
|
+
border: 3px solid #fff;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.uni-calendar-item--checked .uni-calendar-item--checked-text {
|
|
140
|
+
color: #fff;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.uni-calendar-item--multiple .uni-calendar-item--checked-range-text {
|
|
144
|
+
color: #333;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.uni-calendar-item--multiple {
|
|
148
|
+
background-color: #F6F7FC;
|
|
149
|
+
// color: #fff;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.uni-calendar-item--multiple .uni-calendar-item--before-checked,
|
|
153
|
+
.uni-calendar-item--multiple .uni-calendar-item--after-checked {
|
|
154
|
+
background-color: $uni-primary;
|
|
155
|
+
border-radius: 50%;
|
|
156
|
+
box-sizing: border-box;
|
|
157
|
+
border: 3px solid #F6F7FC;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.uni-calendar-item--before-checked .uni-calendar-item--checked-text,
|
|
161
|
+
.uni-calendar-item--after-checked .uni-calendar-item--checked-text {
|
|
162
|
+
color: #fff;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.uni-calendar-item--before-checked-x {
|
|
166
|
+
border-top-left-radius: 50px;
|
|
167
|
+
border-bottom-left-radius: 50px;
|
|
168
|
+
box-sizing: border-box;
|
|
169
|
+
background-color: #F6F7FC;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.uni-calendar-item--after-checked-x {
|
|
173
|
+
border-top-right-radius: 50px;
|
|
174
|
+
border-bottom-right-radius: 50px;
|
|
175
|
+
background-color: #F6F7FC;
|
|
176
|
+
}
|
|
177
|
+
</style>
|