jufubao-mall 2.0.33 → 2.0.35-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 (36) hide show
  1. package/package.json +1 -1
  2. package/src/components/CusCouponChose/CusCouponChose.vue +10 -13
  3. package/src/components/CusEnter/CusEnter.vue +9 -1
  4. package/src/components/CusListItem/CusListItem.vue +141 -0
  5. package/src/components/CusPoster/CusPoster.vue +17 -62
  6. package/src/components/CusPrice/CusPrice.vue +391 -0
  7. package/src/components/CusProduct/CusProduct.vue +576 -184
  8. package/src/components/CusShops/CusShops.vue +409 -209
  9. package/src/components/CusTab/CusTab.vue +159 -22
  10. package/src/components/CusVipList/CusVipList.vue +169 -0
  11. package/src/components/JfbMallConfirm/Api.js +1 -1
  12. package/src/components/JfbMallConfirm/Attr.js +167 -453
  13. package/src/components/JfbMallConfirm/JfbMallConfirm.vue +362 -162
  14. package/src/components/JfbMallConfirm/Mock.js +61 -43
  15. package/src/components/JfbMallConfirm/XdAddrDefault.vue +26 -13
  16. package/src/components/JfbMallConfirm/XdAddrOld.vue +9 -7
  17. package/src/components/JfbMallConfirm/XdListItem.vue +10 -2
  18. package/src/components/JfbMallConfirm/cusAttr/advanced.js +91 -0
  19. package/src/components/JfbMallConfirm/cusAttr/content.js +355 -0
  20. package/src/components/JfbMallConfirm/cusAttr/style.js +628 -0
  21. package/src/components/JfbMallConfirm/shopList.vue +84 -42
  22. package/src/components/JfbMallNetworkMedia/Api.js +94 -0
  23. package/src/components/JfbMallNetworkMedia/Attr.js +20 -0
  24. package/src/components/JfbMallNetworkMedia/JfbMallNetworkMedia.vue +1167 -0
  25. package/src/components/JfbMallNetworkMedia/JfbMallNetworkMediaLess.less +80 -0
  26. package/src/components/JfbMallNetworkMedia/JfbMallNetworkMediaMixin.js +30 -0
  27. package/src/components/JfbMallNetworkMedia/Mock.js +372 -0
  28. package/src/components/JfbMallNetworkMedia/cusAttr/advanced.js +60 -0
  29. package/src/components/JfbMallNetworkMedia/cusAttr/content.js +230 -0
  30. package/src/components/JfbMallNetworkMedia/cusAttr/font.js +123 -0
  31. package/src/components/JfbMallNetworkMedia/cusAttr/icon.js +257 -0
  32. package/src/components/JfbMallNetworkMedia/cusAttr/style.js +12 -0
  33. package/src/components/JfbMallProductInfo/cusAttr/content.js +2 -0
  34. package/src/components/JfbMallProductList/JfbMallProductList.vue +7 -1
  35. package/src/components/JfbMallProductList/XdCateV1.vue +0 -1
  36. package/src/components/SkeProduct/SkeProduct.vue +88 -3
