@fle-ui/plus-choose-site-goods 1.1.10 → 1.1.11-alpha.0
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 +3 -1
- package/lib/index.js +3 -1
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -55,12 +55,12 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
55
55
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
56
56
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
57
57
|
import React, { useEffect, useState, useRef } from 'react';
|
|
58
|
-
import _ from 'lodash';
|
|
59
58
|
import ProImage from '@fle-ui/plus-image';
|
|
60
59
|
import ChooseMallGoods from '@fle-ui/plus-choose-mall-goods';
|
|
61
60
|
import AddressSelection from '@fle-ui/plus-address-selection';
|
|
62
61
|
import { QuestionCircleOutlined, LoadingOutlined } from '@ant-design/icons';
|
|
63
62
|
import PlusConfigProvider from '@fle-ui/plus-config-provider';
|
|
63
|
+
import _ from 'lodash';
|
|
64
64
|
import Icon from './components/icon';
|
|
65
65
|
import { tabs, tabsSearchParamsMap, priceRangeForOnce, priceRangeForPurchase, profitRangeForOnce, profitRangeForPurchase, sortOptions } from './utils/options';
|
|
66
66
|
import api from './utils/api';
|
|
@@ -121,11 +121,13 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
|
|
|
121
121
|
flagCategory: undefined,
|
|
122
122
|
saleableCity: undefined // dgss可售卖城市
|
|
123
123
|
};
|
|
124
|
+
// http ------------ begin
|
|
124
125
|
var $http = request({
|
|
125
126
|
baseUrl: getApiHost(env),
|
|
126
127
|
token: token,
|
|
127
128
|
loginErrFn: loginErrFn
|
|
128
129
|
});
|
|
130
|
+
// http ------------ end
|
|
129
131
|
useEffect(function () {
|
|
130
132
|
if (env) {
|
|
131
133
|
window.localStorage.setItem('env', env);
|
package/lib/index.js
CHANGED
|
@@ -7,12 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _antd = require("antd");
|
|
10
|
-
var _lodash = _interopRequireDefault(require("lodash"));
|
|
11
10
|
var _plusImage = _interopRequireDefault(require("@fle-ui/plus-image"));
|
|
12
11
|
var _plusChooseMallGoods = _interopRequireDefault(require("@fle-ui/plus-choose-mall-goods"));
|
|
13
12
|
var _plusAddressSelection = _interopRequireDefault(require("@fle-ui/plus-address-selection"));
|
|
14
13
|
var _icons = require("@ant-design/icons");
|
|
15
14
|
var _plusConfigProvider = _interopRequireDefault(require("@fle-ui/plus-config-provider"));
|
|
15
|
+
var _lodash = _interopRequireDefault(require("lodash"));
|
|
16
16
|
var _icon = _interopRequireDefault(require("./components/icon"));
|
|
17
17
|
var _options = require("./utils/options");
|
|
18
18
|
var _api = _interopRequireDefault(require("./utils/api"));
|
|
@@ -99,11 +99,13 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
|
|
|
99
99
|
flagCategory: undefined,
|
|
100
100
|
saleableCity: undefined // dgss可售卖城市
|
|
101
101
|
};
|
|
102
|
+
// http ------------ begin
|
|
102
103
|
var $http = (0, _request.default)({
|
|
103
104
|
baseUrl: (0, _serviceEnv.getApiHost)(env),
|
|
104
105
|
token: token,
|
|
105
106
|
loginErrFn: loginErrFn
|
|
106
107
|
});
|
|
108
|
+
// http ------------ end
|
|
107
109
|
(0, _react.useEffect)(function () {
|
|
108
110
|
if (env) {
|
|
109
111
|
window.localStorage.setItem('env', env);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fle-ui/plus-choose-site-goods",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.11-alpha.0",
|
|
4
4
|
"description": "@fle-ui/plus-choose-site-goods",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fle-ui",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@ant-design/icons": "^5.3.0",
|
|
29
29
|
"@fle-tools/env": "^1.0.3",
|
|
30
30
|
"@fle-ui/plus-address-selection": "^1.0.14",
|
|
31
|
-
"@fle-ui/plus-choose-mall-goods": "^1.1.11-alpha.
|
|
31
|
+
"@fle-ui/plus-choose-mall-goods": "^1.1.11-alpha.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"antd": ">=4.23.0 || >=5.0.0",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "7d48264a50c81e811e73264aade348b57a58592b"
|
|
49
49
|
}
|