|
@@ -182,7 +182,7 @@
|
|
|
<script>
|
|
|
import uniCountdowns from '@/components/uni-countdown/uni-countdowns.vue';
|
|
|
import uniCopy from '@/components/js_sdk/xb-copy/uni-copy.js';
|
|
|
-import { user_auction_order, upload, up_image, edit_voucher } from '@/api/order.js';
|
|
|
+import { user_auction_order, upload, up_image, edit_voucher, time } from '@/api/order.js';
|
|
|
import { timeComputed } from '@/utils/rocessor.js';
|
|
|
export default {
|
|
|
components: {
|
|
@@ -205,12 +205,13 @@ export default {
|
|
|
zfb: '',
|
|
|
image: '',
|
|
|
status: 1,
|
|
|
- text: '123456'
|
|
|
+ text: '123456',
|
|
|
+ payTime: ''
|
|
|
};
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
this.id = option.ordid;
|
|
|
- this.loadData();
|
|
|
+ this.getpayTime();
|
|
|
if (option.type) {
|
|
|
this.type = option.type;
|
|
|
}
|
|
@@ -224,9 +225,16 @@ export default {
|
|
|
console.log(this.image);
|
|
|
});
|
|
|
},
|
|
|
+ getpayTime() {
|
|
|
+ time().then(({ data }) => {
|
|
|
+ this.payTime = data.tow_time * 1 * 60;
|
|
|
+ this.loadData();
|
|
|
+ });
|
|
|
+ },
|
|
|
loadData() {
|
|
|
user_auction_order({ type: 1, order_id: this.id }).then(({ data }) => {
|
|
|
- let now_time = timeComputed(data.time + 3600);
|
|
|
+ let time = data.time * 1 > data.radd_time * 1 ? data.time : data.radd_time;
|
|
|
+ let now_time = timeComputed(time + this.payTime);
|
|
|
this.status = data.status;
|
|
|
this.stopTime.stopTimeH = now_time.hours;
|
|
|
this.stopTime.stopTimeM = now_time.minutes;
|