jufubao-base 1.0.177-beta1 → 1.0.178

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 (24) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseCardDelay/Api.js +30 -19
  3. package/src/components/JfbBaseCardDelay/Attr.js +37 -227
  4. package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +79 -254
  5. package/src/components/JfbBaseCardDetailEntry/Attr.js +0 -12
  6. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +0 -14
  7. package/src/components/JfbBaseCardDetailEntry/Mock.js +1 -1
  8. package/src/components/JfbBaseCardEntry/Attr.js +0 -121
  9. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +29 -202
  10. package/src/components/JfbBaseCardGive/Api.js +34 -18
  11. package/src/components/JfbBaseCardGive/Attr.js +36 -29
  12. package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +80 -463
  13. package/src/components/JfbBaseCardGive/Mock.js +9 -2
  14. package/src/components/JfbBaseCardReceive/Api.js +36 -10
  15. package/src/components/JfbBaseCardReceive/Attr.js +39 -9
  16. package/src/components/JfbBaseCardReceive/JfbBaseCardReceive.vue +81 -382
  17. package/src/components/JfbBaseCardReceiveCover/Api.js +43 -5
  18. package/src/components/JfbBaseCardReceiveCover/Attr.js +32 -57
  19. package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +82 -143
  20. package/src/components/JfbBasePay/Attr.js +0 -12
  21. package/src/components/JfbBasePay/JfbBasePay.vue +4 -4
  22. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +2 -2
  23. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +12 -135
  24. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +1 -1
@@ -110,31 +110,18 @@
110
110
  }"
111
111
  >已绑定票券</view>
112
112
  <view
113
+ v-if="hasChangeStatus"
113
114
  @click="tabIndex = 2"
114
115
  :style="{
115
116
  color: tabIndex === 2 ? '#fff' : '#B8B7BE',
116
117
  background: tabIndex === 2 ? mainColor : '#fff',
117
118
  }"
118
- >优惠券</view>
119
- </view>
120
- <view class="jfb-base-card-entry__body-sub-tab" v-if="tabIndex === 1">
121
- <view :style="{
122
- color: subTabIndex === 1 ? mainColor : '#fff',
123
- background: subTabIndex === 1 ? noticeBackgroundColor : '#DDDDDD',
124
- }" @click="subTabIndex=1" class="jfb-base-card-entry__body-sub-tab-item">可用票券</view>
125
- <view :style="{
126
- color: subTabIndex === 2 ? mainColor : '#fff',
127
- background: subTabIndex === 2 ? noticeBackgroundColor : '#DDDDDD',
128
- }" @click="subTabIndex=2" class="jfb-base-card-entry__body-sub-tab-item">可转票券</view>
129
- <view :style="{
130
- color: subTabIndex === 3 ? mainColor : '#fff',
131
- background: subTabIndex === 3 ? noticeBackgroundColor : '#DDDDDD',
132
- }" @click="subTabIndex=3" class="jfb-base-card-entry__body-sub-tab-item">赠送中</view>
119
+ >可转换票券</view>
133
120
  </view>
134
121
  <view
135
122
  class="jfb-base-card-entry__body-tips"
136
123
  :style="{ color: warningColor }"
137
- v-if="subTabIndex === 2"
124
+ v-if="tabIndex === 2"
138
125
  >* 目前仅支持电影票兑换券进行转换</view>
139
126
  <view class="card-content">
140
127
  <view v-if="loadingCardList" class="jfb-base-card-entry__body-card skeleton-card">
@@ -167,7 +154,7 @@
167
154
 
168
155
  <template v-else>
169
156
  <view
170
- v-if="tabIndex === 1 && (cardList && cardList.length > 0)"
157
+ v-if="tabIndex === 2 || tabIndex === 1 && (cardList && cardList.length > 0)"
171
158
  class="jfb-base-card-entry__body-card"
172
159
  >
173
160
  <view
@@ -182,7 +169,7 @@
182
169
  :style="{
183
170
  background: item['theme']['color'],
184
171
  backgroundSize: '100%',
185
- height: subTabIndex !== 3 ? item.height + 'px' : '300rpx'
172
+ height: item.height + 'px'
186
173
  }"
187
174
  >
188
175
  <view class="card-list-warp" :style="{backgroundImage: 'url('+ item['theme']['image'] +')'}">
@@ -197,7 +184,7 @@
197
184
  <text>券号:</text>
198
185
  <text>{{item.card_number}}{{showIndex?(':' + index):''}}</text>
