cloud-business 0.1.124-8 → 0.1.124-9
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 +12 -4
- package/cloud-business.min.js +2 -2
- package/package.json +1 -1
package/cloud-business.js
CHANGED
|
@@ -111456,9 +111456,17 @@
|
|
|
111456
111456
|
};
|
|
111457
111457
|
_this.handleInsertKeywordAndText = function (content, keyword) {
|
|
111458
111458
|
var _ref2;
|
|
111459
|
+
// 将 变量文本字符串 拆分成 变量 和 文本
|
|
111460
|
+
// => 将 "文本1œœ_[bianliang]变量_œœ文本2œœ_[taoba]订单短[2323]_œœœœ_[taobao]XMTB_œœ"
|
|
111461
|
+
// => 转换成 ['文本1', 'œœ_[bianliang]变量_œœ', '文本2', 'œœ_[taoba]订单短[2323]_œœ', 'œœ_[taobao]XMTB_œœ']
|
|
111459
111462
|
var arr = (_ref2 = []).concat.apply(_ref2, _toConsumableArray(content.split(/(?=œœ_)/).map(function (item) {
|
|
111460
|
-
return item.split(/
|
|
111461
|
-
})))
|
|
111463
|
+
return item.split(/_œœ/);
|
|
111464
|
+
}))).map(function (item) {
|
|
111465
|
+
if (item.includes('œœ_')) {
|
|
111466
|
+
return "".concat(item, "_\u0153\u0153");
|
|
111467
|
+
}
|
|
111468
|
+
return item;
|
|
111469
|
+
}).filter(Boolean);
|
|
111462
111470
|
arr.forEach(function (item) {
|
|
111463
111471
|
if (item.includes('œœ_[')) {
|
|
111464
111472
|
var type = item.match(/œœ_\[.*?]/g)[0].replace(/œœ_\[|]/g, '');
|
|
@@ -146340,7 +146348,7 @@
|
|
|
146340
146348
|
}
|
|
146341
146349
|
// 检验当前运行环境
|
|
146342
146350
|
if (typeof window === 'undefined') {
|
|
146343
|
-
console.warn('cloud-business@0.1.124-
|
|
146351
|
+
console.warn('cloud-business@0.1.124-9 仅支持在浏览器环境进行使用!');
|
|
146344
146352
|
}
|
|
146345
146353
|
var bodys = document.getElementsByTagName('body')[0];
|
|
146346
146354
|
var colors = [1, 2, 3, 4, 5, 6, 7];
|
|
@@ -146350,7 +146358,7 @@
|
|
|
146350
146358
|
bodys.style.setProperty("--shuyunBlue".concat(i$2 + 1), color);
|
|
146351
146359
|
}
|
|
146352
146360
|
}
|
|
146353
|
-
var version = '0.1.124-
|
|
146361
|
+
var version = '0.1.124-9';
|
|
146354
146362
|
|
|
146355
146363
|
exports.AreaSelector = AreaSelector;
|
|
146356
146364
|
exports.AreaSelectorNew = AreaSelector$1;
|