Commit 4337249d authored by zhengxiuming's avatar zhengxiuming

兼容性修改

parent f6fbffb2
......@@ -51,7 +51,7 @@
"mode": "history",
"base": "/uni"
},
"publicPath": "https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/test/1.0.29/",
"publicPath": "https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/prod/1.0.29/",
"optimization": {
"treeShaking": {
"enable": true
......
......@@ -201,8 +201,8 @@
}
this.goods_list = this.goods_list.concat(data.data || []);
this.goods_list.map((item, key) => {
let end_time = item._source.end_time.replace(/-/g, '/');
if(item._source.is_pro === 1 && new Date(end_time).getTime() < new Date().getTime()){
let end_time = item._source.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