jufubao-base 1.0.216 → 1.0.218-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 (28) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseCard/Attr.js +35 -0
  3. package/src/components/JfbBaseCard/JfbBaseCard.vue +121 -22
  4. package/src/components/JfbBaseCard/Mock.js +9 -4
  5. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +26 -5
  6. package/src/components/JfbBaseCardDisabled/Mock.js +4 -2
  7. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +19 -1
  8. package/src/components/JfbBaseCardDisabledEntry/Mock.js +2 -0
  9. package/src/components/JfbBaseCardEntry/Attr.js +35 -0
  10. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +154 -118
  11. package/src/components/JfbBaseCardEntry/Mock.js +22 -1
  12. package/src/components/JfbBaseCardV2/Attr.js +35 -0
  13. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +118 -39
  14. package/src/components/JfbBaseCardV2/Mock.js +12 -6
  15. package/src/components/JfbBaseCardV3/Attr.js +35 -0
  16. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +23 -1
  17. package/src/components/JfbBaseHeader/Attr.js +58 -1
  18. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +22 -1
  19. package/src/components/JfbBaseNoticeDialog/Api.js +58 -0
  20. package/src/components/JfbBaseNoticeDialog/Attr.js +48 -0
  21. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +111 -0
  22. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialogLess.less +79 -0
  23. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialogMixin.js +30 -0
  24. package/src/components/JfbBaseNoticeDialog/Mock.js +13 -0
  25. package/src/components/JfbBaseTfkCardLogin/Attr.js +35 -0
  26. package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +21 -1
  27. package/src/components/JfbBaseUserCenter/Attr.js +35 -0
  28. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +38 -16
@@ -49,52 +49,64 @@
49
49
  class="jfb-base-card__body-card"
50
50
  :style="{padding: marginUi}"
51
51
  >
52
- <view
53
- v-for="(item, index) in cardList"
54
- :key="index"
55
- @click="handleBindLogin(item)"
56
- class="jfb-base-card__body-card-item"
57
- :style="{
58
- marginBottom: list_sp + 'rpx',
59
- backgroundColor:(item['is_login'] === 'Y'? mainBorderColor : '#fff'),
60
- borderColor:`${item['is_login'] === 'Y'? mainSubBorderColor:'#eeeeee'}`
61
- }"
62
- >
63
- <view class="jfb-base-card__body-card-item-left">
64
- <xd-font-icon
65
- size="100"
66
- :color="mainColor"
67
- :icon="item['is_login'] === 'Y'?'iconkaquandengluchenggong':'iconyouhuiquan1-011'"
68
- ></xd-font-icon>
69
- <view :style="{color: item['is_login'] === 'Y'?mainColor :''}">{{ item['is_login'] === 'Y'? logged_name : login_name}}</view>
70
- </view>
52
+ <view v-if="cardList&&cardList.length>0">
71
53
  <view
72
- class="jfb-base-card__body-card-item-right"
73
- :style="{borderColor: item['is_login'] === 'Y'? mainSubBorderColor:'#eeeeee'}"
54
+ v-for="(item, index) in cardList"
55
+ :key="index"
56
+ @click="handleBindLogin(item)"
57
+ class="jfb-base-card__body-card-item"
58
+ :style="{
59
+ marginBottom: list_sp + 'rpx',
60
+ backgroundColor:(item['is_login'] === 'Y'? mainBorderColor : '#fff'),
61
+ borderColor:`${item['is_login'] === 'Y'? mainSubBorderColor:'#eeeeee'}`
62
+ }"
74
63
  >
64
+ <view class="jfb-base-card__body-card-item-left">
65
+ <xd-font-icon
66
+ size="100"
67
+ :color="mainColor"
68
+ :icon="item['is_login'] === 'Y'?'iconkaquandengluchenggong':'iconyouhuiquan1-011'"
69
+ ></xd-font-icon>
70
+ <view :style="{color: item['is_login'] === 'Y'?mainColor :''}">{{ item['is_login'] === 'Y'? logged_name : login_name}}</view>
71
+ </view>
75
72
  <view
76
- class="jfb-base-card__body-card-item-right-top"
73
+ class="jfb-base-card__body-card-item-right"
77
74
  :style="{borderColor: item['is_login'] === 'Y'? mainSubBorderColor:'#eeeeee'}"
78
75
  >
