jufubao-base 1.0.119-beta7 → 1.0.119-beta9

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.
Files changed (26) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +9 -0
  3. package/src/components/JfbBaseSaasBlessDetail/Api.js +14 -1
  4. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +12 -1
  5. package/src/components/JfbBaseSaasBlessDetail/Mock.js +23 -1
  6. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +1 -1
  7. package/src/components/JfbBaseSaasBlessDialog/Mock.js +22 -1
  8. package/src/components/JfbBaseSaasBlessReceive/Mock.js +36 -1
  9. package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +5 -5
  10. package/src/components/JfbBaseSaasHome/Mock.js +26 -1
  11. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +6 -1
  12. package/src/components/JfbBaseSaasNewsDetail/Mock.js +5 -1
  13. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +4 -2
  14. package/src/components/JfbBaseSaasNewsList/Mock.js +20 -1
  15. package/src/components/JfbBaseConFlashHome/Api.js +0 -60
  16. package/src/components/JfbBaseConFlashHome/Attr.js +0 -129
  17. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHome.vue +0 -388
  18. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeLess.less +0 -80
  19. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeMixin.js +0 -30
  20. package/src/components/JfbBaseConFlashHome/Mock.js +0 -5
  21. package/src/components/JfbBaseConFlashList/Api.js +0 -60
  22. package/src/components/JfbBaseConFlashList/Attr.js +0 -117
  23. package/src/components/JfbBaseConFlashList/JfbBaseConFlashList.vue +0 -656
  24. package/src/components/JfbBaseConFlashList/JfbBaseConFlashListLess.less +0 -80
  25. package/src/components/JfbBaseConFlashList/JfbBaseConFlashListMixin.js +0 -30
  26. package/src/components/JfbBaseConFlashList/Mock.js +0 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.119-beta7",
3
+ "version": "1.0.119-beta9",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -26,6 +26,7 @@
26
26
  <view v-if="showCode" class="jfb-base-con-phone__body-wrap-input">
27
27
  <view>
28
28
  <input
29
+ @input="filterSpaces"
29
30
  v-model="phoneNumber"
30
31
  placeholder="请输入手机号"
31
32
  type="text"
@@ -204,6 +205,14 @@ export default {
204
205
  : "phone";
205
206
  await this.getList();
206
207
  },
