Authored by 王水玲

sale

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