jufubao-base 1.0.116-beta1 → 1.0.116-beta11

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 (85) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +1 -1
  3. package/src/components/JfbBaseCardInfo/Attr.js +21 -0
  4. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +40 -4
  5. package/src/components/JfbBaseCardInfoEntry/Attr.js +11 -0
  6. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +33 -4
  7. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +10 -9
  8. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +10 -10
  9. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +6 -1
  10. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +5 -2
  11. package/src/components/JfbBaseConFlashHome/Api.js +60 -0
  12. package/src/components/JfbBaseConFlashHome/Attr.js +129 -0
  13. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHome.vue +387 -0
  14. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeLess.less +80 -0
  15. package/src/components/JfbBaseConFlashHome/JfbBaseConFlashHomeMixin.js +30 -0
  16. package/src/components/JfbBaseConFlashHome/Mock.js +5 -0
  17. package/src/components/JfbBaseConFlashList/Api.js +60 -0
  18. package/src/components/JfbBaseConFlashList/Attr.js +106 -0
  19. package/src/components/JfbBaseConFlashList/JfbBaseConFlashList.vue +110 -0
  20. package/src/components/JfbBaseConFlashList/JfbBaseConFlashListLess.less +80 -0
  21. package/src/components/JfbBaseConFlashList/JfbBaseConFlashListMixin.js +30 -0
  22. package/src/components/JfbBaseConFlashList/Mock.js +5 -0
  23. package/src/components/JfbBaseConList/JfbBaseConList.vue +5 -3
  24. package/src/components/JfbBaseConPhone/Api.js +70 -0
  25. package/src/components/JfbBaseConPhone/Attr.js +10 -0
  26. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +486 -0
  27. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +80 -0
  28. package/src/components/JfbBaseConPhone/JfbBaseConPhoneMixin.js +30 -0
  29. package/src/components/JfbBaseConPhone/Mock.js +26 -0
  30. package/src/components/JfbBaseMySetting/Api.js +43 -0
  31. package/src/components/JfbBaseMySetting/Attr.js +23 -0
  32. package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +202 -0
  33. package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +80 -0
  34. package/src/components/JfbBaseMySetting/JfbBaseMySettingMixin.js +30 -0
  35. package/src/components/JfbBaseMySetting/Mock.js +5 -0
  36. package/src/components/JfbBaseMySetting/XdListItem.vue +136 -0
  37. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  38. package/src/components/JfbBaseSaasBlessDetail/Api.js +59 -0
  39. package/src/components/JfbBaseSaasBlessDetail/Attr.js +24 -0
  40. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +315 -0
  41. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +80 -0
  42. package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +30 -0
  43. package/src/components/JfbBaseSaasBlessDetail/Mock.js +5 -0
  44. package/src/components/JfbBaseSaasBlessDialog/Api.js +25 -0
  45. package/src/components/JfbBaseSaasBlessDialog/Attr.js +50 -0
  46. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +274 -0
  47. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +80 -0
  48. package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +30 -0
  49. package/src/components/JfbBaseSaasBlessDialog/Mock.js +5 -0
  50. package/src/components/JfbBaseSaasBlessReceive/Api.js +25 -0
  51. package/src/components/JfbBaseSaasBlessReceive/Attr.js +24 -0
  52. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +183 -0
  53. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +80 -0
  54. package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +30 -0
  55. package/src/components/JfbBaseSaasBlessReceive/Mock.js +5 -0
  56. package/src/components/JfbBaseSaasHome/Api.js +48 -0
  57. package/src/components/JfbBaseSaasHome/Attr.js +35 -0
  58. package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +356 -0
  59. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +80 -0
  60. package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +30 -0
  61. package/src/components/JfbBaseSaasHome/Mock.js +5 -0
  62. package/src/components/JfbBaseSaasLogin/Api.js +39 -0
  63. package/src/components/JfbBaseSaasLogin/Attr.js +37 -0
  64. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +410 -0
  65. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +80 -0
  66. package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +30 -0
  67. package/src/components/JfbBaseSaasLogin/Mock.js +5 -0
  68. package/src/components/JfbBaseSaasNewsDetail/Api.js +27 -0
  69. package/src/components/JfbBaseSaasNewsDetail/Attr.js +14 -0
  70. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +144 -0
  71. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +80 -0
  72. package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +30 -0
  73. package/src/components/JfbBaseSaasNewsDetail/Mock.js +5 -0
  74. package/src/components/JfbBaseSaasNewsList/Api.js +26 -0
  75. package/src/components/JfbBaseSaasNewsList/Attr.js +24 -0
  76. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +181 -0
  77. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +80 -0
  78. package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +30 -0
  79. package/src/components/JfbBaseSaasNewsList/Mock.js +5 -0
  80. package/src/components/JfbBaseSassPhoneCollect/Api.js +39 -0
  81. package/src/components/JfbBaseSassPhoneCollect/Attr.js +438 -0
  82. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollect.vue +266 -0
  83. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectLess.less +80 -0
  84. package/src/components/JfbBaseSassPhoneCollect/JfbBaseSassPhoneCollectMixin.js +30 -0
  85. package/src/components/JfbBaseSassPhoneCollect/Mock.js +5 -0
