Commit 5086dad3 authored by Xuguangxing's avatar Xuguangxing

fix

parent 88c8fd17
......@@ -98,6 +98,14 @@ export default {
status: {
type: Number,
default: 1 // 1是大图详情页, 2是小图详情页
},
endTime: {
type: String,
default: ''
},
currentTime: {
type: String,
default: ''
}
},
data() {
......@@ -106,8 +114,9 @@ export default {
timeIsOver: false
};
},
watch: {
status() {
created() {
if (this.status == 2) {
// 订单详情页
const currentTime = new Date(this.currentTime.replace(/\-/g, '/')).getTime();
const endTime = new Date(this.endTime.replace(/\-/g, '/')).getTime();
this.timeIsOver = currentTime >= endTime ? true : false;
......
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