@fle-ui/plus-choose-goods 0.0.13 → 0.0.14-beta.3
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/es/index.js +9 -8
- package/lib/index.js +9 -8
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -121,15 +121,20 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
|
|
|
121
121
|
params['isPurchase'] = 1;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
|
|
124
|
+
if (val.flagTags) {
|
|
125
|
+
params['flagTags'] = val.flagTags.map(function (item) {
|
|
126
|
+
return item[1];
|
|
127
|
+
}).join(',');
|
|
128
|
+
}
|
|
129
|
+
_context.next = 5;
|
|
125
130
|
return $http.post(serviceUrl || api['getGoodsList'], params);
|
|
126
|
-
case
|
|
131
|
+
case 5:
|
|
127
132
|
res = _context.sent;
|
|
128
133
|
return _context.abrupt("return", {
|
|
129
134
|
list: (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list) || [],
|
|
130
135
|
total: (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.total) || 0
|
|
131
136
|
});
|
|
132
|
-
case
|
|
137
|
+
case 7:
|
|
133
138
|
case "end":
|
|
134
139
|
return _context.stop();
|
|
135
140
|
}
|
|
@@ -467,11 +472,7 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
|
|
|
467
472
|
orderWay: 'desc'
|
|
468
473
|
},
|
|
469
474
|
onFinish: function onFinish(values) {
|
|
470
|
-
var params = _objectSpread(_objectSpread(
|
|
471
|
-
flagTags: values.flagTags.map(function (item) {
|
|
472
|
-
return item[1];
|
|
473
|
-
}).join(',')
|
|
474
|
-
});
|
|
475
|
+
var params = _objectSpread(_objectSpread({}, DefaultParams), values);
|
|
475
476
|
setSearchParams(params);
|
|
476
477
|
getGoodsList(params);
|
|
477
478
|
},
|
package/lib/index.js
CHANGED
|
@@ -115,15 +115,20 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
|
|
|
115
115
|
params['isPurchase'] = 1;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
|
|
118
|
+
if (val.flagTags) {
|
|
119
|
+
params['flagTags'] = val.flagTags.map(function (item) {
|
|
120
|
+
return item[1];
|
|
121
|
+
}).join(',');
|
|
122
|
+
}
|
|
123
|
+
_context.next = 5;
|
|
119
124
|
return $http.post(serviceUrl || _api.default['getGoodsList'], params);
|
|
120
|
-
case
|
|
125
|
+
case 5:
|
|
121
126
|
res = _context.sent;
|
|
122
127
|
return _context.abrupt("return", {
|
|
123
128
|
list: (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list) || [],
|
|
124
129
|
total: (res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.total) || 0
|
|
125
130
|
});
|
|
126
|
-
case
|
|
131
|
+
case 7:
|
|
127
132
|
case "end":
|
|
128
133
|
return _context.stop();
|
|
129
134
|
}
|
|
@@ -461,11 +466,7 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
|
|
|
461
466
|
orderWay: 'desc'
|
|
462
467
|
},
|
|
463
468
|
onFinish: function onFinish(values) {
|
|
464
|
-
var params = _objectSpread(_objectSpread(
|
|
465
|
-
flagTags: values.flagTags.map(function (item) {
|
|
466
|
-
return item[1];
|
|
467
|
-
}).join(',')
|
|
468
|
-
});
|
|
469
|
+
var params = _objectSpread(_objectSpread({}, DefaultParams), values);
|
|
469
470
|
setSearchParams(params);
|
|
470
471
|
getGoodsList(params);
|
|
471
472
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fle-ui/plus-choose-goods",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14-beta.3",
|
|
4
4
|
"description": "@fle-ui/plus-choose-goods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fle-ui",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "737cb8a1f13a540675ad2531c4d66a39a91e7e1c"
|
|
49
49
|
}
|