jufubao-forms 1.0.1 → 1.0.2-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/package.json +1 -1
- package/src/components/JfbFormsDynamicForm/JfbFormsDynamicForm.vue +11 -9
- package/src/components/JfbFormsDynamicForm/JfbFormsDynamicFormLess.less +5 -4
- package/src/components/JfbFormsList/JfbFormsList.vue +4 -2
- package/src/components/JfbFormsList/JfbFormsListLess.less +5 -4
- package/src/components/JfbFormsQaResult/JfbFormsQaResult.vue +5 -3
- package/src/components/JfbFormsQaResult/JfbFormsQaResultLess.less +5 -4
- package/src/components/JfbFormsQuestionAndAnswer/JfbFormsQuestionAndAnswer.vue +8 -4
- package/src/components/JfbFormsQuestionAndAnswer/JfbFormsQuestionAndAnswerLess.less +5 -4
package/package.json
CHANGED
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
:class="{ editx : isEditx && active }"
|
|
11
11
|
v-if="isEditx && active"
|
|
12
12
|
>
|
|
13
|
-
<view class="jfb-forms-dynamic-form__edit-icon" @click="delEdit"
|
|
13
|
+
<view class="jfb-forms-dynamic-form__edit-icon" @click.stop="delEdit">
|
|
14
|
+
<xd-font-icon icon="iconshanchu-01" color="#fff" size="30"></xd-font-icon>
|
|
15
|
+
</view>
|
|
14
16
|
</view>
|
|
15
17
|
<!-- #endif -->
|
|
16
18
|
<view class="jfb-forms-dynamic-form__body">
|
|
@@ -117,8 +119,8 @@
|
|
|
117
119
|
<view class="status_btn" @click="toQaList" style="border-radius: 8rpx;margin-top: 100rpx;">返回列表</view>
|
|
118
120
|
</view>
|
|
119
121
|
</view>
|
|
120
|
-
|
|
121
|
-
|
|
122
|
+
|
|
123
|
+
|
|
122
124
|
<xd-dialog :show.sync="isShowDialog" title="请输入验证码" :showCloseIcon="false">
|
|
123
125
|
<xd-form
|
|
124
126
|
label-align="left"
|
|
@@ -138,7 +140,7 @@
|
|
|
138
140
|
</view>
|
|
139
141
|
</xd-form-item>
|
|
140
142
|
</xd-form>
|
|
141
|
-
|
|
143
|
+
|
|
142
144
|
<view slot="btn">
|
|
143
145
|
<xd-button type="primary" width="400rpx" @click="doCheckValidCode">提交</xd-button>
|
|
144
146
|
</view>
|
|
@@ -287,7 +289,7 @@
|
|
|
287
289
|
}
|
|
288
290
|
this.dynamicFormList = res.list.map((item, i) => {
|
|
289
291
|
item.error = "";
|
|
290
|
-
|
|
292
|
+
|
|
291
293
|
if(item.is_show_explain !== 'Y'){
|
|
292
294
|
item.explain = "";
|
|
293
295
|
}
|
|
@@ -620,7 +622,7 @@
|
|
|
620
622
|
return this.getDecimalTip(item);
|
|
621
623
|
}
|
|
622
624
|
}
|
|
623
|
-
|
|
625
|
+
|
|
624
626
|
//开始验证限制范围
|
|
625
627
|
if(fieldValue && !showRange) return errTip;
|
|
626
628
|
max = Number(max);
|
|
@@ -740,7 +742,7 @@
|
|
|
740
742
|
}
|
|
741
743
|
}
|
|
742
744
|
}
|
|
743
|
-
|
|
745
|
+
|
|
744
746
|
.align-center{
|
|
745
747
|
display: flex;
|
|
746
748
|
align-items: center;
|
|
@@ -815,7 +817,7 @@
|
|
|
815
817
|
}
|
|
816
818
|
.uni-easyinput__content-input{
|
|
817
819
|
font-size: 24rpx;
|
|
818
|
-
|
|
820
|
+
|
|
819
821
|
.uni-easyinput__placeholder-class{
|
|
820
822
|
font-size: 24rpx;
|
|
821
823
|
}
|
|
@@ -827,7 +829,7 @@
|
|
|
827
829
|
font-size: 24rpx !important;
|
|
828
830
|
border: none !important;
|
|
829
831
|
}
|
|
830
|
-
|
|
832
|
+
|
|
831
833
|
}
|
|
832
834
|
.description{
|
|
833
835
|
color: #666666;
|
|
@@ -44,17 +44,18 @@
|
|
|
44
44
|
cursor: pointer;
|
|
45
45
|
position: absolute;
|
|
46
46
|
right: unit(0, rpx);
|
|
47
|
-
top: unit(
|
|
47
|
+
top: unit(0, rpx);
|
|
48
48
|
height: unit(50, rpx);
|
|
49
|
-
|
|
49
|
+
z-index: 100;
|
|
50
50
|
display: flex;
|
|
51
51
|
justify-content: center;
|
|
52
52
|
align-items: center;
|
|
53
|
-
background: rgba(0, 0, 0, .
|
|
54
|
-
border-radius:
|
|
53
|
+
background: rgba(0, 0, 0, .4);
|
|
54
|
+
border-radius: 0 0 0 20rpx;
|
|
55
55
|
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
56
56
|
color: #fff;
|
|
57
57
|
font-size: unit(22, rpx);
|
|
58
|
+
padding: 0 6rpx 0 6px;
|
|
58
59
|
|
|
59
60
|
&-icon{
|
|
60
61
|
padding: 0 unit(20, rpx);
|
|
@@ -10,14 +10,16 @@
|
|
|
10
10
|
:class="{ editx : isEditx && active }"
|
|
11
11
|
v-if="isEditx && active"
|
|
12
12
|
>
|
|
13
|
-
<view class="jfb-forms-list__edit-icon" @click="delEdit"
|
|
13
|
+
<view class="jfb-forms-list__edit-icon" @click.stop="delEdit">
|
|
14
|
+
<xd-font-icon icon="iconshanchu-01" color="#fff" size="30"></xd-font-icon>
|
|
15
|
+
</view>
|
|
14
16
|
</view>
|
|
15
17
|
<!-- #endif -->
|
|
16
18
|
<view class="jfb-forms-list__body">
|
|
17
19
|
<view v-if="loaded" class="activity_list_wrap" :style="listWrapBoxStyle">
|
|
18
20
|
<view class="activity_list" v-if="list.length">
|
|
19
21
|
<view class="activity_item"
|
|
20
|
-
v-for="(item,i) in list" :key="item.
|
|
22
|
+
v-for="(item,i) in list" :key="item.form_id"
|
|
21
23
|
:style="listItemBoxStyle"
|
|
22
24
|
@click="toDetail(item)"
|
|
23
25
|
>
|
|
@@ -44,17 +44,18 @@
|
|
|
44
44
|
cursor: pointer;
|
|
45
45
|
position: absolute;
|
|
46
46
|
right: unit(0, rpx);
|
|
47
|
-
top: unit(
|
|
47
|
+
top: unit(0, rpx);
|
|
48
48
|
height: unit(50, rpx);
|
|
49
|
-
|
|
49
|
+
z-index: 100;
|
|
50
50
|
display: flex;
|
|
51
51
|
justify-content: center;
|
|
52
52
|
align-items: center;
|
|
53
|
-
background: rgba(0, 0, 0, .
|
|
54
|
-
border-radius:
|
|
53
|
+
background: rgba(0, 0, 0, .4);
|
|
54
|
+
border-radius: 0 0 0 20rpx;
|
|
55
55
|
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
56
56
|
color: #fff;
|
|
57
57
|
font-size: unit(22, rpx);
|
|
58
|
+
padding: 0 6rpx 0 6px;
|
|
58
59
|
|
|
59
60
|
&-icon{
|
|
60
61
|
padding: 0 unit(20, rpx);
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
:class="{ editx : isEditx && active }"
|
|
11
11
|
v-if="isEditx && active"
|
|
12
12
|
>
|
|
13
|
-
<view class="jfb-forms-qa-result__edit-icon" @click="delEdit"
|
|
13
|
+
<view class="jfb-forms-qa-result__edit-icon" @click.stop="delEdit">
|
|
14
|
+
<xd-font-icon icon="iconshanchu-01" color="#fff" size="30"></xd-font-icon>
|
|
15
|
+
</view>
|
|
14
16
|
</view>
|
|
15
17
|
<!-- #endif -->
|
|
16
18
|
<view class="jfb-forms-qa-result__body" :style="{
|
|
@@ -29,7 +31,7 @@
|
|
|
29
31
|
<view v-if="is_show_error_answer_analysis==='Y'" class="btn primary" @click="isShowAnalysis=true">答案解析</view>
|
|
30
32
|
</view>
|
|
31
33
|
</view>
|
|
32
|
-
|
|
34
|
+
|
|
33
35
|
<template v-if="isShowAnalysis">
|
|
34
36
|
<view class="analysis_head">
|
|
35
37
|
<view class="_left">答案解析</view>
|
|
@@ -422,7 +424,7 @@
|
|
|
422
424
|
&.a_right{
|
|
423
425
|
color: #FFFFFF;
|
|
424
426
|
background: var(--main-color);
|
|
425
|
-
}
|
|
427
|
+
}
|
|
426
428
|
// &.a_error{
|
|
427
429
|
// color: #FF7063;
|
|
428
430
|
// background: #FFE3E0;
|
|
@@ -44,17 +44,18 @@
|
|
|
44
44
|
cursor: pointer;
|
|
45
45
|
position: absolute;
|
|
46
46
|
right: unit(0, rpx);
|
|
47
|
-
top: unit(
|
|
47
|
+
top: unit(0, rpx);
|
|
48
48
|
height: unit(50, rpx);
|
|
49
|
-
|
|
49
|
+
z-index: 100;
|
|
50
50
|
display: flex;
|
|
51
51
|
justify-content: center;
|
|
52
52
|
align-items: center;
|
|
53
|
-
background: rgba(0, 0, 0, .
|
|
54
|
-
border-radius:
|
|
53
|
+
background: rgba(0, 0, 0, .4);
|
|
54
|
+
border-radius: 0 0 0 20rpx;
|
|
55
55
|
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
56
56
|
color: #fff;
|
|
57
57
|
font-size: unit(22, rpx);
|
|
58
|
+
padding: 0 6rpx 0 6px;
|
|
58
59
|
|
|
59
60
|
&-icon{
|
|
60
61
|
padding: 0 unit(20, rpx);
|
|
@@ -10,12 +10,15 @@
|
|
|
10
10
|
:class="{ editx : isEditx && active }"
|
|
11
11
|
v-if="isEditx && active"
|
|
12
12
|
>
|
|
13
|
-
<view class="jfb-forms-question-and-answer__edit-icon" @click="delEdit"
|
|
13
|
+
<view class="jfb-forms-question-and-answer__edit-icon" @click.stop="delEdit">
|
|
14
|
+
<xd-font-icon icon="iconshanchu-01" color="#fff" size="30"></xd-font-icon>
|
|
15
|
+
</view>
|
|
14
16
|
</view>
|
|
15
17
|
<!-- #endif -->
|
|
16
18
|
<view class="jfb-forms-question-and-answer__body" :style="{
|
|
17
19
|
'--main-color': mainColor,
|
|
18
20
|
'--main-color-alpha': mainColorAlpha,
|
|
21
|
+
'min-height': layoutInfo.bodyMinHeight
|
|
19
22
|
}">
|
|
20
23
|
<view v-if="loaded">
|
|
21
24
|
<view v-if="form_status === 'content'">
|
|
@@ -58,7 +61,7 @@
|
|
|
58
61
|
</view>
|
|
59
62
|
</template>
|
|
60
63
|
</view> -->
|
|
61
|
-
<view class="bottom_fixed">
|
|
64
|
+
<view class="bottom_fixed" :style="fixedBottom">
|
|
62
65
|
<xd-button type="primary" :disabled="curIndex === 0"
|
|
63
66
|
:style="[fixedButtonStyle]" @click="handlePrev">上一题</xd-button>
|
|
64
67
|
<xd-button type="primary" :disabled="curQA.required && (!qaValue || qaValue.length === 0)"
|
|
@@ -141,6 +144,9 @@
|
|
|
141
144
|
}
|
|
142
145
|
},
|
|
143
146
|
computed: {
|
|
147
|
+
fixedBottom(){
|
|
148
|
+
return this.fixedStyle({paddingBottom: 24, zIndex: 111})
|
|
149
|
+
},
|
|
144
150
|
progressBarInnerStyle(){
|
|
145
151
|
let width = ((this.curIndex + 1) / this.formList.length) * 100 + '%';
|
|
146
152
|
return {
|
|
@@ -224,8 +230,6 @@
|
|
|
224
230
|
this.init(this.container);
|
|
225
231
|
this.mainColorAlpha = Color(this.mainColor).alpha(0.15).string();
|
|
226
232
|
this.isPreview = this.$configProject['isPreview'];
|
|
227
|
-
|
|
228
|
-
//todo
|
|
229
233
|
},
|
|
230
234
|
methods: {
|
|
231
235
|
onJfbLoad(options) {
|
|
@@ -44,17 +44,18 @@
|
|
|
44
44
|
cursor: pointer;
|
|
45
45
|
position: absolute;
|
|
46
46
|
right: unit(0, rpx);
|
|
47
|
-
top: unit(
|
|
47
|
+
top: unit(0, rpx);
|
|
48
48
|
height: unit(50, rpx);
|
|
49
|
-
|
|
49
|
+
z-index: 100;
|
|
50
50
|
display: flex;
|
|
51
51
|
justify-content: center;
|
|
52
52
|
align-items: center;
|
|
53
|
-
background: rgba(0, 0, 0, .
|
|
54
|
-
border-radius:
|
|
53
|
+
background: rgba(0, 0, 0, .4);
|
|
54
|
+
border-radius: 0 0 0 20rpx;
|
|
55
55
|
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
56
56
|
color: #fff;
|
|
57
57
|
font-size: unit(22, rpx);
|
|
58
|
+
padding: 0 6rpx 0 6px;
|
|
58
59
|
|
|
59
60
|
&-icon{
|
|
60
61
|
padding: 0 unit(20, rpx);
|