Authored by runner

discount bug update

@@ -32,17 +32,17 @@ const dateFormate = (str) =>{ @@ -32,17 +32,17 @@ const dateFormate = (str) =>{
32 32
33 const transDiscountToArr = (discount) => { 33 const transDiscountToArr = (discount) => {
34 return discount.replace(/(?:\d+[.\d]?)([\u4e00-\u9fa5]{1})/g, function(fullMatch, capture) { 34 return discount.replace(/(?:\d+[.\d]?)([\u4e00-\u9fa5]{1})/g, function(fullMatch, capture) {
35 - if(capture) { 35 + if (capture) {
36 const arr = []; 36 const arr = [];
37 37
38 - arr.push(fullMatch.replace(capture,'')); 38 + arr.push(fullMatch.replace(capture, ''));
39 arr.push(capture); 39 arr.push(capture);
40 return arr; 40 return arr;
41 } else { 41 } else {
42 return fullMatch; 42 return fullMatch;
43 } 43 }
44 }).split(','); 44 }).split(',');
45 -} 45 +};
46 46
47 const getOutletResource = (channel, contentcode) => { 47 const getOutletResource = (channel, contentcode) => {
48 const params = { 48 const params = {