jufubao-base 1.0.181-beta1 → 1.0.181

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 (34) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseCardDelay/Api.js +30 -19
  3. package/src/components/JfbBaseCardDelay/Attr.js +35 -237
  4. package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +78 -278
  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 -205
  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 -466
  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 +80 -401
  17. package/src/components/JfbBaseCardReceive/Mock.js +7 -1
  18. package/src/components/JfbBaseCardReceiveCover/Api.js +43 -5
  19. package/src/components/JfbBaseCardReceiveCover/Attr.js +32 -57
  20. package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +82 -147
  21. package/src/components/JfbBaseCardReceiveCover/Mock.js +9 -1
  22. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +1 -1
  23. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +2 -81
  24. package/src/components/JfbBaseOrderDetail/Mock.js +0 -5
  25. package/src/components/JfbBasePay/Attr.js +0 -12
  26. package/src/components/JfbBasePay/JfbBasePay.vue +4 -4
  27. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +1 -0
  28. package/src/components/JfbBaseRechargeOrder/Api.js +0 -11
  29. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +27 -46
  30. package/src/components/JfbBaseRechargeOrderDetail/Api.js +0 -11
  31. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +13 -142
  32. package/src/components/JfbBaseRechargeSuccess/Api.js +0 -11
  33. package/src/components/JfbBaseRechargeSuccess/Attr.js +1 -1
  34. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +3 -6
@@ -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&&tabIndex === 1"
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,26 +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
- @toDetail="toDetail(item)"
298
- ></xd-coupon-item>
299
- </view>
300
- <view v-else>
301
- 暂无数据
302
- </view>
303
- </view>
304
261
  <view v-else-if="cardList !== null && cardList.length === 0">
305
262
  <view class="jfb-base-card-entry__body-empty">
306
263
  <view class="jfb-base-card-entry__body-empty-wrap">
@@ -335,6 +292,7 @@
335
292
  ></xd-font-icon>
336
293
  </view>
337
294
  </view>
295
+
338
296
  <view class="computed-height" >
339
297
  <view
340
298
  v-for="(item,index) in cardComputedList"
@@ -371,7 +329,7 @@
371
329
  <view class="card-list__other" v-if="item.other_card_point && item.card_point_type === 2">
372
330
  <view><text>购买其他物品可抵:</text><text>{{item.other_card_point}} {{ item.unit }}</text></view>
373
331
  </view>
374
- <template v-if="subTabIndex === 1">
332
+ <template v-if="tabIndex === 1">
375
333
  <view class="card-list__entry" v-if="item.entries.length === 1">
376
334
  <view
377
335
  @click.stop="handleBindLogin(item,item['entries'][0])"
@@ -387,7 +345,7 @@
387
345
  <xd-font-icon icon="iconxiangyou_xian" color="#999" size="20"></xd-font-icon>
388
346
  </view>
389
347
  </view>
390
- <view v-if="!force" class="card-list__entrys-list">
348
+ <view class="card-list__entrys-list">
391
349
  <scroll-view scroll-x class="card-list__entrys-scroll">
392
350
  <view class="card-list__entrys-item">
393
351
  <view
@@ -434,7 +392,6 @@ import { mapState, mapActions } from "vuex";
434
392
  import { getContainerPropsValue, isWechat,isQrCode } from "@/utils/xd.base";
435
393
  import XdNoticeBar from "@/components/XdNoticeBar/XdNoticeBar";
436
394
  import { Base64 } from "js-base64";
437
- import XdCouponItem from "@/components/XdCouponItem/XdCouponItem";
438
395
  import getServiceUrl from "@/common/getServiceUrl";
439
396
  import {parsePath} from "@/utils/linkUrl";
440
397
  const Color = require("color");
@@ -445,8 +402,7 @@ export default {
445
402
  XdFontIcon,
446
403
  XdButton,
447
404
  XdNoticeBar,
448
- XdCardV2,
449
- XdCouponItem
405
+ XdCardV2
450
406
  },
451
407
  mixins: [componentsMixins, extsMixins, JfbBaseCardEntryMixin, colorCardMixins, cardListMixins],
452
408
  computed: {
@@ -473,11 +429,6 @@ export default {
473
429
  this.clearDefault();
474
430
  this.cardPageNum = 0;
475
431
  this.onJfbLoad(this.options);
476
- },
477
- subTabIndex() {
478
- this.clearDefault();
479
- this.cardPageNum = 0;
480
- this.onJfbLoad(this.options);
481
432
  }
482
433
  },
