mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2025-12-18 00:15:54 +08:00
修复购物车添加促销商品出现的Bug
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
qSyvBPhDsPdxvOhC
|
|
||||||
@@ -195,10 +195,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"plugins" : {
|
"plugins" : {
|
||||||
"myPlugin" : {
|
|
||||||
"version" : "1.1.0",
|
|
||||||
"provider" : "wx738958e0f4c894f9"
|
|
||||||
},
|
|
||||||
"live-player-plugin" : {
|
"live-player-plugin" : {
|
||||||
"version" : "1.3.0",
|
"version" : "1.3.0",
|
||||||
"provider" : "wx2b03c6e691cd7370"
|
"provider" : "wx2b03c6e691cd7370"
|
||||||
|
|||||||
@@ -239,9 +239,12 @@ export default {
|
|||||||
* 倒数计时
|
* 倒数计时
|
||||||
*/
|
*/
|
||||||
getCountDownTime(val) {
|
getCountDownTime(val) {
|
||||||
let date = new Date(val.replace(/-/g, "/"));
|
if (val.promotionMap) {
|
||||||
let timeSimple = new Date(date).getTime() / 1000;
|
let key = Object.keys(val.promotionMap).find((child, index) => {
|
||||||
return timeSimple - new Date().getTime() / 1000;
|
return child.split("-")[0] == 'SECKILL'
|
||||||
|
});
|
||||||
|
return val.promotionMap[key].endTime / 1000 - (new Date().getTime() / 1000)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user