cloud-business 0.1.120-7 → 0.1.120-8

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/cloud-business.js CHANGED
@@ -30891,40 +30891,39 @@
30891
30891
  }
30892
30892
  });
30893
30893
  }
30894
- // if (city) {
30895
- editValues.push({
30896
- field: "cityName",
30897
- value: {
30898
- "id": city,
30899
- "name": city ? cityName || customerInfo.cityName : ''
30900
- }
30901
- });
30902
- // }
30903
- // if (district) {
30904
- editValues.push({
30905
- field: "districtName",
30906
- value: {
30907
- "id": district,
30908
- "name": district ? districtName || customerInfo.districtName : ''
30909
- }
30910
- });
30911
- // }
30912
- // if (town) {
30913
- editValues.push({
30914
- field: "townName",
30915
- value: {
30916
- "id": town,
30917
- "name": town ? townName || customerInfo.townName : ''
30918
- }
30919
- });
30920
- // }
30921
- // if (address) {
30922
- editValues.push({
30923
- field: "address",
30924
- value: address
30925
- });
30926
- // }
30927
-
30894
+ if (city) {
30895
+ editValues.push({
30896
+ field: "cityName",
30897
+ value: {
30898
+ "id": city,
30899
+ "name": cityName || customerInfo.cityName
30900
+ }
30901
+ });
30902
+ }
30903
+ if (district) {
30904
+ editValues.push({
30905
+ field: "districtName",
30906
+ value: {
30907
+ "id": district,
30908
+ "name": districtName || customerInfo.districtName
30909
+ }
30910
+ });
30911
+ }
30912
+ if (town) {
30913
+ editValues.push({
30914
+ field: "townName",
30915
+ value: {
30916
+ "id": town,
30917
+ "name": townName || customerInfo.townName
30918
+ }
30919
+ });
30920
+ }
30921
+ if (address) {
30922
+ editValues.push({
30923
+ field: "address",
30924
+ value: address
30925
+ });
30926
+ }
30928
30927
  var saveObj = {};
30929
30928
  editValues.forEach(function (item) {
30930
30929
  var _customerInfoOrigin$i = customerInfoOrigin[item.field],
@@ -31380,7 +31379,7 @@
31380
31379
  var tagValue = (_result$item = result[item]) === null || _result$item === void 0 ? void 0 : _result$item.tagValue;
31381
31380
  info[item] = tagValue ? tagValue[0] : '';
31382
31381
  if (item === 'gender') {
31383
- info[item] = tagValue ? genderMapName[tagValue[0]] : '';
31382
+ info[item] = tagValue ? genderMapName[tagValue[0]] : null;
31384
31383
  }
31385
31384
  if (item === 'stateName' || item === 'cityName' || item === 'districtName') {
31386
31385
  info[item] = tagValue ? JSON.parse(tagValue[0]).name : '';
@@ -146591,7 +146590,7 @@
146591
146590
  }
146592
146591
  // 检验当前运行环境
146593
146592
  if (typeof window === 'undefined') {
146594
- console.warn('cloud-business@0.1.120-7 仅支持在浏览器环境进行使用!');
146593
+ console.warn('cloud-business@0.1.120-8 仅支持在浏览器环境进行使用!');
146595
146594
  }
146596
146595
  var bodys = document.getElementsByTagName('body')[0];
146597
146596
  var colors = [1, 2, 3, 4, 5, 6, 7];
@@ -146601,7 +146600,7 @@
146601
146600
  bodys.style.setProperty("--shuyunBlue".concat(i$2 + 1), color);
146602
146601
  }
146603
146602
  }
146604
- var version = '0.1.120-7';
146603
+ var version = '0.1.120-8';
146605
146604
 
146606
146605
  exports.AreaSelector = AreaSelector;
146607
146606
  exports.AreaSelectorNew = AreaSelector$1;