jufubao-mall 2.0.16-beta2 → 2.0.16

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-mall",
3
- "version": "2.0.16-beta2",
3
+ "version": "2.0.16",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -68,7 +68,7 @@ module.exports = [
68
68
  {
69
69
  mapFnName: 'cardList',
70
70
  title: '展示可选卡列表',
71
- path: '/mall/v1/order/list-binded-cards',
71
+ path: '/mall/v1/order/list-binded-cards/mall',
72
72
  isRule: false,
73
73
  params: {},
74
74
  isConsole: true,
@@ -86,7 +86,7 @@ module.exports = [
86
86
  {
87
87
  mapFnName: 'selectCard',
88
88
  title: '选择卡',
89
- path: '/mall/v1/order/use-binded-card',
89
+ path: '/mall/v1/order/use-binded-card/mall',
90
90
  isRule: false,
91
91
  data: {
92
92
  namespace: ['namespace', 'String', true],
@@ -119,7 +119,7 @@ module.exports = [
119
119
  {
120
120
  mapFnName: 'addCard',
121
121
  title: '添加卡',
122
- path: '/mall/v1/order/use-new-card',
122
+ path: '/mall/v1/order/use-new-card/mall',
123
123
  isRule: false,
124
124
  data: {
125
125
  namespace: ['namespace', 'String', true],
@@ -266,7 +266,7 @@ module.exports = [
266
266
  {
267
267
  mapFnName: "useBindedWallet",
268
268
  title: "使用已绑钱包",
269
- path: "/mall/v1/order/use-binded-wallet",
269
+ path: "/mall/v1/order/use-binded-wallet/mall",
270
270
  isRule: false,
271
271
  data: {
272
272
  selected_card_list_json: ['卡', 'string', true],
@@ -102,23 +102,14 @@ module.exports = {
102
102
  promo_price: 1800,
103
103
  show_prices: [
104
104
  {
105
- "p": 1800,
106
- "n": "PLUS价",
107
- "t": "S",
108
- "a": "起",
109
- "s": ""
110
- },
111
- {
112
- "p": 4300,
113
- "n": "原价",
114
- "t": "U"
105
+ "p": 1800,
106
+ "n": "PLUS价",
107
+ "t": "S"
115
108
  },
116
109
  {
117
- "p": 4300,
118
- "n": "",
119
- "t": "E",
120
- "a": "",
121
- "s": ""
110
+ "p": 4300,
111
+ "n": "原价",
112
+ "t": "U"
122
113
  }
123
114
  ],
124
115
  market_tags: ['flashsale','hot','new'],
@@ -169,23 +160,14 @@ module.exports = {
169
160
  promo_price: 1800,
170
161
  show_prices: [
171
162
  {
172
- "p": 1800,
173
- "n": "PLUS价",
174
- "t": "S",
175
- "a": "起",
176
- "s": ""
177
- },
178
- {
179
- "p": 4300,
180
- "n": "原价",
181
- "t": "U"
163
+ "p": 2678,
164
+ "n": "PLUS价",
165
+ "t": "S"
182
166
  },
183
167
  {
184
- "p": 4300,
185
- "n": "",
186
- "t": "E",
187
- "a": "",
188
- "s": ""
168
+ "p": 4300,
169
+ "n": "原价",
170
+ "t": "U"
189
171
  }
190
172
  ],
191
173
  market_tags: [],
@@ -296,6 +296,9 @@ export default function (data, gValue, gColor, oldData) {
296
296
  value: dataVal({ data, key: 'saleWarmActPriceColor', dValue: '#FFEF5E', gValue }),
297
297
  hidden: !statusShow({ data, key: 'saleWarmActStyleStatus', fields: ['saleWarmActPriceColor'], gValue }) || (data.goodsLayout === 'default' || data.smsStatus === 'ing'),
298
298
  placeholder: '请选择售价颜色',
299
+ setting: {
300
+ showAlpha: true
301
+ },
299
302
  classNmae: 'input80',
300
303
  },
301
304
  {
@@ -25,27 +25,6 @@ module.exports = [
25
25
  isConsole: true,
26
26
  disabled: true
27
27
  },
28
- {
29
- mapFnName: 'getShopProductList',
30
- title: '获取商品列表',
31
- path: '/product/v1/:xnamespace/product/search',
32
- isRule: false,
33
- params: {
34
- xnamespace: ['path', "xnamespace", "必选"],
35
- sort: ['排序', 'string', '必选'],
36
- keyword: ['关键词', 'string', '必选'],
37
- brand_ids: ['品牌ID,多个小写逗号隔开', 'string', '必选'],
38
- filter_keys: ['过滤KEY,多个逗号隔开', 'string', '必选'],
39
- city_code: ['城市CODE', 'string', '必选'],
40
- custom_category_id: ['自定义分类ID', 'string', '必选'],
41
- market_tags: ['营销标签 rec=推荐, hot=爆款, new=新品 多个逗号隔开', 'string', '必选'],
42
- random_score_seed: ['随机排序因子, 分页时保证一样', 'string', '必选'],
43
- page_size: ['page_size', 'string', '必选'],
44
- page_token: ['page_token', 'string', '必选'],
45
- },
46
- isConsole: true,
47
- disabled: true,
48
- },
49
28
 
50
29
 
51
30
  ];
@@ -1,20 +1,176 @@
1
1
  'use strict';
2
- import style from "./cusAttr/style";
3
- import advanced from "./cusAttr/advanced";
4
- import content from "./cusAttr/content";
5
2
 
6
3
  /**
7
4
  * @description 当表单组件中有联动操作时候,使用方法进行返回
8
5
  */
9
6
  export default {
10
7
  style: [],
11
- advanced: [],
12
- content: (data, gValue, gColor, oldData={})=>{
13
-
8
+ content: (data) => {
14
9
  return [
15
- ...content(data, gValue,gColor,oldData),
16
- ...style(data, gValue,gColor,oldData),
17
- ...advanced(data),
10
+ {
11
+ label: "是否展示核销入口:",
12
+ ele: "xd-radio",
13
+ valueKey: "isShowCashier",
14
+ value: data.isShowCashier || "Y",
15
+ groupKey:'content',
16
+ list: [
17
+ {"label": "展示", "value": "Y"},
18
+ {"label": "隐藏", "value": "N"},
19
+ ],
20
+ rules: [
21
+ {required: true, message: '请选择', trigger: ['blur', 'change']}
22
+ ],
23
+ },
24
+
25
+ {
26
+ label: '聚好兑自定义名称:',
27
+ ele: 'el-input',
28
+ type: 'text',
29
+ valueKey: 'name',
30
+ groupKey:'content',
31
+ value: data.name || '',
32
+ placeholder: '请输入聚好兑自定义',
33
+ className: 'input60',
34
+ notice: '建议使用<span style="color:red">10</span>个字以内',
35
+ inline: false,
36
+ hidden: data.isShowCashier !== 'Y',
37
+ },
38
+ {
39
+ label: '聚好兑描述:',
40
+ ele: 'el-input',
41
+ type: 'text',
42
+ valueKey: 'remark',
43
+ groupKey:'content',
44
+ value: data.remark || '',
45
+ placeholder: '请输入聚好兑自定义备注',
46
+ className: 'input60',
47
+ notice: '建议使用<span style="color:red">30</span>个字以内',
48
+ inline: false,
49
+ hidden: data.isShowCashier !== 'Y',
50
+ },
51
+
52
+ {
53
+ label: '扫一扫自定义名称:',
54
+ ele: 'el-input',
55
+ type: 'text',
56
+ valueKey: 'scanName',
57
+ groupKey:'content',
58
+ value: data.scanName || '',
59
+ placeholder: '请输入扫一扫自定义名称',
60
+ className: 'input60',
61
+ notice: '建议使用<span style="color:red">10</span>个字以内',
62
+ inline: false,
63
+ hidden: data.isShowCashier !== 'Y',
64
+ },
65
+ {
66
+ label: '扫一扫描述:',
67
+ ele: 'el-input',
68
+ type: 'text',
69
+ valueKey: 'scanRemark',
70
+ groupKey:'content',
71
+ value: data.scanRemark || '',
72
+ placeholder: '请输入扫一扫描述',
73
+ className: 'input60',
74
+ notice: '建议使用<span style="color:red">30</span>个字以内',
75
+ inline: false,
76
+ hidden: data.isShowCashier !== 'Y',
77
+ },
78
+
79
+ {
80
+ label: '去提货自定义名称:',
81
+ ele: 'el-input',
82
+ type: 'text',
83
+ valueKey: 'takeName',
84
+ groupKey:'content',
85
+ value: data.takeName || '',
86
+ placeholder: '请输入去提货自定义名称',
87
+ className: 'input60',
88
+ notice: '建议使用<span style="color:red">10</span>个字以内',
89
+ inline: false,
90
+ hidden: data.isShowCashier !== 'Y',
91
+ },
92
+ {
93
+ label: '去提货描述:',
94
+ ele: 'el-input',
95
+ type: 'text',
96
+ valueKey: 'takeRemark',
97
+ groupKey:'content',
98
+ value: data.takeRemark || '',
99
+ placeholder: '请输入去提货描述',
100
+ className: 'input60',
101
+ notice: '建议使用<span style="color:red">30</span>个字以内',
102
+ inline: false,
103
+ hidden: data.isShowCashier !== 'Y',
104
+ },
105
+
106
+
107
+
108
+ {
109
+ label: '聚好兑跳转路径:',
110
+ ele: 'xd-select-pages-path',
111
+ valueKey: 'exchangePath',
112
+ placeholder: '请选择聚好兑跳转路径',
113
+ groupKey:'advanced',
114
+ value: data['exchangePath'] || null,
115
+ setting: {
116
+ router: XdBus.getParentApi('getPagesTree'),
117
+ },
118
+ inline: false,
119
+ },
120
+ {
121
+ label: '去提货跳转路径:',
122
+ ele: 'xd-select-pages-path',
123
+ valueKey: 'takePath',
124
+ placeholder: '请选择去提货跳转路径',
125
+ groupKey:'advanced',
126
+ value: data['takePath'] || null,
127
+ setting: {
128
+ router: XdBus.getParentApi('getPagesTree'),
129
+ },
130
+ inline: false,
131
+ },
132
+ {
133
+ label: '扫一扫跳转路径:',
134
+ ele: 'xd-select-pages-path',
135
+ valueKey: 'scanPath',
136
+ placeholder: '请选择去提货跳转路径',
137
+ groupKey:'advanced',
138
+ value: data['scanPath'] || null,
139
+ setting: {
140
+ router: XdBus.getParentApi('getPagesTree'),
141
+ },
142
+ inline: false,
143
+ },
144
+
145
+
146
+ {
147
+ label: '填充设置:',
148
+ ele: 'xd-margin-padding',
149
+ valueKey: 'padding',
150
+ value: data['padding'] || null,
151
+ groupKey:'style',
152
+ setting: {
153
+ type: 'padding',
154
+ },
155
+ placeholder: '请设置边距',
156
+ inline: false,
157
+ notice: '填充内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">32</span>像素',
158
+ },
159
+ // {
160
+ // label: '间距:',
161
+ // ele: 'el-input',
162
+ // type: 'number',
163
+ // groupKey:'style',
164
+ // valueKey: 'spacing',
165
+ // value: data.spacing || '',
166
+ // placeholder: '请输入间距',
167
+ // className: 'input50',
168
+ // notice: '间距设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">32</span>像素',
169
+ // inline: false,
170
+ // },
18
171
  ].filter(i=>i)
19
172
  },
173
+ advanced: [
174
+
175
+ ],
20
176
  };