Authored by 王水玲

sale

@@ -179,7 +179,7 @@ const processBreakingSort = (list) => { @@ -179,7 +179,7 @@ const processBreakingSort = (list) => {
179 const searchSales = (params) => { 179 const searchSales = (params) => {
180 180
181 // 排除基本筛选项默认值为0的对象 181 // 排除基本筛选项默认值为0的对象
182 - for(let str in params){ 182 + for (let str in params) {
183 if (str !== 'order' && params[str] === '0' || params[str] === null) { 183 if (str !== 'order' && params[str] === '0' || params[str] === null) {
184 delete params[str]; 184 delete params[str];
185 } 185 }
@@ -364,7 +364,7 @@ exports.getSpecialDetailData = (id) => { @@ -364,7 +364,7 @@ exports.getSpecialDetailData = (id) => {
364 return special(param).then((result) => { 364 return special(param).then((result) => {
365 if (result && result.code === 200) { 365 if (result && result.code === 200) {
366 res = processSpecial(result.data); 366 res = processSpecial(result.data);
367 - console.log(res) 367 + console.log(res);
368 return { 368 return {
369 title: res[0].title, 369 title: res[0].title,
370 activity: { 370 activity: {
@@ -72,7 +72,7 @@ lazyLoad($('img.lazy')); @@ -72,7 +72,7 @@ lazyLoad($('img.lazy'));
72 // 获取url里面的参数的值 72 // 获取url里面的参数的值
73 function getUrlParam(name) { 73 function getUrlParam(name) {
74 // 构造一个含有目标参数的正则表达式对象 74 // 构造一个含有目标参数的正则表达式对象
75 - var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); 75 + var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)');
76 76
77 // 匹配目标参数 77 // 匹配目标参数
78 var r = window.location.search.substr(1).match(reg); 78 var r = window.location.search.substr(1).match(reg);
@@ -80,7 +80,7 @@ function getUrlParam(name) { @@ -80,7 +80,7 @@ function getUrlParam(name) {
80 if (r !== null) { 80 if (r !== null) {
81 return r[2]; 81 return r[2];
82 } 82 }
83 - return null; //返回参数值 83 + return null; // 返回参数值
84 } 84 }
85 85
86 // 获取频道 86 // 获取频道