79
- <view>
80
- <xd-font-icon
81
- icon="iconkaquan"
82
- size="30"
83
- :style="{marginRight: '10rpx'}"
84
- ></xd-font-icon>
85
- <view>{{ item.card_type_name }}</view>
76
+ <view
77
+ class="jfb-base-card__body-card-item-right-top"
78
+ :style="{borderColor: item['is_login'] === 'Y'? mainSubBorderColor:'#eeeeee'}"
79
+ >
80
+ <view :class="{card_name:item.is_gift === 'Y'}">
81
+ <view :style="{backgroundColor: mainColor}" v-if="item.is_gift === 'Y'" class="is-gift">赠</view>
82
+ <xd-font-icon
83
+ v-else
84
+ icon="iconkaquan"
85
+ size="30"
86
+ :style="{marginRight: '10rpx'}"
87
+ ></xd-font-icon>
88
+ <view>{{ item.card_type_name }}</view>
89
+ </view>
90
+ <view>
91
+ <view>ID:{{ item.card_number }}</view>
92
+ <view>有效期至:{{ item.end_time }}</view>
93
+ </view>
86
94
  </view>
87
- <view>
88
- <view>ID:{{ item.card_number }}</view>
89
- <view>有效期至:{{ item.end_time }}</view>
95
+ <view class="jfb-base-card__body-card-item-right-bottom">
96
+ <view class="jfb-base-card__body-card-item-right-bottom-info">
97
+ <view class="jfb-base-card__body-card-item-right-bottom-info-residue">剩余{{ item.unit }}数:{{ item.card_point }}{{ item.unit }}</view>
98
+ <view class="jfb-base-card__body-card-item-right-bottom-info-deduction">购买其他物品可抵:{{ item.other_card_point }}</view>
99
+ </view>
100
+ <view @click.stop="toDetail(item)" :style="{ background: mainColor }">{{look_name}}</view>
90
101
  </view>
91
102
  </view>
92
- <view class="jfb-base-card__body-card-item-right-bottom">
93
- <view class="jfb-base-card__body-card-item-right-bottom-info">
94
- <view class="jfb-base-card__body-card-item-right-bottom-info-residue">剩余{{ item.unit }}数:{{ item.card_point }}{{ item.unit }}</view>
95
- <view class="jfb-base-card__body-card-item-right-bottom-info-deduction">购买其他物品可抵:{{ item.other_card_point }}</view>
96
- </view>
97
- <view @click.stop="toDetail(item)" :style="{ background: mainColor }">{{look_name}}</view>
103
+ </view>
104
+ </view>
105
+ <view v-else class="jfb-base-card__body-empty">
106
+ <view class="jfb-base-card__body-empty-wrap">
107
+ <image :src="emptyBg"></image>
108
+ <view style="display:flex;align-items: center;justify-content: center;">
109
+ 暂无票券 <view v-if="isShowBuy==='Y'" class="buy_new" @click="toBuyNew" :style="{color: mainColor}"><view>{{buy_name}}</view> <xd-font-icon size="20" icon="iconxiangyou_xian"></xd-font-icon></view>
98
110
  </view>
99
111
  </view>
100
112
  </view>
@@ -124,6 +136,7 @@
124
136
  import JfbBaseCardV2Mixin from "./JfbBaseCardV2Mixin";
125
137
  import { getContainerPropsValue } from "@/utils/xd.base";
126
138
  import componentsMixins from "@/mixins/componentsMixins";
139
+ import colorCardMixins from "@/mixins/colorCardMixins";
127
140
  import extsMixins from "@/mixins/extsMixins";
128
141
  import {Base64} from "js-base64";
129
142
  import {mapState} from "vuex";
@@ -136,7 +149,7 @@
136
149
  XdButton
137
150
  },
138
151
  mixins: [
139
- componentsMixins, extsMixins, JfbBaseCardV2Mixin
152
+ componentsMixins, extsMixins, JfbBaseCardV2Mixin,colorCardMixins
140
153
  ],
141
154
  data() {
142
155
  return {
@@ -157,6 +170,9 @@
157
170
  list_sp:20,
158
171
 
159
172
  inCallbackUrlOrg:'',//是否带有回调地址
173
+ buy_new_url: '',
174
+ isShowBuy: "",
175
+ buy_name: ""
160
176
  }
161
177
  },
162
178
  watch: {
@@ -178,6 +194,9 @@
178
194
  str = `${str} ${this.checkValue(this.margin.left, 20)}rpx`;
179
195
  return str
180
196
  },