199
186
  </view>
200
- <view @click.stop="toDetail(item)" v-if="subTabIndex !== 3&&isShowCode === 'Y'&&!force">
187
+ <view @click.stop="toDetail(item)" v-if="isShowCode === 'Y'">
201
188
  <view>
202
189
  <xd-font-icon icon="iconerweima" width="56" height="56" size="50" color="#fff"></xd-font-icon>
203
190
  </view>
@@ -215,25 +202,15 @@
215
202
  <view class="card-list__other" v-if="item.other_card_point && item.card_point_type === 2">
216
203
  <view><text>购买其他物品可抵:</text><text>{{item.other_card_point}} {{ item.unit }}</text></view>
217
204
  </view>
218
- <template v-if="subTabIndex === 1">
219
- <view class="card-list__entry" v-if="item.is_login==='N'&&force">
220
- <view
221
- @click.stop="handleBindLogin(item,item['entries'][0])"
222
- :style="{
223
- background: '#fff',
224
- color: item['theme']['color']}"
225
- >
226
- 登录
227
- </view>
228
- </view>
229
- <view class="card-list__entry" v-if="item.entries.length === 1&&!force">
205
+ <template v-if="tabIndex === 1">
206
+ <view class="card-list__entry" v-if="item.entries.length === 1">
230
207
  <view
231
208
  @click.stop="handleBindLogin(item,item['entries'][0])"
232
209
  :style="{color: item['theme']['color']}"
233
210
  >进入{{item['entries'][0]['entry_name']}}</view>
234
211
  </view>
235
- <view class="card-list__nodata" v-if="item.entries.length === 0&&!force">暂无支持服务列表</view>
236
- <view class="card-list__entrys" v-if="item.entries.length > 1&&!force" @click.stop>
212
+ <view class="card-list__nodata" v-if="item.entries.length === 0">暂无支持服务列表</view>
213
+ <view class="card-list__entrys" v-if="item.entries.length > 1" @click.stop>
237
214
  <view class="card-list__entrys-title">
238
215
  <view>可兑换权益</view>
239
216
  <view @click.stop="toDetail(item, false)">
@@ -261,7 +238,7 @@
261
238
  </view>
262
239
  </view>
263
240
  </template>
264
- <view class="card-list__entry" v-else-if="subTabIndex===2">
241
+ <view class="card-list__entry" v-else>
265
242
  <view
266
243
  @click.stop="handleBindLogin(item,item['entries'][0])"
267
244
  :style="{color: item['theme']['color']}"
@@ -281,25 +258,6 @@
281
258
  }"
282
259
  ></view>
283
260
  </view>
284
- <view v-if="tabIndex===2&&(couponList&&couponList.length)">
285
- <view v-if="couponList.length" class="coupon_list">
286
- <xd-coupon-item v-for="(item, i) in couponList" :key="i"
287
- style="margin-bottom:20rpx"
288
- :couponRadius="couponRadius"
289
- :couponImageUrl="couponImageUrl"
290
- :couponTitleBgColor="couponTitleBgColor"
291
- :couponUseBtnPadding="couponUseBtnPadding"
292
- :couponBtnRadius="couponBtnRadius"
293
- :couponBtnTextStyle="couponBtnTextStyle"
294
- :couponLeftBgColor="couponLeftBgColor"
295
- :item="item"
296
- @useCoupon="handleBindLogin(item,item['entries'][0])"
297
- ></xd-coupon-item>
298
- </view>
299
- <view v-else>
300
- 暂无数据
301
- </view>
302
- </view>
303
261
  <view v-else-if="cardList !== null && cardList.length === 0">
304
262
  <view class="jfb-base-card-entry__body-empty">
305
263
  <view class="jfb-base-card-entry__body-empty-wrap">
@@ -334,6 +292,7 @@
334
292
  ></xd-font-icon>
335
293
  </view>
336
294
  </view>
295
+
337
296
  <view class="computed-height" >
338
297
  <view
339
298
  v-for="(item,index) in cardComputedList"
@@ -370,7 +329,7 @@
370
329
  <view class="card-list__other" v-if="item.other_card_point && item.card_point_type === 2">
371
330
  <view><text>购买其他物品可抵:</text><text>{{item.other_card_point}} {{ item.unit }}</text></view>
372
331
  </view>
373
- <template v-if="subTabIndex === 1">
332
+ <template v-if="tabIndex === 1">
374
333
  <view class="card-list__entry" v-if="item.entries.length === 1">
