...
|
...
|
@@ -32,17 +32,17 @@ const dateFormate = (str) =>{ |
|
|
|
|
|
const transDiscountToArr = (discount) => {
|
|
|
return discount.replace(/(?:\d+[.\d]?)([\u4e00-\u9fa5]{1})/g, function(fullMatch, capture) {
|
|
|
if(capture) {
|
|
|
if (capture) {
|
|
|
const arr = [];
|
|
|
|
|
|
arr.push(fullMatch.replace(capture,''));
|
|
|
arr.push(fullMatch.replace(capture, ''));
|
|
|
arr.push(capture);
|
|
|
return arr;
|
|
|
} else {
|
|
|
return fullMatch;
|
|
|
}
|
|
|
}).split(',');
|
|
|
}
|
|
|
};
|
|
|
|
|
|
const getOutletResource = (channel, contentcode) => {
|
|
|
const params = {
|
...
|
...
|
|