jufubao-mall 2.0.15 → 2.0.16-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-mall",
3
- "version": "2.0.15",
3
+ "version": "2.0.16-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -102,14 +102,23 @@ module.exports = {
102
102
  promo_price: 1800,
103
103
  show_prices: [
104
104
  {
105
- "p": 1800,
106
- "n": "PLUS价",
107
- "t": "S"
105
+ "p": 1800,
106
+ "n": "PLUS价",
107
+ "t": "S",
108
+ "a": "起",
109
+ "s": ""
108
110
  },
109
111
  {
110
- "p": 4300,
111
- "n": "原价",
112
- "t": "U"
112
+ "p": 4300,
113
+ "n": "原价",
114
+ "t": "U"
115
+ },
116
+ {
117
+ "p": 4300,
118
+ "n": "省",
119
+ "t": "E",
120
+ "a": "",
121
+ "s": ""
113
122
  }
114
123
  ],
115
124
  market_tags: ['flashsale','hot','new'],
@@ -160,14 +169,23 @@ module.exports = {
160
169
  promo_price: 1800,
161
170
  show_prices: [
162
171
  {
163
- "p": 2678,
164
- "n": "PLUS价",
165
- "t": "S"
172
+ "p": 1800,
173
+ "n": "PLUS价",
174
+ "t": "S",
175
+ "a": "起",
176
+ "s": ""
166
177
  },
167
178
  {
168
- "p": 4300,
169
- "n": "原价",
170
- "t": "U"
179
+ "p": 4300,
180
+ "n": "原价",
181
+ "t": "U"
182
+ },
183
+ {
184
+ "p": 4300,
185
+ "n": "省",
186
+ "t": "E",
187
+ "a": "",
188
+ "s": ""
171
189
  }
172
190
  ],
173
191
  market_tags: [],
@@ -0,0 +1,45 @@
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: "getNewShopList",
16
+ title: "获取门店列表",
17
+ path: "/mall/v1/shop/list",
18
+ isRule: false,
19
+ params: {
20
+ brand_id: ['brand_id', 'String', 'true'],
21
+ city_code: ['city_code', 'String', 'true'],
22
+ latitude: ['latitude', 'String', 'true'],
23
+ longitude: ['longitude', 'String', 'true'],
24
+ },
25
+ isConsole: true,
26
+ disabled: true
27
+ },
28
+ {
29
+ mapFnName: "getNewSearchFilterList",
30
+ title: "获取搜索过滤条件",
31
+ path: "/mall/v1/msearch/search-filter",
32
+ isRule: true,
33
+ data: {
34
+ type:['搜类型', 'String', '必选','sell'],
35
+ filter_item:['过滤参数', 'String', '必选','area,brand,shop_category'],
36
+ keyword: ['关键字', 'String', '必选'],
37
+ namespace: ['命名空间', 'String', '必选'],
38
+ city_code: ['城市编码', 'String', '必选'],
39
+ latitude: ['纬度', 'Number', '必选'],
40
+ longitude: ['经度', 'Number', '必选'],
41
+ },
42
+ isConsole: true,
43
+ disabled: true,
44
+ },
45
+ ];
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ import style from "./cusAttr/style";
4
+ import advanced from "./cusAttr/advanced";
5
+ import content from "./cusAttr/content";
6
+
7
+
8
+ /**
9
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
10
+ */
11
+ export default {
12
+ style: [],
13
+ content: (data, gValue, gColor, oldData={}) => {
14
+ return [
15
+ ...content(data, gValue, gColor, oldData),
16
+ ...style(data, gValue, gColor, oldData),
17
+ ...advanced(data, gValue, gColor, oldData),
18
+ ].filter(i=>i)
19
+ },
20
+ advanced: [
21
+ ],
22
+ };