375
334
  <view
376
335
  @click.stop="handleBindLogin(item,item['entries'][0])"
@@ -386,7 +345,7 @@
386
345
  <xd-font-icon icon="iconxiangyou_xian" color="#999" size="20"></xd-font-icon>
387
346
  </view>
388
347
  </view>
389
- <view v-if="!force" class="card-list__entrys-list">
348
+ <view class="card-list__entrys-list">
390
349
  <scroll-view scroll-x class="card-list__entrys-scroll">
391
350
  <view class="card-list__entrys-item">
392
351
  <view
@@ -433,7 +392,6 @@ import { mapState, mapActions } from "vuex";
433
392
  import { getContainerPropsValue, isWechat,isQrCode } from "@/utils/xd.base";
434
393
  import XdNoticeBar from "@/components/XdNoticeBar/XdNoticeBar";
435
394
  import { Base64 } from "js-base64";
436
- import XdCouponItem from "@/components/XdCouponItem/XdCouponItem";
437
395
  import getServiceUrl from "@/common/getServiceUrl";
438
396
  import {parsePath} from "@/utils/linkUrl";
439
397
  const Color = require("color");
@@ -444,8 +402,7 @@ export default {
444
402
  XdFontIcon,
445
403
  XdButton,
446
404
  XdNoticeBar,
447
- XdCardV2,
448
- XdCouponItem
405
+ XdCardV2
449
406
  },
450
407
  mixins: [componentsMixins, extsMixins, JfbBaseCardEntryMixin, colorCardMixins, cardListMixins],
451
408
  computed: {
@@ -472,11 +429,6 @@ export default {
472
429
  this.clearDefault();
473
430
  this.cardPageNum = 0;
474
431
  this.onJfbLoad(this.options);
475
- },
476
- subTabIndex() {
477
- this.clearDefault();
478
- this.cardPageNum = 0;
479
- this.onJfbLoad(this.options);
480
432
  }
481
433
  },
482
434
  data() {
@@ -517,43 +469,6 @@ export default {
517
469
  //活动
518
470
  dialogEvent: false,
519
471
  popup: "https://img.zcool.cn/community/01784158abe781a801219c77e981ee.jpg?x-oss-process=image/auto-orient,1/resize,m_lfit,w_1280,limit_1/sharpen,100",
520
- subTabIndex: 1,
521
- force: false, //是否强制卡登录
522
- give_url: '',
523
- couponList: [],
524
- isShowCoupon: 'N',
525
- couponBtnRadius: 16,
526
- couponLeftBgColor: "",
527
- couponTitleBgColor: "",
528
- couponBtnTextStyle: {}, //优惠券包登录按钮文字背景色设置
529
- couponUseBtnPadding: {},
530
- couponImageUrl: "",
531
- testCouponList: [
532
- {
533
- card_number: '10001000001168',
534
- card_point: 5000,
535
- card_type: '0',
536
- card_type_name: '满50减50',
537
- unit: '点',
538
- end_time: '2024-11-23',
539
- is_valid: 'Y',
540
- main_business_code_name: '',
541
- other_card_point: 0,
542
- is_exchange: 'N',
543
- card_point_type: 1,
544
- business_codes: [
545
- 'cake',
546
- 'movie',
547
- 'video',
548
- 'market',
549
- 'book'
550
- ],
551
- is_login: 'N',
552
- consume_type: '2',
553
- card_use_rule: '满50减1',
554
- is_transfering: 'N'
555
- },
556
- ]
557
472
  };
558
473
  },