483
434
  data() {
@@ -518,43 +469,6 @@ export default {
518
469
  //活动
519
470
  dialogEvent: false,
520
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",
521
- subTabIndex: 1,
522
- force: false, //是否强制卡登录
523
- give_url: '',
524
- couponList: [],
525
- isShowCoupon: 'N',
526
- couponBtnRadius: 16,
527
- couponLeftBgColor: "",
528
- couponTitleBgColor: "",
529
- couponBtnTextStyle: {}, //优惠券包登录按钮文字背景色设置
530
- couponUseBtnPadding: {},
531
- couponImageUrl: "",
532
- testCouponList: [
533
- {
534
- card_number: '10001000001168',
535
- card_point: 5000,
536
- card_type: '0',
537
- card_type_name: '满50减50',
538
- unit: '点',
539
- end_time: '2024-11-23',
540
- is_valid: 'Y',
541
- main_business_code_name: '',
542
- other_card_point: 0,
543
- is_exchange: 'N',
544
- card_point_type: 1,
545
- business_codes: [
546
- 'cake',
547
- 'movie',
548
- 'video',
549
- 'market',
550
- 'book'
551
- ],
552
- is_login: 'N',
553
- consume_type: '2',
554
- card_use_rule: '满50减1',
555
- is_transfering: 'N'
556
- },
557
- ]
558
472
  };
559
473
  },
