jufubao-base 1.0.118 → 1.0.119-beta2

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 (74) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseCard/Attr.js +380 -287
  3. package/src/components/JfbBaseCard/JfbBaseCard.vue +51 -2
  4. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +0 -4
  5. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +6 -1
  6. package/src/components/JfbBaseConFlashHome/Api.js +60 -0
  7. package/src/components/JfbBaseConFlashHome/Attr.js +129 -0
  8. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHome.vue +388 -0
  9. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeLess.less +80 -0
  10. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeMixin.js +30 -0
  11. package/src/components/JfbBaseConFlashHome/Mock.js +5 -0
  12. package/src/components/JfbBaseConFlashList/Api.js +60 -0
  13. package/src/components/JfbBaseConFlashList/Attr.js +117 -0
  14. package/src/components/JfbBaseConFlashList/JfbBaseConFlashList.vue +656 -0
  15. package/src/components/JfbBaseConFlashList/JfbBaseConFlashListLess.less +80 -0
  16. package/src/components/JfbBaseConFlashList/JfbBaseConFlashListMixin.js +30 -0
  17. package/src/components/JfbBaseConFlashList/Mock.js +5 -0
  18. package/src/components/JfbBaseConList/JfbBaseConList.vue +4 -2
  19. package/src/components/JfbBaseConPhone/Api.js +70 -0
  20. package/src/components/JfbBaseConPhone/Attr.js +10 -0
  21. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +486 -0
  22. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +80 -0
  23. package/src/components/JfbBaseConPhone/JfbBaseConPhoneMixin.js +30 -0
  24. package/src/components/JfbBaseConPhone/Mock.js +26 -0
  25. package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +2 -2
  26. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  27. package/src/components/JfbBaseSaasBlessDetail/Api.js +59 -0
  28. package/src/components/JfbBaseSaasBlessDetail/Attr.js +24 -0
  29. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +315 -0
  30. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +80 -0
  31. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +30 -0
  32. package/src/components/JfbBaseSaasBlessDetail/Mock.js +5 -0
  33. package/src/components/JfbBaseSaasBlessDialog/Api.js +25 -0
  34. package/src/components/JfbBaseSaasBlessDialog/Attr.js +50 -0
  35. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +274 -0
  36. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +80 -0
  37. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +30 -0
  38. package/src/components/JfbBaseSaasBlessDialog/Mock.js +5 -0
  39. package/src/components/JfbBaseSaasBlessReceive/Api.js +25 -0
  40. package/src/components/JfbBaseSaasBlessReceive/Attr.js +24 -0
  41. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +183 -0
  42. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +80 -0
  43. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +30 -0
  44. package/src/components/JfbBaseSaasBlessReceive/Mock.js +5 -0
  45. package/src/components/JfbBaseSaasHome/Api.js +48 -0
  46. package/src/components/JfbBaseSaasHome/Attr.js +35 -0
  47. package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +356 -0
  48. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +80 -0
  49. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +30 -0
  50. package/src/components/JfbBaseSaasHome/Mock.js +5 -0
  51. package/src/components/JfbBaseSaasLogin/Api.js +39 -0
  52. package/src/components/JfbBaseSaasLogin/Attr.js +37 -0
  53. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +410 -0
  54. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +80 -0
  55. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +30 -0
  56. package/src/components/JfbBaseSaasLogin/Mock.js +5 -0
  57. package/src/components/JfbBaseSaasNewsDetail/Api.js +27 -0
  58. package/src/components/JfbBaseSaasNewsDetail/Attr.js +14 -0
  59. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +144 -0
  60. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +80 -0
  61. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +30 -0
  62. package/src/components/JfbBaseSaasNewsDetail/Mock.js +5 -0
  63. package/src/components/JfbBaseSaasNewsList/Api.js +26 -0
  64. package/src/components/JfbBaseSaasNewsList/Attr.js +24 -0
  65. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +181 -0
  66. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +80 -0
  67. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +30 -0
  68. package/src/components/JfbBaseSaasNewsList/Mock.js +5 -0
  69. package/src/components/JfbBaseSassPhoneCollect/Api.js +39 -0
  70. package/src/components/JfbBaseSassPhoneCollect/Attr.js +438 -0
  71. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +266 -0
  72. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +80 -0
  73. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +30 -0
  74. package/src/components/JfbBaseSassPhoneCollect/Mock.js +5 -0
@@ -145,7 +145,10 @@
145
145
  :color="mainColor"
146
146
  icon="iconyouhuiquan1-011"
147
147
  ></xd-font-icon>
148
- <view>{{ tabIndex === 1 ? login_name : "转换" }}</view>
148
+ <view class="login_style" :style="{
149
+ backgroundColor: '#FFFFFF',
150
+ ...loginStyle
151
+ }">{{ tabIndex === 1 ? login_name : "转换" }}</view>
149
152
  </view>
150
153
  <view class="jfb-base-card__body-card-item-right">
151
154
  <view class="jfb-base-card__body-card-item-right-top">
@@ -179,7 +182,10 @@
179
182
  </view>
180
183
  <view
181
184
  @click.stop="toDetail(item)"
182
- :style="{ background: mainColor }"
185
+ :style="{
186
+ backgroundColor: mainColor,
187
+ ...lookStyle
188
+ }"
183
189
  >查看</view