@@ -0,0 +1,355 @@
1
+ 'use strict';
2
+ import {
3
+ dataVal ,
4
+ statusShow,
5
+ statusDataVal,
6
+ customVal,
7
+ cusDisabled ,
8
+ getCustomAttr,
9
+ } from "@/utils/AttrTools";
10
+
11
+ export default function (data, gValue,gColor,oldData){
12
+ console.log("content data", data);
13
+ if(data.showTopLine === 'Y'){
14
+ data.showTopLine = 'T';
15
+ }
16
+
17
+ return [
18
+ {
19
+ ele: 'title',
20
+ label: '基础',
21
+ size: 'small',
22
+ groupKey:'content',
23
+ },
24
+ {
25
+ label: "业务线",
26
+ ele: "xd-choose-namespace",
27
+ valueKey: "xnamespace",
28
+ value: dataVal({data, key:'xnamespace', dValue:null, gValue}),
29
+ className: 'input100',
30
+ placeholder: '请选择业务线',
31
+ labelInline:true,
32
+ groupKey:'content',
33
+ notice:'空继承上级业务线',
34
+ inline: false,
35
+ handleCustom: (cb) => {
36
+ XdBus.getParentApi('getOptionsNamespaces')()
37
+ .then(res => {
38
+ cb(res.list)
39
+ })
40
+ .catch();
41
+ }
42
+ },
43
+ {
44
+ label: "使用模式",
45
+ ele: "xd-radio",
46
+ valueKey: "useMode",
47
+ value: dataVal({data, key:'useMode', dValue: "market", gValue}),
48
+ groupKey: 'content',
49
+ labelInline:true,
50
+ list: [
51
+ {label: "商城模式", value: "market"},
52
+ {label: "礼包模式", value: "gift"},
53
+ ]
54
+ },
55
+ {
56
+ label: "引导支付",
57
+ ele: "xd-radio",
58
+ valueKey: "skipToPay",
59
+ value: dataVal({data, key:'skipToPay', dValue: 'Y', gValue}),
60
+ groupKey: "content",
61
+ labelInline: true,
62
+ className: 'input100',
63
+ notice:'<div style="margin-right: 10px;">无使用其他支付时弹框引导使用票券、钱包、优惠券</div>',
64
+ inline: false,
65
+ list: [
66
+ {label: '是', value: 'Y'},
67
+ {label: '否', value: 'N'},
68
+ ]
69
+ },
70
+ //2.0新属性
71
+ {
72
+ label: "票券定位",
73
+ ele: "xd-radio",
74
+ valueKey: "ticketPositionStatus",
75
+ value: dataVal({data, key: "ticketPositionStatus", dValue: "N", gValue}),
76
+ groupKey: "content",
77
+ labelInline: true,
78
+ inline: false,
79
+ notice: "开启后会提示票券选择,点击自动滚动到选择支付位置",
80
+ list: [
81
+ { label: "显示", value: "Y" },
82
+ { label: "隐藏", value: "N" },
83
+ ]
84
+ },
85
+ {
86
+ label: "使用新票券",
87
+ ele: "xd-radio",
88
+ valueKey: "bindCard",
89
+ value: dataVal({data, key:'bindCard', dValue: "1", gValue}),
90
+ groupKey:'content',
91
+ labelInline: true,
92
+ inline: false,
93
+ notice: `<div style="margin-right: 50px;">票劵选择时是否隐藏使用新票券入口</div>`,
94
+ list: [
95
+ { label: "显示", value: "1" },
96
+ { label: "隐藏", value: "2" },
97
+ ]
98
+ },
99
+ {
100
+ label: "补差提示",
101
+ ele: 'xd-radio',
102
+ valueKey: "skipTip",
103
+ value: dataVal({data, key:'skipTip', dValue: "N", gValue}),
104
+ groupKey:'content',
105
+ labelInline: true,
106
+ inline: false,
107
+ notice: "无其它支付方式时,是否弹框提示全部补差",
108
+ list: [
109
+ {label: '跳过', value: 'Y'},
110
+ {label: '不跳过', value: 'N'},
111
+ ],
112
+ },
113
+ {
114
+ label: "默认选中",
115
+ ele: 'xd-check',
116
+ valueKey: "checkPayMethod",
117
+ value: data.checkPayMethod,
118
+ groupKey: "content",
119
+ labelInline: true,
120
+ inline: false,
121
+ notice: "钱包与积分是否默认选中",
122
+ list: [
123
+ { label: "钱包", value: "wallet" },
124
+ { label: "积分", value: "score"}
125
+ ]
126
+ },
127
+ {
128
+ ele: 'title',
129
+ label: '组件样式',
130
+ size: 'small',
131
+ groupKey:'content',
132
+ },
133
+ {
134
+ label: "地址样式",
135
+ ele: "xd-style-image",
136
+ groupKey: 'content',
137
+ valueKey: "address_layout",
138
+ value: dataVal({data, key:'address_layout', dValue: 'old', gValue}),
139
+ labelInline:true,
140
+ className: 'input100',
141
+ isTplRef: true, //内容引用模版被禁用
142
+ handleCustom(cusRes) {
143
+ XdBus.getParentApi('getCompStylesOptions')({
144
+ layout_ids: 'gfYd87bcXMLNjtRj69dbR',
145
+ key: Date.now()
146
+ })
147
+ .then(res => {
148
+ console.log("gfYd87bcXMLNjtRj69dbR", res)
149
+ cusRes.data.cb(res)
150
+ })
151
+ .catch(error => {
152
+ console.error(error);
153
+ });
154
+ },
155
+ },
156
+ {ele: 'group_start'},
157
+ {
158
+ label: "横线",
159
+ ele: "xd-radio",
160
+ valueKey: "showTopLine",
161
+ value: dataVal({data, key:'showTopLine', dValue: "B", gValue}),
162
+ groupKey:'content',
163
+ labelInline: true,
164
+ isTplRef: true, //内容引用模版被禁用
165
+ list: [
166
+ {label: "隐藏", value: "N"},
167
+ {label: "顶部显示", value: "T"},
168
+ {label: "底部显示", value: "B"},
169
+ ]
170
+ },
171
+ {
172
+ label: "风格",
173
+ ele: "xd-style-image",
174
+ groupKey: 'content',
175
+ valueKey: "addr_style",
176
+ cusStyle: {marginBottom: '5px'},
177
+ value: customVal({
178
+ data,
179
+ key: 'addr_style',
180
+ gValue,
181
+ fields: { addrLrPaddingStatus: ['addrLrPadding'] },
182
+ sValue: `{"margin":{"bottom":0,"top":16,"left":16,"right":16}}`,
183
+ }),
184
+ labelInline:true,
185
+ isTplRef: true, //内容引用模版被禁用
186
+ className: 'input100',
187
+ handleCustom(cusRes) {
188
+ XdBus.getParentApi('getCompStylesOptions')({
189
+ layout_ids: '5jfogUd77vQ7EWGKujrnC',
190
+ key: Date.now()
191
+ })
192
+ .then(res => {
193
+ cusRes.data.cb(res)
194
+ })
195
+ .catch(error => {
196
+ console.error(error);
197
+ });
198
+ },
199
+ },
200
+ {ele: "group_end"},
201
+ {
202
+ label: "内容样式",
203
+ ele: "xd-style-image",
204
+ groupKey: 'content',
205
+ valueKey: "cont_style",
206
+ cusStyle: {marginBottom: '5px'},
207
+ value: customVal({
208
+ data,
209
+ key: 'cont_style',
210
+ gValue,
211
+ fields: { sectionHeightStatus: ['sectionHeight'], lrPaddingStatus: ['lrPadding'] },
212
+ sValue: `{"spacing":16,"margin":{"bottom":0,"top":0,"left":16,"right":16},"backgroundColor": "rgba(245, 245, 245, 1)"}`,
213
+ }),
214
+ labelInline:true,
215
+ isTplRef: true, //内容引用模版被禁用
216
+ className: 'input100',
217
+ handleCustom(cusRes) {
218
+ XdBus.getParentApi('getCompStylesOptions')({
219
+ layout_ids: 'nEdG7N3K7pwb4SgrDuYLP',
220
+ key: Date.now()
221
+ })
222
+ .then(res => {
223
+ cusRes.data.cb(res)
224
+ })
225
+ .catch(error => {
226
+ console.error(error);
227
+ });
228
+ },
229
+ },
230
+ {
231
+ label: "优惠券风格",
232
+ ele: "xd-style-image",
233
+ groupKey: "content",
234
+ valueKey: "coupon_layout",
235
+ value: dataVal({data, key:'coupon_layout', dValue: '1', gValue}),
236
+ labelInline:true,
237
+ className: 'input100',
238
+ isTplRef: true, //内容引用模版被禁用
239
+ handleCustom(cusRes) {
240
+ XdBus.getParentApi('getCompStylesOptions')({
241
+ layout_ids: 'xt8e4k6jYdxBpzwnpMvbv',
242
+ key: Date.now()
243
+ })
244
+ .then(res => {
245
+ cusRes.data.cb(res)
246
+ })
247
+ .catch(error => {
248
+ console.error(error);
249
+ });
250
+ },
251
+ },
252
+ {
253
+ ele: 'title',
254
+ label: '展示内容',
255
+ size: 'small',
256
+ groupKey:'content',
257
+ },
258
+ {
259
+ label: '活动价提示',
260
+ ele: 'xd-cus-switch',
261
+ valueKey: 'showActivityPrice',
262
+ value: dataVal({data, key:'showActivityPrice', dValue: 'N', gValue}),
263
+ className: 'input100',
264
+ groupKey:'content',
265
+ labelInline:true,
266
+ cusStyle:{marginBottom: '10px'},
267
+ setting: {
268
+ tips:['显示','不显示'],
269
+ isBackType: 'string'
270
+ },
271
+ },
272
+ {
273
+ ele:'xd-line',
274
+ groupKey:'content'
275
+ },
276
+ {
277
+ label: '订购人信息',
278
+ ele: 'xd-cus-switch',
279
+ valueKey: 'showBuyer',
280
+ value: dataVal({data, key:'showBuyer', dValue: 'N', gValue}),
281
+ className: 'input100',
282
+ groupKey:'content',
283
+ labelInline:true,
284
+ cusStyle:{marginBottom: '10px'},
285
+ setting: {
286
+ tips:['显示','不显示'],
287
+ isBackType: 'string'
288
+ },
289
+ },
290
+ {
291
+ ele:'xd-line',
292
+ groupKey:'content'
293
+ },
294
+ {
295
+ label: '订单备注',
296
+ ele: 'xd-cus-switch',
297
+ valueKey: 'showOrderComment',
298
+ value: dataVal({data, key:'showOrderComment', dValue: 'Y', gValue}),
299
+ className: 'input100',
300
+ groupKey:'content',
301
+ labelInline:true,
302
+ cusStyle:{marginBottom: '10px'},
303
+ setting: {
304
+ tips:['显示','不显示'],
305
+ isBackType: 'string'
306
+ },
307
+ },
308
+ {
309
+ ele:'xd-line',
310
+ groupKey:'content'
311
+ },
312
+ data.useMode === 'gift' && {
313
+ label: "价格",
314
+ ele: "xd-cus-switch",
315
+ valueKey: "showPrice",
316
+ value: dataVal({data, key:'showPrice', dValue: 'N', gValue}),
317
+ className: 'input100',
318
+ groupKey:'content',
319
+ labelInline:true,
320
+ setting: {
321
+ tips:['显示','不显示'],
322
+ isBackType: 'string'
323
+ },
324
+ },
325
+ {
326
+ label: '快递提示',
327
+ ele: 'xd-cus-switch',
328
+ valueKey: 'showLogisticsTip',
329
+ value: dataVal({data, key:'showLogisticsTip', dValue: 'Y', gValue}),
330
+ className: 'input100',
331
+ groupKey:'content',
332
+ labelInline:true,
333
+ inline: false,
334
+ cusStyle:{marginBottom: '10px'},
335
+ setting: {
336
+ tips:['显示','不显示'],
337
+ isBackType: 'string'
338
+ },
339
+ notice:'仅针对配送方式为快递的商品展示',
340
+ },
341
+ {ele: 'group_start'},
342
+ {
343
+ label: "",
344
+ ele: "el-input",
345
+ valueKey: "logisticsTipText",
346
+ value: dataVal({data, key:'logisticsTipText', dValue: '', gValue}),
347
+ hidden: data.showLogisticsTip === 'N',
348
+ labelInline: true,
349
+ className: 'input100',
350
+ placeholder: '订单生成后72小时发货,如遇节假日发货顺延',
351
+ groupKey:'content',
352
+ },
353
+ {ele: 'group_end'},
354
+ ].filter(i=>i)
355
+ }