560
474
  created() {
@@ -588,28 +502,11 @@ export default {
588
502
  this.bindUrl = getContainerPropsValue(container,"content.bind_url",{value: ""}).value;
589
503
  this.detailUrl = getContainerPropsValue(container,"content.detail_url",{value: ""}).value;
590
504
  this.confirmUrl = getContainerPropsValue(container,"content.confirm_url",{value: ""}).value;
591
- this.give_url = getContainerPropsValue(container,"content.give_url",{value: ""}).value;
592
505
  this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
593
506
  this.isShowCode = getContainerPropsValue(container, "content.isShowCode", "Y");
594
- this.isShowCoupon = getContainerPropsValue(container, "content.isShowCoupon", "N");
595
507
  this.bindCard = getContainerPropsValue(container,"content.bindCard","1");
596
508
  //'wechat_mini_program|default'
597
509
  this.entryGroupId = getContainerPropsValue(container,"content.entryGroupId","default");
598
- this.couponBtnRadius = getContainerPropsValue(container, "content.couponBtnRadius", 16);
599
- this.couponUseBtnPadding = getContainerPropsValue(container, "content.couponUseBtnPadding", {top: 20, left: 20, right: 20, bottom: 20});
600
- this.couponBtnTextStyle = getContainerPropsValue(container, "content.couponBtnTextStyle", {
601
- color: '#fff',
602
- bgColor: '#ff5722',
603
- fontSize: '30rpx',
604
- fontWeight: 'normal'
605
- });
606
- this.couponTitleBgColor = getContainerPropsValue(container, "content.couponTitleBgColor", 'rgba(255, 87, 51, 0.1)');
607
- this.couponRadius = getContainerPropsValue(container, "content.couponRadius", 16);
608
- this.couponLeftBgColor = getContainerPropsValue(container, "content.couponLeftBgColor", "linear-gradient(180deg, #FFA852 0%, #FF5733 100%)");
609
- this.couponImageUrl = getContainerPropsValue(container, "content.couponImageUrl", "");
610
- if(this.isPreview) {
611
- this.tabIndex = this.isShowCoupon==='Y'?2:1;
612
- }
613
510
  },
614
511
 
615
512
  handleToLink(path) {
@@ -695,19 +592,12 @@ export default {
695
592
  */
696
593
  handleBindLogin(item , entry) {
697
594
  //卡券登录
698
- if (this.tabIndex === 1||this.tabIndex === 2) {
595
+ if (this.tabIndex === 1) {
699
596
  if (item["is_valid"] !== "Y") {
700
597
  return;
701
598
  }
702
599
 
703
600
  this.$xdShowLoading({});
704
- //转换卡跳转
705
- if(this.subTabIndex===2){
706
- this.$xdUniHelper.navigateTo({
707
- url: `${this.changeUrl}?card_number=${item["card_number"]}`
708
- }, false);
709
- return
710
- }
711
601
  jfbRootExec("loginEntryCardBind", {
712
602
  vm: this,
713
603
  data: { card_number: item["card_number"] },
@@ -734,6 +624,13 @@ export default {
734
624
  this.$xdHideLoading();
735
625
  });
736
626
  }
627
+
628
+ //转换卡跳转
629
+ else {
630
+ this.$xdUniHelper.navigateTo({
631
+ url: `${this.changeUrl}?card_number=${item["card_number"]}`
632
+ }, false);
633
+ }
737
634
  },
738
635
 
739
636
 
@@ -816,22 +713,15 @@ export default {
816
713
  },
817
714
 
818
715
  toDetail(item, out=true) {
819
- if(this.subTabIndex===3) {
820
- this.$xdUniHelper.navigateTo({
821
- url: `${this.give_url}?card_number=${item["card_number"]}`,
822
- }, false);
823
- } else {
824
- this.$xdUniHelper.navigateTo({
825
- url: `${this.detailUrl}?card_number=${item["card_number"]}`,
826
- }, false);
827
- }
716
+ this.$xdUniHelper.navigateTo({
717
+ url: `${this.detailUrl}?card_number=${item["card_number"]}`,
718
+ }, false);
828
719
  },
829
720
 
830
721
  onJfbLoad(options) {
831
722
  if(options['x-test'] === 'jfb-console') this.showIndex = true;
832
723
  this.options = options;
833
724
  let { inCallback } = options;
834
- this.force = inCallback?true:false;
835
725
  if(!inCallback) this.$storage.remove("inCallback"); //作为入口
836
726
  else {
837
727
  this.$storage.set("inCallback", inCallback);
@@ -848,43 +738,12 @@ export default {
848
738
  //登录成功调整地址优先级
849
739
  this.inCallback = inCallback || this.allEntryPath || this.settings.index;
850
740
  this.getContent();
851
- if(this.tabIndex===1) {
852
- this.getCardList(options);
853
- } else {
854
- this.getCouponList(options);
855
- }
856
- },
857
741
 
858
- getCouponList(options) {
859
- let params = {is_all: 'Y', is_show_entry_settings: 'Y', show_type: 'coupon'};
860
- if(options['jfb_business_code']) {
861
- params['card_business_code'] = options['jfb_business_code'];
862
- }
863
- if(this.entryGroupId) params['group_id'] = this.entryGroupId;
864
- this.$xdShowLoading({});
865
- jfbRootExec("getListEntryCardBind", {
866
- vm: this,
867
- data: params
868
- }).then(res=>{
869
- this.loadingCardList = false;
870
- this.showDisabled = res.is_show_invalid_card_entrance;
871
- if(this.isPreview) {
872
- res.list = this.testCouponList
873
- }
874
- //过滤入口配置
875
- res['site_entry_settings'] = this.filterNotSupportEntry(res['site_entry_settings']);
876
- let newCardList = this.$xdUniHelper.cloneDeep(res.list);
877
- this.couponList = this.getCardGroupItem(newCardList, res['site_entry_settings']);
878
- console.log(this.couponList,'this.couponList');
879
-
880
- this.$xdHideLoading({});
881
-
882
- }) .catch(() => this.$xdHideLoading());
883
-
742
+ this.getCardList(options);
884
743
  },
885
744
 
886
745
  getCardList(options) {
887
- let params = {is_all: 'Y', is_show_entry_settings: 'Y', show_type: 'normal'};
746
+ let params = {is_all: 'Y', is_show_entry_settings: 'Y'};
888
747
  if(options['jfb_business_code']) {
889
748
  params['card_business_code'] = options['jfb_business_code'];
890
749
  }
@@ -918,17 +777,7 @@ export default {
918
777
  this.hasChangeStatus = this.getCardGroupItem(this.ajaxCardList.list.filter((item) => {
919
778
  return item["is_exchange"] === "Y";
920
779
  }), res['site_entry_settings']).length > 0;
921
- let type = ""
922
- if(this.subTabIndex === 1) {
923
- type = 'is_valid'
924
- } else if(this.subTabIndex === 2) {
925
- type = 'is_exchange'
926
- } else {
927
- type = 'is_transfering'
928
- }
929
- console.log(this.ajaxCardList, type, 'this.ajaxCardList, type');
930
-
931
- this.handleCardInit(this.ajaxCardList, type);
780
+ this.handleCardInit(this.ajaxCardList, this.tabIndex === 1);
932
781
  this.cardPageNum = 1;
933
782
  this.$xdHideLoading();
934
783
  })
@@ -1061,19 +910,6 @@ export default {
1061
910
 
1062
911
  }
1063
912
 
1064
- &-sub-tab {
1065
- display: flex;
1066
- align-items: center;
1067
- margin-bottom: 32rpx;
1068
-
1069
- &-item {
1070
- font-size: 28rpx;
1071
- padding: 8rpx 16rpx;
1072
- border-radius: 8rpx;
1073
- margin-right: 24rpx
1074
- }
1075
- }
1076
-
1077
913
  &-tab {
1078
914
  display: flex;
1079
915
  align-items: center;
@@ -1385,18 +1221,6 @@ export default {
1385
1221
  }
1386
1222
  }
1387
1223
 
1388
- .coupon_list{
1389
- ::v-deep .xd-coupon_item{
1390
- margin: var(--card-list-margin) 0;
1391
- }
1392
- }
1393
- .no_more_card{
1394
- text-align: center;
1395
- padding: 20rpx 0;
1396
- color: #CCCCCC;
1397
- font-size: 28rpx;
1398
- }
1399
-
1400
1224
  .computed-height {
1401
1225
  position: fixed;
1402
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: data['get_url']||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
  },