jufubao-forms 1.0.6-beta1 → 1.0.6-beta22

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-forms",
3
- "version": "1.0.6-beta1",
3
+ "version": "1.0.6-beta22",
4
4
  "private": false,
5
5
  "description": "聚福宝表单业务插件库",
6
6
  "main": "index.js",
@@ -15,9 +15,12 @@
15
15
  </view>
16
16
  </view>
17
17
  <!-- #endif -->
18
- <view class="jfb-forms-dynamic-form__body">
18
+ <view class="jfb-forms-dynamic-form__body" :style="[formBodyStyleComp]">
19
19
  <view v-if="loaded">
20
20
  <view v-if="form_status === 'content'" class="form_content">
21
+ <view v-if="banner_image" class="form_banner">
22
+ <image mode="widthFix" :src="banner_image"></image>
23
+ </view>
21
24
  <view class="jfb-forms-dynamic-form__title">{{ formName }}</view>
22
25
  <xd-form labelPosition="top" labelAlign="left" :model="form" :paddingBetween="0" :key="renderForm">
23
26
  <xd-form-item v-for="(item, i) in dynamicFormList" :key="item.created_time"
@@ -224,6 +227,7 @@
224
227
  ],
225
228
  data() {
226
229
  return {
230
+ closeMask: true,
227
231
  formName: "",
228
232
  form: {},
229
233
  formPaly: {},
@@ -247,6 +251,8 @@
247
251
  uploadImgList: [],
248
252
  uploadVideoList: [],
249
253
  imgHost: "",
254
+ background_image: "",
255
+ banner_image: "",
250
256
 
251
257
  //面板
252
258
  submitPagePath: "",
@@ -276,6 +282,14 @@
276
282
  },
277
283
  showUploadVideos(){
278
284
  return this.uploadVideoList.map(item => getServiceUrl(item))
285
+ },
286
+ formBodyStyleComp(){
287
+ return {
288
+ backgroundImage: `url(${this.background_image})`,
289
+ backgroundSize: '100% auto',
290
+ backgroundRepeat: 'no-repeat',
291
+ minHeight: this.layoutInfo.bodyMinHeight
292
+ }
279
293
  }
280
294
  },
