Compare commits
4 Commits
6f3c5ceb63
...
1852c98463
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1852c98463 | ||
|
|
dcde470cc5 | ||
|
|
5889bef48e | ||
| 78cec5bfc5 |
143
packages/myOrders/billInfo/index.css
Normal file
143
packages/myOrders/billInfo/index.css
Normal file
@ -0,0 +1,143 @@
|
|||||||
|
.line {
|
||||||
|
background-color: #F6F7FB;
|
||||||
|
height: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.orderItem {
|
||||||
|
padding: 0 20rpx;
|
||||||
|
padding-bottom: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.orderItem1 {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding-bottom: 30rpx;
|
||||||
|
border-bottom: 1rpx solid #EBEBEB;
|
||||||
|
padding-top: 16rpx;
|
||||||
|
margin-bottom: 33rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.orderItem_left {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 50rpx;
|
||||||
|
color: #FF370B;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.orderItem_left span {
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.orderItem_left #state1 {
|
||||||
|
width: 110rpx;
|
||||||
|
height: 40rpx;
|
||||||
|
margin-left: 18rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.orderItem_left #state2 {
|
||||||
|
width: 160rpx;
|
||||||
|
height: 40rpx;
|
||||||
|
margin-left: 18rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.orderItem_right {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #999999;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.orderItem_right image {
|
||||||
|
width: 32rpx;
|
||||||
|
height: 32rpx;
|
||||||
|
margin-right: 14rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 10rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.row_label {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #999999;
|
||||||
|
white-space: nowrap;
|
||||||
|
margin-right: 110rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.row_con {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #222222;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.orderItemTit2 {
|
||||||
|
font-size: 34rpx;
|
||||||
|
color: #222222;
|
||||||
|
font-weight: 600;
|
||||||
|
padding-top: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog {
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background-color: rgba(0, 0, 0, .4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialogCon {
|
||||||
|
width: 610rpx;
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0 54rpx;
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: 20vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialogCon_tit {
|
||||||
|
text-align: center;
|
||||||
|
padding-top: 53rpx;
|
||||||
|
margin-bottom: 40rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialogCon_row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialogCon_row_label {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #999999;
|
||||||
|
margin-right: 84rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.orange {
|
||||||
|
color: #FF370B;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialogCon_row:last-child{
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
font-size: 34rpx;
|
||||||
|
color: #FF370B;
|
||||||
|
text-align: center;
|
||||||
|
padding-top: 30rpx;
|
||||||
|
border-top: 1rpx solid #EBEBEB;
|
||||||
|
margin-top: 42rpx;
|
||||||
|
padding-bottom: 35rpx;
|
||||||
|
}
|
||||||
122
packages/myOrders/billInfo/index.vue
Normal file
122
packages/myOrders/billInfo/index.vue
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
<template>
|
||||||
|
<view class="container">
|
||||||
|
<div class="line"></div>
|
||||||
|
<div class="orderItem">
|
||||||
|
<div class="orderItem1">
|
||||||
|
<div class="orderItem_left">
|
||||||
|
<span>¥</span>4704.00
|
||||||
|
<image v-if="false" id="state1" src="http://192.168.0.172:5500/7.15/myOrder_BillState1.png"></image>
|
||||||
|
<image id="state2" src="http://192.168.0.172:5500/7.15/myOrder_BillState2.png"></image>
|
||||||
|
</div>
|
||||||
|
<div class="orderItem_right" @click="changeDialog">
|
||||||
|
<image src="http://192.168.0.172:5500/7.15/myOrder_Explanation.png"></image>
|
||||||
|
运费说明
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="row_label">运费单号</div>
|
||||||
|
<div class="row_con">155323454224524454</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="row_label">下单时间</div>
|
||||||
|
<div class="row_con">2021-04-16 11:11:11</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="line"></div>
|
||||||
|
<div class="orderItem">
|
||||||
|
<div class="orderItemTit2">关联订单号</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="row_label">订单1</div>
|
||||||
|
<div class="row_con">
|
||||||
|
142047425444415
|
||||||
|
<u-icon name="arrow-right"></u-icon>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="row_label">订单2</div>
|
||||||
|
<div class="row_con">
|
||||||
|
142047425444415
|
||||||
|
<u-icon name="arrow-right"></u-icon>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="line"></div>
|
||||||
|
<div class="orderItem">
|
||||||
|
<div class="orderItemTit2">关联订单号</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="row_label">门店名称</div>
|
||||||
|
<div class="row_con">
|
||||||
|
马路边边马路边边马路边边马路边边马
|
||||||
|
路边边马路边边马路边边马路边边
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="dialog" v-if="dialog">
|
||||||
|
<div class="dialogCon">
|
||||||
|
<div class="dialogCon_tit">运费退款详情</div>
|
||||||
|
<div class="dialogCon_row">
|
||||||
|
<div class="dialogCon_row_label">退款金额</div>
|
||||||
|
<div class="dialogCon_row_con orange">¥40.00</div>
|
||||||
|
</div>
|
||||||
|
<div class="dialogCon_row">
|
||||||
|
<div class="dialogCon_row_label">退款状态</div>
|
||||||
|
<div class="dialogCon_row_con">已完成</div>
|
||||||
|
</div>
|
||||||
|
<div class="dialogCon_row">
|
||||||
|
<div class="dialogCon_row_label">退款方式</div>
|
||||||
|
<div class="dialogCon_row_con">微信退款</div>
|
||||||
|
</div>
|
||||||
|
<div class="dialogCon_row">
|
||||||
|
<div class="dialogCon_row_label">退款时间</div>
|
||||||
|
<div class="dialogCon_row_con">2021-02-04 18:55:55</div>
|
||||||
|
</div>
|
||||||
|
<div class="btn" @click="changeDialog">我知道了</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
apiArr
|
||||||
|
} from '../../../api/doorToDoor';
|
||||||
|
import {
|
||||||
|
picUrl,
|
||||||
|
menuButtonInfo,
|
||||||
|
request,
|
||||||
|
NavgateTo
|
||||||
|
} from '../../../utils';
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
top: "",
|
||||||
|
localHeight: "",
|
||||||
|
type: "error",
|
||||||
|
dialog:false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
changeDialog(){
|
||||||
|
this.dialog = !this.dialog
|
||||||
|
},
|
||||||
|
},
|
||||||
|
onLoad(options) {
|
||||||
|
const meun = menuButtonInfo();
|
||||||
|
this.top = meun.top;
|
||||||
|
this.localHeight = meun.height;
|
||||||
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import url("./index.css");
|
||||||
|
</style>
|
||||||
67
packages/myOrders/freightBill/index.css
Normal file
67
packages/myOrders/freightBill/index.css
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
|
||||||
|
|
||||||
|
.billImg {
|
||||||
|
margin-top: 70rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.billImg image {
|
||||||
|
width: 199rpx;
|
||||||
|
height: 170.12rpx;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.billText {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #999999;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 25rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.orderList {
|
||||||
|
background: #FFFFFF;
|
||||||
|
box-shadow: 0rpx 2rpx 11rpx 0rpx rgba(0, 0, 0, 0.25);
|
||||||
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
||||||
|
width: 620rpx;
|
||||||
|
padding: 68rpx 53rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin: 0 auto;
|
||||||
|
margin-top: 56rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Tit {
|
||||||
|
font-size: 36rpx;
|
||||||
|
color: #222222;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item_msg {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #999999;
|
||||||
|
margin: 10rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item_msg span {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #FF370B;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.line {
|
||||||
|
height: 2rpx;
|
||||||
|
width: 100%;
|
||||||
|
border-bottom: 1rpx dashed #D9D9D9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
width: 600rpx;
|
||||||
|
height: 90rpx;
|
||||||
|
background: linear-gradient(91deg, #FF7658 0%, #FF370B 100%);
|
||||||
|
border-radius: 100rpx 100rpx 100rpx 100rpx;
|
||||||
|
margin: 0 auto;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-top: 80rpx;
|
||||||
|
font-size: 36rpx;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
62
packages/myOrders/freightBill/index.vue
Normal file
62
packages/myOrders/freightBill/index.vue
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
<template>
|
||||||
|
<view class="container">
|
||||||
|
<view class="billImg">
|
||||||
|
<image src="http://192.168.0.172:5500/7.15/myOrder_Bill.png"></image>
|
||||||
|
</view>
|
||||||
|
<div class="billText">您还有订单未支付哦~</div>
|
||||||
|
|
||||||
|
<div class="orderList">
|
||||||
|
<div class="orderItem">
|
||||||
|
<div class="Tit">运费单:</div>
|
||||||
|
<div class="item_msg">运费单号:384575564714555645556</div>
|
||||||
|
<div class="item_msg">运费金额:<span>¥329.88</span></div>
|
||||||
|
<div class="line"></div>
|
||||||
|
<div class="Tit">订单:</div>
|
||||||
|
<div class="item_msg">订单编号:384575564714555645556</div>
|
||||||
|
<div class="item_msg">订单金额:<span>¥329.88</span></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="btn">
|
||||||
|
支付¥989.64
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
apiArr
|
||||||
|
} from '../../../api/doorToDoor';
|
||||||
|
import {
|
||||||
|
picUrl,
|
||||||
|
menuButtonInfo,
|
||||||
|
request,
|
||||||
|
NavgateTo
|
||||||
|
} from '../../../utils';
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
top: "",
|
||||||
|
localHeight: "",
|
||||||
|
type: "error",
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
},
|
||||||
|
onLoad(options) {
|
||||||
|
const meun = menuButtonInfo();
|
||||||
|
this.top = meun.top;
|
||||||
|
this.localHeight = meun.height;
|
||||||
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import url("./index.css");
|
||||||
|
</style>
|
||||||
@ -49,6 +49,7 @@ page {
|
|||||||
.order-header {
|
.order-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #a3a3a3;
|
color: #a3a3a3;
|
||||||
@ -60,6 +61,26 @@ page {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.status2 {
|
||||||
|
color: #333;
|
||||||
|
font-weight: bold;
|
||||||
|
border: 1rpx solid #f83d19;
|
||||||
|
display: flex;
|
||||||
|
padding: 10rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status2 img {
|
||||||
|
width: 30rpx;
|
||||||
|
height: 30rpx;
|
||||||
|
margin-right: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status3 {
|
||||||
|
color: #949494;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
.goods-list {
|
.goods-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@ -90,7 +111,7 @@ page {
|
|||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.order-footer-text text{
|
.order-footer-text text {
|
||||||
color: #ff3710;
|
color: #ff3710;
|
||||||
margin-left: 10rpx;
|
margin-left: 10rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@ -110,6 +131,17 @@ page {
|
|||||||
border: 1rpx solid #ddd;
|
border: 1rpx solid #ddd;
|
||||||
border-radius: 30rpx;
|
border-radius: 30rpx;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yfd-btn {
|
||||||
|
width: 160rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
background: #ffebcb;
|
||||||
|
color: #802002;
|
||||||
|
border: none;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
font-size: 24rpx;
|
||||||
margin: 0 20rpx;
|
margin: 0 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -17,13 +17,24 @@
|
|||||||
<view v-for="(item, index) in orderData" :key="index">
|
<view v-for="(item, index) in orderData" :key="index">
|
||||||
<view class="contentList">
|
<view class="contentList">
|
||||||
<!-- 订单头部信息 -->
|
<!-- 订单头部信息 -->
|
||||||
<view class="order-header">
|
<view class="order-header" @click="toDetails(item.status)">
|
||||||
<text>提交订单:{{ item.createTime }}</text>
|
<text>提交订单:{{ item.createTime }}</text>
|
||||||
<text class="status">{{ item.status }}</text>
|
<view
|
||||||
|
v-if="item.status == '已取消' || item.status == '已完成'"
|
||||||
|
class="status3"
|
||||||
|
>{{ item.status }}</view
|
||||||
|
>
|
||||||
|
<view v-else-if="item.status == '退款中'" class="status2">
|
||||||
|
<img
|
||||||
|
src="http://localhost:8080/refund.png"
|
||||||
|
/>
|
||||||
|
{{ item.status }}
|
||||||
|
</view>
|
||||||
|
<view v-else class="status">{{ item.status }}</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 商品列表 -->
|
<!-- 商品列表 -->
|
||||||
<view class="goods-list">
|
<view class="goods-list" @click="toDetails(item.status)">
|
||||||
<view
|
<view
|
||||||
v-for="(goods, goodsIndex) in item.goodsList"
|
v-for="(goods, goodsIndex) in item.goodsList"
|
||||||
:key="goodsIndex"
|
:key="goodsIndex"
|
||||||
@ -35,15 +46,50 @@
|
|||||||
|
|
||||||
<!-- 订单底部信息 -->
|
<!-- 订单底部信息 -->
|
||||||
<view class="order-footer">
|
<view class="order-footer">
|
||||||
<view class="order-footer-text"
|
<view class="order-footer-text" @click="toDetails(item.status)"
|
||||||
>共{{ item.totalCount }}件商品,共计
|
>共{{ item.totalCount }}件商品,共计
|
||||||
<text> {{ item.totalPrice }}</text>
|
<text> {{ item.totalPrice }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn-group">
|
<view>
|
||||||
<button class="cancel-btn" @click="cancelOrder">
|
<view class="btn-group" v-if="item.status === '待付款'">
|
||||||
取消订单
|
<button class="cancel-btn" @click="cancelOrder">
|
||||||
</button>
|
取消订单
|
||||||
<button class="pay-btn" @click="goToPay">立即支付</button>
|
</button>
|
||||||
|
<button class="yfd-btn" @click="cancelOrder">运费单</button>
|
||||||
|
<button class="pay-btn" @click="goToPay">立即支付</button>
|
||||||
|
</view>
|
||||||
|
<view class="btn-group" v-if="item.status === '待发货'">
|
||||||
|
<button class="yfd-btn" @click="cancelOrder">运费单</button>
|
||||||
|
</view>
|
||||||
|
<view class="btn-group" v-if="item.status === '已取消'">
|
||||||
|
<button class="yfd-btn" @click="cancelOrder">运费单</button>
|
||||||
|
<button class="pay-btn" @click="cancelOrder">
|
||||||
|
再来一单
|
||||||
|
</button>
|
||||||
|
</view>
|
||||||
|
<view class="btn-group" v-if="item.status === '配送中'">
|
||||||
|
<button class="cancel-btn" @click="checkLogistics">
|
||||||
|
查看物流
|
||||||
|
</button>
|
||||||
|
<button class="yfd-btn" @click="cancelOrder">运费单</button>
|
||||||
|
<button class="pay-btn" @click="cancelOrder">
|
||||||
|
再来一单
|
||||||
|
</button>
|
||||||
|
</view>
|
||||||
|
<view class="btn-group" v-if="item.status === '已完成'">
|
||||||
|
<button class="cancel-btn" @click="cancelOrder">
|
||||||
|
服务评价
|
||||||
|
</button>
|
||||||
|
<button class="yfd-btn" @click="cancelOrder">运费单</button>
|
||||||
|
<button class="pay-btn" @click="cancelOrder">
|
||||||
|
再来一单
|
||||||
|
</button>
|
||||||
|
</view>
|
||||||
|
<view class="btn-group" v-if="item.status === '退款中'">
|
||||||
|
<button class="pay-btn" @click="cancelOrder">
|
||||||
|
再来一单
|
||||||
|
</button>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -54,6 +100,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import { picUrl, NavgateTo } from "../../../utils";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -70,11 +118,11 @@ export default {
|
|||||||
createTime: "2025-07-15 23:23:23",
|
createTime: "2025-07-15 23:23:23",
|
||||||
status: "待付款",
|
status: "待付款",
|
||||||
goodsList: [
|
goodsList: [
|
||||||
{ image: "/static/logo.png" },
|
{ image: "http://localhost:8080/order_index1.png" },
|
||||||
{ image: "/static/logo.png" },
|
{ image: "http://localhost:8080/order_index2.png" },
|
||||||
{ image: "/static/logo.png" },
|
{ image: "http://localhost:8080/order_index3.png" },
|
||||||
{ image: "/static/logo.png" },
|
{ image: "http://localhost:8080/order_index4.png" },
|
||||||
{ image: "/static/logo.png" },
|
{ image: "http://localhost:8080/order_index5.png" },
|
||||||
],
|
],
|
||||||
totalCount: 1,
|
totalCount: 1,
|
||||||
totalPrice: "¥4704.00",
|
totalPrice: "¥4704.00",
|
||||||
@ -83,11 +131,11 @@ export default {
|
|||||||
createTime: "2025-07-15 23:23:23",
|
createTime: "2025-07-15 23:23:23",
|
||||||
status: "待发货",
|
status: "待发货",
|
||||||
goodsList: [
|
goodsList: [
|
||||||
{ image: "/static/logo.png" },
|
{ image: "http://localhost:8080/order_index1.png" },
|
||||||
{ image: "/static/logo.png" },
|
{ image: "http://localhost:8080/order_index2.png" },
|
||||||
{ image: "/static/logo.png" },
|
{ image: "http://localhost:8080/order_index3.png" },
|
||||||
{ image: "/static/logo.png" },
|
{ image: "http://localhost:8080/order_index4.png" },
|
||||||
{ image: "/static/logo.png" },
|
{ image: "http://localhost:8080/order_index5.png" },
|
||||||
],
|
],
|
||||||
totalCount: 2,
|
totalCount: 2,
|
||||||
totalPrice: "¥4704.00",
|
totalPrice: "¥4704.00",
|
||||||
@ -96,11 +144,50 @@ export default {
|
|||||||
createTime: "2025-07-15 23:23:23",
|
createTime: "2025-07-15 23:23:23",
|
||||||
status: "已取消",
|
status: "已取消",
|
||||||
goodsList: [
|
goodsList: [
|
||||||
{ image: "/static/logo.png" },
|
{ image: "http://localhost:8080/order_index1.png" },
|
||||||
{ image: "/static/logo.png" },
|
{ image: "http://localhost:8080/order_index2.png" },
|
||||||
{ image: "/static/logo.png" },
|
{ image: "http://localhost:8080/order_index3.png" },
|
||||||
{ image: "/static/logo.png" },
|
{ image: "http://localhost:8080/order_index4.png" },
|
||||||
{ image: "/static/logo.png" },
|
{ image: "http://localhost:8080/order_index5.png" },
|
||||||
|
],
|
||||||
|
totalCount: 3,
|
||||||
|
totalPrice: "¥4704.00",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
createTime: "2025-07-15 23:23:23",
|
||||||
|
status: "配送中",
|
||||||
|
goodsList: [
|
||||||
|
{ image: "http://localhost:8080/order_index1.png" },
|
||||||
|
{ image: "http://localhost:8080/order_index2.png" },
|
||||||
|
{ image: "http://localhost:8080/order_index3.png" },
|
||||||
|
{ image: "http://localhost:8080/order_index4.png" },
|
||||||
|
{ image: "http://localhost:8080/order_index5.png" },
|
||||||
|
],
|
||||||
|
totalCount: 2,
|
||||||
|
totalPrice: "¥4704.00",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
createTime: "2025-07-15 23:23:23",
|
||||||
|
status: "已完成",
|
||||||
|
goodsList: [
|
||||||
|
{ image: "http://localhost:8080/order_index1.png" },
|
||||||
|
{ image: "http://localhost:8080/order_index2.png" },
|
||||||
|
{ image: "http://localhost:8080/order_index3.png" },
|
||||||
|
{ image: "http://localhost:8080/order_index4.png" },
|
||||||
|
{ image: "http://localhost:8080/order_index5.png" },
|
||||||
|
],
|
||||||
|
totalCount: 3,
|
||||||
|
totalPrice: "¥4704.00",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
createTime: "2025-07-15 23:23:23",
|
||||||
|
status: "退款中",
|
||||||
|
goodsList: [
|
||||||
|
{ image: "http://localhost:8080/order_index1.png" },
|
||||||
|
{ image: "http://localhost:8080/order_index2.png" },
|
||||||
|
{ image: "http://localhost:8080/order_index3.png" },
|
||||||
|
{ image: "http://localhost:8080/order_index4.png" },
|
||||||
|
{ image: "http://localhost:8080/order_index5.png" },
|
||||||
],
|
],
|
||||||
totalCount: 3,
|
totalCount: 3,
|
||||||
totalPrice: "¥4704.00",
|
totalPrice: "¥4704.00",
|
||||||
@ -125,10 +212,14 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
goToPay() {
|
goToPay() {
|
||||||
// 跳转到支付页面
|
console.log("🚀 ~ goToPay ~ goToPay:", "去支付...");
|
||||||
uni.navigateTo({
|
},
|
||||||
url: "/kitchen/pay/index",
|
toDetails(status) {
|
||||||
});
|
NavgateTo(`/packages/myOrders/orderDetails/index?status=${status}`);
|
||||||
|
},
|
||||||
|
|
||||||
|
checkLogistics() {
|
||||||
|
NavgateTo(`/packages/myOrders/logistics/index`);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
215
packages/myOrders/logistics/index.css
Normal file
215
packages/myOrders/logistics/index.css
Normal file
@ -0,0 +1,215 @@
|
|||||||
|
/* 全局样式 */
|
||||||
|
page {
|
||||||
|
background-color: #f5f7fa;
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
|
||||||
|
padding-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
padding: 0 10rpx 40rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 地图容器 */
|
||||||
|
.map-container {
|
||||||
|
height: 110vh;
|
||||||
|
border-radius: 16rpx;
|
||||||
|
overflow: hidden;
|
||||||
|
margin: 30rpx 20rpx;
|
||||||
|
position: relative;
|
||||||
|
box-shadow: 0 8rpx 20rpx rgba(0, 0, 0, 0.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 卡片通用样式 */
|
||||||
|
.address-card,
|
||||||
|
.info-card {
|
||||||
|
background: white;
|
||||||
|
border-radius: 16rpx;
|
||||||
|
padding: 30rpx;
|
||||||
|
margin: 0 20rpx 30rpx;
|
||||||
|
box-shadow: 0 8rpx 20rpx rgba(0, 0, 0, 0.05);
|
||||||
|
position: absolute;
|
||||||
|
top: 500rpx;
|
||||||
|
left: 30rpx;
|
||||||
|
right: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 信息卡片 */
|
||||||
|
.info-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 20rpx 0;
|
||||||
|
border-bottom: 1rpx solid #f0f0f0;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-row:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-icon {
|
||||||
|
width: 36rpx;
|
||||||
|
height: 36rpx;
|
||||||
|
margin-right: 15rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-label {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333;
|
||||||
|
min-width: 120rpx;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-value {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #333;
|
||||||
|
font-weight: 500;
|
||||||
|
/* flex: 1; */
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-value text{
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #f25233;
|
||||||
|
font-weight: 500;
|
||||||
|
margin-left: 15rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copy-btn {
|
||||||
|
width: 35rpx;
|
||||||
|
height: 35rpx;
|
||||||
|
float: right;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 时间轴样式 */
|
||||||
|
.timeline {
|
||||||
|
position: relative;
|
||||||
|
background: white;
|
||||||
|
border-radius: 16rpx;
|
||||||
|
padding: 30rpx;
|
||||||
|
margin: 0 20rpx;
|
||||||
|
box-shadow: 0 8rpx 20rpx rgba(0, 0, 0, 0.05);
|
||||||
|
position: absolute;
|
||||||
|
top: 820rpx;
|
||||||
|
left: 30rpx;
|
||||||
|
right: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-title {
|
||||||
|
font-size: 34rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
padding-left: 20rpx;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-title::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
width: 8rpx;
|
||||||
|
height: 36rpx;
|
||||||
|
background: #f25233;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-item {
|
||||||
|
position: relative;
|
||||||
|
padding-left: 60rpx;
|
||||||
|
margin-bottom: 40rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-item:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-dot {
|
||||||
|
position: absolute;
|
||||||
|
left: 20rpx;
|
||||||
|
top: 8rpx;
|
||||||
|
width: 20rpx;
|
||||||
|
height: 20rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: #f25233;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-item.active .timeline-dot {
|
||||||
|
background: #ffffff;
|
||||||
|
width: 15rpx;
|
||||||
|
height: 15rpx;
|
||||||
|
left: 22rpx;
|
||||||
|
top: 6rpx;
|
||||||
|
box-shadow: 0 0 0 6rpx #f25233;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-line {
|
||||||
|
position: absolute;
|
||||||
|
left: 29rpx;
|
||||||
|
top: 28rpx;
|
||||||
|
bottom: -40rpx;
|
||||||
|
width: 2rpx;
|
||||||
|
background: #f25233;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-item:last-child .timeline-line {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-status {
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 8rpx;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-item.active .timeline-status {
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-desc {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #a3a3a3;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.driver-details {
|
||||||
|
background: #f9f9f9;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
padding: 15rpx;
|
||||||
|
margin: 15rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #555;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-item-phone {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #f25233;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-item:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.detail-icon {
|
||||||
|
width: 28rpx;
|
||||||
|
height: 28rpx;
|
||||||
|
margin-right: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timeline-time {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
169
packages/myOrders/logistics/index.vue
Normal file
169
packages/myOrders/logistics/index.vue
Normal file
@ -0,0 +1,169 @@
|
|||||||
|
<template>
|
||||||
|
<view class="container">
|
||||||
|
<!-- 地图区域 -->
|
||||||
|
<view class="map-container">
|
||||||
|
<map
|
||||||
|
id="deliveryMap"
|
||||||
|
:latitude="latitude"
|
||||||
|
:longitude="longitude"
|
||||||
|
:markers="markers"
|
||||||
|
:polyline="polyline"
|
||||||
|
:include-points="points"
|
||||||
|
style="width: 100%; height: 110%"
|
||||||
|
>
|
||||||
|
</map>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 物流信息 -->
|
||||||
|
<view class="info-card">
|
||||||
|
<view class="info-row">
|
||||||
|
<text class="info-label">运单号</text>
|
||||||
|
<view>
|
||||||
|
<text class="info-value">YD999999</text>
|
||||||
|
<img
|
||||||
|
class="copy-btn"
|
||||||
|
@click="copyNumber"
|
||||||
|
src="http://localhost:8080/copy.png"
|
||||||
|
alt="复制"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="info-row">
|
||||||
|
<text class="info-label">收件人</text>
|
||||||
|
<text class="info-value">
|
||||||
|
小王
|
||||||
|
<text>1388888888</text>
|
||||||
|
</text>
|
||||||
|
</view>
|
||||||
|
<view class="info-row">
|
||||||
|
<text class="info-label">车牌号</text>
|
||||||
|
<text class="info-value">京ALN233</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 物流时间轴 -->
|
||||||
|
<view class="timeline">
|
||||||
|
<!-- 已签收 -->
|
||||||
|
<view class="timeline-item active">
|
||||||
|
<view class="timeline-dot"></view>
|
||||||
|
<view class="timeline-line"></view>
|
||||||
|
<view class="timeline-content">
|
||||||
|
<view class="timeline-status">已签收</view>
|
||||||
|
<view class="timeline-desc">您的订单已被签收,感谢您的支持</view>
|
||||||
|
<view class="timeline-time">2021-04-16 20:30:24</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 派送中 -->
|
||||||
|
<view class="timeline-item">
|
||||||
|
<view class="timeline-dot"></view>
|
||||||
|
<view class="timeline-line"></view>
|
||||||
|
<view class="timeline-content">
|
||||||
|
<view class="timeline-status">派送中</view>
|
||||||
|
<view class="timeline-desc">您的订单正在派送中</view>
|
||||||
|
<view class="timeline-desc">
|
||||||
|
<view
|
||||||
|
>配送司机:小王
|
||||||
|
<text class="detail-item-phone">1388888888</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="timeline-desc">
|
||||||
|
<text>车牌号:京ALN233</text>
|
||||||
|
</view>
|
||||||
|
<view class="timeline-time">2021-04-16 20:06:24</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 仓库处理 -->
|
||||||
|
<view class="timeline-item">
|
||||||
|
<view class="timeline-dot"></view>
|
||||||
|
<view class="timeline-line"></view>
|
||||||
|
<view class="timeline-content">
|
||||||
|
<view class="timeline-status">仓库处理中</view>
|
||||||
|
<view class="timeline-desc">拣货完成</view>
|
||||||
|
<view class="timeline-time">2021-04-16 20:30:24</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 已下单 -->
|
||||||
|
<view class="timeline-item">
|
||||||
|
<view class="timeline-dot"></view>
|
||||||
|
<view class="timeline-line"></view>
|
||||||
|
<view class="timeline-content">
|
||||||
|
<view class="timeline-status">已下单</view>
|
||||||
|
<view class="timeline-desc">您提交了订单,预计2020-04-29送达</view>
|
||||||
|
<view class="timeline-time">2021-04-16 20:30:24</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 坐标
|
||||||
|
latitude: 39.90469,
|
||||||
|
longitude: 116.40717,
|
||||||
|
|
||||||
|
// 地图标记点
|
||||||
|
markers: [
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
latitude: 39.90469,
|
||||||
|
longitude: 116.40717,
|
||||||
|
title: "目的地",
|
||||||
|
iconPath: "/static/destination.png",
|
||||||
|
width: 36,
|
||||||
|
height: 36,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 2,
|
||||||
|
latitude: 39.915,
|
||||||
|
longitude: 116.42,
|
||||||
|
title: "当前位置",
|
||||||
|
iconPath: "/static/current.png",
|
||||||
|
width: 40,
|
||||||
|
height: 40,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
|
// 配送路线
|
||||||
|
polyline: [
|
||||||
|
{
|
||||||
|
points: [
|
||||||
|
{ latitude: 39.915, longitude: 116.42 },
|
||||||
|
{ latitude: 39.91, longitude: 116.415 },
|
||||||
|
{ latitude: 39.907, longitude: 116.41 },
|
||||||
|
{ latitude: 39.90469, longitude: 116.40717 },
|
||||||
|
],
|
||||||
|
color: "#07C160",
|
||||||
|
width: 6,
|
||||||
|
dottedLine: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
|
// 地图显示区域
|
||||||
|
points: [
|
||||||
|
{ latitude: 39.915, longitude: 116.42 },
|
||||||
|
{ latitude: 39.90469, longitude: 116.40717 },
|
||||||
|
],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
copyNumber() {
|
||||||
|
uni.setClipboardData({
|
||||||
|
data: "YD999999",
|
||||||
|
success: () => {
|
||||||
|
uni.showToast({ title: "运单号已复制", icon: "success" });
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@import url("./index.css");
|
||||||
|
</style>
|
||||||
241
packages/myOrders/orderDetails/index.css
Normal file
241
packages/myOrders/orderDetails/index.css
Normal file
@ -0,0 +1,241 @@
|
|||||||
|
/* 基础样式 */
|
||||||
|
page {
|
||||||
|
background-color: #f6f7fb;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 顶部状态栏 */
|
||||||
|
.status-bar {
|
||||||
|
background: linear-gradient(#ff5500, #f5f7fb);
|
||||||
|
color: white;
|
||||||
|
padding: 30rpx 20rpx 20rpx;
|
||||||
|
height: 350rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status {
|
||||||
|
font-size: 36rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.countdown {
|
||||||
|
font-size: 30rpx;
|
||||||
|
margin: 15rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tips {
|
||||||
|
font-size: 24rpx;
|
||||||
|
opacity: 0.9;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phone {
|
||||||
|
width: 30rpx;
|
||||||
|
height: 30rpx;
|
||||||
|
margin-left: 5rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 订单金额 */
|
||||||
|
.content {
|
||||||
|
margin: -180rpx 15rpx 14rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.amount-section {
|
||||||
|
background: #ffffff;
|
||||||
|
padding: 30rpx 20rpx;
|
||||||
|
border-bottom: 1rpx solid #eee;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.total-amount {
|
||||||
|
font-size: 36rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.amount-desc,
|
||||||
|
.original-price {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #aaaaaa;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.original-price text {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #333;
|
||||||
|
margin-left: 10rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 商品列表 */
|
||||||
|
.goods-list {
|
||||||
|
background: #ffffff;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
padding: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.goods-item {
|
||||||
|
/* display: flex;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
margin-top: 20rpx; */
|
||||||
|
}
|
||||||
|
|
||||||
|
.goods-content {
|
||||||
|
display: flex;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.goods-info-tk{
|
||||||
|
width: 150rpx;
|
||||||
|
height: 35rpx;
|
||||||
|
position: relative;
|
||||||
|
left: 550rpx;
|
||||||
|
font-size: 26rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #fe380c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.goods-img {
|
||||||
|
width: 120rpx;
|
||||||
|
height: 120rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.goods-info {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.goods-info-right {
|
||||||
|
float: right;
|
||||||
|
color: #a0a0a0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.goods-name {
|
||||||
|
font-size: 30rpx;
|
||||||
|
margin-bottom: 5rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.goods-desc {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.goods-price {
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 信息区块通用样式 */
|
||||||
|
.order-info,
|
||||||
|
.delivery-info,
|
||||||
|
.recipient-info,
|
||||||
|
.order-detail-info {
|
||||||
|
background: #ffffff;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
padding: 20rpx;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hr {
|
||||||
|
height: 1rpx;
|
||||||
|
margin: 20rpx 0;
|
||||||
|
background: #f5f7fb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-item {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 15rpx 0;
|
||||||
|
border-bottom: 1rpx solid #f5f5f5;
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-item:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-label1 {
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-label {
|
||||||
|
color: #a7a7a7;
|
||||||
|
font-size: 26rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-value {
|
||||||
|
color: #333;
|
||||||
|
font-size: 26rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-value text {
|
||||||
|
color: #f64927;
|
||||||
|
font-size: 26rpx;
|
||||||
|
margin-left: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-action {
|
||||||
|
color: #a5a5a5;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
font-size: 26rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 底部按钮 */
|
||||||
|
.bottom-buttons {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
display: flex;
|
||||||
|
background: #ffffff;
|
||||||
|
padding: 20rpx;
|
||||||
|
box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cancel-btn {
|
||||||
|
flex: 1;
|
||||||
|
height: 80rpx;
|
||||||
|
background: #d9d9d9;
|
||||||
|
color: #333;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
border-radius: 50rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.yfd-btn {
|
||||||
|
flex: 1;
|
||||||
|
height: 80rpx;
|
||||||
|
background: #ffebcb;
|
||||||
|
color: #802002;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
border-radius: 50rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pay-btn {
|
||||||
|
flex: 1;
|
||||||
|
height: 80rpx;
|
||||||
|
background: #FF5252;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
border-radius: 50rpx;
|
||||||
|
}
|
||||||
271
packages/myOrders/orderDetails/index.vue
Normal file
271
packages/myOrders/orderDetails/index.vue
Normal file
@ -0,0 +1,271 @@
|
|||||||
|
<template>
|
||||||
|
<view class="container">
|
||||||
|
<!-- 顶部状态栏 -->
|
||||||
|
<view class="status-bar" v-if="status === '待付款'">
|
||||||
|
<view class="status">待付款</view>
|
||||||
|
<view class="countdown">剩余支付时间: {{ countdown }}</view>
|
||||||
|
<view class="tips">10分钟内未支付订单自动取消</view>
|
||||||
|
</view>
|
||||||
|
<view class="status-bar" v-if="status === '待发货'">
|
||||||
|
<view class="status">待发货</view>
|
||||||
|
<view class="countdown">预计到货时间: 2025-09-09 9:59:59</view>
|
||||||
|
<view class="tips">商家正在加急打包中了,请耐心等候</view>
|
||||||
|
</view>
|
||||||
|
<view class="status-bar" v-if="status === '配送中'">
|
||||||
|
<view class="status">待配送</view>
|
||||||
|
<view class="countdown">预计到货时间: 2025-09-09 9:59:59</view>
|
||||||
|
<view class="tips">
|
||||||
|
配送司机:15901518415
|
||||||
|
<img class="phone" src="http://localhost:8080/phone.png" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="status-bar" v-if="status === '已完成' || status === '退款中'">
|
||||||
|
<view class="status">已完成</view>
|
||||||
|
<view class="countdown">预计到货时间: 2025-09-09 9:59:59</view>
|
||||||
|
<view class="tips">感谢对我们的信任,期待下次光临</view>
|
||||||
|
</view>
|
||||||
|
<view class="status-bar" v-if="status === '已取消'">
|
||||||
|
<view class="status">已取消</view>
|
||||||
|
<view class="countdown">订单已取消</view>
|
||||||
|
<view class="tips">您的订单已取消,再来一单吧</view>
|
||||||
|
</view>
|
||||||
|
<!-- <view class="status-bar" v-if="status === '退款中'">
|
||||||
|
<view class="status">已完成</view>
|
||||||
|
<view class="countdown">预计到货时间: 2025-09-09 9:59:59</view>
|
||||||
|
<view class="tips">感谢对我们的信任,期待下次光临</view>
|
||||||
|
</view> -->
|
||||||
|
|
||||||
|
<view class="content">
|
||||||
|
<!-- 订单金额 -->
|
||||||
|
<view class="amount-section">
|
||||||
|
<view v-if="status !== '退款中'">
|
||||||
|
<view class="total-amount">¥{{ orderInfo.totalAmount }}</view>
|
||||||
|
<view class="original-price"
|
||||||
|
>商品下单应付
|
||||||
|
<text> ¥{{ orderInfo.originalPrice }}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view
|
||||||
|
class="goods-item"
|
||||||
|
v-for="(item, index) in orderInfo.goodsList"
|
||||||
|
:key="index"
|
||||||
|
>
|
||||||
|
<view class="goods-content">
|
||||||
|
<image :src="item.image" class="goods-img"></image>
|
||||||
|
<view class="goods-info">
|
||||||
|
<view>
|
||||||
|
<view class="goods-name">{{ item.name }}</view>
|
||||||
|
<view class="goods-desc">{{ item.desc }}</view>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<view class="goods-price">¥{{ item.price }}</view>
|
||||||
|
<view class="goods-info-right"> x{{ item.quantity }}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view v-if="status === '退款中'" class="goods-info-tk">退款已完成</view>
|
||||||
|
</view>
|
||||||
|
<view class="hr"></view>
|
||||||
|
<view class="info-item">
|
||||||
|
<view class="info-label1"
|
||||||
|
>下单总金额( ¥{{ orderInfo.orderAmount }} )</view
|
||||||
|
>
|
||||||
|
<view class="info-action">明细</view>
|
||||||
|
</view>
|
||||||
|
<view class="info-item">
|
||||||
|
<view class="info-label">商品下单总金额</view>
|
||||||
|
<view class="info-value">¥{{ orderInfo.goodsTotal }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="info-item">
|
||||||
|
<view class="info-label">运费总计</view>
|
||||||
|
<view class="info-value">¥{{ orderInfo.freight }}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view v-if="status !== '退款中'">
|
||||||
|
<!-- 配送信息 -->
|
||||||
|
<view class="delivery-info">
|
||||||
|
<view class="section-title">配送信息</view>
|
||||||
|
<view class="info-item">
|
||||||
|
<view class="info-label">配送方式</view>
|
||||||
|
<view class="info-value">{{ orderInfo.deliveryType }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="info-item">
|
||||||
|
<view class="info-label">预计配送时间</view>
|
||||||
|
<view class="info-value">{{ orderInfo.deliveryTime }}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 收货信息 -->
|
||||||
|
<view class="recipient-info">
|
||||||
|
<view class="section-title">收货信息</view>
|
||||||
|
<view class="info-item">
|
||||||
|
<view class="info-label">收货人</view>
|
||||||
|
<view class="info-value"
|
||||||
|
>{{ orderInfo.recipientName }}
|
||||||
|
<text> {{ orderInfo.recipientPhone }}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="info-item">
|
||||||
|
<view class="info-label">收货地址</view>
|
||||||
|
<view class="info-value">{{ orderInfo.recipientAddress }}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 订单信息详情 -->
|
||||||
|
<view class="order-detail-info">
|
||||||
|
<view class="section-title">订单信息</view>
|
||||||
|
<view class="info-item">
|
||||||
|
<view class="info-label">订单编号</view>
|
||||||
|
<view class="info-value">{{ orderInfo.orderNumber }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="info-item">
|
||||||
|
<view class="info-label">支付方式</view>
|
||||||
|
<view class="info-value">{{ orderInfo.paymentMethod }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="info-item">
|
||||||
|
<view class="info-label">下单时间</view>
|
||||||
|
<view class="info-value">{{ orderInfo.orderTime }}</view>
|
||||||
|
</view>
|
||||||
|
<view class="info-item">
|
||||||
|
<view class="info-label">备注</view>
|
||||||
|
<view class="info-value">{{ orderInfo.remark }}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 底部操作按钮 -->
|
||||||
|
<view class="bottom-buttons" v-if="status === '待付款'">
|
||||||
|
<button class="cancel-btn" @click="cancelOrder">取消订单</button>
|
||||||
|
<button class="yfd-btn" @click="cancelOrder">运费单</button>
|
||||||
|
<button class="pay-btn" @click="gotoPayment">立即支付</button>
|
||||||
|
</view>
|
||||||
|
<view class="bottom-buttons" v-if="status === '待发货'">
|
||||||
|
<button class="yfd-btn" @click="cancelOrder">运费单</button>
|
||||||
|
<button class="cancel-btn" @click="cancelOrder">取消订单</button>
|
||||||
|
<!-- <button class="pay-btn" @click="gotoPayment">立即支付</button> -->
|
||||||
|
</view>
|
||||||
|
<view class="bottom-buttons" v-if="status === '配送中'">
|
||||||
|
<button class="cancel-btn" @click="checkLogistics">查看物流</button>
|
||||||
|
<button class="yfd-btn" @click="cancelOrder">运费单</button>
|
||||||
|
<button class="pay-btn" @click="gotoPayment">立即支付</button>
|
||||||
|
</view>
|
||||||
|
<view class="bottom-buttons" v-if="status === '已完成'">
|
||||||
|
<button class="cancel-btn" @click="cancelOrder">服务评价</button>
|
||||||
|
<button class="yfd-btn" @click="cancelOrder">运费单</button>
|
||||||
|
<button class="pay-btn" @click="gotoPayment">立即支付</button>
|
||||||
|
</view>
|
||||||
|
<view class="bottom-buttons" v-if="status === '已取消'">
|
||||||
|
<button class="yfd-btn" @click="cancelOrder">运费单</button>
|
||||||
|
<!-- <button class="cancel-btn" @click="cancelOrder">服务评价</button> -->
|
||||||
|
<button class="pay-btn" @click="gotoPayment">再来一单</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { picUrl, NavgateTo } from "../../../utils";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
status: "",
|
||||||
|
countdown: "9:59:59",
|
||||||
|
orderInfo: {
|
||||||
|
totalAmount: "4704.00",
|
||||||
|
payAmount: "4704.00",
|
||||||
|
originalPrice: "4704.00",
|
||||||
|
orderAmount: "290.00",
|
||||||
|
goodsTotal: "4704.00",
|
||||||
|
freight: "4704.00",
|
||||||
|
deliveryType: "商家配送",
|
||||||
|
deliveryTime: "2021-04-16 20:00-22:00",
|
||||||
|
recipientName: "杜先生",
|
||||||
|
recipientPhone: "15901518415",
|
||||||
|
recipientAddress: "河北省衡水市桃城区上海公馆",
|
||||||
|
orderNumber: "159144551545654",
|
||||||
|
paymentMethod: "微信支付",
|
||||||
|
orderTime: "2021-03-16 20:00-22:00",
|
||||||
|
remark: "明天9点之前送到",
|
||||||
|
goodsList: [
|
||||||
|
{
|
||||||
|
image: "http://localhost:8080/order_details.png",
|
||||||
|
name: "泰国金枕榴莲",
|
||||||
|
desc: "泰国金枕榴莲 软糯 香甜",
|
||||||
|
price: "125.9",
|
||||||
|
quantity: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
image: "http://localhost:8080/order_details.png",
|
||||||
|
name: "泰国金枕榴莲",
|
||||||
|
desc: "泰国金枕榴莲 软糯 香甜",
|
||||||
|
price: "125.9",
|
||||||
|
quantity: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
image: "http://localhost:8080/order_details.png",
|
||||||
|
name: "泰国金枕榴莲",
|
||||||
|
desc: "泰国金枕榴莲 软糯 香甜",
|
||||||
|
price: "125.9",
|
||||||
|
quantity: 1,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onLoad(options) {
|
||||||
|
// 启动倒计时
|
||||||
|
options?.status === "待付款" ? this.startCountdown() : "";
|
||||||
|
this.status = options?.status;
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
startCountdown() {
|
||||||
|
// 实际项目中应该从服务器获取剩余时间
|
||||||
|
// 这里使用模拟倒计时
|
||||||
|
let seconds = 10 * 60; // 10分钟
|
||||||
|
const timer = setInterval(() => {
|
||||||
|
seconds--;
|
||||||
|
const hours = Math.floor(seconds / 3600);
|
||||||
|
const minutes = Math.floor((seconds % 3600) / 60);
|
||||||
|
const secs = seconds % 60;
|
||||||
|
this.countdown = `${hours}:${minutes.toString().padStart(2, "0")}:${secs
|
||||||
|
.toString()
|
||||||
|
.padStart(2, "0")}`;
|
||||||
|
if (seconds <= 0) {
|
||||||
|
clearInterval(timer);
|
||||||
|
// 倒计时结束,处理订单取消逻辑
|
||||||
|
uni.showToast({ title: "订单已取消", icon: "none" });
|
||||||
|
setTimeout(() => uni.navigateBack(), 1500);
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
|
},
|
||||||
|
cancelOrder() {
|
||||||
|
uni.showModal({
|
||||||
|
title: "提示",
|
||||||
|
content: "确定要取消订单吗?",
|
||||||
|
success: (res) => {
|
||||||
|
if (res.confirm) {
|
||||||
|
// 调用取消订单API
|
||||||
|
uni.showToast({ title: "订单已取消", icon: "none" });
|
||||||
|
setTimeout(() => uni.navigateBack(), 1500);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
},
|
||||||
|
gotoPayment() {
|
||||||
|
console.log("🚀 ~ gotoPayment ~ 去支付:");
|
||||||
|
// 跳转到支付页面
|
||||||
|
// uni.navigateTo({
|
||||||
|
// url: "/kitchen/pay/index",
|
||||||
|
// });
|
||||||
|
},
|
||||||
|
checkLogistics() {
|
||||||
|
NavgateTo(`/packages/myOrders/logistics/index`);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
@import url("./index.css");
|
||||||
|
</style>
|
||||||
24
pages.json
24
pages.json
@ -737,6 +737,30 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的订单"
|
"navigationBarTitleText": "我的订单"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "freightBill/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "运费单"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "billInfo/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "运费单"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "orderDetails/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "我的订单"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "logistics/index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "物流跟踪"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user