559
474
  created() {
@@ -587,28 +502,11 @@ export default {
587
502
  this.bindUrl = getContainerPropsValue(container,"content.bind_url",{value: ""}).value;
588
503
  this.detailUrl = getContainerPropsValue(container,"content.detail_url",{value: ""}).value;
589
504
  this.confirmUrl = getContainerPropsValue(container,"content.confirm_url",{value: ""}).value;
590
- this.get_url = getContainerPropsValue(container,"content.get_url",{value: ""}).value;
591
505
  this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
592
506
  this.isShowCode = getContainerPropsValue(container, "content.isShowCode", "Y");
593
- this.isShowCoupon = getContainerPropsValue(container, "content.isShowCoupon", "N");
594
507
  this.bindCard = getContainerPropsValue(container,"content.bindCard","1");
595
508
  //'wechat_mini_program|default'
596
509
  this.entryGroupId = getContainerPropsValue(container,"content.entryGroupId","default");
597
- this.couponBtnRadius = getContainerPropsValue(container, "content.couponBtnRadius", 16);
598
- this.couponUseBtnPadding = getContainerPropsValue(container, "content.couponUseBtnPadding", {top: 20, left: 20, right: 20, bottom: 20});
599
- this.couponBtnTextStyle = getContainerPropsValue(container, "content.couponBtnTextStyle", {
600
- color: '#fff',
601
- bgColor: '#ff5722',
602
- fontSize: '30rpx',
603
- fontWeight: 'normal'
604
- });
605
- this.couponTitleBgColor = getContainerPropsValue(container, "content.couponTitleBgColor", 'rgba(255, 87, 51, 0.1)');
606
- this.couponRadius = getContainerPropsValue(container, "content.couponRadius", 16);
607
- this.couponLeftBgColor = getContainerPropsValue(container, "content.couponLeftBgColor", "linear-gradient(180deg, #FFA852 0%, #FF5733 100%)");
608
- this.couponImageUrl = getContainerPropsValue(container, "content.couponImageUrl", "");
609
- if(this.isPreview) {
610
- this.tabIndex = this.isShowCoupon==='Y'?2:1;
611
- }
612
510
  },
613
511
 
614
512
  handleToLink(path) {
@@ -694,19 +592,12 @@ export default {
694
592
  */
695
593
  handleBindLogin(item , entry) {
696
594
  //卡券登录
697
- if (this.tabIndex === 1||this.tabIndex === 2) {
595
+ if (this.tabIndex === 1) {
698
596
  if (item["is_valid"] !== "Y") {
699
597
  return;
700
598
  }
701
599
 
702
600
  this.$xdShowLoading({});
703
- //转换卡跳转
704
- if(this.subTabIndex===2){
705
- this.$xdUniHelper.navigateTo({
706
- url: `${this.changeUrl}?card_number=${item["card_number"]}`
707
- }, false);
708
- return
709
- }
710
601
  jfbRootExec("loginEntryCardBind", {
711
602
  vm: this,
712
603
  data: { card_number: item["card_number"] },
@@ -733,6 +624,13 @@ export default {
733
624
  this.$xdHideLoading();
734
625
  });
735
626
  }
627
+
628
+ //转换卡跳转
629
+ else {
630
+ this.$xdUniHelper.navigateTo({
631
+ url: `${this.changeUrl}?card_number=${item["card_number"]}`
632
+ }, false);
633
+ }
736
634
  },
737
635
 
738
636
 
@@ -815,22 +713,15 @@ export default {
815
713
  },
816
714
 
817
715
  toDetail(item, out=true) {
818
- if(this.subTabIndex===3) {
819
- this.$xdUniHelper.navigateTo({
820
- url: `${this.get_url}?card_number=${item["card_number"]}`,
821
- }, false);
822
- } else {
823
- this.$xdUniHelper.navigateTo({
824
- url: `${this.detailUrl}?card_number=${item["card_number"]}`,
825
- }, false);
826
- }
716
+ this.$xdUniHelper.navigateTo({
717
+ url: `${this.detailUrl}?card_number=${item["card_number"]}`,
718
+ }, false);
827
719
  },
828
720
 
829
721
  onJfbLoad(options) {
830
722
  if(options['x-test'] === 'jfb-console') this.showIndex = true;
831
723
  this.options = options;
832
724
  let { inCallback } = options;
833
- this.force = inCallback?true:false;
834
725
  if(!inCallback) this.$storage.remove("inCallback"); //作为入口
835
726
  else {
836
727
  this.$storage.set("inCallback", inCallback);
@@ -847,43 +738,12 @@ export default {
847
738
  //登录成功调整地址优先级
848
739
  this.inCallback = inCallback || this.allEntryPath || this.settings.index;
849
740
  this.getContent();
850
- if(this.tabIndex===1) {
851
- this.getCardList(options);
852
- } else {
853
- this.getCouponList(options);
854
- }
855
- },
856
741
 
857
- getCouponList(options) {
858
- let params = {is_all: 'Y', is_show_entry_settings: 'Y', show_type: 'coupon'};
859
- if(options['jfb_business_code']) {
860
- params['card_business_code'] = options['jfb_business_code'];
861
- }
862
- if(this.entryGroupId) params['group_id'] = this.entryGroupId;
863
- this.$xdShowLoading({});
864
- jfbRootExec("getListEntryCardBind", {
865
- vm: this,
866
- data: params
867
- }).then(res=>{
868
- this.loadingCardList = false;
869
- this.showDisabled = res.is_show_invalid_card_entrance;
870
- if(this.isPreview) {
871
- res.list = this.testCouponList
872
- }
873
- //过滤入口配置
874
- res['site_entry_settings'] = this.filterNotSupportEntry(res['site_entry_settings']);
875
- let newCardList = this.$xdUniHelper.cloneDeep(res.list);
876
- this.couponList = this.getCardGroupItem(newCardList, res['site_entry_settings']);
877
- console.log(this.couponList,'this.couponList');
878
-
879
- this.$xdHideLoading({});
880
-
881
- }) .catch(() => this.$xdHideLoading());
882
-
742
+ this.getCardList(options);
883
743
  },
884
744
 
885
745
  getCardList(options) {
886
- let params = {is_all: 'Y', is_show_entry_settings: 'Y', show_type: 'normal'};
746
+ let params = {is_all: 'Y', is_show_entry_settings: 'Y'};
887
747
  if(options['jfb_business_code']) {
888
748
  params['card_business_code'] = options['jfb_business_code'];
889
749
  }
@@ -917,15 +777,7 @@ export default {
917
777
  this.hasChangeStatus = this.getCardGroupItem(this.ajaxCardList.list.filter((item) => {
918
778
  return item["is_exchange"] === "Y";
919
779
  }), res['site_entry_settings']).length > 0;
920
- let type = ""
921
- if(this.subTabIndex === 1) {
922
- type = 'is_valid'
923
- } else if(this.subTabIndex === 2) {
924
- type = 'is_exchange'
925
- } else {
926
- type = 'is_transfering'
927
- }
928
- this.handleCardInit(this.ajaxCardList, type);
780
+ this.handleCardInit(this.ajaxCardList, this.tabIndex === 1);
929
781
  this.cardPageNum = 1;
930
782
  this.$xdHideLoading();
931
783
  })
@@ -1058,19 +910,6 @@ export default {
1058
910
 
1059
911
  }
1060
912
 
1061
- &-sub-tab {
1062
- display: flex;
1063
- align-items: center;
1064
- margin-bottom: 32rpx;
1065
-
1066
- &-item {
1067
- font-size: 28rpx;
1068
- padding: 8rpx 16rpx;
1069
- border-radius: 8rpx;
1070
- margin-right: 24rpx
1071
- }
1072
- }
1073
-
1074
913
  &-tab {
1075
914
  display: flex;
1076
915
  align-items: center;
@@ -1382,18 +1221,6 @@ export default {
1382
1221
  }
1383
1222
  }
1384
1223
 
1385
- .coupon_list{
1386
- ::v-deep .xd-coupon_item{
1387
- margin: var(--card-list-margin) 0;
1388
- }
1389
- }
1390
- .no_more_card{
1391
- text-align: center;
1392
- padding: 20rpx 0;
1393
- color: #CCCCCC;
1394
- font-size: 28rpx;
1395
- }
1396
-
1397
1224
  .computed-height {
1398
1225
  position: fixed;
1399
1226
  top:-999999px;
@@ -6,37 +6,53 @@
6
6
  */
7
7
  module.exports = [
8
8
  {
9
- mapFnName: 'getBaseByIdCardDetailGive',
9
+ //设置方法名字当别忘记加上【模块名字】:Card
10
+ mapFnName: 'getCardByIdFilmSquate',
11
+ title: '获取电影广场列表',
12
+ path: '/api/account/film/list-film-square',
10
13
  isRule: false,
11
- title: '获得绑定的卡详情',
12
- prefix: 'detal',
13
- path: '/card/v1/card-transfer/get-bind-card',
14
14
  params: {
15
- card_number: ['卡号', 'String', '必选'],
15
+ last_key: ['当前页', 'Number', '必选'],
16
+ page_size: ['每页数量', 'Number', '必选'],
16
17
  },
18
+ isConsole: true,
17
19
  disabled: true,
18
20
  },
19
21
  {
20
- mapFnName: 'confirmGiveCard',
22
+ //设置方法名字当别忘记加上【模块名字】:Card
23
+ mapFnName: 'updateCardFilmPaiqiDate',
24
+ title: '更新排期',
25
+ path: '/api/account/film/paiqi-date',
21
26
  isRule: false,
22
- title: '确认赠送',
23
- prefix: 'detal',
24
- path: '/card/v1/card-transfer/create',
25
- data: {
26
- card_number: ['卡号', 'String', '必选'],
27
- greeting: ['祝福语', 'String', '必选'],
27
+ params: {
28
+ film_id: ['电影id', 'Number', '必选'],
29
+ cinema_id: ['影院id', 'Number', '必选'],
30
+ },
31
+ isConsole: true,
32
+ disabled: true,
33
+ },
34
+ {
35
+ //设置方法名字当别忘记加上【模块名字】:Card
36
+ mapFnName: 'removeCardFilmAddress',
37
+ title: '删除我的配送地址',
38
+ path: '/api/account/film/paiqi-date',
39
+ isRule: false,
40
+ params: {
41
+ film_id: ['电影id', 'Number', '必选'],
28
42
  },
43
+ isConsole: true,
29
44
  disabled: true,
30
45
  },
31
46
  {
32
- mapFnName: 'cancelGiveCard',
47
+ //设置方法名字当别忘记加上【模块名字】:Card
48
+ mapFnName: 'addCardFilmcart',
49
+ title: '添加购物车',
50
+ path: '/api/account/film/paiqi-date',
33
51
  isRule: false,
34
- title: '取消赠送',
35
- prefix: 'detal',
36
- path: '/card/v1/card-transfer/cancel',
37
- data: {
38
- transfer_auth_code: ['授权码', 'String', '必选'],
52
+ params: {
53
+ film_id: ['电影id', 'Number', '必选'],
39
54
  },
55
+ isConsole: true,
40
56
  disabled: true,
41
57
  },
42
58
  ];
@@ -8,42 +8,49 @@ export default {
8
8
  content: (data) => {
9
9
  return [
10
10
  {
11
- label: '领取地址:',
11
+ label: '背景颜色:',
12
+ ele: 'xd-color',
13
+ valueKey: 'bgcolor',
14
+ value: data.bgcolor || '',
15
+ placeholder: '请输入占位框背景颜色',
16
+ classNmae: 'input80',
17
+ rules: [
18
+ {
19
+ required: true,
20
+ message: '请输入占位框背景颜色',
21
+ trigger: 'blur'
22
+ },
23
+ ]
24
+ },
25
+ {
26
+ label: '选中路径:',
12
27
  ele: 'xd-select-pages-path',
13
- valueKey: 'get_url',
14
- groupKey:'advanced',
15
- placeholder: '请选择领取地址',
16
- value: null,
28
+ valueKey: 'select-pages-path',
29
+ value: data['select-pages-path'] || null,
17
30
  setting: {
18
- router: XdBus.getParentApi('getPagesTree'),
31
+ router: XdBus.getParentApi('getPagesTree')
19
32
  },
20
- inline: false,
33
+ },
34
+ data.bgcolor && {
35
+ label: '高度:',
36
+ ele: 'el-input',
37
+ type: 'number',
38
+ valueKey: 'height',
39
+ value: data.height || 100,
40
+ placeholder: '请输入占位框高度,单位像素,默认:10px',
41
+ className: 'input80',
21
42
  rules: [
22
- { required: true, message: '请选择领取地址', trigger: ['blur', 'change'] },
43
+ {
44
+ required: true,
45
+ message: '请输入占位框高度',
46
+ trigger: 'blur'
47
+ },
23
48
  ]
24
49
  },
25
50
  {
26
- label: '分享图片:', //label
27
- ele: 'xd-upload', //package 名称
28
- valueKey: 'shareImage', //form[valueKey]
29
- value: data.shareImage || null, //v-model
30
- defaultValue: data.shareImage || null, //默认图片对象
31
- groupKey: "style",
32
- slot: true, //按钮是否使用slot
33
- oneWidth: 200, //单个图片显示宽度
34
- oneHeight: 200, //单个图片显示高度
35
- elinputClassName: 'input40',
36
- tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
37
- type: ['jpg', 'png', 'jpeg'],
38
- styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
39
- uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
40
- size: 5, //5M
41
- action: 'aliyun',
42
- sort: true, //当上传图片列表时候,是否启用排序
43
- maxlen: 100, //当上传图片列表时候,最大数量数量
44
- rules: [
45
- { required: true, message: '请上传图片', trigger: ['blur', 'change'] },
46
- ]
51
+ label: '', //label
52
+ ele: 'slot', //package 名称
53
+ slot: 'is_reference',
47
54
  },
48
55
  ].filter(i=>i)
49
56
  },