208
+ filterSpaces(event) {
209
+ // 使用replace方法去除用户输入的空格
210
+ let value = event.target.value.replace(/\s+/g, '');
211
+ // 更新数据以移除空格
212
+ this.phoneNumber = value;
213
+ // 将处理后的值反映到视图
214
+ event.target.value = value;
215
+ },
207
216
  getList() {
208
217
  jfbRootExec("getCouponPhoneList", {
209
218
  vm: this,
@@ -25,10 +25,23 @@ module.exports = [
25
25
  {
26
26
  mapFnName: 'doSignBless',
27
27
  title: '祝福 - 签收',
28
- path: '/saas/v1/bless/sign/:bless_id',
28
+ path: '/saas/v1/bless/confirm-sign/:bless_id',
29
29
  isRule: false,
30
30
  data: {
31
31
  bless_id: ['bless_id', 'Number', '必选'],
32
+ sign_image_url: ['签名图片url', 'String', '必选']
33
+ },
34
+ isConsole: true,
35
+ disabled: true,
36
+ },
37
+ {
38
+ mapFnName: "noSignBless",
39
+ title: "祝福 - 签收 - 免签名",
40
+ path: "/saas/v1/bless/sign/:bless_id",
41
+ isRule: false,
42
+ data: {
43
+ bless_id: ['bless_id', 'Number', '必选'],
44
+ sign_image_url: ['签名图片url', 'String', '必选']
32
45
  },
33
46
  isConsole: true,
34
47
  disabled: true,
@@ -134,7 +134,18 @@
134
134
  },
135
135
 
136
136
  showSign(){
137
- this.dialogShow = true;
137
+ if(this.blessData.signature_method === 'N'){
138
+ jfbRootExec("noSignBless", {
139
+ vm: this,
140
+ data: {
141
+ bless_id: this.bless_id,
142
+ }
143
+ }).then(res => {
144
+ this.dialogSuccess = true;
145
+ })
146
+ }else{
147
+ this.dialogShow = true;
148
+ }
138
149
  },
139
150
  clearSign(){
140
151
  this.$refs.signatureRef.clear()
@@ -1,5 +1,27 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- aaaa: {}
4
+ getBlessDetail: {
5
+ bless_id: "1",
6
+ bless_type_name: "聚福宝节日祝福券",
7
+ bless_name: "",
8
+ bless_detail_config: `{
9
+ "material_nickname": "亲爱的张珊珊:",
10
+ "material_content": "同事好比亲兄弟,一个单位共努力,加班加点在一起,齐心协力拼业绩,新年春节悄然到身旁,祝福送你好兄弟,合家欢乐福相伴,年年有余好运随,新年春节快乐哟!",
11
+ "material_end": "聚福宝",
12
+ "material_image": {
13
+ "path": "https://img.js.design/assets/img/63ef1aad9d2376d02eb759e6.png"
14
+ },
15
+ "material_margin": {
16
+ "top": 480,
17
+ "left": 100,
18
+ "right": 100,
19
+ "bottom": 0
20
+ },
21
+ "material_color": "#333333"
22
+ }`,
23
+ release_time: "",
24
+ bless_card_number: "1",
25
+ receive_status: "N"
26
+ }
5
27
  }
@@ -186,7 +186,7 @@
186
186
  if(action === '@showBaseBlessDialog'){
187
187
  this.getList();
188
188
  }
189
- console.log('event.onJfbReachBottom', options)
189
+ console.log('event.onJfbReachBottom', action, data)
190
190
  },
191
191
  }
192
192
  }
@@ -1,5 +1,26 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- aaaa: {}
4
+ getBlessList: {
5
+ list: [
6
+ {
7
+ bless_id: "1",
8
+ bless_type_name: "聚福宝节日祝福券",
9
+ bless_name: "节日祝福",
10
+ bless_card_number: "1",
11
+ bless_cover_config: `{
12
+ "material_nickname": "亲爱的张珊珊:",
13
+ "material_content": "您收到了一份为您定制的专属祝福,快去查看并使用吧!",
14
+ "material_end": "聚福宝",
15
+ "material_image": {
16
+ "path": "https://sandbox-img.jufubao.cn/uploads/20240318/a2d8586cf735c2154e1cac8d5e597741.png?ver=1710753818636"
17
+ }
18
+ }`,
19
+ release_time: "",
20
+ receive_status: "",
21
+ }
22
+ ],
23
+ total_size: 2,
24
+ next_page_token: "",
25
+ }
5
26
  }
@@ -1,5 +1,40 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- aaaa: {}
4
+ getBlessAll: {
5
+ list: [
6
+ {
7
+ bless_id: "1",
8
+ bless_cover_config: `{
9
+ "material_nickname": "亲爱的张珊珊:",
10
+ "material_content": "您收到了一份为您定制的专属祝福,快去查看并使用吧!",
11
+ "material_end": "聚福宝",
12
+ "material_image": {
13
+ "path": "https://sandbox-img.jufubao.cn/uploads/20240318/a2d8586cf735c2154e1cac8d5e597741.png?ver=1710753818636",
14
+ "url": "https://sandbox-img.jufubao.cn/uploads/20240318/a2d8586cf735c2154e1cac8d5e597741.png?ver=1710753818636",
15
+ }
16
+ }`,
17
+ bless_type_name: "聚福宝节日祝福券",
18
+ bless_name: "节日祝福",
19
+ bless_card_number: "1",
20
+ release_time: "312456786",
21
+ },
22
+ {
23
+ bless_id: "2",
24
+ bless_cover_config: `{
25
+ "material_nickname": "亲爱的张珊珊:",
26
+ "material_content": "您收到了一份为您定制的专属祝福,快去查看并使用吧!",
27
+ "material_end": "聚福宝",
28
+ "material_image": {
29
+ "path": "https://sandbox-img.jufubao.cn/uploads/20240318/a2d8586cf735c2154e1cac8d5e597741.png?ver=1710753818636",
30
+ "url": "https://sandbox-img.jufubao.cn/uploads/20240318/a2d8586cf735c2154e1cac8d5e597741.png?ver=1710753818636",
31
+ }
32
+ }`,
33
+ bless_type_name: "聚福宝节日祝福券",
34
+ bless_name: "节日祝福",
35
+ bless_card_number: "1",
36
+ release_time: "312456786",
37
+ }
38
+ ]
39
+ }
5
40
  }
