|
|
@@ -16,7 +16,8 @@ Page({ |
|
|
|
min: null, |
|
|
|
sec: null, |
|
|
|
showPage: false, |
|
|
|
discountStatus:null |
|
|
|
discountStatus:null, |
|
|
|
disabled:false |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
@@ -39,6 +40,14 @@ Page({ |
|
|
|
that.pressOrderDetail(options.orderId); |
|
|
|
} |
|
|
|
}, |
|
|
|
onShow: function () { |
|
|
|
let that = this; |
|
|
|
console.log("--------------------------------onShow-------------------------------") |
|
|
|
var todayDate = new Date().getTime(); |
|
|
|
that.setData({ |
|
|
|
todayDate: todayDate, |
|
|
|
}) |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 更多砍价商品 |
|
|
|
*/ |
|
|
@@ -59,6 +68,8 @@ Page({ |
|
|
|
} |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
console.log(res) |
|
|
|
console.log("--------------------------status------------------------------------") |
|
|
|
if (res.data.status == 1) { |
|
|
|
that.setData({ |
|
|
|
discountStatus: 1 |
|
|
@@ -75,9 +86,10 @@ Page({ |
|
|
|
wx.stopPullDownRefresh(); |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
console.log(err) |
|
|
|
wx.stopPullDownRefresh(); |
|
|
|
wx.showToast({ |
|
|
|
title: err.message, |
|
|
|
title: err.errMsg, |
|
|
|
icon: "none" |
|
|
|
}) |
|
|
|
}) |
|
|
@@ -119,7 +131,6 @@ Page({ |
|
|
|
}) |
|
|
|
.then(res => { |
|
|
|
console.log(res); |
|
|
|
that.getPressOrderStatus(orderId); |
|
|
|
res.data.orderPressList.map(file => { |
|
|
|
file.createDate = diffTime(file.createDate) |
|
|
|
}) |
|
|
@@ -130,6 +141,7 @@ Page({ |
|
|
|
remain: (res.data.pressCurrentValue / 100).toFixed(2), |
|
|
|
showPage: true |
|
|
|
}) |
|
|
|
that.getPressOrderStatus(orderId); |
|
|
|
}) |
|
|
|
.catch(err => { |
|
|
|
wx.showToast({ |
|
|
@@ -139,13 +151,7 @@ Page({ |
|
|
|
wx.stopPullDownRefresh(); |
|
|
|
}) |
|
|
|
}, |
|
|
|
onShow: function() { |
|
|
|
let that = this; |
|
|
|
var todayDate = new Date().getTime(); |
|
|
|
that.setData({ |
|
|
|
todayDate: todayDate, |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
countdown(end_time) { |
|
|
|
let that = this; |
|
|
|
var EndTime = end_time; |
|
|
|