197
+ emptyBg() {
198
+ return this.getNoData();
199
+ },
181
200
  },
182
201
  created() {
183
202
  this.init(this.container);
@@ -233,6 +252,9 @@
233
252
  this.look_name = getContainerPropsValue(container, 'content.look_name', '查看');
234
253
  this.logged_name = getContainerPropsValue(container, 'content.logged_name', '已登录');
235
254
  this.list_sp = getContainerPropsValue(container, 'content.list_sp', 20);
255
+ this.isShowBuy = getContainerPropsValue(container, "content.isShowBuy", "N");
256
+ this.buy_name = getContainerPropsValue(container, "content.buy_name", "购买新卡");
257
+ this.buy_new_url = getContainerPropsValue(container,"content.buy_new_url",{value: ""}).value;
236
258
 
237
259
  },
238
260
 
@@ -272,6 +294,11 @@
272
294
  url:path
273
295
  })
274
296
  },
297
+ toBuyNew() {
298
+ this.$xdUniHelper.navigateTo({
299
+ url: `${this.buy_new_url}`,
300
+ });
301
+ },
275
302
  toOrderList(){
276
303
  this.$xdUniHelper.navigateTo({
277
304
  url: this.orderListPath
@@ -326,9 +353,61 @@
326
353
  /* #endif */
327
354
  }
328
355
  }
356
+
357
+ & .card_name {
358
+ display: flex;
359
+ justify-content: flex-start;
360
+ align-items: flex-start;
361
+
362
+ & .is-gift {
363
+ margin-top: 6rpx;
364
+ font-size: 18rpx;
365
+ padding: 2rpx 10rpx;
366
+ border-radius: 8rpx;
367
+ line-height:26rpx;
368
+ height: 26rpx;
369
+ color: #fff;
370
+ margin-right: 18rpx;
371
+ }
372
+
373
+ & .card_name_text {
374
+ //line-height: 36rpx;
375
+ }
376
+ }
329
377
  }
330
378
  }