@@ -41,7 +41,7 @@
41
41
  <view class="notice" v-if="comp.container_key === 'notice' && noticeList.length" :key="i">
42
42
  <!-- 公告:薄如蝉翼的金华火腿,每一口都是时间的味道 -->
43
43
  <swiper vertical style="height: 40rpx;" autoplay>
44
- <swiper-item v-for="(item,i) in noticeList" :key="i">
44
+ <swiper-item v-for="(item,i) in noticeList" :key="i" @click="toNewsDetail(item.id, 'notice')">
45
45
  <view style="height: 40rpx;line-height: 40rpx;">{{ item.title }}</view>
46
46
  </swiper-item>
47
47
  </swiper>
@@ -58,7 +58,7 @@
58
58
  </view>
59
59
  </view>
60
60
  <view class="group_body">
61
- <view class="news_item" v-for="(news, i) in newsList" :key="i" @click="toNewsDetail(news.id)">
61
+ <view class="news_item" v-for="(news, i) in newsList" :key="i" @click="toNewsDetail(news.id, 'news')">
62
62
  <view class="news_cont">
63
63
  <view class="news_tit">{{ news.title }}</view>
64
64
  <view class="news_date">{{ news.created_time }}</view>
@@ -81,7 +81,7 @@
81
81
  </view>
82
82
  </view>
83
83
  <view class="group_body">
84
- <view class="news_item" v-for="(news, i) in studyList" :key="i" @click="toNewsDetail(news.id)">
84
+ <view class="news_item" v-for="(news, i) in studyList" :key="i" @click="toNewsDetail(news.id, 'study')">
85
85
  <view class="news_cont">
86
86
  <view class="news_tit">{{ news.title }}</view>
87
87
  <view class="news_date">{{ news.created_time }}</view>
@@ -218,9 +218,9 @@
218
218
  url: `${this.newsListUrl}?position_id=${position_id}`,
219
219
  });
220
220
  },
