|
|
@ -34,7 +34,7 @@ |
|
|
|
委托价格 |
|
|
|
委托价格 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="priceContent"> |
|
|
|
<view class="priceContent"> |
|
|
|
¥{{value}} |
|
|
|
¥{{orderDetails.order_amount}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="slide"> |
|
|
|
<view class="slide"> |
|
|
|
<u-slider activeColor="#236030" v-model="value" min="30" max="80"></u-slider> |
|
|
|
<u-slider activeColor="#236030" v-model="value" min="30" max="80"></u-slider> |
|
|
@ -103,27 +103,13 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
getOrderDetails(){ |
|
|
|
getOrderDetails(){ |
|
|
|
orderDetail({id:this.id,custom: { auth: true }}).then(res=>{ |
|
|
|
orderDetail({id:this.id,custom: { auth: true }}).then(res=>{ |
|
|
|
|
|
|
|
this.value = res.data.order_amount |
|
|
|
this.orderDetails = Object.assign({},this.orderDetails,res.data); |
|
|
|
this.orderDetails = Object.assign({},this.orderDetails,res.data); |
|
|
|
this.orderInfo = res.data.order_goods |
|
|
|
this.orderInfo = res.data.order_goods |
|
|
|
this.warehouse = res.data.warehouse |
|
|
|
this.warehouse = res.data.warehouse |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
getTime(time){ |
|
|
|
|
|
|
|
// 时间戳 |
|
|
|
|
|
|
|
let timestamp = time |
|
|
|
|
|
|
|
// 此处时间戳以毫秒为单位 |
|
|
|
|
|
|
|
let date = new Date(parseInt(timestamp) * 1000); |
|
|
|
|
|
|
|
let Year = date.getFullYear(); |
|
|
|
|
|
|
|
let Moth = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1); |
|
|
|
|
|
|
|
let Day = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()); |
|
|
|
|
|
|
|
let Hour = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()); |
|
|
|
|
|
|
|
let Minute = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()); |
|
|
|
|
|
|
|
let Sechond = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds()); |
|
|
|
|
|
|
|
let GMT = Year + '-' + Moth + '-' + Day + ' '+ Hour +':'+ Minute + ':' + Sechond; |
|
|
|
|
|
|
|
return GMT |
|
|
|
|
|
|
|
// console.log(GMT) // 2022-09-07 15:56:07 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 微信支付 |
|
|
|
// 微信支付 |
|
|
|
async pay(pay_list) { |
|
|
|
async pay(pay_list) { |
|
|
|
let that = this; |
|
|
|
let that = this; |
|
|
|