jufubao-food 1.0.12-beta1 → 1.0.12-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.
- package/package.json +1 -1
- package/src/components/JfbFoodConfirmV2/Api.js +96 -0
- package/src/components/JfbFoodConfirmV2/Attr.js +20 -0
- package/src/components/JfbFoodConfirmV2/JfbFoodConfirmV2.vue +789 -0
- package/src/components/JfbFoodConfirmV2/JfbFoodConfirmV2Less.less +80 -0
- package/src/components/JfbFoodConfirmV2/JfbFoodConfirmV2Mixin.js +30 -0
- package/src/components/JfbFoodConfirmV2/Mock.js +110 -0
- package/src/components/JfbFoodConfirmV2/cusAttr/advanced.js +64 -0
- package/src/components/JfbFoodConfirmV2/cusAttr/content.js +199 -0
- package/src/components/JfbFoodConfirmV2/cusAttr/style.js +562 -0
- package/src/components/JfbFoodConfirmV2/orderMixin.js +223 -0
- package/src/components/JfbFoodProductInfo/Api.js +58 -0
- package/src/components/JfbFoodProductInfo/Attr.js +14 -0
- package/src/components/JfbFoodProductInfo/JfbFoodProductInfo.vue +248 -0
- package/src/components/JfbFoodProductInfo/JfbFoodProductInfoLess.less +80 -0
- package/src/components/JfbFoodProductInfo/JfbFoodProductInfoMixin.js +30 -0
- package/src/components/JfbFoodProductInfo/Mock.js +13 -0
- package/src/components/JfbFoodProductInfo/XdSku.vue +397 -0
- package/src/components/JfbFoodProductList/Api.js +58 -0
- package/src/components/JfbFoodProductList/Attr.js +48 -0
- package/src/components/JfbFoodProductList/JfbFoodProductList.vue +180 -0
- package/src/components/JfbFoodProductList/JfbFoodProductListLess.less +80 -0
- package/src/components/JfbFoodProductList/JfbFoodProductListMixin.js +30 -0
- package/src/components/JfbFoodProductList/Mock.js +13 -0
package/package.json
CHANGED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:Confirm
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
mapFnName: "getFoodCartConfirm",
|
|
10
|
+
title: "确认订单产品列表",
|
|
11
|
+
path: "/food/v1/order/confirm",
|
|
12
|
+
isRule: false,
|
|
13
|
+
data: {
|
|
14
|
+
namespace: ['namespace', 'String', true],
|
|
15
|
+
cart_order_id: ['cart_order_id', 'String', true],
|
|
16
|
+
address_nnid: ['收货地址', 'String', true],
|
|
17
|
+
delivery_method: ['投递方式', 'String', false],
|
|
18
|
+
blessings: ['祝福语', 'String', false],
|
|
19
|
+
subscribeTimeInfo: ['配送时间', 'String', false]
|
|
20
|
+
},
|
|
21
|
+
isConsole: true,
|
|
22
|
+
disabled: true
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
mapFnName: 'getFoodCardList',
|
|
26
|
+
title: '展示可选卡列表',
|
|
27
|
+
path: '/mall/v1/order/list-binded-cards',
|
|
28
|
+
isRule: false,
|
|
29
|
+
params: {},
|
|
30
|
+
isConsole: true,
|
|
31
|
+
disabled: true,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
mapFnName: 'foodSelectCard',
|
|
35
|
+
title: '选择卡',
|
|
36
|
+
path: '/mall/v1/order/use-binded-card',
|
|
37
|
+
isRule: false,
|
|
38
|
+
data: {
|
|
39
|
+
namespace: ['namespace', 'String', true],
|
|
40
|
+
selected_card_list_json: ['被操作的卡券的卡号', 'String', '必选'],
|
|
41
|
+
selected_wallet_list_json: ['钱包', 'String', '必选'],
|
|
42
|
+
card_number: ['选中的卡券编号', 'String', '必选'],
|
|
43
|
+
total_price: ['总金额', 'Number', '必选'],
|
|
44
|
+
cart_order_id: ['临时订单号', 'Number', '必选'],
|
|
45
|
+
select_content: ['次卡是否多扣,1 还没有选择 2 多扣一次 3 不多扣', 'Number', '必选']
|
|
46
|
+
},
|
|
47
|
+
isConsole: true,
|
|
48
|
+
disabled: true,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
mapFnName: 'addFoodCard',
|
|
52
|
+
title: '添加卡',
|
|
53
|
+
path: '/mall/v1/order/use-new-card',
|
|
54
|
+
isRule: false,
|
|
55
|
+
data: {
|
|
56
|
+
namespace: ['namespace', 'String', true],
|
|
57
|
+
selected_card_list_json: ['被操作的卡券的卡号', 'String', '必选'],
|
|
58
|
+
card_number: ['卡编号', 'String', '必选'],
|
|
59
|
+
card_password: ['卡密码', 'String', '必选'],
|
|
60
|
+
card_qrcode: ['卡二维码', 'String', '必选'],
|
|
61
|
+
total_price: ['总金额', 'Number', '必选'],
|
|
62
|
+
cart_order_id: ['临时订单号', 'String', '必选'],
|
|
63
|
+
valid_token: ['验证码token', 'String', '必选'],
|
|
64
|
+
valid_code: ['验证码正文', 'String', '必选'],
|
|
65
|
+
},
|
|
66
|
+
isConsole: true,
|
|
67
|
+
disabled: true,
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
{
|
|
71
|
+
mapFnName: "getUserWallet",
|
|
72
|
+
title: "订单支付-可用钱包列表",
|
|
73
|
+
path: "/pay/v1/wallet/list-user-available-wallet",
|
|
74
|
+
isRule: false,
|
|
75
|
+
params: {
|
|
76
|
+
support_method: ['元宝:wallet 积分: score', 'string', true],
|
|
77
|
+
business_code: ['业务线', 'string', true],
|
|
78
|
+
sub_business_codes: ['子业务线', 'string', true],
|
|
79
|
+
},
|
|
80
|
+
isConsole: true,
|
|
81
|
+
disabled: true
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
mapFnName: "useBindedWallet",
|
|
85
|
+
title: "使用已绑钱包",
|
|
86
|
+
path: "/mall/v1/order/use-binded-wallet",
|
|
87
|
+
isRule: false,
|
|
88
|
+
data: {
|
|
89
|
+
selected_card_list_json: ['卡', 'string', true],
|
|
90
|
+
selected_wallet_list_json: ['钱包', 'string', true],
|
|
91
|
+
total_price: ['总金额', 'string', true],
|
|
92
|
+
},
|
|
93
|
+
isConsole: true,
|
|
94
|
+
disabled: true
|
|
95
|
+
},
|
|
96
|
+
];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import style from "./cusAttr/style";
|
|
3
|
+
import advanced from "./cusAttr/advanced";
|
|
4
|
+
import content from "./cusAttr/content";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
8
|
+
*/
|
|
9
|
+
export default {
|
|
10
|
+
style: [],
|
|
11
|
+
advanced: [],
|
|
12
|
+
content: (data, gValue, gColor, oldData={})=>{
|
|
13
|
+
|
|
14
|
+
return [
|
|
15
|
+
...content(data, gValue,gColor,oldData),
|
|
16
|
+
...style(data, gValue,gColor,oldData),
|
|
17
|
+
...advanced(data),
|
|
18
|
+
].filter(i=>i)
|
|
19
|
+
},
|
|
20
|
+
};
|