221
- toNewsDetail(id){
221
+ toNewsDetail(id, position_id){
222
222
  this.$xdUniHelper.navigateTo({
223
- url: `${this.newsDetailUrl}?id=${id}`,
223
+ url: `${this.newsDetailUrl}?id=${id}&position_id=${position_id}`,
224
224
  });
225
225
  },
226
226
  toBannerLink(item){
@@ -2,6 +2,31 @@
2
2
 
3
3
  module.exports = {
4
4
  getHomeConfig: {
5
- index_config: ""
5
+ index_config: `[
6
+ {\"status\": \"Y\", \"container_key\": \"banner\"},
7
+ {\"config\": {
8
+ \"items\": [
9
+ {\"menu_id\": 4, \"site_id\": \"\", \"menu_icon\": \"https://img2.jufubao.cn/uploads/20231212/d7e653434aefc786ccb8a5032da0ab48.png?x-oss-process=style/size2\", \"menu_path\": \"/1/2/3\", \"menu_type\": \"PU\", \"menu_title\": \"电影\", \"partner_id\": 0, \"is_selected\": 0, \"menu_status\": \"Y\"},
10
+ {\"menu_id\": 2, \"site_id\": \"\", \"menu_icon\": \"https://img4.jufubao.cn/uploads/20231212/32922773dafc3a72d508445abf4d92b4.png?x-oss-process=style/size2\", \"menu_path\": \"/1/2/3\", \"menu_type\": \"PU\", \"menu_title\": \"蛋糕\", \"partner_id\": 0, \"is_selected\": 0, \"menu_status\": \"Y\"},
11
+ {\"menu_id\": 1, \"site_id\": \"\", \"menu_icon\": \"https://img4.jufubao.cn/uploads/20231212/f05cce33b30826e07c85f929ab485513.png?x-oss-process=style/size2\", \"menu_path\": \"/1/2/3\", \"menu_type\": \"PU\", \"menu_title\": \"商城\", \"partner_id\": 0, \"is_selected\": 0, \"menu_status\": \"Y\"},
12
+ {\"menu_id\": 3, \"site_id\": \"\", \"menu_icon\": \"https://img4.jufubao.cn/uploads/20231212/f0899132291cb61cd9c202a111f8a06d.png?x-oss-process=style/size2\", \"menu_path\": \"/1/2/3\", \"menu_type\": \"PU\", \"menu_title\": \"餐饮\", \"partner_id\": 0, \"is_selected\": 0, \"menu_status\": \"Y\"}
13
+ ]},\"status\": \"Y\", \"container_key\": \"menus\"
14
+ },
15
+ {\"status\": \"Y\", \"container_key\": \"notice\"},
16
+ {\"config\": {\"name\": \"新闻资讯2\"}, \"status\": \"Y\", \"container_key\": \"news\"},
17
+ {\"config\": {\"name\": \"学习资料2\"}, \"status\": \"Y\", \"container_key\": \"study\"},
18
+ {\"status\": \"Y\", \"container_key\": \"is_pop\"}
19
+ ]`
20
+ },
21
+ getNewsList: {
22
+ list: [
23
+ {
24
+ title: "企业公告的信息,如果没有则不展示该模块直接展示企业新闻",
25
+ content: "123123",
26
+ created_time: "1234561235",
27
+ thumb: "https://sandbox-img.jufubao.cn/uploads/20240318/a2d8586cf735c2154e1cac8d5e597741.png?ver=1710753818636",
28
+ status: "Y",
29
+ }
30
+ ]
6
31
  }
7
32
  }
@@ -41,6 +41,7 @@
41
41
  data() {
42
42
  return {
43
43
  id: "",
44
+ position_id: "",
44
45
  info: {},
45
46
  //todo
46
47
  }
@@ -58,6 +59,7 @@
58
59
  methods: {
59
60
  onJfbLoad(options) {
60
61
  this.id = options.id;
62
+ this.position_id = options.position_id;
61
63
  this.p_getNewsDetail();
62
64
  },
63
65
  /**
@@ -76,7 +78,7 @@
76
78
  vm: this,
77
79
  data: {
78
80
  id: this.id,
79
- position_id: "news",
81
+ position_id: this.position_id,
80
82
  scene: "news"
81
83
  }
82
84
  }).then(res => {
@@ -137,6 +139,9 @@
137
139
  font-size: 24rpx;
138
140
  font-weight: 400;
139
141
  margin-top: 56rpx;
142
+ /deep/ img{
143
+ max-width: 100% !important;
144
+ }
140
145
  }
141
146
  }
142
147
  }
@@ -1,5 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- aaaa: {}
4
+ getNewsDetail: {
5
+ title: "企业新闻标题 如果超长的标题那么就折行处理折行处理的样式就像是这样子的",
6
+ content: "在难以生存的恶劣环境下,三体人决定移民其他星球,目的地就是人类所在的地球。整个计划耗时数百年之久,并且路途中充满不确定性,为什么三体人不直接摧毁一颗或两颗恒星,使剩余的恒星保持规律的运动,拥有稳定恒纪元,而是一定要大费周章的来到地球呢?要知道在三体人遭受黑暗森林打击之前,就已经拥有了高度发达的科技,能将宇宙飞船加速到近乎光速。能够摧毁恒星的光粒本质上也只是一个以光速飞行的物体,完全可以用宇宙飞船来充当光粒,摧毁恒星。那么三体人是真的没有想到吗?事实当然绝非如此,摧毁恒星获得恒纪元远非我们想的这么简单。首先用近乎光速的宇宙飞船去摧毁恒星本身就不太现实。星环号的飞船等级和三体人是一样的,它到达286光年外的DX3906恒星花费了52个小时。这并不是真正的光速飞行,假如以100%的光速前往DX3906,时间会在光速中停止,对飞船上的人来说是在瞬间就达到了目的地。",
7
+ created_time: "321654789",
8
+ }
5
9
  }
@@ -49,6 +49,7 @@
49
49
  data() {
50
50
  return {
51
51
  newsList: [],
52
+ position_id: "",
52
53
 
53
54
  //面板
54
55
  newsDetailUrl: "", //新闻详情url
@@ -67,6 +68,7 @@
67
68
  methods: {
68
69
  onJfbLoad(options) {
69
70
  let position_id = options.position_id;
71
+ this.position_id = position_id;
70
72
  this.p_getNewsList(position_id)
71
73
  },
72
74
  /**
@@ -74,12 +76,12 @@
74
76
  * @param container {object} 业务组件对象自己
75
77
  */
76
78
  init(container) {
77
-
79
+ this.newsDetailUrl = getContainerPropsValue(container, 'content.newsDetailUrl', {value: ""}).value;
78
80
  //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
79
81
  },
80
82
  toDetail(item){
81
83
  this.$xdUniHelper.navigateTo({
82
- url: `${this.newsDetailUrl}?id=${item.id}`,
84
+ url: `${this.newsDetailUrl}?id=${item.id}&position_id=${this.position_id}`,
83
85
  });
84
86
  },
85
87
  p_getNewsList(position_id){
@@ -1,5 +1,24 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- aaaa: {}
4
+ getNewsList: {
5
+ list: [
6
+ {
7
+ id: "1",
8
+ title: "企业公告的信息,如果没有则不展示该模块直接展示企业新闻",
9
+ content: "123123",
10
+ created_time: "1234561235",
11
+ thumb: "https://sandbox-img.jufubao.cn/uploads/20240318/a2d8586cf735c2154e1cac8d5e597741.png?ver=1710753818636",
12
+ status: "Y",
13
+ },
14
+ {
15
+ id: "2",
16
+ title: "企业新闻标题如果很长就折行处理 如果再长就省略号处理...",
17
+ content: "123123",
18
+ created_time: "1234561235",
19
+ thumb: "https://sandbox-img.jufubao.cn/uploads/20240318/a2d8586cf735c2154e1cac8d5e597741.png?ver=1710753818636",
20
+ status: "Y",
21
+ }
22
+ ]
23
+ }
5
24
  }
@@ -1,60 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @description API模型
5
- * 建议:Ffff=>模块 Xxxx=>自定义名字
6
- * 获取单记录(getByIdFfffXxxx)
7
- * 获取列表记录(getByListFfffXxxx)
8
- * 添加列表记录(addFfffXxxxx)
9
- * 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
10
- * 更新列表记录(updateFfffXxxxx)
11
- * @type {*[]}
12
- */
13
- module.exports = [
14
- {
15
- mapFnName: 'getByIdFilmSquate', //自定义方法名字(必选)
16
- title: '获取电影广场列表',
17
- path: '/api/account/film/list-film-square',
18
- isRule: false,
19
- params: {
20
- last_key: ['当前页', 'Number', '必选'],
21
- page_size: ['每页数量', 'Number', '必选'],
22
- },
23
- isConsole: true,
24
- disabled: true,
25
- },
26
- {
27
- mapFnName: 'updateFilmPaiqiDate', //自定义方法名字(必选)
28
- title: '更新排期',
29
- path: '/api/account/film/paiqi-date',
30
- isRule: false,
31
- params: {
32
- film_id: ['电影id', 'Number', '必选'],
33
- cinema_id: ['影院id', 'Number', '必选'],
34
- },
35
- isConsole: true,
36
- disabled: true,
37
- },
38
- {
39
- mapFnName: 'removeFilmAddress', //自定义方法名字(必选)
40
- title: '删除我的配送地址',
41
- path: '/api/account/film/paiqi-date',
42
- isRule: false,
43
- params: {
44
- film_id: ['电影id', 'Number', '必选'],
45
- },
46
- isConsole: true,
47
- disabled: true,
48
- },
49
- {
50
- mapFnName: 'addFilmcart', //自定义方法名字(必选)
51
- title: '添加购物车',
52
- path: '/api/account/film/paiqi-date',
53
- isRule: false,
54
- params: {
55
- film_id: ['电影id', 'Number', '必选'],
56
- },
57
- isConsole: true,
58
- disabled: true,
59
- },
60
- ];
@@ -1,129 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @description 当表单组件中有联动操作时候,使用方法进行返回
5
- */
6
- export default {
7
- style: [],
8
- content: (data) => {
9
- return [
10
- {
11
- label: "选择业务线",
12
- ele: "xd-choose-namespace",
13
- valueKey: "xnamespace",
14
- value: data.xnamespace || null,
15
- handleCustom: (cb) => {
16
- XdBus.getParentApi('getOptionsNamespaces')()
17
- .then(res => {
18
- cb(res.list)
19
- })
20
- .catch();
21
- }
22
- },
23
- {
24
- label: '样式:',
25
- ele: 'xd-radio',
26
- valueKey: 'position',
27
- value: data['position'] || 1,
28
- rules: [
29
- {required: true, message: '请选择广告位显示方式', trigger: ['blur', 'change']}
30
- ],
31
- list: [
32
- {"label": "商品靠左", "value": 1},
33
- {"label": "商品靠右", "value": 2},
34
- ]
35
- },
36
- {
37
- label: '是否显示价格:',
38
- ele: 'xd-radio',
39
- valueKey: 'isPrice',
40
- value: data['isPrice'] || 'Y',
41
- placeholder: '请选择是否显示价格',
42
- multiple: false,
43
- className: 'input80',
44
- list: [
45
- {label: '是', value: 'Y'},
46
- {label: '否', value: 'N'},
47
- ]
48
- },
49
- {
50
- label: '是否展示原价:',
51
- ele: 'xd-radio',
52
- valueKey: 'isShowDiscount',
53
- value: data.isShowDiscount || "Y",
54
- rules: [
55
- {required: true, message: '请选择', trigger: ['blur', 'change']}
56
- ],
57
- list: [
58
- {"label": "显示", "value": "Y"},
59
- {"label": "隐藏", "value": "N"},
60
- ]
61
- },
62
- data.isShowDiscount==='Y'&&{
63
- label: '价差大于多少展示原价:',
64
- ele: 'el-input',
65
- type: 'number',
66
- valueKey: 'differ',
67
- value: data['differ'] || '',
68
- placeholder: '价差',
69
- className: 'input80',
70
- },
71
- {
72
- label: '展示商品总数:',
73
- ele: 'el-input',
74
- type: 'number',
75
- valueKey: 'number',
76
- value: data.number || '',
77
- placeholder: '请输入',
78
- className: 'input80',
79
- },
80
- {
81
- label: '商品展示方式:',
82
- ele: 'xd-radio',
83
- valueKey: 'productShowType',
84
- value: data.productShowType,
85
- rules: [
86
- {required: true, message: '请选择', trigger: ['blur', 'change']}
87
- ],
88
- list: [
89
- {"label": "固定展示", "value": "regular"},
90
- {"label": "向左轮播", "value": "left"},
91
- {"label": "向上轮播", "value": "top"},
92
- ]
93
- },
94
- {
95
- label: '限时秒杀背景图:', //label
96
- ele: 'xd-upload', //package 名称
97
- valueKey: 'secondBackground', //form[valueKey]
98
- value: data.secondBackground || null, //v-model
99
- defaultValue: data.secondBackground || null, //默认图片对象
100
- slot: true, //按钮是否使用slot
101
- tipsformet: '上传文件格式:@imageType@,不超过@size@MB.,建议尺寸:800*800像素',
102
- type: ['jpg', 'png', 'jpeg'],
103
- styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
104
- uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
105
- size: 5, //5M
106
- action: 'aliyun',
107
- },
108
- {
109
- label: '场次文字颜色:',
110
- ele: 'xd-color',
111
- valueKey: 'textColor',
112
- value: data.textColor,
113
- placeholder: '请选择文字颜色',
114
- classNmae: 'input80',
115
- },
116
- {
117
- label: '场次文字背景颜色:',
118
- ele: 'xd-color',
119
- valueKey: 'textBgColor',
120
- value: data.textBgColor,
121
- placeholder: '请选择场次文字背景颜色',
122
- classNmae: 'input80',
123
- },
124
- ].filter(i=>i)
125
- },
126
- advanced: [
127
-
128
- ],
129
- };