@@ -0,0 +1,387 @@
1
+ <template>
2
+ <view
3
+ class="jfb-base-con-flash-home"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx: isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-base-con-flash-home__edit"
10
+ :class="{ editx: isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-base-con-flash-home__edit-icon" @click="delEdit"
14
+ >删除</view
15
+ >
16
+ </view>
17
+ <!-- #endif -->
18
+ <view class="jfb-base-con-flash-home__body">
19
+ <view
20
+ :style="{ flexDirection: position === 1 ? 'row' : 'row-reverse' }"
21
+ class="jfb-base-con-flash-home__body-wrap"
22
+ >
23
+ <view
24
+ :style="{
25
+ backgroundImage: `url(${secondBackground})`,
26
+ backgroundSize: '100% 100%',
27
+ marginRight: position === 1 ? '0' : '20rpx',
28
+ }"
29
+ class="jfb-base-con-flash-home__body-wrap-session"
30
+ >
31
+ <view>
32
+ <view
33
+ :style="{ background: textBgColor, color: textColor }"
34
+ class="jfb-base-con-flash-home__body-wrap-session-info"
35
+ >10:00点场 距结束</view
36
+ >
37
+ <view class="jfb-base-con-flash-home__body-wrap-session-time">
38
+ <text :style="{ color: textColor }">12</text>:
39
+ <text :style="{ color: textColor }">48</text>:
40
+ <text :style="{ color: textColor }">56</text>
41
+ </view>
42
+ </view>
43
+ </view>
44
+ <swiper
45
+ :vertical="productShowType === 'top'"
46
+ :autoplay="productShowType !== 'regular'"
47
+ class="jfb-base-con-flash-home__body-wrap-product"
48
+ :style="{
49
+ marginRight: position === 1 ? '0' : '20rpx',
50
+ }"
51
+ >
52
+ <swiper-item v-for="(item, index) in product_group" :key="index">
53
+ <view class="jfb-base-con-flash-home__body-wrap-product-group">
54
+ <view v-for="(SItem, SIndex) in item" :key="SIndex">
55
+ <view
56
+ class="jfb-base-con-flash-home__body-wrap-product-group-item"
57
+ :style="{
58
+ marginLeft: SIndex === 0&&position === 2 ? '0' : '20rpx',
59
+ }"
60
+ >
61
+ <image :src="SItem.img"></image>
62
+ <view
63
+ class="jfb-base-con-flash-home__body-wrap-product-group-item-name"
64
+ >{{ SItem.name }}</view
65
+ >
66
+ <view class="prod_price" v-if="isPrice === 'Y'">
67
+ <xd-unit
68
+ :price="SItem.sale_price"
69
+ :isOld="false"
70
+ color="#000000"
71
+ :iconSize="0.14"
72
+ :fontSize="20"
73
+ />
74
+ <!-- todo -->
75
+ <view
76
+ v-if="isShowDiscount === 'Y' && checkDiscountPrice(SItem)"
77
+ class="prod_oldPrice"
78
+ >原价:{{ dividePrice(SItem.market_price) }}</view
79
+ >
80
+ </view>
81
+ </view>
82
+ </view>
83
+ </view>
84
+ </swiper-item>
85
+ </swiper>
86
+ </view>
87
+ </view>
88
+ </view>
89
+ </template>
90
+
91
+ <script>
92
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
93
+ import XdUnit from "@/components/XdUnit/XdUnit";
94
+ import { jfbRootExec } from "@/utils/xd.event";
95
+ import JfbBaseConFlashHomeMixin from "./JfbBaseConFlashHomeMixin";
96
+ import { getContainerPropsValue } from "@/utils/xd.base";
97
+ import componentsMixins from "@/mixins/componentsMixins";
98
+ import extsMixins from "@/mixins/extsMixins";
99
+ import getServiceUrl from "@/common/getServiceUrl";
100
+ export default {
101
+ name: "JfbBaseConFlashHome",
102
+ components: {
103
+ XdFontIcon,
104
+ XdUnit,
105
+ },
106
+ mixins: [componentsMixins, extsMixins, JfbBaseConFlashHomeMixin],
107
+ data() {
108
+ return {
109
+ secondBackground: "",
110
+ xnamespace: "",
111
+ position: "",
112
+ isShowDiscount: "",
113
+ number: "",
114
+ productShowType: "",
115
+ textColor: "",
116
+ textBgColor: "",
117
+ isPrice: "Y",
118
+ productList: [
119
+ {
120
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
121
+ name: "方家铺子中宁四星红枸杞250g",
122
+ market_price: 1200,
123
+ sale_price: 1000,
124
+ },
125
+ {
126
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
127
+ name: "方家铺子中宁四星红枸杞250g",
128
+ market_price: 1200,
129
+ sale_price: 1000,
130
+ },
131
+ {
132
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
133
+ name: "方家铺子中宁四星红枸杞250g",
134
+ market_price: 1200,
135
+ sale_price: 1000,
136
+ },
137
+ {
138
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
139
+ name: "方家铺子中宁四星红枸杞250g",
140
+ market_price: 1200,
141
+ sale_price: 1000,
142
+ },
143
+ {
144
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
145
+ name: "方家铺子中宁四星红枸杞250g",
146
+ market_price: 1200,
147
+ sale_price: 1000,
148
+ },
149
+ {
150
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
151
+ name: "方家铺子中宁四星红枸杞250g",
152
+ market_price: 1200,
153
+ sale_price: 1000,
154
+ },
155
+ {
156
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
157
+ name: "方家铺子中宁四星红枸杞250g",
158
+ market_price: 1200,
159
+ sale_price: 1000,
160
+ },
161
+ {
162
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
163
+ name: "方家铺子中宁四星红枸杞250g",
164
+ market_price: 1200,
165
+ sale_price: 1000,
166
+ },
167
+ {
168
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
169
+ name: "方家铺子中宁四星红枸杞250g",
170
+ market_price: 1200,
171
+ sale_price: 1000,
172
+ },
173
+ {
174
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
175
+ name: "方家铺子中宁四星红枸杞250g",
176
+ market_price: 1200,
177
+ sale_price: 1000,
178
+ },
179
+ {
180
+ img: "https://img.js.design/assets/img/6487c11d31971ab22c07c220.png#dfe2fe09e053ed42de4af607382569ac",
181
+ name: "方家铺子中宁四星红枸杞250g",
182
+ market_price: 1200,
183
+ sale_price: 1000,
184
+ },
185
+ ],
186
+ };
187
+ },
188
+ watch: {
189
+ container(value) {
190
+ this.init(value);
191
+ },
192
+ },
193
+ computed: {
194
+ product_group() {
195
+ let groupedProducts = [];
196
+ for (let i = 0; i < this.productList.length; i += 3) {
197
+ let group = this.productList.slice(i, i + 3);
198
+ groupedProducts.push(group);
199
+ }
200
+ return groupedProducts;
201
+ },
202
+ },
203
+ created() {
204
+ this.init(this.container);
205
+
206
+ //todo
207
+ },
208
+ methods: {
209
+ onJfbLoad(options) {
210
+ // jfbRootExec('baiduUserLogin', {
211
+ // vm: this,// data: {
212
+ // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
213
+ // }
214
+ // }).then().catch()
215
+ },
216
+ /**
217
+ * @description 监听事件变化
218
+ * @param container {object} 业务组件对象自己
219
+ */
220
+ init(container) {
221
+ this.xnamespace = getContainerPropsValue(
222
+ container,
223
+ "content.xnamespace",
224
+ this.projectAttr.business_code
225
+ );
226
+ this.position = getContainerPropsValue(container, "content.position", 1);
227
+ this.isShowDiscount = getContainerPropsValue(
228
+ container,
229
+ "content.isShowDiscount",
230
+ "Y"
231
+ );
232
+ this.number = getContainerPropsValue(container, "content.number", 10);
233
+ this.productShowType = getContainerPropsValue(
234
+ container,
235
+ "content.productShowType",
236
+ "regular"
237
+ );
238
+ this.textColor = getContainerPropsValue(
239
+ container,
240
+ "content.textColor",
241
+ this.mainColor
242
+ );
243
+ this.textBgColor = getContainerPropsValue(
244
+ container,
245
+ "content.textBgColor",
246
+ "yellow"
247
+ );
248
+ this.isPrice = getContainerPropsValue(container, "content.isPrice", "Y");
249
+ this.secondBackground = getServiceUrl(
250
+ getContainerPropsValue(container, "content.secondBackground", "none")
251
+ .url
252
+ );
253
+ this.differ = getContainerPropsValue(container, "content.differ", 1);
254
+
255
+ console.log(this.secondBackground, "secondBackground");
256
+ },
257
+ checkDiscountPrice(item) {
258
+ if (this.isShowDiscount === "Y") {
259
+ let price = item.market_price - item.sale_price;
260
+ console.log(
261
+ item.market_price,
262
+ item.sale_price,
263
+ this.$xdUniHelper.divisionFloatNumber(price, 100),
264
+ this.differ,
265
+ this.$xdUniHelper.divisionFloatNumber(price, 100) > this.differ,
266
+ "hhhhhh"
267
+ );
268
+ return this.$xdUniHelper.divisionFloatNumber(price, 100) > this.differ;
269
+ }
270
+ },
271
+ dividePrice(num) {
272
+ return this.$xdUniHelper.divisionFloatNumber(num, 100);
273
+ },
274
+ onJfbScroll(options) {
275
+ console.log("event.onJfbScroll", options);
276
+ },
277
+ onJfbReachBottom(options) {
278
+ console.log("event.onJfbReachBottom", options);
279
+ },
280
+ onJfbShow(options) {
281
+ console.log("event.onJfbShow", options);
282
+ },
283
+ onJfbHide(options) {
284
+ console.log("event.onJfbHide", options);
285
+ },
286
+ onJfbBack(options) {
287
+ console.log("event.onJfbBack", options);
288
+ },
289
+ onJfbUpdate(...data) {
290
+ console.log("event.onJfbUpdate", data);
291
+ },
292
+ onJfbCustomEvent(options) {
293
+ console.log("event.onJfbReachBottom", options);
294
+ },
295
+ },
296
+ };
297
+ </script>
298
+
299
+ <style scoped lang="less">
300
+ @import "./JfbBaseConFlashHomeLess.less";
301
+
302
+ .jfb-base-con-flash-home {
303
+ &__body {
304
+ uni-swiper {
305
+ height: 258rpx !important;
306
+ }
307
+ &-wrap {
308
+ display: flex;
309
+ padding: 20rpx 0 20rpx 20rpx;
310
+ &-session {
311
+ width: 168rpx;
312
+ height: 258rpx;
313
+ border-radius: 8rpx;
314
+ display: flex;
315
+ flex-direction: column-reverse;
316
+ align-items: center;
317
+ &-info {
318
+ border-radius: 28rpx;
319
+ text-align: center;
320
+ padding: 6rpx 0 6rpx 0;
321
+ font-size: 14rpx;
322
+ font-weight: 500;
323
+ width: 148rpx;
324
+ }
325
+ &-time {
326
+ font-size: 24rpx;
327
+ color: #fff;
328
+ display: flex;
329
+ justify-content: space-around;
330
+ margin-bottom: 30rpx;
331
+ margin-top: 16rpx;
332
+
333
+ & > text {
334
+ background: #fff;
335
+ padding: 4rpx;
336
+ border-radius: 4rpx;
337
+ }
338
+ }
339
+ }
340
+ &-product {
341
+ display: flex;
342
+ flex: 1;
343
+ &-group {
344
+ display: flex;
345
+ &-item {
346
+ width: 152rpx;
347
+ height: 240rpx;
348
+ border-radius: 8rpx;
349
+ padding: 0 0 15rpx 6rpx;
350
+ background: rgba(255, 255, 255, 1);
351
+ display: flex;
352
+ flex-direction: column;
353
+ justify-content: flex-start;
354
+ align-items: center;
355
+ margin-left: 20rpx;
356
+ box-shadow: 0px 8rpx 16rpx rgba(0, 0, 0, 0.1);
357
+ image {
358
+ width: 168rpx;
359
+ height: 168rpx;
360
+ }
361
+ &-name {
362
+ font-size: 14rpx;
363
+ color: #333;
364
+ text-align: left;
365
+ vertical-align: top;
366
+ }
367
+ }
368
+ }
369
+ }
370
+ .prod_price {
371
+ display: flex;
372
+ align-items: center;
373
+ margin-top: 18rpx;
374
+ width: 100%;
375
+ justify-content: flex-start;
376
+
377
+ .prod_oldPrice {
378
+ font-size: 14rpx;
379
+ text-decoration: line-through;
380
+ color: #888888;
381
+ margin-left: 10rpx;
382
+ }
383
+ }
384
+ }
385
+ }
386
+ }
387
+ </style>
@@ -0,0 +1,80 @@
1
+ /**
2
+ * @desc 获取绝对路径完整地址
3
+ * @param @path
4
+ **/
5
+ //例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
6
+ @basePath: 'business/';
7
+ @doMain: '//sandbox-img.jufubao.cn/';
8
+
9
+ .getBusinessImageUrl(@path, @size: 'size8') {
10
+ @url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
11
+ background-image: url(@url);
12
+ }
13
+
14
+ //start
15
+ .jfb-base-con-flash-home {
16
+ border: 1px dashed rgba(0, 0, 0, 0);
17
+ box-sizing: border-box;
18
+ min-height: unit(50, rpx);
19
+
20
+ &__body{
21
+ position: relative;
22
+ overflow: hidden;
23
+ z-index: 2
24
+ }
25
+
26
+ &.editx {
27
+ position: relative;
28
+ border: 1px dashed blue;
29
+ box-sizing: border-box;
30
+ z-index: 3
31
+
32
+ }
33
+
34
+ &:hover {
35
+ border: 1px dashed blue;
36
+ }
37
+
38
+ &.noBorder {
39
+ border-color: rgba(0,0,0,0);
40
+ border-width: 0;
41
+ }
42
+
43
+
44
+ &__edit {
45
+ cursor: pointer;
46
+ position: absolute;
47
+ right: unit(0, rpx);
48
+ top: unit(-52, rpx);
49
+ height: unit(50, rpx);
50
+ line-height: unit(50, rpx);
51
+ display: flex;
52
+ justify-content: center;
53
+ align-items: center;
54
+ background: rgba(0, 0, 0, .6);
55
+ border-radius: unit(10, rpx);
56
+ box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
57
+ color: #fff;
58
+ font-size: unit(22, rpx);
59
+
60
+ &-icon{
61
+ padding: 0 unit(20, rpx);
62
+ }
63
+
64
+ &.editx {
65
+ box-sizing: border-box;
66
+
67
+ }
68
+ }
69
+ }
70
+ //end
71
+
72
+
73
+ /**notPreview**/
74
+ .jfb-base-con-flash-home {
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
79
+ }
80
+ /**endNotPreview**/
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+
4
+ //@AttrImport
5
+ import Attr from "./Attr";
6
+ //@EndAttrImport
7
+
8
+
9
+ export default {
10
+ data() {
11
+ return {
12
+ //#ifdef H5
13
+
14
+ //@AttrData
15
+ Attr:{}, //对外开发编辑属性
16
+ //@EndAttrData
17
+
18
+ // #endif
19
+ cssRoot: 'jfb-base-con-flash-home'
20
+ }
21
+ },
22
+ created() {
23
+
24
+ //@AttrDataCreated
25
+ this.Attr = this.$xdUniHelper.customClone(Attr);
26
+ //@EndAttrDataCreated
27
+
28
+
29
+ },
30
+ }
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ aaaa: {}
5
+ }
@@ -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,106 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: (data) => {
9
+ return [
10
+ {
11
+ label: '背景颜色:', //label
12
+ ele: 'xd-color', //package 名称
13
+ valueKey: 'bgcolor', //form[valueKey]
14
+ value: data.bgcolor || '', //v-model
15
+ placeholder: '请输入占位框背景颜色',
16
+ classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
17
+ rules: [
18
+ {
19
+ required: true,
20
+ message: '请输入占位框背景颜色',
21
+ trigger: 'blur'
22
+ },
23
+ ]
24
+ },
25
+ {
26
+ label: '选中路径:', //label
27
+ ele: 'xd-select-pages-path', //package 名称
28
+ valueKey: 'select-pages-path', //form[valueKey]
29
+ value: data['select-pages-path'] || {},
30
+ setting: {
31
+ router: XdBus.getParentApi('getPagesTree')
32
+ },
33
+ inline: false,
34
+ },
35
+ data.bgcolor && {
36
+ label: '高度:', //label
37
+ ele: 'el-input', //package 名称
38
+ type: 'number',
39
+ valueKey: 'height', //form[valueKey]
40
+ value: data.height || 100, //v-model
41
+ placeholder: '请输入占位框高度,单位像素,默认:10px',
42
+ className: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
43
+ rules: [
44
+ {
45
+ required: true,
46
+ message: '请输入占位框高度',
47
+ trigger: 'blur'
48
+ },
49
+ ]
50
+ },
51
+ {
52
+ label: '', //label
53
+ ele: 'slot', //package 名称
54
+ slot: 'is_reference',
55
+ },
56
+ ].filter(i=>i)
57
+ },
58
+ advanced: [
59
+ {
60
+ label: '背景颜色:', //label
61
+ ele: 'xd-color', //package 名称
62
+ valueKey: 'bgcolor', //form[valueKey]
63
+ value: '', //v-model
64
+ placeholder: '请输入占位框背景颜色',
65
+ classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
66
+ rules: [
67
+ {
68
+ required: true,
69
+ message: '请输入占位框背景颜色',
70
+ trigger: 'blur'
71
+ },
72
+ ]
73
+ },
74
+ {
75
+ label: '选中路径:', //label
76
+ ele: 'xd-select-pages-path', //package 名称
77
+ valueKey: 'select-pages-path', //form[valueKey]
78
+ value: null,
79
+ setting: {
80
+ router: XdBus.getParentApi('getPagesTree')
81
+ },
82
+ inline: false,
83
+ },
84
+ {
85
+ label: '高度:', //label
86
+ ele: 'el-input', //package 名称
87
+ type: 'number',
88
+ valueKey: 'height', //form[valueKey]
89
+ value: null, //v-model
90
+ placeholder: '请输入占位框高度,单位像素,默认:10px',
91
+ classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
92
+ rules: [
93
+ {
94
+ required: true,
95
+ message: '请输入占位框高度',
96
+ trigger: 'blur'
97
+ },
98
+ ]
99
+ },
100
+ {
101
+ label: '', //label
102
+ ele: 'slot', //package 名称
103
+ slot: 'is_reference',
104
+ },
105
+ ],
106
+ };