@fle-ui/plus-choose-mall-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
@@ -53,11 +53,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
53
53
  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; }
54
54
  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; }
55
55
  import React, { useEffect, useState, useRef } from 'react';
56
- import _ from 'lodash';
57
56
  import PlusConfigProvider from '@fle-ui/plus-config-provider';
58
57
  import AddressSelection from '@fle-ui/plus-address-selection';
59
58
  import ProImage from '@fle-ui/plus-image';
60
59
  import { QuestionCircleOutlined, LoadingOutlined } from '@ant-design/icons';
60
+ import _ from 'lodash';
61
61
  import Icon from './components/icon';
62
62
  import ChangePrice from './components/changePrice';
63
63
  import { tabs, tabsSearchParamsMap, priceRangeForOnce, priceRangeForPurchase, profitRangeForOnce, profitRangeForPurchase, sortOptions } from './utils/options';
@@ -124,6 +124,7 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
124
124
  flagCategory: undefined,
125
125
  saleableCity: undefined // dgss可售卖城市
126
126
  };
127
+ // http ------------ begin
127
128
  var $http = request({
128
129
  baseUrl: getApiHost(env),
129
130
  token: token,
@@ -599,7 +600,7 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
599
600
  // 获取全局控制状态
600
601
  var getGoodControlInfo = /*#__PURE__*/function () {
601
602
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
602
- var res, _res$data3, _res$data4;
603
+ var res, _res$data3;
603
604
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
604
605
  while (1) switch (_context7.prev = _context7.next) {
605
606
  case 0:
@@ -609,8 +610,8 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
609
610
  res = _context7.sent;
610
611
  if (res === null || res === void 0 ? void 0 : res.success) {
611
612
  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
613
+ priceShow: ((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.customer_mall_cost_price_show) == '1' ? true : false,
614
+ supplierShow: true
614
615
  });
615
616
  }
616
617
  case 4:
package/lib/index.js CHANGED
@@ -7,11 +7,11 @@ 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 _plusConfigProvider = _interopRequireDefault(require("@fle-ui/plus-config-provider"));
12
11
  var _plusAddressSelection = _interopRequireDefault(require("@fle-ui/plus-address-selection"));
13
12
  var _plusImage = _interopRequireDefault(require("@fle-ui/plus-image"));
14
13
  var _icons = require("@ant-design/icons");
14
+ var _lodash = _interopRequireDefault(require("lodash"));
15
15
  var _icon = _interopRequireDefault(require("./components/icon"));
16
16
  var _changePrice = _interopRequireDefault(require("./components/changePrice"));
17
17
  var _options = require("./utils/options");
@@ -104,6 +104,7 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
104
104
  flagCategory: undefined,
105
105
  saleableCity: undefined // dgss可售卖城市
106
106
  };
107
+ // http ------------ begin
107
108
  var $http = (0, _request.default)({
108
109
  baseUrl: (0, _serviceEnv.getApiHost)(env),
109
110
  token: token,
@@ -579,7 +580,7 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
579
580
  // 获取全局控制状态
580
581
  var getGoodControlInfo = /*#__PURE__*/function () {
581
582
  var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
582
- var res, _res$data3, _res$data4;
583
+ var res, _res$data3;
583
584
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
584
585
  while (1) switch (_context7.prev = _context7.next) {
585
586
  case 0:
@@ -589,8 +590,8 @@ var ChooseMallGoods = function ChooseMallGoods(props) {
589
590
  res = _context7.sent;
590
591
  if (res === null || res === void 0 ? void 0 : res.success) {
591
592
  setShow({
592
- priceShow: ((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.internal_mall_cost_price_show) == '1' ? true : false,
593
- supplierShow: ((_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.internal_mall_supplier_name_show) == '1' ? true : false
593
+ priceShow: ((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.customer_mall_cost_price_show) == '1' ? true : false,
594
+ supplierShow: true
594
595
  });
595
596
  }
596
597
  case 4:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fle-ui/plus-choose-mall-goods",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "@fle-ui/plus-choose-mall-goods",
5
5
  "keywords": [
6
6
  "fle-ui",
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "0c631954240d64433307f9b73b617ecc96a843a2"
47
+ "gitHead": "f5a34365f0ab189629c08301c00018edb7243bc2"
48
48
  }