|
|
@ -1,7 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class="page"> |
|
|
<view class="page"> |
|
|
|
|
|
|
|
|
<navbar :title="$t('pageTitle.orderDetails')" leftClick @leftClick="$utils.navigateBack"/> |
|
|
|
|
|
|
|
|
<navbar :title="$t('pageTitle.orderDetails')" leftClick @leftClick="$utils.navigateBack"/> |
|
|
|
|
|
|
|
|
<view class="info"> |
|
|
<view class="info"> |
|
|
<view class="flex"> |
|
|
<view class="flex"> |
|
|
@ -10,21 +10,21 @@ |
|
|
<view class="server-item"> |
|
|
<view class="server-item"> |
|
|
|
|
|
|
|
|
<view class="img-box"> |
|
|
<view class="img-box"> |
|
|
<img src="../../static/image/address/selectIcon.png" style="width: 100%;height: 100%;"/> |
|
|
|
|
|
|
|
|
<img :src="orderInfo.pic" style="width: 100%;height: 100%;"/> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="server-info"> |
|
|
<view class="server-info"> |
|
|
<view class="server-title"> |
|
|
<view class="server-title"> |
|
|
{{ $t('components.aluminumProducts') }} |
|
|
|
|
|
|
|
|
{{ $t('other.aluminumProducts') }} |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="current-price"> |
|
|
<view class="current-price"> |
|
|
<text class="unit">{{ $t('components.productSpecification') }}:</text> |
|
|
<text class="unit">{{ $t('components.productSpecification') }}:</text> |
|
|
<text class="text">铝锭al>96%</text> |
|
|
|
|
|
|
|
|
<text class="text"> {{ $t('other.specification') }}</text> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="sales-volume" style="margin-top: 5px;"> |
|
|
<view class="sales-volume" style="margin-top: 5px;"> |
|
|
<view class="desc"> {{ $t('components.pickupDate') }}:2021-08-10</view> |
|
|
|
|
|
|
|
|
<view class="desc"> {{ $t('other.pickupDate') }}:{{ orderInfo.takeTime }}</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
@ -42,9 +42,9 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="addressDetail"> |
|
|
<view class="addressDetail"> |
|
|
<view class="">张三 13812345678</view> |
|
|
|
|
|
|
|
|
<view class="">{{ orderInfo.userName }} {{ orderInfo.phone }}</view> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
北京市海淀区西二旗a座101北京市海淀区西二旗a座101北京市海淀区西二旗a座101北京市海淀区西二旗a座101 |
|
|
|
|
|
|
|
|
{{ orderInfo.address }} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
@ -53,33 +53,32 @@ |
|
|
<view class="line"> |
|
|
<view class="line"> |
|
|
<view class="t min_tips"> |
|
|
<view class="t min_tips"> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
{{ $t('components.orderInfo') }} |
|
|
|
|
|
|
|
|
{{ $t('components.orderInfo') }} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="min_tips"> |
|
|
<view class="min_tips"> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
{{ $t('components.orderNumber') }} |
|
|
|
|
|
|
|
|
{{ $t('components.orderNumber') }} |
|
|
</view> |
|
|
</view> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
SF20210810001 |
|
|
|
|
|
|
|
|
{{ orderInfo.id }} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="min_tips"> |
|
|
<view class="min_tips"> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
{{ $t('components.orderTime') }} |
|
|
|
|
|
|
|
|
{{ $t('components.orderTime') }} |
|
|
</view> |
|
|
</view> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
2021-08-10 10:00:00 |
|
|
|
|
|
|
|
|
{{ orderInfo.createTime }} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 下单须知 --> |
|
|
<!-- 下单须知 --> |
|
|
<view class="line"> |
|
|
<view class="line"> |
|
|
<view class="t min_tips"> |
|
|
<view class="t min_tips"> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
{{ $t('components.orderNotice') }} |
|
|
|
|
|
|
|
|
{{ $t('components.orderNotice') }} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="xdxz" style="line-height: 40rpx;"> |
|
|
<view class="xdxz" style="line-height: 40rpx;"> |
|
|
@ -93,10 +92,10 @@ |
|
|
<!--我要撤单和联系客服--> |
|
|
<!--我要撤单和联系客服--> |
|
|
<view class="btns"> |
|
|
<view class="btns"> |
|
|
<view @click="backOrder" class="oneBtn"> |
|
|
<view @click="backOrder" class="oneBtn"> |
|
|
{{ $t('other.withdrawOrder') }} |
|
|
|
|
|
|
|
|
{{ $t('other.withdrawOrder') }} |
|
|
</view> |
|
|
</view> |
|
|
<view @click="$refs.customerServicePopup.open()" class="twoBtn"> |
|
|
<view @click="$refs.customerServicePopup.open()" class="twoBtn"> |
|
|
{{ $t('components.contactCustomerService') }} |
|
|
|
|
|
|
|
|
{{ $t('components.contactCustomerService') }} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
@ -113,21 +112,48 @@ export default { |
|
|
name: "orderDetail2", |
|
|
name: "orderDetail2", |
|
|
components: {customerServicePopup}, |
|
|
components: {customerServicePopup}, |
|
|
onLoad(options) { |
|
|
onLoad(options) { |
|
|
this.orderId = options.id |
|
|
|
|
|
|
|
|
if (options.orderInfo) { |
|
|
|
|
|
this.orderInfo = JSON.parse(decodeURIComponent(options.orderInfo)); |
|
|
|
|
|
console.log(this.orderInfo, "解析后的订单数据"); // 解析后的订单数据 |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
orderId: null, |
|
|
|
|
|
|
|
|
orderInfo: {} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
|
|
|
// 供应商根据挂单id查询挂单详情的接口 |
|
|
|
|
|
queryOrderInfo() { |
|
|
|
|
|
this.$api('getProductInfo', this.orderId, res => { |
|
|
|
|
|
console.log(res, "挂单详情信息") |
|
|
|
|
|
this.orderInfo = res.result |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 撤单 |
|
|
// 撤单 |
|
|
backOrder() { |
|
|
backOrder() { |
|
|
console.log("撤单") |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: `/pages_order/order/backOrder?id=1` |
|
|
|
|
|
|
|
|
let self = this |
|
|
|
|
|
uni.showModal({ |
|
|
|
|
|
title: self.$t('other.backOrderTitle'), |
|
|
|
|
|
content: self.$t('other.backOrderTitleConfirm'), |
|
|
|
|
|
success(e) { |
|
|
|
|
|
if (e.confirm) { |
|
|
|
|
|
self.$api('noShow', {id}, res => { |
|
|
|
|
|
if (res.code == 200) { |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: self.$t('other.backOrderSuccess'), |
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
}) |
|
|
|
|
|
uni.navigateBack(); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
|