jufubao-base 1.0.176-beta1 → 1.0.177-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.
Files changed (24) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseCardDelay/Api.js +19 -30
  3. package/src/components/JfbBaseCardDelay/Attr.js +227 -37
  4. package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +254 -79
  5. package/src/components/JfbBaseCardDetailEntry/Attr.js +12 -0
  6. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +14 -0
  7. package/src/components/JfbBaseCardDetailEntry/Mock.js +1 -1
  8. package/src/components/JfbBaseCardEntry/Attr.js +121 -0
  9. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +202 -29
  10. package/src/components/JfbBaseCardGive/Api.js +18 -34
  11. package/src/components/JfbBaseCardGive/Attr.js +29 -36
  12. package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +463 -80
  13. package/src/components/JfbBaseCardGive/Mock.js +2 -9
  14. package/src/components/JfbBaseCardReceive/Api.js +10 -36
  15. package/src/components/JfbBaseCardReceive/Attr.js +9 -39
  16. package/src/components/JfbBaseCardReceive/JfbBaseCardReceive.vue +382 -81
  17. package/src/components/JfbBaseCardReceiveCover/Api.js +5 -43
  18. package/src/components/JfbBaseCardReceiveCover/Attr.js +57 -32
  19. package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +143 -82
  20. package/src/components/JfbBasePay/Attr.js +12 -0
  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 +135 -12
  24. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +1 -1
@@ -110,18 +110,31 @@
110
110
  }"
111
111
  >已绑定票券</view>
112
112
  <view
113
- v-if="hasChangeStatus"
114
113
  @click="tabIndex = 2"
115
114
  :style="{
116
115
  color: tabIndex === 2 ? '#fff' : '#B8B7BE',
117
116
  background: tabIndex === 2 ? mainColor : '#fff',
118
117
  }"
119
- >可转换票券</view>
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>
120
133
  </view>
121
134
  <view
122
135
  class="jfb-base-card-entry__body-tips"
123
136
  :style="{ color: warningColor }"
124
- v-if="tabIndex === 2"
137
+ v-if="subTabIndex === 2"
125
138
  >* 目前仅支持电影票兑换券进行转换</view>
126
139
  <view class="card-content">
127
140
  <view v-if="loadingCardList" class="jfb-base-card-entry__body-card skeleton-card">
@@ -154,7 +167,7 @@
154
167
 
155
168
  <template v-else>
156
169
  <view
157
- v-if="tabIndex === 2 || tabIndex === 1 && (cardList && cardList.length > 0)"
170
+ v-if="tabIndex === 1 && (cardList && cardList.length > 0)"
158
171
  class="jfb-base-card-entry__body-card"
159
172
  >
160
173
  <view
@@ -169,7 +182,7 @@
169
182
  :style="{
170
183
  background: item['theme']['color'],
171
184
  backgroundSize: '100%',
172
- height: item.height + 'px'
185
+ height: subTabIndex !== 3 ? item.height + 'px' : '300rpx'
173
186
  }"
174
187
  >
175
188
  <view class="card-list-warp" :style="{backgroundImage: 'url('+ item['theme']['image'] +')'}">
@@ -184,7 +197,7 @@
184
197
  <text>券号:</text>
185
198
  <text>{{item.card_number}}{{showIndex?(':' + index):''}}</text>
186
199
  </view>
187
- <view @click.stop="toDetail(item)" v-if="isShowCode === 'Y'">
200
+ <view @click.stop="toDetail(item)" v-if="subTabIndex !== 3&&isShowCode === 'Y'&&!force">
188
201
  <view>
189
202
  <xd-font-icon icon="iconerweima" width="56" height="56" size="50" color="#fff"></xd-font-icon>
190
203
  </view>
@@ -202,15 +215,25 @@
202
215
  <view class="card-list__other" v-if="item.other_card_point && item.card_point_type === 2">
203
216
  <view><text>购买其他物品可抵:</text><text>{{item.other_card_point}} {{ item.unit }}</text></view>
