|
@@ -2,13 +2,51 @@
|
|
|
<view class="page">
|
|
|
<view class="top">
|
|
|
<view class="title">
|
|
|
- 待平台收货
|
|
|
+ {{orderTitle}}
|
|
|
</view>
|
|
|
<view class="prompt">
|
|
|
- 商品已寄往平台,正在运输中
|
|
|
+ {{orderDetail}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="packaging" v-if="orderStauts == 4">
|
|
|
+ <view class="packaging-top">
|
|
|
+ <view class="">
|
|
|
+ {{"普通包裹"+" "+"|"+" "+"海运散货"}}
|
|
|
+ </view>
|
|
|
+ <view style="color:#f83224;">
|
|
|
+ 拼包中
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="packaging-center">
|
|
|
+ <view class="packaging-left">
|
|
|
+ <view class="left-top">
|
|
|
+ 东莞仓库
|
|
|
+ </view>
|
|
|
+ <view class="left-bottom">
|
|
|
+ 始发地
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <image class="jiantou" src="../../static/mine/339.png" mode=""></image>
|
|
|
+ <view class="packaging-left">
|
|
|
+ <view class="left-top">
|
|
|
+ 澳大利亚
|
|
|
+ </view>
|
|
|
+ <view class="left-bottom">
|
|
|
+ 目的地
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="packaging-time">
|
|
|
+ <view class="time">
|
|
|
+ <text>开始时间:</text>
|
|
|
+ <text>{{"2024-5-25" + " "}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="time">
|
|
|
+ <text>开始时间:</text>
|
|
|
+ <text>2024-5-25</text>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
<view class="photo" v-if="orderStauts == 1">
|
|
|
<view class="_weight"> <text>称重重量</text> <text>168kg</text> </view>
|
|
|
<view class="_weight"> <text>称重图片</text>
|
|
@@ -81,7 +119,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="num-information">
|
|
|
- <view class="order" style="margin-bottom: 28rpx;">
|
|
|
+ <view class="order" style="">
|
|
|
<text class="_label-1">订单编号</text>
|
|
|
<view class="num">
|
|
|
<text>ZT83829300113344</text>{{ " "+"|"+" " }}<text
|
|
@@ -94,10 +132,20 @@
|
|
|
2023-11-24 22:31
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="order" v-show="orderStauts == 2">
|
|
|
+ <text class="_label-1">付款时间</text>
|
|
|
+ <view class="num">
|
|
|
+ 2023-11-24 22:31
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="footer">
|
|
|
+ <view class="pay">
|
|
|
+ <text>已付</text>
|
|
|
+ <text style="color: #f83224; font-weight: 600;">123.1</text>
|
|
|
+ </view>
|
|
|
+ <view class="footer" v-if="orderStauts != 2 ">
|
|
|
<button class="btn-1" @click="toLogistics">查看物流</button>
|
|
|
- <button class="btn-2" @click="toPay">立即付款</button>
|
|
|
+ <button class="btn-2" @click="toPay" v-if="orderStauts == 1">立即付款</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -106,20 +154,61 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- orderStauts: 1
|
|
|
+ orderStauts: 0,
|
|
|
+ orderTitle: "",
|
|
|
+ orderDetail: ""
|
|
|
};
|
|
|
},
|
|
|
+ computed: {
|
|
|
+
|
|
|
+ },
|
|
|
onLoad(options) {
|
|
|
console.log(options)
|
|
|
- this.setStatus(options.orderStauts)
|
|
|
- },
|
|
|
- created() {
|
|
|
- //设置顶部标题栏颜色
|
|
|
- uni.setNavigationBarColor({
|
|
|
- frontColor: '#000000',
|
|
|
- backgroundColor: '#f4f4f4'
|
|
|
- })
|
|
|
+ this.orderStauts = options.orderStatus
|
|
|
+ if (this.orderStauts == 0) {
|
|
|
+ //设置顶部标题栏颜色
|
|
|
+ uni.setNavigationBarColor({
|
|
|
+ frontColor: '#000000',
|
|
|
+ backgroundColor: '#f4f4f4'
|
|
|
+ })
|
|
|
+ this.orderDetail = "商品已寄往平台,正在运输中"
|
|
|
+ this.orderTitle = "待平台收货"
|
|
|
+ } else if (this.orderStauts == 1) {
|
|
|
+ //设置顶部标题栏颜色
|
|
|
+ uni.setNavigationBarColor({
|
|
|
+ frontColor: '#000000',
|
|
|
+ backgroundColor: '#f4f4f4'
|
|
|
+ })
|
|
|
+ this.orderDetail = "商品已打包称重,等待用户付款"
|
|
|
+ this.orderTitle = "待付款"
|
|
|
+ } else if (this.orderStauts == 2) {
|
|
|
+ //设置顶部标题栏颜色
|
|
|
+ uni.setNavigationBarColor({
|
|
|
+ frontColor: '#000000',
|
|
|
+ backgroundColor: '#f4f4f4'
|
|
|
+ })
|
|
|
+ this.orderDetail = "等待平台发货"
|
|
|
+ this.orderTitle = "待发货"
|
|
|
+ } else if (this.orderStauts == 3) {
|
|
|
+ //设置顶部标题栏颜色
|
|
|
+ uni.setNavigationBarColor({
|
|
|
+ frontColor: '#000000',
|
|
|
+ backgroundColor: '#f4f4f4'
|
|
|
+ })
|
|
|
+ this.orderDetail = "商品已发出,很快将发货至您的手中"
|
|
|
+ this.orderTitle = "已发货"
|
|
|
+ } else if (this.orderStauts == 4) {
|
|
|
+ //设置顶部标题栏颜色
|
|
|
+ uni.setNavigationBarColor({
|
|
|
+ frontColor: '#000000',
|
|
|
+ backgroundColor: '#ffffff'
|
|
|
+ })
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
+ title:"拼包详情"
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
+ created() {},
|
|
|
methods: {
|
|
|
cope(str) {
|
|
|
uni.setClipboardData({
|
|
@@ -132,18 +221,17 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- setStatus(num){
|
|
|
+ setStatus(num) {
|
|
|
this.orderStauts = num
|
|
|
- return 11
|
|
|
},
|
|
|
toLogistics() {
|
|
|
uni.navigateTo({
|
|
|
url: "/pageD/logisticsProgress/logisticsProgress"
|
|
|
})
|
|
|
},
|
|
|
- toPay(){
|
|
|
+ toPay() {
|
|
|
uni.navigateTo({
|
|
|
- url:"/pageD/paymentOrder/paymentOrder"
|
|
|
+ url: "/pageD/paymentOrder/paymentOrder"
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -166,41 +254,88 @@
|
|
|
color: rgba(34, 34, 34, .5);
|
|
|
margin-top: 12rpx;
|
|
|
}
|
|
|
-
|
|
|
- .photo{
|
|
|
+ .packaging{
|
|
|
+ border-radius: 16rpx;
|
|
|
+ background-color: #fff;
|
|
|
+ padding: 30rpx 20rpx;
|
|
|
+ .packaging-top{
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #222;
|
|
|
+ }
|
|
|
+ .packaging-center{
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-around;
|
|
|
+ align-items: center;
|
|
|
+ margin-top: 26rpx;
|
|
|
+ background-color: #F5F5F5;
|
|
|
+ border-radius: 10rpx;
|
|
|
+ padding: 20rpx 0;
|
|
|
+ .jiantou{
|
|
|
+ width: 130rpx;
|
|
|
+ height: 10rpx;
|
|
|
+ }
|
|
|
+ .packaging-left{
|
|
|
+ text-align: center;
|
|
|
+ .left-top{
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #222;
|
|
|
+ font-weight: 600;
|
|
|
+ }
|
|
|
+ .left-bottom{
|
|
|
+ margin-top: 10rpx;
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: rgba(34, 34, 34, .5);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .packaging-time{
|
|
|
+ font-size: 28rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-top: 28rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .photo {
|
|
|
background-color: #fff;
|
|
|
border-radius: 16rpx;
|
|
|
padding: 20rpx 20rpx;
|
|
|
margin-top: 20rpx;
|
|
|
- ._weight{
|
|
|
+
|
|
|
+ ._weight {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
font-size: 26rpx;
|
|
|
color: rgba(34, 34, 34, .8);
|
|
|
margin-bottom: 32rpx;
|
|
|
- ._image{
|
|
|
+
|
|
|
+ ._image {
|
|
|
width: 160rpx;
|
|
|
height: 90rpx;
|
|
|
background-color: #D8D8D8;
|
|
|
border-radius: 4rpx;
|
|
|
}
|
|
|
}
|
|
|
- .photo-bottom{
|
|
|
+
|
|
|
+ .photo-bottom {
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
align-items: center;
|
|
|
border-top: 2rpx solid rgba(151, 151, 151, .1);
|
|
|
padding-top: 24rpx;
|
|
|
- .price{
|
|
|
+
|
|
|
+ .price {
|
|
|
color: #f83224;
|
|
|
font-weight: 600;
|
|
|
}
|
|
|
- ._text-1{
|
|
|
+
|
|
|
+ ._text-1 {
|
|
|
font-size: 26rpx;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.address {
|
|
|
padding: 36rpx 34rpx;
|
|
|
background-color: #fff;
|
|
@@ -278,12 +413,13 @@
|
|
|
background-color: #fff;
|
|
|
border-radius: 16rpx;
|
|
|
margin-top: 20rpx;
|
|
|
- padding: 28rpx 20rpx 28rpx 28rpx;
|
|
|
+ padding: 28rpx 20rpx 2rpx 28rpx;
|
|
|
|
|
|
.order {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
font-size: 28rpx;
|
|
|
+ margin-bottom: 28rpx;
|
|
|
|
|
|
._label-1 {
|
|
|
color: #666;
|
|
@@ -295,6 +431,15 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ .pay {
|
|
|
+ display: flex;
|
|
|
+ padding: 22rpx 28rpx;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-top: 20rpx;
|
|
|
+ background-color: #fff;
|
|
|
+ border-radius: 16rpx;
|
|
|
+ }
|
|
|
+
|
|
|
.footer {
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
@@ -318,6 +463,7 @@
|
|
|
border: 2rpx solid #979797;
|
|
|
margin-right: 20rpx;
|
|
|
}
|
|
|
+
|
|
|
.btn-2 {
|
|
|
height: 76rpx;
|
|
|
padding: 0;
|