jufubao-food 1.0.12-beta1 → 1.0.12-beta3
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 +131 -0
- package/src/components/JfbFoodConfirmV2/Attr.js +20 -0
- package/src/components/JfbFoodConfirmV2/JfbFoodConfirmV2.vue +935 -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 +254 -0
- package/src/components/JfbFoodProductInfo/Api.js +33 -0
- package/src/components/JfbFoodProductInfo/Attr.js +14 -0
- package/src/components/JfbFoodProductInfo/JfbFoodProductInfo.vue +384 -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 +401 -0
- package/src/components/JfbFoodProductInfo/XdSpu.vue +236 -0
- package/src/components/JfbFoodProductList/Api.js +128 -0
- package/src/components/JfbFoodProductList/Attr.js +20 -0
- package/src/components/JfbFoodProductList/JfbFoodProductList.vue +845 -0
- package/src/components/JfbFoodProductList/JfbFoodProductListLess.less +80 -0
- package/src/components/JfbFoodProductList/JfbFoodProductListMixin.js +30 -0
- package/src/components/JfbFoodProductList/Mock.js +9 -0
- package/src/components/JfbFoodProductList/cusAttr/advanced.js +55 -0
- package/src/components/JfbFoodProductList/cusAttr/content.js +199 -0
- package/src/components/JfbFoodProductList/cusAttr/style.js +562 -0
package/package.json
CHANGED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:Confirm
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
mapFnName: "getFoodCartConfirm",
|
|
10
|
+
title: "确认订单产品列表",
|
|
11
|
+
path: "/hourdash/v1/order/confirm/:cart_order_id",
|
|
12
|
+
isRule: false,
|
|
13
|
+
params: {
|
|
14
|
+
namespace: ['namespace', 'String', true],
|
|
15
|
+
cart_order_id: ['cart_order_id', 'String', true],
|
|
16
|
+
delivery_method: ['投递方式', 'String', false],
|
|
17
|
+
blessings: ['祝福语', 'String', false],
|
|
18
|
+
subscribeTimeInfo: ['配送时间', 'String', false]
|
|
19
|
+
},
|
|
20
|
+
isConsole: true,
|
|
21
|
+
disabled: true
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
mapFnName: 'getFoodCardList',
|
|
25
|
+
title: '展示可选卡列表',
|
|
26
|
+
path: '/mall/v1/order/list-binded-cards',
|
|
27
|
+
isRule: false,
|
|
28
|
+
params: {},
|
|
29
|
+
isConsole: true,
|
|
30
|
+
disabled: true,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
mapFnName: 'foodSelectCard',
|
|
34
|
+
title: '选择卡',
|
|
35
|
+
path: '/mall/v1/order/use-binded-card',
|
|
36
|
+
isRule: false,
|
|
37
|
+
data: {
|
|
38
|
+
namespace: ['namespace', 'String', true],
|
|
39
|
+
selected_card_list_json: ['被操作的卡券的卡号', 'String', '必选'],
|
|
40
|
+
selected_wallet_list_json: ['钱包', 'String', '必选'],
|
|
41
|
+
card_number: ['选中的卡券编号', 'String', '必选'],
|
|
42
|
+
total_price: ['总金额', 'Number', '必选'],
|
|
43
|
+
cart_order_id: ['临时订单号', 'Number', '必选'],
|
|
44
|
+
select_content: ['次卡是否多扣,1 还没有选择 2 多扣一次 3 不多扣', 'Number', '必选']
|
|
45
|
+
},
|
|
46
|
+
isConsole: true,
|
|
47
|
+
disabled: true,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
mapFnName: 'addFoodCard',
|
|
51
|
+
title: '添加卡',
|
|
52
|
+
path: '/mall/v1/order/use-new-card',
|
|
53
|
+
isRule: false,
|
|
54
|
+
data: {
|
|
55
|
+
namespace: ['namespace', 'String', true],
|
|
56
|
+
selected_card_list_json: ['被操作的卡券的卡号', 'String', '必选'],
|
|
57
|
+
card_number: ['卡编号', 'String', '必选'],
|
|
58
|
+
card_password: ['卡密码', 'String', '必选'],
|
|
59
|
+
card_qrcode: ['卡二维码', 'String', '必选'],
|
|
60
|
+
total_price: ['总金额', 'Number', '必选'],
|
|
61
|
+
cart_order_id: ['临时订单号', 'String', '必选'],
|
|
62
|
+
valid_token: ['验证码token', 'String', '必选'],
|
|
63
|
+
valid_code: ['验证码正文', 'String', '必选'],
|
|
64
|
+
},
|
|
65
|
+
isConsole: true,
|
|
66
|
+
disabled: true,
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
{
|
|
70
|
+
mapFnName: "getUserWallet",
|
|
71
|
+
title: "订单支付-可用钱包列表",
|
|
72
|
+
path: "/pay/v1/wallet/list-user-available-wallet",
|
|
73
|
+
isRule: false,
|
|
74
|
+
params: {
|
|
75
|
+
support_method: ['元宝:wallet 积分: score', 'string', true],
|
|
76
|
+
business_code: ['业务线', 'string', true],
|
|
77
|
+
sub_business_codes: ['子业务线', 'string', true],
|
|
78
|
+
},
|
|
79
|
+
isConsole: true,
|
|
80
|
+
disabled: true
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
mapFnName: "useBindedWallet",
|
|
84
|
+
title: "使用已绑钱包",
|
|
85
|
+
path: "/mall/v1/order/use-binded-wallet",
|
|
86
|
+
isRule: false,
|
|
87
|
+
data: {
|
|
88
|
+
selected_card_list_json: ['卡', 'string', true],
|
|
89
|
+
selected_wallet_list_json: ['钱包', 'string', true],
|
|
90
|
+
total_price: ['总金额', 'string', true],
|
|
91
|
+
},
|
|
92
|
+
isConsole: true,
|
|
93
|
+
disabled: true
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
mapFnName: "getPayMethod",
|
|
97
|
+
title: "订单支付-获取支付列表",
|
|
98
|
+
path: "/pay/v1/wallet/list-user-available-pay-method",
|
|
99
|
+
isRule: false,
|
|
100
|
+
params: {
|
|
101
|
+
support_methods: ['元宝:wallet 积分: score 补差:third 卡券:card', 'Array', true],
|
|
102
|
+
},
|
|
103
|
+
isConsole: true,
|
|
104
|
+
disabled: true
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
mapFnName: 'createFoodOrder',
|
|
108
|
+
title: '创建订单',
|
|
109
|
+
path: '/hourdash/v1/order/submit/:cart_order_id',
|
|
110
|
+
isRule: false,
|
|
111
|
+
data: {
|
|
112
|
+
selected_card_list_json: ['被操作的卡券的卡号', 'String', '必选'],
|
|
113
|
+
buy_product: ['临时订单号', 'Number', '必选'],
|
|
114
|
+
need_pay_price: ['仍需支付金额', 'Number', '必选'],
|
|
115
|
+
},
|
|
116
|
+
isConsole: true,
|
|
117
|
+
disabled: true,
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
mapFnName: "getVipList",
|
|
121
|
+
title: "会员中心 - 会员卡列表",
|
|
122
|
+
path: "/member/v1/vip-card",
|
|
123
|
+
isRule: false,
|
|
124
|
+
params: {
|
|
125
|
+
namespace: ['业务线', 'String', true],
|
|
126
|
+
is_show_exchange_code: ['是否展示 兑换码 ', 'Y/N,默认N', false],
|
|
127
|
+
},
|
|
128
|
+
isConsole: true,
|
|
129
|
+
disabled: true
|
|
130
|
+
}
|
|
131
|
+
];
|
|
@@ -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
|
+
};
|