204
217
  </view>
205
- <template v-if="tabIndex === 1">
206
- <view class="card-list__entry" v-if="item.entries.length === 1">
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">
207
230
  <view
208
231
  @click.stop="handleBindLogin(item,item['entries'][0])"
209
232
  :style="{color: item['theme']['color']}"
210
233
  >进入{{item['entries'][0]['entry_name']}}</view>
211
234
  </view>
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>
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>
214
237
  <view class="card-list__entrys-title">
215
238
  <view>可兑换权益</view>
216
239
  <view @click.stop="toDetail(item, false)">
@@ -238,7 +261,7 @@
238
261
  </view>
239
262
  </view>
240
263
  </template>
241
- <view class="card-list__entry" v-else>
264
+ <view class="card-list__entry" v-else-if="subTabIndex===2">
242
265
  <view
243
266
  @click.stop="handleBindLogin(item,item['entries'][0])"
244
267
  :style="{color: item['theme']['color']}"
@@ -258,6 +281,25 @@
258
281
  }"
259
282
  ></view>
260
283
  </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>
261
303
  <view v-else-if="cardList !== null && cardList.length === 0">
262
304
  <view class="jfb-base-card-entry__body-empty">
263
305
  <view class="jfb-base-card-entry__body-empty-wrap">
@@ -292,7 +334,6 @@
292
334
  ></xd-font-icon>
293
335
  </view>
294
336
  </view>
295
-
296
337
  <view class="computed-height" >
297
338
  <view
298
339
  v-for="(item,index) in cardComputedList"
@@ -329,7 +370,7 @@
329
370
  <view class="card-list__other" v-if="item.other_card_point && item.card_point_type === 2">
330
371
  <view><text>购买其他物品可抵:</text><text>{{item.other_card_point}} {{ item.unit }}</text></view>
331
372
  </view>
332
- <template v-if="tabIndex === 1">
373
+ <template v-if="subTabIndex === 1">
333
374
  <view class="card-list__entry" v-if="item.entries.length === 1">
334
375
  <view
335
376
  @click.stop="handleBindLogin(item,item['entries'][0])"
@@ -345,7 +386,7 @@
345
386
  <xd-font-icon icon="iconxiangyou_xian" color="#999" size="20"></xd-font-icon>
346
387
  </view>
347
388
  </view>
348
- <view class="card-list__entrys-list">
389
+ <view v-if="!force" class="card-list__entrys-list">
349
390
  <scroll-view scroll-x class="card-list__entrys-scroll">
350
391
  <view class="card-list__entrys-item">
351
392
  <view
@@ -392,6 +433,7 @@ import { mapState, mapActions } from "vuex";
392
433
  import { getContainerPropsValue, isWechat,isQrCode } from "@/utils/xd.base";
393
434
  import XdNoticeBar from "@/components/XdNoticeBar/XdNoticeBar";
394
435
  import { Base64 } from "js-base64";
436
+ import XdCouponItem from "@/components/XdCouponItem/XdCouponItem";
395
437
  import getServiceUrl from "@/common/getServiceUrl";
396
438
  import {parsePath} from "@/utils/linkUrl";
397
439
  const Color = require("color");
@@ -402,7 +444,8 @@ export default {
402
444
  XdFontIcon,
403
445
  XdButton,
404
446
  XdNoticeBar,
405
- XdCardV2
447
+ XdCardV2,
448
+ XdCouponItem
406
449
  },
407
450
  mixins: [componentsMixins, extsMixins, JfbBaseCardEntryMixin, colorCardMixins, cardListMixins],
408
451
  computed: {
@@ -429,6 +472,11 @@ export default {
429
472
  this.clearDefault();
430
473
  this.cardPageNum = 0;
431
474
  this.onJfbLoad(this.options);
475
+ },
476
+ subTabIndex() {
477
+ this.clearDefault();
478
+ this.cardPageNum = 0;
479
+ this.onJfbLoad(this.options);
432
480
  }
433
481
  },