281
295
  watch: {
@@ -330,6 +344,8 @@
330
344
  this.$xdHideLoading();
331
345
  this.loaded = true;
332
346
  this.formName = res.form_name;
347
+ this.background_image = res.background_image ? getServiceUrl(res.background_image) : "";
348
+ this.banner_image = res.banner_image ? getServiceUrl(res.banner_image) : "";
333
349
  this.err_msg = res.message;
334
350
  if(res.message){
335
351
  this.form_status = "error";
@@ -882,6 +898,14 @@
882
898
  .jfb-forms-dynamic-form {
883
899
  &__body{
884
900
  padding: 32rpx 24rpx;
901
+ .form_banner{
902
+ width: 100%;
903
+ box-sizing: border-box;
904
+ image{
905
+ display: block;
906
+ width: 100%;
907
+ }
908
+ }
885
909
  .form_status{
886
910
  display: flex;
887
911
  flex-direction: column;
@@ -2,6 +2,8 @@
2
2
 
3
3
  module.exports = {
4
4
  getDynamicForm: {
5
+ background_image: "https://sandbox-img.jufubao.cn/uploads/20250722/7ae3b43b654a73f0d9d118d5eb37c51b.png?x-oss-process=style/size3&ver=1766456894",
6
+ banner_image: "https://sandbox-img.jufubao.cn/uploads/20251223/3d20ded5738f4c37547b962c58b4b468.png",
5
7
  form_name: "普益调查",
6
8
  list: [
7
9
  {
@@ -15,13 +15,12 @@
15
15
  </view>
16
16
  </view>
17
17
  <!-- #endif -->
18
- <view class="jfb-forms-question-and-answer__body" :style="{
19
- '--main-color': mainColor,
20
- '--main-color-alpha': mainColorAlpha,
21
- 'min-height': layoutInfo.bodyMinHeight
22
- }">
18
+ <view class="jfb-forms-question-and-answer__body" :style="[formBodyStyleComp]">
23
19
  <view v-if="loaded">
24
20
  <view v-if="form_status === 'content'">
21
+ <view v-if="banner_image" class="form_banner">
22
+ <image mode="widthFix" :src="banner_image"></image>
23
+ </view>
25
24
  <view style="background: #FFFFFF;">
26
25
  <view class="qa_title">{{ formName }}</view>
27
26
  <view class="qa_progress">
@@ -121,6 +120,7 @@
121
120
  ],
122
121
  data() {
123
122
  return {
123
+ closeMask: true,
124
124
  form_id: '',
125
125
  foreign_id: "",
126
126
  loaded: false,
@@ -141,7 +141,8 @@
141
141
 
142
142
  curIndex: '',
143
143
  //todo
144
-
144
+ background_image: "",
145
+ banner_image: "",
145
146
  qaResultPath: "",
146
147
  qaListPath: "",
147
148
  }
@@ -218,6 +219,16 @@
218
219
  return !this.qaResult.right;
219
220
  }
220
221
  return false;
222
+ },
223
+ formBodyStyleComp(){
224
+ return {
225
+ backgroundImage: `url(${this.background_image})`,
226
+ backgroundSize: '100% auto',
227
+ backgroundRepeat: 'no-repeat',
228
+ '--main-color': this.mainColor,
229
+ '--main-color-alpha': this.mainColorAlpha,
230
+ 'min-height': this.layoutInfo.bodyMinHeight
231
+ }
221
232
  }
222
233
  },
223
234
  watch: {
@@ -275,6 +286,8 @@
275
286
  this.loaded = true;
276
287
  this.formList = res.list;
277
288
  this.formName = res.form_name;
289
+ this.background_image = res.background_image ? getServiceUrl(res.background_image) : "";
290
+ this.banner_image = res.banner_image ? getServiceUrl(res.banner_image) : "";
278
291
  this.err_msg = res.message;
279
292
  this.curIndex = 0
280
293
  if(res.message){
@@ -423,6 +436,14 @@
423
436
 
424
437
  .jfb-forms-question-and-answer {
425
438
  &__body{
439
+ .form_banner{
440
+ width: 100%;
441
+ box-sizing: border-box;
442
+ image{
443
+ display: block;
444
+ width: 100%;
445
+ }
446
+ }
426
447
  .qa_title{
427
448
  text-align: center;
428
449
  padding: 40rpx 0;
@@ -2,6 +2,8 @@
2
2
 
3
3
  module.exports = {
4
4
  getDynamicForm: {
5
+ background_image: "https://sandbox-img.jufubao.cn/uploads/20250722/7ae3b43b654a73f0d9d118d5eb37c51b.png?x-oss-process=style/size3&ver=1766456894",
6
+ banner_image: "https://sandbox-img.jufubao.cn/uploads/20251223/3d20ded5738f4c37547b962c58b4b468.png",
5
7
  message: "",
6
8
  form_name: "抽奖11",
7
9
  list: [
@@ -1,58 +0,0 @@
1
- 'use strict';
2
- /**
3
- * @description 接口配置,
4
- * 在设置方法名字当时候,别忘记加上【模块名字】:Qa
5
- * @type {*[]}
6
- */
7
- module.exports = [
8
- {
9
- //设置方法名字当别忘记加上【模块名字】:Qa
10
- mapFnName: 'getQaByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
13
- isRule: false,
14
- params: {
15
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
17
- },
18
- isConsole: true,
19
- disabled: true,
20
- },
21
- {
22
- //设置方法名字当别忘记加上【模块名字】:Qa
23
- mapFnName: 'updateQaFilmPaiqiDate',
24
- title: '更新排期',
25
- path: '/api/account/film/paiqi-date',
26
- isRule: false,
27
- params: {
28
- film_id: ['电影id', 'Number', '必选'],
29
- cinema_id: ['影院id', 'Number', '必选'],
30
- },
31
- isConsole: true,
32
- disabled: true,
33
- },
34
- {
35
- //设置方法名字当别忘记加上【模块名字】:Qa
36
- mapFnName: 'removeQaFilmAddress',
37
- title: '删除我的配送地址',
38
- path: '/api/account/film/paiqi-date',
39
- isRule: false,
40
- params: {
41
- film_id: ['电影id', 'Number', '必选'],
42
- },
43
- isConsole: true,
44
- disabled: true,
45
- },
46
- {
47
- //设置方法名字当别忘记加上【模块名字】:Qa
48
- mapFnName: 'addQaFilmcart',
49
- title: '添加购物车',
50
- path: '/api/account/film/paiqi-date',
51
- isRule: false,
52
- params: {
53
- film_id: ['电影id', 'Number', '必选'],
54
- },
55
- isConsole: true,
56
- disabled: true,
57
- },
58
- ];
@@ -1,18 +0,0 @@
1
- 'use strict';
2
-
3
- import style from "./cusAttr/style";
4
- import advanced from "./cusAttr/advanced";
5
- import content from "./cusAttr/content";
6
-
7
- export default {
8
- style: [],
9
- advanced: [],
10
- content: (data, gValue, gColor, oldData={})=>{
11
-
12
- return [
13
- ...content(data, gValue,gColor,oldData),
14
- ...style(data, gValue,gColor,oldData),
15
- ...advanced(data),
16
- ].filter(i=>i)
17
- },
18
- }
@@ -1,113 +0,0 @@
1
- <template>
2
- <view
3
- class="jfb-forms-qa-record"
4
- @click="handleEditxSelect"
5
- :class="{ editx : isEditx && active }"
6
- >
7
- <!--#ifdef H5-->
8
- <view
9
- class="jfb-forms-qa-record__edit"
10
- :class="{ editx : isEditx && active }"
11
- v-if="isEditx && active"
12
- >
13
- <view class="jfb-forms-qa-record__edit-icon" @click.stop="delEdit">
14
- <xd-font-icon icon="iconshanchu-01" color="#fff" size="30"></xd-font-icon>
15
- </view>
16
- </view>
17
- <!-- #endif -->
18
- <view class="jfb-forms-qa-record__body">
19
- <view>测试插件( {{containerId}} )</view>
20
- </view>
21
- </view>
22
- </template>
23
-
24
- <script>
25
- import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
26
- import { jfbRootExec } from "@/utils/xd.event";
27
- import JfbFormsQaRecordMixin from "./JfbFormsQaRecordMixin";
28
- import { getContainerPropsValue } from "@/utils/xd.base";
29
- import componentsMixins from "@/mixins/componentsMixins";
30
- import extsMixins from "@/mixins/extsMixins";
31
- export default {
32
- name: "JfbFormsQaRecord",
33
- components: {
34
- XdFontIcon
35
- },
36
- mixins: [
37
- componentsMixins, extsMixins, JfbFormsQaRecordMixin
38
- ],
39
- data() {
40
- return {
41
-
42
- //todo
43
- }
44
- },
45
- watch: {
46
- container(value, oldValue) {
47
- if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
48
- if (this.$configProject['isPreview']) this.init(value)
49
- },
50
- },
51
- created() {
52
- this.init(this.container);
53
-
54
- //todo
55
- },
56
- methods: {
57
- onJfbLoad(options) {
58
-
59
- // jfbRootExec('baiduUserLogin', {
60
-
61
- // vm: this,// data: {
62
-
63
- // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
64
-
65
- // }
66
-
67
- // }).then().catch()
68
- },
69
- /**
70
- * @description 监听事件变化
71
- * @param container {object} 业务组件对象自己
72
- */
73
- init(container) {
74
-
75
- //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
76
-
77
- //this.height = getContainerPropsValue(container, 'content.height', 10);
78
- },
79
- onJfbScroll(options) {
80
- console.log('event.onJfbScroll', options)
81
- },
82
- onJfbReachBottom(options) {
83
- console.log('event.onJfbReachBottom', options)
84
- },
85
- onJfbShow(options) {
86
- console.log('event.onJfbShow', options)
87
- },
88
- onJfbHide(options) {
89
- console.log('event.onJfbHide', options)
90
- },
91
- onJfbBack(options) {
92
- console.log('event.onJfbBack', options)
93
- },
94
- onJfbUpdate(...data) {
95
- console.log('event.onJfbUpdate', data)
96
- },
97
- onJfbCustomEvent(options) {
98
- console.log('event.onJfbReachBottom', options)
99
- },
100
- }
101
- }
102
-
103
- </script>
104
-
105
- <style scoped lang="less">
106
- @import "./JfbFormsQaRecordLess.less";
107
-
108
- .jfb-forms-qa-record {
109
- &__body{
110
-
111
- }
112
- }
113
- </style>
@@ -1,80 +0,0 @@
1
- /**
2
- * @desc 获取绝对路径完整地址
3
- * @param @path
4
- **/
5
- //例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
6
- @basePath: 'business/';
7
- @doMain: '//sandbox-img.jufubao.cn/';
8
-
9
- .getBusinessImageUrl(@path, @size: 'size8') {
10
- @url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
11
- background-image: url(@url);
12
- }
13
-
14
- //start
15
- .jfb-forms-qa-record {
16
- box-sizing: border-box;
17
-
18
- &__body{
19
- position: relative;
20
- overflow: hidden;
21
- z-index: 2
22
- }
23
-
24
- &.editx,&.editx:hover {
25
- position: relative;
26
- min-height: unit(100, rpx);
27
- z-index: 3;
28
- &::after {
29
- border: 2rpx dashed blue;
30
- content: " ";
31
- position: absolute;
32
- top:0;
33
- left:0;
34
- bottom:0;
35
- right:0;
36
- z-index: var(--preview-z-index);
37
- cursor: pointer;
38
- }
39
-
40
- }
41
-
42
-
43
- &__edit {
44
- cursor: pointer;
45
- position: absolute;
46
- right: unit(0, rpx);
47
- top: unit(0, rpx);
48
- height: unit(50, rpx);
49
- z-index: 100;
50
- display: flex;
51
- justify-content: center;
52
- align-items: center;
53
- background: rgba(0, 0, 0, .4);
54
- border-radius: 0 0 0 20rpx;
55
- box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
56
- color: #fff;
57
- font-size: unit(22, rpx);
58
- padding: 0 6rpx 0 6px;
59
-
60
- &-icon{
61
- padding: 0 unit(20, rpx);
62
- }
63
-
64
- &.editx {
65
- box-sizing: border-box;
66
-
67
- }
68
- }
69
- }
70
- //end
71
-
72
-
73
- /**notPreview**/
74
- .jfb-forms-qa-record {
75
- //&:before {
76
- //content: " ";
77
- //display: table;
78
- //}
79
- }
80
- /**endNotPreview**/
@@ -1,30 +0,0 @@
1
- 'use strict';
2
-
3
-
4
- //@AttrImport
5
- import Attr from "./Attr";
6
- //@EndAttrImport
7
-
8
-
9
- export default {
10
- data() {
11
- return {
12
- //#ifdef H5
13
-
14
- //@AttrData
15
- Attr:{}, //对外开发编辑属性
16
- //@EndAttrData
17
-
18
- // #endif
19
- cssRoot: 'jfb-forms-qa-record'
20
- }
21
- },
22
- created() {
23
-
24
- //@AttrDataCreated
25
- this.Attr = this.$xdUniHelper.customClone(Attr);
26
- //@EndAttrDataCreated
27
-
28
-
29
- },
30
- }
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- module.exports = {
4
-
5
- getQaByIdFilmSquate:{},
6
-
7
- updateQaFilmPaiqiDate:{},
8
-
9
- removeQaFilmAddress:{},
10
-
11
- addQaFilmcart:{},
12
-
13
- }
@@ -1,25 +0,0 @@
1
- 'use strict';
2
- import {
3
- dataVal ,
4
- statusShow,
5
- statusDataVal,
6
- customVal,
7
- cusDisabled ,
8
- getCustomAttr,
9
- TestCssInfo,
10
- cRaBorShadow
11
- } from "@/utils/AttrTools";
12
- export default (data, gValue, gColor, oldData) => {
13
- return [
14
- {
15
- label: '版本号:',
16
- ele: 'el-input',
17
- type: 'text',
18
- groupKey: 'advanced',
19
- valueKey: 'version',
20
- value: 'v2.0',
21
- hidden: true,
22
- },
23
- ].filter(i=>i)
24
- }
25
-
@@ -1,17 +0,0 @@
1
- 'use strict';
2
- import {
3
- dataVal ,
4
- statusShow,
5
- statusDataVal,
6
- customVal,
7
- cusDisabled ,
8
- getCustomAttr,
9
- TestCssInfo,
10
- cRaBorShadow
11
- } from "@/utils/AttrTools";
12
-
13
- export default (data, gValue, gColor, oldData) => {
14
- return [
15
-
16
- ].filter(i=>i)
17
- }
@@ -1,14 +0,0 @@
1
- import {
2
- dataVal ,
3
- statusShow,
4
- statusDataVal,
5
- customVal,
6
- cusDisabled ,
7
- getCustomAttr,
8
- TestCssInfo,
9
- cRaBorShadow
10
- } from "@/utils/AttrTools";
11
- export default function (data, gValue, gColor, oldData) {
12
- return [
13
- ].filter(i=>i)
14
- }