jufubao-forms 1.0.0-beta6 → 1.0.0-beta8
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/Attr.js +12 -0
- package/src/components/JfbFormsList/JfbFormsList.vue +15 -4
- 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 +5 -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">
|
|
@@ -108,8 +110,8 @@
|
|
|
108
110
|
<view class="status_name">{{ formName }}</view>
|
|
109
111
|
</view>
|
|
110
112
|
</view>
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
|
|
114
|
+
|
|
113
115
|
<xd-dialog :show.sync="isShowDialog" title="请输入验证码" :showCloseIcon="false">
|
|
114
116
|
<xd-form
|
|
115
117
|
label-align="left"
|
|
@@ -129,7 +131,7 @@
|
|
|
129
131
|
</view>
|
|
130
132
|
</xd-form-item>
|
|
131
133
|
</xd-form>
|
|
132
|
-
|
|
134
|
+
|
|
133
135
|
<view slot="btn">
|
|
134
136
|
<xd-button type="primary" width="400rpx" @click="doCheckValidCode">提交</xd-button>
|
|
135
137
|
</view>
|
|
@@ -253,7 +255,7 @@
|
|
|
253
255
|
}
|
|
254
256
|
this.dynamicFormList = res.list.map((item, i) => {
|
|
255
257
|
item.error = "";
|
|
256
|
-
|
|
258
|
+
|
|
257
259
|
if(item.is_show_explain !== 'Y'){
|
|
258
260
|
item.explain = "";
|
|
259
261
|
}
|
|
@@ -569,7 +571,7 @@
|
|
|
569
571
|
return this.getDecimalTip(item);
|
|
570
572
|
}
|
|
571
573
|
}
|
|
572
|
-
|
|
574
|
+
|
|
573
575
|
//开始验证限制范围
|
|
574
576
|
if(fieldValue && !showRange) return errTip;
|
|
575
577
|
max = Number(max);
|
|
@@ -665,7 +667,7 @@
|
|
|
665
667
|
text-align: center;
|
|
666
668
|
}
|
|
667
669
|
}
|
|
668
|
-
|
|
670
|
+
|
|
669
671
|
.align-center{
|
|
670
672
|
display: flex;
|
|
671
673
|
align-items: center;
|
|
@@ -740,7 +742,7 @@
|
|
|
740
742
|
}
|
|
741
743
|
.uni-easyinput__content-input{
|
|
742
744
|
font-size: 24rpx;
|
|
743
|
-
|
|
745
|
+
|
|
744
746
|
.uni-easyinput__placeholder-class{
|
|
745
747
|
font-size: 24rpx;
|
|
746
748
|
}
|
|
@@ -752,7 +754,7 @@
|
|
|
752
754
|
font-size: 24rpx !important;
|
|
753
755
|
border: none !important;
|
|
754
756
|
}
|
|
755
|
-
|
|
757
|
+
|
|
756
758
|
}
|
|
757
759
|
.description{
|
|
758
760
|
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);
|
|
@@ -75,6 +75,18 @@ export default {
|
|
|
75
75
|
},
|
|
76
76
|
inline: false,
|
|
77
77
|
},
|
|
78
|
+
{
|
|
79
|
+
label: "问答详情跳转路径",
|
|
80
|
+
ele: 'xd-select-pages-path',
|
|
81
|
+
valueKey: 'qaDetailPath',
|
|
82
|
+
groupKey:'advanced',
|
|
83
|
+
placeholder: '请选择问卷详情跳转路径',
|
|
84
|
+
value: data['qaDetailPath'] || null,
|
|
85
|
+
setting: {
|
|
86
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
87
|
+
},
|
|
88
|
+
inline: false,
|
|
89
|
+
},
|
|
78
90
|
].filter(i=>i)
|
|
79
91
|
},
|
|
80
92
|
advanced: [],
|
|
@@ -10,7 +10,9 @@
|
|
|
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">
|
|
@@ -19,7 +21,7 @@
|
|
|
19
21
|
<view class="activity_item"
|
|
20
22
|
v-for="(item,i) in list" :key="item.id"
|
|
21
23
|
:style="listItemBoxStyle"
|
|
22
|
-
@click="toDetail(item
|
|
24
|
+
@click="toDetail(item)"
|
|
23
25
|
>
|
|
24
26
|
<view class="item_img">
|
|
25
27
|
<image :src="item.cover" mode="aspectFill"></image>
|
|
@@ -66,6 +68,7 @@
|
|
|
66
68
|
itemRadius: 0,
|
|
67
69
|
detailPath: "",
|
|
68
70
|
bucket: "default",
|
|
71
|
+
qaDetailPath: "",
|
|
69
72
|
}
|
|
70
73
|
},
|
|
71
74
|
computed: {
|
|
@@ -116,6 +119,7 @@
|
|
|
116
119
|
this.itemRadius = getContainerPropsValue(container, 'content.itemRadius', 0);
|
|
117
120
|
this.bucket = getContainerPropsValue(container, 'content.bucket', 'default');
|
|
118
121
|
this.detailPath = getContainerPropsValue(container, 'content.detailPath', {value: ""}).value;
|
|
122
|
+
this.qaDetailPath = getContainerPropsValue(container, 'content.qaDetailPath', {value: ""}).value;
|
|
119
123
|
},
|
|
120
124
|
getList(){
|
|
121
125
|
let data = {
|
|
@@ -142,10 +146,17 @@
|
|
|
142
146
|
this.hasNext = !!res.next_page_token;
|
|
143
147
|
})
|
|
144
148
|
},
|
|
145
|
-
toDetail(
|
|
146
|
-
|
|
149
|
+
toDetail(item){
|
|
150
|
+
let form_id = item.form_id;
|
|
151
|
+
if(item.base_type=='form'){
|
|
152
|
+
this.$xdUniHelper.navigateTo({
|
|
147
153
|
url: this.detailPath + `?form_id=${form_id}`
|
|
148
154
|
})
|
|
155
|
+
}else{
|
|
156
|
+
this.$xdUniHelper.navigateTo({
|
|
157
|
+
url: this.qaDetailPath + `?form_id=${form_id}`
|
|
158
|
+
})
|
|
159
|
+
}
|
|
149
160
|
},
|
|
150
161
|
onJfbScroll(options) {
|
|
151
162
|
console.log('event.onJfbScroll', 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);
|
|
@@ -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="{
|
|
@@ -26,7 +28,7 @@
|
|
|
26
28
|
<view v-if="is_show_error_answer_analysis==='Y'" class="btn primary" @click="isShowAnalysis=true">答案解析</view>
|
|
27
29
|
</view>
|
|
28
30
|
</view>
|
|
29
|
-
|
|
31
|
+
|
|
30
32
|
<template v-if="isShowAnalysis">
|
|
31
33
|
<view class="analysis_head">
|
|
32
34
|
<view class="_left">答案解析</view>
|
|
@@ -390,7 +392,7 @@
|
|
|
390
392
|
&.a_right{
|
|
391
393
|
color: #FFFFFF;
|
|
392
394
|
background: var(--main-color);
|
|
393
|
-
}
|
|
395
|
+
}
|
|
394
396
|
// &.a_error{
|
|
395
397
|
// color: #FF7063;
|
|
396
398
|
// 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'">
|
|
@@ -122,7 +125,7 @@
|
|
|
122
125
|
marketing_tool: "",
|
|
123
126
|
activity_page_url: "",
|
|
124
127
|
activity_id: "",
|
|
125
|
-
|
|
128
|
+
|
|
126
129
|
value: [],
|
|
127
130
|
qaValue: "",
|
|
128
131
|
|
|
@@ -219,8 +222,6 @@
|
|
|
219
222
|
this.init(this.container);
|
|
220
223
|
this.mainColorAlpha = Color(this.mainColor).alpha(0.15).string();
|
|
221
224
|
this.isPreview = this.$configProject['isPreview'];
|
|
222
|
-
|
|
223
|
-
//todo
|
|
224
225
|
},
|
|
225
226
|
methods: {
|
|
226
227
|
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);
|