434
482
  data() {
@@ -469,6 +517,43 @@ export default {
469
517
  //活动
470
518
  dialogEvent: false,
471
519
  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
+ ]
472
557
  };
473
558
  },
474
559
  created() {
@@ -502,11 +587,28 @@ export default {
502
587
  this.bindUrl = getContainerPropsValue(container,"content.bind_url",{value: ""}).value;
503
588
  this.detailUrl = getContainerPropsValue(container,"content.detail_url",{value: ""}).value;
504
589
  this.confirmUrl = getContainerPropsValue(container,"content.confirm_url",{value: ""}).value;
590
+ this.get_url = getContainerPropsValue(container,"content.get_url",{value: ""}).value;
505
591
  this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
506
592
  this.isShowCode = getContainerPropsValue(container, "content.isShowCode", "Y");
593
+ this.isShowCoupon = getContainerPropsValue(container, "content.isShowCoupon", "N");
507
594
  this.bindCard = getContainerPropsValue(container,"content.bindCard","1");
508
595
  //'wechat_mini_program|default'
509
596
  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
+ }
510
612
  },
511
613
 
512
614
  handleToLink(path) {
@@ -592,12 +694,19 @@ export default {
592
694
  */
593
695
  handleBindLogin(item , entry) {
594
696
  //卡券登录
595
- if (this.tabIndex === 1) {
697
+ if (this.tabIndex === 1||this.tabIndex === 2) {
596
698
  if (item["is_valid"] !== "Y") {
597
699
  return;
598
700
  }
599
701
 
600
702
  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
+ }
601
710
  jfbRootExec("loginEntryCardBind", {
602
711
  vm: this,
603
712
  data: { card_number: item["card_number"] },
@@ -624,13 +733,6 @@ export default {
624
733
  this.$xdHideLoading();
625
734
  });
626
735
  }
627
-
628
- //转换卡跳转
629
- else {
630
- this.$xdUniHelper.navigateTo({
631
- url: `${this.changeUrl}?card_number=${item["card_number"]}`
632
- }, false);
633
- }
634
736
  },
635
737
 
636
738
 
@@ -713,15 +815,22 @@ export default {
713
815
  },
714
816
 
715
817
  toDetail(item, out=true) {
716
- this.$xdUniHelper.navigateTo({
717
- url: `${this.detailUrl}?card_number=${item["card_number"]}`,
718
- }, false);
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
+ }
719
827
  },
720
828
 
721
829
  onJfbLoad(options) {
722
830
  if(options['x-test'] === 'jfb-console') this.showIndex = true;
723
831
  this.options = options;
724
832
  let { inCallback } = options;
833
+ this.force = inCallback?true:false;
725
834
  if(!inCallback) this.$storage.remove("inCallback"); //作为入口
726
835
  else {
727
836
  this.$storage.set("inCallback", inCallback);
@@ -738,12 +847,43 @@ export default {
738
847
  //登录成功调整地址优先级
739
848
  this.inCallback = inCallback || this.allEntryPath || this.settings.index;
740
849
  this.getContent();
850
+ if(this.tabIndex===1) {
851
+ this.getCardList(options);
852
+ } else {
853
+ this.getCouponList(options);
854
+ }
855
+ },
741
856
 
742
- this.getCardList(options);
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
+
743
883
  },
744
884
 
745
885
  getCardList(options) {
746
- let params = {is_all: 'Y', is_show_entry_settings: 'Y'};
886
+ let params = {is_all: 'Y', is_show_entry_settings: 'Y', show_type: 'normal'};
747
887
  if(options['jfb_business_code']) {
748
888
  params['card_business_code'] = options['jfb_business_code'];
749
889
  }
@@ -777,7 +917,15 @@ export default {
777
917
  this.hasChangeStatus = this.getCardGroupItem(this.ajaxCardList.list.filter((item) => {
778
918
  return item["is_exchange"] === "Y";
779
919
  }), res['site_entry_settings']).length > 0;
780
- this.handleCardInit(this.ajaxCardList, this.tabIndex === 1);
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);
781
929
  this.cardPageNum = 1;
782
930
  this.$xdHideLoading();
783
931
  })
@@ -910,6 +1058,19 @@ export default {
910
1058
 
911
1059
  }
912
1060
 
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
+
913
1074
  &-tab {
914
1075
  display: flex;
915
1076
  align-items: center;
@@ -1221,6 +1382,18 @@ export default {
1221
1382
  }
1222
1383
  }
1223
1384
 
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
+
1224
1397
  .computed-height {
1225
1398
  position: fixed;
1226
1399
  top:-999999px;
@@ -6,53 +6,37 @@
6
6
  */
7
7
  module.exports = [
8
8
  {
9
- //设置方法名字当别忘记加上【模块名字】:Card
10
- mapFnName: 'getCardByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
9
+ mapFnName: 'getBaseByIdCardDetailGive',
13
10
  isRule: false,
11
+ title: '获得绑定的卡详情',
12
+ prefix: 'detal',
13
+ path: '/card/v1/card-transfer/get-bind-card',
14
14
  params: {
15
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
15
+ card_number: ['卡号', 'String', '必选'],
17
16
  },
18
- isConsole: true,
19
17
  disabled: true,
20
18
  },
21
19
  {
22
- //设置方法名字当别忘记加上【模块名字】:Card
23
- mapFnName: 'updateCardFilmPaiqiDate',
24
- title: '更新排期',
25
- path: '/api/account/film/paiqi-date',
20
+ mapFnName: 'confirmGiveCard',
26
21
  isRule: false,
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', '必选'],
22
+ title: '确认赠送',
23
+ prefix: 'detal',
24
+ path: '/card/v1/card-transfer/create',
25
+ data: {
26
+ card_number: ['卡号', 'String', '必选'],
27
+ greeting: ['祝福语', 'String', '必选'],
42
28
  },
43
- isConsole: true,
44
29
  disabled: true,
45
30
  },
46
31
  {
47
- //设置方法名字当别忘记加上【模块名字】:Card
48
- mapFnName: 'addCardFilmcart',
49
- title: '添加购物车',
50
- path: '/api/account/film/paiqi-date',
32
+ mapFnName: 'cancelGiveCard',
51
33
  isRule: false,
52
- params: {
53
- film_id: ['电影id', 'Number', '必选'],
34
+ title: '取消赠送',
35
+ prefix: 'detal',
36
+ path: '/card/v1/card-transfer/cancel',
37
+ data: {
38
+ transfer_auth_code: ['授权码', 'String', '必选'],
54
39
  },
55
- isConsole: true,
56
40
  disabled: true,
57
41
  },
58
42
  ];
@@ -8,49 +8,42 @@ export default {
8
8
  content: (data) => {
9
9
  return [
10
10
  {
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: '选中路径:',
11
+ label: '领取地址:',
27
12
  ele: 'xd-select-pages-path',
28
- valueKey: 'select-pages-path',
29
- value: data['select-pages-path'] || null,
13
+ valueKey: 'get_url',
14
+ groupKey:'advanced',
15
+ placeholder: '请选择领取地址',
16
+ value: null,
30
17
  setting: {
31
- router: XdBus.getParentApi('getPagesTree')
18
+ router: XdBus.getParentApi('getPagesTree'),
32
19
  },
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',
20
+ inline: false,
42
21
  rules: [
43
- {
44
- required: true,
45
- message: '请输入占位框高度',
46
- trigger: 'blur'
47
- },
22
+ { required: true, message: '请选择领取地址', trigger: ['blur', 'change'] },
48
23
  ]
49
24
  },
50
25
  {
51
- label: '', //label
52
- ele: 'slot', //package 名称
53
- slot: 'is_reference',
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
+ ]
54
47
  },
55
48
  ].filter(i=>i)
56
49
  },