@fle-ui/plus-choose-site-goods 1.1.10 → 1.1.11

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 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);
@@ -599,7 +601,7 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
599
601
  // 获取全局控制状态
600
602
  var getGoodControlInfo = /*#__PURE__*/function () {
601
603
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
602
- var res, _res$data3, _res$data4;
604
+ var res, _res$data3;
603
605
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
604
606
  while (1) switch (_context7.prev = _context7.next) {
605
607
  case 0:
@@ -609,8 +611,8 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
609
611
  res = _context7.sent;
610
612
  if (res === null || res === void 0 ? void 0 : res.success) {
611
613
  setShow({
612
- priceShow: ((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.internal_mall_cost_price_show) == '1' ? true : false,
613
- supplierShow: ((_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.internal_mall_supplier_name_show) == '1' ? true : false
614
+ priceShow: ((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.customer_mall_cost_price_show) == '1' ? true : false,
615
+ supplierShow: true
614
616
  });
615
617
  }
616
618
  case 4:
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);
@@ -577,7 +579,7 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
577
579
  // 获取全局控制状态
578
580
  var getGoodControlInfo = /*#__PURE__*/function () {
579
581
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
580
- var res, _res$data3, _res$data4;
582
+ var res, _res$data3;
581
583
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
582
584
  while (1) switch (_context7.prev = _context7.next) {
583
585
  case 0:
@@ -587,8 +589,8 @@ var ChooseSiteGoods = function ChooseSiteGoods(props) {
587
589
  res = _context7.sent;
588
590
  if (res === null || res === void 0 ? void 0 : res.success) {
589
591
  setShow({
590
- priceShow: ((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.internal_mall_cost_price_show) == '1' ? true : false,
591
- supplierShow: ((_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.internal_mall_supplier_name_show) == '1' ? true : false
592
+ priceShow: ((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.customer_mall_cost_price_show) == '1' ? true : false,
593
+ supplierShow: true
592
594
  });
593
595
  }
594
596
  case 4:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fle-ui/plus-choose-site-goods",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
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.1"
31
+ "@fle-ui/plus-choose-mall-goods": "^1.1.11"
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": "0c631954240d64433307f9b73b617ecc96a843a2"
48
+ "gitHead": "f5a34365f0ab189629c08301c00018edb7243bc2"
49
49
  }