331
379
  .jfb-base-card__body{
380
+
381
+ &-empty {
382
+ color: #888;
383
+ font-size: unit(24,rpx);
384
+ height: 60vh;
385
+ display: flex;
386
+ align-items: center;
387
+ justify-content: center;
388
+
389
+ .buy_new {
390
+ display: flex;
391
+ margin-left: 8rpx;
392
+ & > view:first-child {
393
+ margin-right: 8rpx;
394
+ }
395
+ }
396
+
397
+ &-wrap {
398
+ display: flex;
399
+ flex-direction: column;
400
+
401
+ & > image {
402
+ width: unit(460,rpx);
403
+ height: unit(400,rpx);
404
+ }
405
+ }
406
+
407
+ & > view {
408
+ text-align: center;
409
+ }
410
+ }
332
411
  &-card {
333
412
  &-item {
334
413
  display: flex;
@@ -13,7 +13,8 @@ module.exports = {
13
13
  "main_product_name": "",
14
14
  "other_card_point": 0,
15
15
  "is_exchange": "N",
16
- "is_login":"Y"
16
+ "is_login":"Y",
17
+ "is_gift":"Y"
17
18
  }, {
18
19
  "card_number": "101001000005193",
19
20
  "card_point": 99963600,
@@ -23,7 +24,8 @@ module.exports = {
23
24
  "is_valid": "Y",
24
25
  "main_product_name": "",
25
26
  "other_card_point": 0,
26
- "is_exchange": "N"
27
+ "is_exchange": "N",
28
+ "is_gift":"N"
27
29
  }, {
28
30
  "card_number": "101001000005184",
29
31
  "card_point": 100000000,
@@ -33,7 +35,8 @@ module.exports = {
33
35
  "is_valid": "Y",
34
36
  "main_product_name": "",
35
37
  "other_card_point": 0,
36
- "is_exchange": "N"
38
+ "is_exchange": "N",
39
+ "is_gift":"Y"
37
40
  }, {
38
41
  "card_number": "101001000005185",
39
42
  "card_point": 99631000,
@@ -43,7 +46,8 @@ module.exports = {
43
46
  "is_valid": "Y",
44
47
  "main_product_name": "",
45
48
  "other_card_point": 0,
46
- "is_exchange": "N"
49
+ "is_exchange": "N",
50
+ "is_gift":"Y"
47
51
  }, {
48
52
  "card_number": "101001000006990",
49
53
  "card_point": 1400,
@@ -63,7 +67,8 @@ module.exports = {
63
67
  "is_valid": "Y",
64
68
  "main_product_name": "",
65
69
  "other_card_point": 0,
66
- "is_exchange": "Y"
70
+ "is_exchange": "Y",
71
+ "is_gift":"Y"
67
72
  }, {
68
73
  "card_number": "101001000006989",
69
74
  "card_point": 3600,
@@ -83,7 +88,8 @@ module.exports = {
83
88
  "is_valid": "Y",
84
89
  "main_product_name": "",
85
90
  "other_card_point": 0,
86
- "is_exchange": "Y"
91
+ "is_exchange": "Y",
92
+ "is_gift":"Y"
87
93
  }, {
88
94
  "card_number": "101001000005479",
89
95
  "card_point": 10000000,
@@ -31,6 +31,29 @@ export default {
31
31
  inline: false,
32
32
  notice: '当未设置文案时候,前台页面显示为"<span style="color:red">已登录</span>",建议不超过<span style="color:red">4</span>个汉字'
33
33
  },
34
+ {
35
+ label: "无票券时是否展示购买新卡入口:",
36
+ ele: "xd-radio",
37
+ valueKey: "isShowBuy",
38
+ value: data.isShowBuy || "N",
39
+ list: [
40
+ { label: "展示", value: "Y" },
41
+ { label: "隐藏", value: "N" }
42
+ ],
43
+ groupKey: "content",
44
+ },
45
+ {
46
+ label: '购买新卡文案:',
47
+ ele: 'el-input',
48
+ type: 'text',
49
+ valueKey: 'buy_name',
50
+ groupKey:'content',
51
+ value: data.buy_name || '',
52
+ placeholder: '请输入购买新卡文案',
53
+ className: 'input80',
54
+ inline: false,
55
+ notice: '当未设置文案时,页面默认展示为"<span style="color:red">购买新卡</span>",建议不超过<span style="color:red">4</span>个汉字'
56
+ },
34
57
  {
35
58
  label: '绑定新票券地址:',
36
59
  ele: 'xd-select-pages-path',
@@ -67,6 +90,18 @@ export default {
67
90
  },
68
91
  inline: false,
69
92
  },
93
+ {
94
+ label: '购买新卡地址:',
95
+ ele: 'xd-select-pages-path',
96
+ valueKey: 'buy_new_url',
97
+ groupKey:'advanced',
98
+ placeholder: '请选择购买新卡地址',
99
+ value: data.buy_new_url || null,
100
+ setting: {
101
+ router: XdBus.getParentApi('getPagesTree'),
102
+ },
103
+ inline: false,
104
+ },
70
105
  ].filter(i=>i)
71
106
  },
72
107
  advanced: [
@@ -33,7 +33,9 @@
33
33
  @bindLogin="handleBindLogin(item)"
34
34
  ></xd-card-v2>
35
35
  </view>
36
- <view v-else class="empty_data">暂时没有票券</view>
36
+ <view v-else class="empty_data">暂时没有票券
37
+ <view v-if="isShowBuy==='Y'" class="buy_new" @click="toBuyNew" :style="{color: mainColor}"><view>{{buy_name}}</view> <xd-font-icon size="20" icon="iconxiangyou_xian"></xd-font-icon></view>
38
+ </view>
37
39
  </template>
38
40
  <view class="bottom_fix" :style="button_bottom">
39
41
  <xd-button type="primary" @click="toBindCard">绑定新票券</xd-button>
@@ -79,6 +81,9 @@
79
81
  loadingCardList: true,
80
82
 
81
83
  inCallbackUrlOrg:'',//是否带有回调地址
84
+ buy_new_url: '',
85
+ isShowBuy: "",
86
+ buy_name: ""
82
87
  }
83
88
  },
84
89
  watch: {
@@ -140,6 +145,9 @@
140
145
  this.detailUrl = getContainerPropsValue(container, "content.detailUrl", {value: ""}).value;
141
146
  this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
142
147
  this.logged_name = getContainerPropsValue(container, "content.logged_name", "已登录");
148
+ this.isShowBuy = getContainerPropsValue(container, "content.isShowBuy", "N");
149
+ this.buy_name = getContainerPropsValue(container, "content.buy_name", "购买新卡");
150
+ this.buy_new_url = getContainerPropsValue(container,"content.buy_new_url",{value: ""}).value;
143
151
  },
144
152
  toBindCard(){
145
153
  let path = this.getUrlCallback(this.cardBindPath)
@@ -150,6 +158,11 @@
150
158
  toDetail(item) {
151
159
  this.$xdUniHelper.navigateTo({url: `${this.detailUrl}?card_number=${item["card_number"]}`,}, false);
152
160
  },
161
+ toBuyNew() {
162
+ this.$xdUniHelper.navigateTo({
163
+ url: `${this.buy_new_url}`,
164
+ });
165
+ },
153
166
  /**
154
167
  * @description 已绑定卡登录
155
168
  * @param item
@@ -236,6 +249,15 @@
236
249
  text-align: center;
237
250
  font-size: 24rpx;
238
251
  color: #999999;
252
+ display: flex;
253
+ justify-content: center;
254
+ .buy_new {
255
+ display: flex;
256
+ margin-left: 8rpx;
257
+ & > view:first-child {
258
+ margin-right: 8rpx;
259
+ }
260
+ }
239
261
  }
240
262
  .bottom_fix{
241
263
  position: fixed;
@@ -300,6 +300,51 @@ export default {
300
300
  groupKey:'style',
301
301
  hidden: true,
302
302
  },
303
+ {
304
+ label: "是否展示快捷入口",
305
+ ele: "xd-radio",
306
+ valueKey: "showQuickEntry",
307
+ value: data.showQuickEntry || "N",
308
+ list: [
309
+ {label: "不显示", value: "N"},
310
+ {label: "显示", value: "Y"}
311
+ ],
312
+ groupKey:'content',
313
+ },
314
+ data.showQuickEntry==='Y'&&{
315
+ ele: 'title',
316
+ label: '快捷入口功能样式设置',
317
+ size: 'small',
318
+ groupKey:'style',
319
+ },
320
+ data.showQuickEntry==='Y'&&{
321
+ label: '文字颜色:',
322
+ ele: 'xd-color',
323
+ valueKey: 'quickTextColor',
324
+ value: data.quickTextColor || '',
325
+ placeholder: '请选择文字颜色',
326
+ classNmae: 'input80',
327
+ groupKey:'style',
328
+ },
329
+ data.showQuickEntry==='Y'&&{
330
+ label: 'ICON:',
331
+ ele: 'el-input',
332
+ type: 'text',
333
+ groupKey:'style',
334
+ valueKey: 'quickIcon',
335
+ value: data['quickIcon'] || '',
336
+ placeholder: '请输入快捷入口ICON',
337
+ className: 'input80',
338
+ },
339
+ data.showQuickEntry==='Y'&&{
340
+ label: '背景颜色:',
341
+ ele: 'xd-color',
342
+ groupKey:'style',
343
+ valueKey: 'quickBackgroundColor',
344
+ value: data.quickBackgroundColor || '',
345
+ placeholder: '请选择快捷入口背景颜色',
346
+ classNmae: 'input80',
347
+ },
303
348
  {
304
349
  label: '是否有边框:',
305
350
  ele: 'xd-radio',
@@ -353,13 +398,25 @@ export default {
353
398
  ele: 'xd-select-pages-path',
354
399
  valueKey: 'choseCityPath',
355
400
  groupKey:'advanced',
356
- placeholder: '选择城城市选择链接',
401
+ placeholder: '选择城市选择链接',
357
402
  value: data['choseCityPath'] || null,
358
403
  setting: {
359
404
  router: XdBus.getParentApi('getPagesTree'),
360
405
  },
361
406
  inline: false,
362
407
  },
408
+ {
409
+ label: '快捷入口链接:',
410
+ ele: 'xd-select-pages-path',
411
+ valueKey: 'quickEntryPath',
412
+ groupKey:'advanced',
413
+ placeholder: '选择快捷入口链接',
414
+ value: data['quickEntryPath'] || null,
415
+ setting: {
416
+ router: XdBus.getParentApi('getPagesTree'),
417
+ },
418
+ inline: false,
419
+ },
363
420
  {
364
421
  label: '',
365
422
  ele: 'slot',
@@ -83,6 +83,9 @@
83
83
  :style="[searchBtnStyle]"
84
84
  @click="doSearch"
85
85
  >{{searchBtnText || '搜索'}}</view>
86
+ <view v-if="showQuickEntry==='Y'" :style="{backgroundColor:quickBackgroundColor}" class="quick">
87
+ <xd-font-icon size="32" :style="{color:quickTextColor||mainColor}" :icon="quickIcon"></xd-font-icon>
88
+ </view>
86
89
  </view>
87
90
  </view>
88
91
  </view>
@@ -136,7 +139,11 @@
136
139
  searchPagePath: "",
137
140
  placeholder: "请输入关键词",
138
141
  choseCityPath: "", //选择城市i
139
-
142
+ quickEntryPath: "", //快速入口
143
+ quickBackgroundColor: "",
144
+ quickTextColor: "",
145
+ quickIcon: "",
146
+ showQuickEntry: '',
140
147
 
141
148
  //基础
142
149
  textColor: '',
@@ -230,6 +237,12 @@
230
237
  this.bottomBorder = this.getBorderCompatibleOldStyle(bottomBorder, {})
231
238
  this.inputBorder = this.getXdBorder({}, getContainerPropsValue(container, 'content.inputBorder', {}))
232
239
 
240
+ //快捷入口
241
+ this.quickBackgroundColor = getContainerPropsValue(container, 'content.quickBackgroundColor', "#FFEDDB");
242
+ this.quickTextColor = getContainerPropsValue(container, 'content.quickTextColor', "");
243
+ this.quickIcon = getContainerPropsValue(container, 'content.quickIcon', "iconkefu");
244
+ this.showQuickEntry = getContainerPropsValue(container, 'content.showQuickEntry', "N");
245
+
233
246
  let name , logo, platform_logo;
234
247
  if (this.projectAttr['site_name']) name = this.projectAttr['site_name'];
235
248
  if (this['siteInfo'] && this['siteInfo']['mapping'] && this['siteInfo']['mapping']['site_name']) name = this['siteInfo']['mapping']['site_name'];
@@ -318,6 +331,14 @@
318
331
  display: flex;
319
332
  justify-content: space-between;
320
333
  align-items: center;
334
+ .quick {
335
+ display: flex;
336
+ align-items: center;
337
+ justify-content: center;
338
+ padding: 12rpx 24rpx;
339
+ border-radius: 36rpx;
340
+ margin-left: 16rpx;
341
+ }
321
342
 
322
343
  &-back {
323
344
  padding-left: unit(20, rpx);
@@ -0,0 +1,58 @@
1
+ 'use strict';
2
+ /**
3
+ * @description 接口配置,
4
+ * 在设置方法名字当时候,别忘记加上【模块名字】:Notice
5
+ * @type {*[]}
6
+ */
7
+ module.exports = [
8
+ {
9
+ //设置方法名字当别忘记加上【模块名字】:Notice
10
+ mapFnName: 'getNoticeByIdFilmSquate',
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
+ //设置方法名字当别忘记加上【模块名字】:Notice
23
+ mapFnName: 'updateNoticeFilmPaiqiDate',
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
+ //设置方法名字当别忘记加上【模块名字】:Notice
36
+ mapFnName: 'removeNoticeFilmAddress',
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
+ //设置方法名字当别忘记加上【模块名字】:Notice
48
+ mapFnName: 'addNoticeFilmcart',
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
+ ];
@@ -0,0 +1,48 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: (data) => {
9
+ return [
10
+ {
11
+ label: '背景颜色:',
12
+ ele: 'xd-color',
13
+ valueKey: 'bgColor',
14
+ value: data.bgColor || '',
15
+ placeholder: '请输入占位框背景颜色',
16
+ groupKey:'content',
17
+ },
18
+ {
19
+ label: '选中路径:',
20
+ groupKey:'advanced',
21
+ className: 'input100',
22
+ ele: 'xd-select-pages-path',
23
+ valueKey: 'select-pages-path',
24
+ value: data['select-pages-path'] || null,
25
+ setting: {
26
+ router: XdBus.getParentApi('getPagesTree')
27
+ },
28
+ },
29
+ data.bgColor && {
30
+ label: '高度:',
31
+ ele: 'el-input',
32
+ groupKey:'style',
33
+ type: 'number',
34
+ valueKey: 'height',
35
+ value: data.height || 100,
36
+ placeholder: '请输入占位框高度,单位像素,默认:10px',
37
+ className: 'input60',
38
+ },
39
+ {
40
+ label: '', //label
41
+ groupKey:'advanced',
42
+ ele: 'slot', //package 名称
43
+ slot: 'is_reference',
44
+ },
45
+ ].filter(i=>i)
46
+ },
47
+ advanced: [],
48
+ };