184
190
  >
185
191
  </view>
@@ -194,6 +200,8 @@
194
200
  :key="index"
195
201
  :cardInfo="item"
196
202
  :tabIndex="tabIndex"
203
+ :loginStyle="loginStyle"
204
+ :lookStyle="lookStyle"
197
205
  @toDetail="toDetail(item)"
198
206
  @bindLogin="handleBindLogin(item)">
199
207
  </xd-card-v2>
@@ -254,6 +262,22 @@ export default {
254
262
  jwxSDK: (state) => state.jwxSDK,
255
263
  jfbAuthorize: (state) => state.jfbAuthorize,
256
264
  }),
265
+ loginStyle(){
266
+ let style = {};
267
+ if(this.login_text_size) style['fontSize'] = this.login_text_size + 'rpx';
268
+ if(this.login_text_color) style['color'] = this.login_text_color;
269
+ if(this.login_text_bg_color) style['backgroundColor'] = this.login_text_bg_color;
270
+ if(this.login_text_radius) style['borderRadius'] = this.login_text_radius + 'rpx'
271
+ return style;
272
+ },
273
+ lookStyle(){
274
+ let style = {};
275
+ if(this.look_text_size) style['fontSize'] = this.look_text_size + 'rpx';
276
+ if(this.look_text_color) style['color'] = this.look_text_color;
277
+ if(this.look_text_bg_color) style['backgroundColor'] = this.look_text_bg_color;
278
+ if(this.look_text_radius) style['borderRadius'] = this.look_text_radius + 'rpx'
279
+ return style;
280
+ }
257
281
  },
258
282
  watch: {
259
283
  tabIndex(newVal, oldVal) {
@@ -297,6 +321,16 @@ export default {
297
321
  allEntryPath: "", //综合福利入口页
298
322
  disabledUrl: "",
299
323
  cardLayout: "1", //票券布局
324
+
325
+ //样式
326
+ login_text_size: "",
327
+ login_text_color: "",
328
+ login_text_bg_color: "",
329
+ login_text_radius: "",
330
+ look_text_size: "",
331
+ look_text_color: "",
332
+ look_text_bg_color: "",
333
+ look_text_radius: "",
300
334
 
301
335
  showDisabled: 'Y',
302
336
 
@@ -342,6 +376,16 @@ export default {
342
376
  this.confirmUrl = getContainerPropsValue(container,"content.confirm_url",{value: ""}).value;
343
377
  this.allEntryPath = getContainerPropsValue(container,"content.allEntryPath",{value: ""}).value;
344
378
  this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
379
+ //样式
380
+ this.login_text_size = getContainerPropsValue(container, 'content.login_text_size', 24);
381
+ this.login_text_color = getContainerPropsValue(container, 'content.login_text_color', '');
382
+ this.login_text_bg_color = getContainerPropsValue(container, 'content.login_text_bg_color', '');
383
+ this.login_text_radius = getContainerPropsValue(container, 'content.login_text_radius', '');
384
+
385
+ this.look_text_size = getContainerPropsValue(container, 'content.look_text_size', 24);
386
+ this.look_text_color = getContainerPropsValue(container, 'content.look_text_color', '');
387
+ this.look_text_bg_color = getContainerPropsValue(container, 'content.look_text_bg_color', '');
388
+ this.look_text_radius = getContainerPropsValue(container, 'content.look_text_radius', '');
345
389
  },
346
390
 
347
391
  handleToLink(path) {
@@ -701,6 +745,11 @@ export default {
701
745
  align-items: center;
702
746
  justify-content: center;
703
747
  font-size: unit(24, rpx);
748
+ .login_style{
749
+ min-width: 80rpx;
750
+ padding: 4rpx 16rpx;
751
+ text-align: center;
752
+ }
704
753
  }
705
754
 
706
755
  &-right {
@@ -43,10 +43,6 @@
43
43
  </view> -->
44
44
  <view class="qrcode_card">
45
45
  <view class="jfb-base-card-detail-entry__body-qrcode">
46
- <view class="qrcode_card-title">
47
- <xd-font-icon style="margin-right: 24rpx;" icon="iconsaoma-02" size="32"></xd-font-icon>
48
- 向商家付款
49
- </view>
50
46
  <view class="barcode_wrap">
51
47
  <view>
52
48
  <image mode="aspectFit" :src="info.barcode"></image>
@@ -321,9 +321,14 @@ export default {
321
321
  otherParams = this.$xdUniHelper.jsonToParams(this.dispatchData);
322
322
  }
323
323
  } catch (error) {}
324
+ let curCoup = this.list[this.currentIndex];
325
+ let linkUrl = this.list_url;
326
+ if(curCoup.show_url){
327
+ linkUrl = curCoup.show_url
328
+ }
324
329
 
325
330
  this.$xdUniHelper.navigateTo({
326
- url: `${this.list_url}?activity_id=${this.activity_id}&distribution_method=${this.distribution_method}&${otherParams}`,
331
+ url: `${linkUrl}?activity_id=${this.activity_id}&distribution_method=${this.distribution_method}&${otherParams}`,
327
332
  });
328
333
  },
329
334
  handleClose() {
@@ -0,0 +1,60 @@
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
+ ];
@@ -0,0 +1,129 @@
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
+ };