Commit 893bc285 authored by zhengxiuming's avatar zhengxiuming

活动bug修改

parent d7e66166
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "shop_mobile_uni", "name": "shop_mobile_uni",
"appid": "__UNI__F904656", "appid": "__UNI__F904656",
"description": "", "description": "",
"versionName": "1.0.27", "versionName": "1.0.29",
"versionCode": "100", "versionCode": "100",
"transformPx": false, "transformPx": false,
"app-plus": { "app-plus": {
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
"mode": "history", "mode": "history",
"base": "/uni" "base": "/uni"
}, },
"publicPath": "https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/mirror/1.0.27/", "publicPath": "https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/test/1.0.29/",
"optimization": { "optimization": {
"treeShaking": { "treeShaking": {
"enable": true "enable": true
......
...@@ -201,8 +201,15 @@ ...@@ -201,8 +201,15 @@
} }
this.goods_list = this.goods_list.concat(data.data || []); this.goods_list = this.goods_list.concat(data.data || []);
this.goods_list.map((item, key) => { this.goods_list.map((item, key) => {
if(item._source.is_pro === 1 && new Date(item._source.end_time).getTime() < new Date().getTime()) if(item._source.is_pro === 1){
if(new Date(item._source.end_time).getTime() < new Date().getTime()){
item._source.is_pro = 0; item._source.is_pro = 0;
}else{
item._source.is_pro = 1;
}
}else{
item._source.is_pro = 0;
}
}); });
this.isLogin = data.login_flg === 1; this.isLogin = data.login_flg === 1;
const {total, page_size, current} = data.page; const {total, page_size, current} = data.page;
......
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