Commit f6fbffb2 authored by zhengxiuming's avatar zhengxiuming

兼容性问题

parent 5d96cb16
......@@ -201,13 +201,8 @@
}
this.goods_list = this.goods_list.concat(data.data || []);
this.goods_list.map((item, key) => {
if(item._source.is_pro === 1){
if(new Date(item._source.end_time).getTime() < new Date().getTime()){
item._source.is_pro = 0;
}else{
item._source.is_pro = 1;
}
}else{
let end_time = item._source.end_time.replace(/-/g, '/');
if(item._source.is_pro === 1 && new Date(end_time).getTime() < new Date().getTime()){
item._source.is_pro = 0;
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment