...
|
...
|
@@ -29,7 +29,7 @@ Page({ |
|
|
let orderCode = options.orderCode
|
|
|
let api = new OrderDetailService();
|
|
|
let orderActionApi = new OrderActionService();
|
|
|
this.setData({ detailApi: api,
|
|
|
this.setData({ detailApi: api,
|
|
|
orderActionApi: orderActionApi});
|
|
|
if(orderCode){
|
|
|
this.fetchOrderDetail(orderCode);
|
...
|
...
|
@@ -105,7 +105,7 @@ Page({ |
|
|
if (data && data.buttons && data.buttons.length > 0) {
|
|
|
lastIndex = data.buttons.length - 1;
|
|
|
}
|
|
|
that.setData({
|
|
|
that.setData({
|
|
|
data,
|
|
|
lastIndex: lastIndex
|
|
|
});
|
...
|
...
|
@@ -119,6 +119,7 @@ Page({ |
|
|
timer = formatTimeByMin(leftTime, 'm:s');
|
|
|
if (timer <= 0) {
|
|
|
timer = '00:00'
|
|
|
this.fetchOrderDetail(code);
|
|
|
}
|
|
|
that.setData({
|
|
|
timer: timer,
|
...
|
...
|
@@ -126,10 +127,10 @@ Page({ |
|
|
}, 1000);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
//
|
|
|
onButtonClick: function (e) {
|
...
|
...
|
@@ -160,6 +161,7 @@ Page({ |
|
|
let params = {
|
|
|
id: productId
|
|
|
}
|
|
|
if(this.data.data.isOffline === 'Y') return;
|
|
|
router.go('productDetail', params);
|
|
|
},
|
|
|
|
...
|
...
|
@@ -176,8 +178,8 @@ Page({ |
|
|
wx.setClipboardData({
|
|
|
data: orderCode,
|
|
|
success (res) {
|
|
|
|
|
|
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
}) |
|
|
\ No newline at end of file |
|
|
}) |
...
|
...
|
|