cloud-business 0.1.120-6 → 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 +45 -44
- package/cloud-business.min.js +2 -2
- package/package.json +1 -1
package/cloud-business.js
CHANGED
|
@@ -30891,40 +30891,39 @@
|
|
|
30891
30891
|
}
|
|
30892
30892
|
});
|
|
30893
30893
|
}
|
|
30894
|
-
|
|
30895
|
-
|
|
30896
|
-
|
|
30897
|
-
|
|
30898
|
-
|
|
30899
|
-
|
|
30900
|
-
|
|
30901
|
-
|
|
30902
|
-
|
|
30903
|
-
|
|
30904
|
-
|
|
30905
|
-
|
|
30906
|
-
|
|
30907
|
-
|
|
30908
|
-
|
|
30909
|
-
|
|
30910
|
-
|
|
30911
|
-
|
|
30912
|
-
|
|
30913
|
-
|
|
30914
|
-
|
|
30915
|
-
|
|
30916
|
-
|
|
30917
|
-
|
|
30918
|
-
|
|
30919
|
-
|
|
30920
|
-
|
|
30921
|
-
|
|
30922
|
-
|
|
30923
|
-
|
|
30924
|
-
|
|
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 : '';
|
|
@@ -38801,6 +38800,11 @@
|
|
|
38801
38800
|
var _this;
|
|
38802
38801
|
_classCallCheck(this, shopSelectorForm);
|
|
38803
38802
|
_this = _callSuper(this, shopSelectorForm, [props]);
|
|
38803
|
+
_this.offlineFieldNames = {
|
|
38804
|
+
label: 'regionName',
|
|
38805
|
+
value: 'regionId',
|
|
38806
|
+
children: 'children'
|
|
38807
|
+
};
|
|
38804
38808
|
/**
|
|
38805
38809
|
* 店铺数据
|
|
38806
38810
|
* */
|
|
@@ -38917,7 +38921,7 @@
|
|
|
38917
38921
|
};
|
|
38918
38922
|
_this.handleOfflineFilter = function (inputValue, path) {
|
|
38919
38923
|
return path.some(function (option) {
|
|
38920
|
-
return option.
|
|
38924
|
+
return option[_this.offlineFieldNames.label].toLowerCase().indexOf(inputValue.toLowerCase()) > -1;
|
|
38921
38925
|
});
|
|
38922
38926
|
};
|
|
38923
38927
|
_this.handleOfflineAddress = function (value, selectedOption) {
|
|
@@ -39048,11 +39052,7 @@
|
|
|
39048
39052
|
placeholder: "\u8BF7\u9009\u62E9\u7EBF\u4E0B\u5E97\u94FA\u533A\u57DF",
|
|
39049
39053
|
changeOnSelect: true,
|
|
39050
39054
|
className: "shop-form-cascader",
|
|
39051
|
-
fieldNames: {
|
|
39052
|
-
label: 'regionName',
|
|
39053
|
-
value: 'regionId',
|
|
39054
|
-
children: 'children'
|
|
39055
|
-
},
|
|
39055
|
+
fieldNames: _objectSpread2({}, this.offlineFieldNames),
|
|
39056
39056
|
showSearch: {
|
|
39057
39057
|
filter: this.handleOfflineFilter
|
|
39058
39058
|
},
|
|
@@ -39384,8 +39384,9 @@
|
|
|
39384
39384
|
var tmp = new RegExp("^".concat(platCode), 'gi');
|
|
39385
39385
|
tmp.test(x) && result.push(x.replace(tmp, "".concat(platCode.substring(0, platCode.length - 1), "|")));
|
|
39386
39386
|
});
|
|
39387
|
+
} else {
|
|
39388
|
+
result.push(x);
|
|
39387
39389
|
}
|
|
39388
|
-
result.push(x);
|
|
39389
39390
|
});
|
|
39390
39391
|
return result.toString();
|
|
39391
39392
|
};
|
|
@@ -146589,7 +146590,7 @@
|
|
|
146589
146590
|
}
|
|
146590
146591
|
// 检验当前运行环境
|
|
146591
146592
|
if (typeof window === 'undefined') {
|
|
146592
|
-
console.warn('cloud-business@0.1.120-
|
|
146593
|
+
console.warn('cloud-business@0.1.120-8 仅支持在浏览器环境进行使用!');
|
|
146593
146594
|
}
|
|
146594
146595
|
var bodys = document.getElementsByTagName('body')[0];
|
|
146595
146596
|
var colors = [1, 2, 3, 4, 5, 6, 7];
|
|
@@ -146599,7 +146600,7 @@
|
|
|
146599
146600
|
bodys.style.setProperty("--shuyunBlue".concat(i$2 + 1), color);
|
|
146600
146601
|
}
|
|
146601
146602
|
}
|
|
146602
|
-
var version = '0.1.120-
|
|
146603
|
+
var version = '0.1.120-8';
|
|
146603
146604
|
|
|
146604
146605
|
exports.AreaSelector = AreaSelector;
|
|
146605
146606
|
exports.AreaSelectorNew = AreaSelector$1;
|