Commit 52b32c72 by liimin

refactor(order): 重构订单详情页面

- 移除页面中的 mock 数据,改为从后端接口获取订单信息
- 新增多个自定义组件,提高代码复用性和可维护性
- 优化页面布局和样式,提升用户体验
- 删除冗余代码,精简页面逻辑
1 parent d9404859
Showing 26 changed files with 496 additions and 322 deletions
const { mockDeliveryInfoData } = require('./mock.js');
Component({
options: {
addGlobalClass: true,
styleIsolation: 'apply-shared', // 启用样式隔离并共享样式
},
properties: {
orderInfo: {
type: Object,
value: {}
},
deliveryStatus: {
type: Object,
value: {}
}
},
data: {
// Mock数据用于开发和测试
...mockDeliveryInfoData
},
methods: {
}
})
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
<block wx:if="{{orderInfo.deliveryCompany}}">
<view class="title">发货信息</view>
<view class="item">
<view class="label">物流信息:</view>
<view class="value">{{orderInfo.deliveryCompany || ''}}{{orderInfo.deliveryNumber || ''}}</view>
</view>
<view class="item">
<view class="label">物流进度:</view>
<view class="value">
{{deliveryStatus[orderInfo.deliveryStatus]}}
</view>
</view>
</block>
\ No newline at end of file \ No newline at end of file
/* 发货信息组件样式 */
.title {
font-size: 32rpx;
padding-bottom: 24rpx;
font-weight: 500;
}
.item {
display: flex;
align-items: center;
font-size: 24rpx;
min-height: 48rpx;
line-height: 48rpx;
}
.item .label {
width: 150rpx;
}
.item .value {
width: calc(100% - 150rpx);
color: #656566;
}
\ No newline at end of file \ No newline at end of file
const mockDeliveryInfoData = {
orderInfo: {
deliveryCompany: '顺丰快递',
deliveryNumber: 'SF1234567890',
deliveryStatus: 2
},
deliveryStatus: {
1: "待发货",
2: "已发货",
3: "已收货",
}
};
module.exports = {
mockDeliveryInfoData
};
\ No newline at end of file \ No newline at end of file
const { mockOrderAmountData } = require('./mock.js');
Component({
options: {
addGlobalClass: true,
styleIsolation: 'apply-shared'
},
properties: {
orderInfo: {
type: Object,
value: {}
}
},
data: {
// Mock数据用于开发和测试
...mockOrderAmountData
},
methods: {
}
})
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* 订单金额组件样式 */
.title {
font-size: 32rpx;
padding-bottom: 24rpx;
font-weight: 500;
}
.price-item {
height: 60rpx;
display: flex;
justify-content: space-between;
align-items: center;
color: #7A8299;
font-size: 26rpx;
font-weight: 400;
.price {
color: #282829;
font-size: 28rpx;
font-weight: 600;
}
}
.price-item.line {
border-bottom: 1rpx solid #f0f1f5;
margin-bottom: 30rpx;
}
.price-item .unit,
.price-item .sum,
.price-item .amount {
color: var(--btnColor);
font-weight: 600;
}
.price-item .amount {
font-size: 36rpx;
.unit {
font-size: 20rpx;
}
}
.price-item .sum {
font-size: 48rpx;
.unit {
font-size: 24rpx;
}
}
<view wx:if="{{orderInfo.orderSource!=5}}">
<view class="title">订单金额</view>
<view class="price-item">
商品总价
<view class="amount">{{orderInfo.orderPrice}} <text class="unit">积分</text></view>
</view>
<view class="price-item line">
运费
<view class="price">包邮</view>
</view>
<view class="price-item">
<view></view>
<view class="price sum">{{orderInfo.payPrice}} <text class="unit">积分</text></view>
</view>
</view>
\ No newline at end of file \ No newline at end of file
const mockOrderAmountData = {
orderInfo: {
orderSource: 1,
orderPrice: '278.00',
expressFee: '0.00',
payPrice: '278.00'
}
};
module.exports = {
mockOrderAmountData
};
\ No newline at end of file \ No newline at end of file
const { mockOrderGoodsData } = require('./mock.js');
Component({
options: {
addGlobalClass: true,
styleIsolation: 'isolated'
},
properties: {
orderInfo: {
type: Object,
value: {}
}
},
data: {
// Mock数据用于开发和测试
...mockOrderGoodsData
},
methods: {
}
})
\ No newline at end of file \ No newline at end of file
{
"component": true
}
\ No newline at end of file \ No newline at end of file
<view class="title">订单商品</view>
<block wx:key="index" wx:for="{{orderInfo.orderGoods}}">
<view class="goods">
<view class="icon">
<image webp src="{{orderInfo.orderSource == 5?orderInfo.activityBigImg:item.goodsImage}}"></image>
</view>
<view class="info">
<view>
<view class="name text-hide">{{orderInfo.orderSource == 5?orderInfo.activityName:item.goodsName}}</view>
<view class="specification">{{item.specificationData || ''}}</view>
</view>
<view class="price">
¥{{orderInfo.orderSource == 5?orderInfo.payPrice:(item.activityPrice || item.retailPrice)}}
<view class="count">x{{orderInfo.orderSource == 5? 1: item.goodsNumber}}</view>
</view>
</view>
</view>
</block>
\ No newline at end of file \ No newline at end of file
/* 订单商品组件样式 */
.title {
font-size: 32rpx;
padding-bottom: 24rpx;
font-weight: 500;
}
.merchantName.text-hide {
/* 文本隐藏样式应该在全局样式中定义 */
}
.goods {
margin-top: 40rpx;
display: flex;
align-items: center;
height: 160rpx;
}
.goods .icon {
width: 160rpx;
height: 100%;
overflow: hidden;
border-radius: var(--borderRadius);
margin-right: 20rpx;
}
.goods .info {
width: calc(100% - 180rpx);
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.goods .info .name {
font-size: 30rpx;
color: #333;
}
.goods .info .specification {
font-size: 24rpx;
color: #B1B1B3;
}
.goods .info .price {
display: flex;
justify-content: space-between;
color: var(--btnColor);
font-weight: 500;
}
.goods .info .price .count {
color: #656566;
font-weight: normal;
}
\ No newline at end of file \ No newline at end of file
const mockOrderGoodsData = {
orderInfo: {
merchantName: '官方旗舰店',
orderSource: 1,
activityBigImg: '',
activityName: '',
orderGoods: [
{
goodsImage: 'https://picsum.photos/200/200',
goodsName: '商品名称1 商品描述信息 商品型号等详细信息',
specificationData: '颜色:红色;尺寸:XL;套餐:标配',
retailPrice: '99.00',
activityPrice: '89.00',
goodsNumber: 2
},
{
goodsImage: 'https://picsum.photos/200/200',
goodsName: '商品名称2 商品描述信息 商品型号等详细信息',
specificationData: '颜色:蓝色;尺寸:L;套餐:标配',
retailPrice: '199.00',
activityPrice: '179.00',
goodsNumber: 1
}
]
}
};
module.exports = {
mockOrderGoodsData
};
\ No newline at end of file \ No newline at end of file
const { mockOrderInfoData } = require('./mock.js');
Component({
options: {
addGlobalClass: true,
styleIsolation: 'isolated'
},
properties: {
orderInfo: {
type: Object,
value: {}
},
orderObj: {
type: Array,
value: []
},
statusEnum: {
type: Object,
value: {}
}
},
data: {
// Mock数据用于开发和测试
...mockOrderInfoData
},
methods: {
}
})
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
<view class="title">订单信息</view>
<block wx:for="{{orderObj}}" wx:key="index">
<view class="item {{item.alignItems}}">
<view class="label">{{item.label}}:</view>
<view class="value">
<block wx:if="{{item.enum}}">
{{statusEnum[orderInfo[item.key]]|| ''}}
</block>
<block wx:else>{{orderInfo[item.key] || ''}}</block>
</view>
</view>
</block>
\ No newline at end of file \ No newline at end of file
/* 订单信息组件样式 */
.title {
font-size: 32rpx;
padding-bottom: 24rpx;
font-weight: 500;
}
.item {
display: flex;
align-items: center;
font-size: 24rpx;
min-height: 48rpx;
line-height: 48rpx;
}
.item.flex-start {
align-items: flex-start;
}
.item .label {
width: 150rpx;
}
.item .value {
width: calc(100% - 150rpx);
color: #656566;
}
\ No newline at end of file \ No newline at end of file
const mockOrderInfoData = {
orderInfo: {
time: '2023.05.15 14:30:22',
orderCode: '20230515143022001',
shipAddress: '北京市朝阳区某某街道某某小区1号楼101室',
orderStatus: 3
},
orderObj: [
{
label: "下单日期",
key: "time",
},
{
label: "订单编号",
key: "orderCode",
},
{
label: "收货地址",
key: "shipAddress",
alignItems: "flex-start",
},
{
label: "订单状态",
key: "orderStatus",
enum: true,
},
],
statusEnum: {
1: "待付款",
2: "待发货",
3: "已发货",
4: "已完成",
5: "已取消"
}
};
module.exports = {
mockOrderInfoData
};
\ No newline at end of file \ No newline at end of file
import { wxqrcode as QR } from "~/lib/index"; import { wxqrcode as QR } from "~/lib/index";
import { orderMixin } from "~/mixins/index"; import { orderMixin } from "~/mixins/index";
import { iosTimeFormat } from "~/utils/format"; import { iosTimeFormat } from "~/utils/format";
import { OrderStatus } from "~/constants/mine"; import { mockOrderDetailData } from "./mock.js";
import { OrderStatus } from "~/constants/mine.js";
Page({ Page({
behaviors: [orderMixin], behaviors: [orderMixin],
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
// 使用mock数据用于开发和测试
...mockOrderDetailData,
OrderStatus,
couponsList: [], couponsList: [],
OrderStatus:Object.freeze(OrderStatus),
orderObj: [ orderObj: [
{ {
label: "下单日期", label: "下单日期",
...@@ -35,126 +38,19 @@ Page({ ...@@ -35,126 +38,19 @@ Page({
2: "已发货", 2: "已发货",
3: "已收货", 3: "已收货",
}, },
// Mock数据用于调试
mockOrderInfo: {
orderStatus: 5, // 已收货
orderSource: 1,
deliveryCompany: "顺丰快递",
deliveryNumber: "SF1234567890",
deliveryStatus: 3,
merchantName: "海马刀官方旗舰店",
activityBigImg: "https://picsum.photos/200/200",
activityName: "洗车服务券",
orderGoods: [
{
id: "106",
goodsImage: "https://picsum.photos/200/200",
goodsName: "洗车服务券",
specificationData: "1次洗车服务",
retailPrice: "299.00",
activityPrice: null,
goodsNumber: 1,
},
{
id: "107",
goodsImage: "https://picsum.photos/200/200?random=1",
goodsName: "打蜡服务券",
specificationData: "1次打蜡服务",
retailPrice: "199.00",
activityPrice: "159.00",
goodsNumber: 2,
},
],
time: "2023.05.20 12:00:00",
orderCode: "2023052012000001",
shipAddress: "广东省深圳市南山区科技园南区R2-B三楼301室",
outTradeNo: "PAY2023052012000001",
orderPrice: "798.00",
expressFee: "0.00",
payPrice: "699.00",
subOrderCoupon: {
denomination: true,
discountAmount: 10000, // 100元
},
relatedUserCoupon: [
{
discountType: 2,
useChannel: 1,
id: "coupon001",
receiveStartTime: "2023.05.01",
effectiveType: 1,
receiveEndTime: "2023.06.01 23:59:59",
},
],
deliveryType: 1,
orderVerification: {
verificationCode: "VERIFY2023052012000001",
},
},
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
// 使用mock数据进行调试 wx.p.router.getRouterParams(options).then(({ orderCode } = {}) => {
const useMockData = true; // 设置为true使用mock数据,设置为false使用真实接口 if (orderCode) {
this.getOrderDetail(orderCode);
if (useMockData) {
// 使用mock数据
let { orderObj, mockOrderInfo } = this.data;
// 格式化价格数据
mockOrderInfo.orderGoods.map((e) => {
e.retailPrice = Number(e.retailPrice).toFixed(2);
if (e.activityPrice)
e.activityPrice = Number(e.activityPrice).toFixed(2);
});
mockOrderInfo.orderPrice = Number(mockOrderInfo.orderPrice).toFixed(2);
mockOrderInfo.expressFee = Number(mockOrderInfo.expressFee).toFixed(2);
mockOrderInfo.payPrice = Number(mockOrderInfo.payPrice).toFixed(2);
// 根据订单来源调整订单信息
if (mockOrderInfo.orderSource == 4) {
orderObj[2] = {
label: "商户订单号",
key: "outTradeNo",
};
} }
this.setData({ this.setData({
orderInfo: mockOrderInfo, Status: OrderStatus[this.data.orderInfo.orderStatus],
orderObj,
}); });
});
// 设置二维码
if (mockOrderInfo.deliveryType == 1 && mockOrderInfo.orderVerification)
this.setQr(mockOrderInfo.orderVerification.verificationCode);
// 处理优惠券数据
if (mockOrderInfo.relatedUserCoupon) {
let list = mockOrderInfo.relatedUserCoupon.map((item) => {
item.receiveStartTime = item.receiveStartTime;
if (item.effectiveType == 1) {
item.receiveEndTime = item.receiveEndTime;
} else {
item.receiveEndTime = item.receiveEndTime.split(' ')[0];
}
return item;
});
this.setData({
couponsList: list,
});
}
} else {
// 使用真实接口数据
wx.p.router.getRouterParams(options).then(({ orderCode } = {}) => {
if (orderCode) {
this.getOrderDetail(orderCode);
}
});
}
this.setData({Status:OrderStatus[this.data.orderInfo.orderStatus]})
}, },
getOrderDetail(orderCode) { getOrderDetail(orderCode) {
let { orderObj } = this.data; let { orderObj } = this.data;
...@@ -241,12 +137,4 @@ Page({ ...@@ -241,12 +137,4 @@ Page({
qr: QR.createQrCodeImg(`t=1&c=${data}`), qr: QR.createQrCodeImg(`t=1&c=${data}`),
}); });
}, },
// 获取订单状态对应的图片
getOrderStatusImage(orderStatus) {
const { orderStatusImageMap } = this.data;
// 默认图片
const defaultImage = "mine/order-lose.png";
// 根据订单状态获取对应的图片,如果没有则使用默认图片
return orderStatusImageMap[orderStatus] || defaultImage;
}
});
\ No newline at end of file \ No newline at end of file
});
...@@ -3,6 +3,11 @@ ...@@ -3,6 +3,11 @@
"usingComponents": { "usingComponents": {
"Status":"../components/Status/Status", "Status":"../components/Status/Status",
"BlockBox": "../components/BlockBox/BlockBox", "BlockBox": "../components/BlockBox/BlockBox",
"TitleBox":"../components/TitleBox/TitleBox" "TitleBox":"../components/TitleBox/TitleBox",
"DeliveryInfo": "./components/DeliveryInfo/DeliveryInfo",
"OrderInfo": "./components/OrderInfo/OrderInfo",
"OrderGoods": "./components/OrderGoods/OrderGoods",
"OrderAmount": "./components/OrderAmount/OrderAmount",
"content": "/packageMine/pages/order/index/components/Content/Content"
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -9,117 +9,24 @@ ...@@ -9,117 +9,24 @@
color: #2C2C2C; color: #2C2C2C;
margin-bottom: 6rpx; margin-bottom: 6rpx;
} }
.status-box .icon{
.status-box .icon {
width: 50rpx; width: 50rpx;
height: 52rpx; height: 52rpx;
margin-right: 12rpx; margin-right: 12rpx;
} }
.box { .box {
background-color: #fff; background-color: #fff;
border-radius: var(--borderRadius); border-radius: var(--borderRadius);
margin-top: 20rpx; margin-top: 20rpx;
padding: 24rpx 24rpx 40rpx; padding: 24rpx 24rpx 40rpx;
}
.box:first-of-type{
margin-top: 0;
}
.box .title {
font-size: 32rpx;
padding-bottom: 24rpx;
font-weight: 500;
}
.box .item {
display: flex;
align-items: center;
font-size: 24rpx;
min-height: 48rpx;
line-height: 48rpx;
}
.box .item.flex-start {
align-items: flex-start;
}
.box .item .label {
width: 150rpx;
}
.box .item .value {
width: calc(100% - 150rpx);
color: #656566;
}
.box .goods {
margin-top: 40rpx;
display: flex;
align-items: center;
height: 160rpx;
}
.box .goods .icon {
width: 160rpx;
height: 100%;
overflow: hidden;
border-radius: var(--borderRadius);
margin-right: 20rpx;
}
.box .goods .info {
width: calc(100% - 180rpx);
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.box .goods .info .name {
font-size: 30rpx;
color: #333;
}
.box .goods .info .specification{
font-size: 24rpx;
color: #B1B1B3;
}
.box .goods .info .price {
display: flex;
justify-content: space-between;
color: var(--btnColor);
font-weight: 500;
font-weight: 500;
}
.box .goods .info .price .count {
color: #656566;
font-weight: normal;
} }
.price-item { .box:first-of-type {
height: 60rpx; margin-top: 0;
display: flex;
justify-content: space-between;
align-items: center;
color: #656566;
font-size: 24rpx;
}
.price-item.line {
border-bottom: 2rpx solid #E3E3E6;
margin-bottom: 12rpx;
} }
.price-item .price {
font-size: 28rpx;
color: var(--btnColor);
font-weight: 500;
}
.price-item .sum{
font-size: 34rpx;
font-weight: 500;
}
.price-item .unit{
font-size: 28rpx;
}
.discounts { .discounts {
position: relative; position: relative;
} }
...@@ -138,6 +45,7 @@ ...@@ -138,6 +45,7 @@
top: 50%; top: 50%;
transform: translate(0, -50%); transform: translate(0, -50%);
} }
.qr-box { .qr-box {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -176,19 +84,22 @@ ...@@ -176,19 +84,22 @@
box-sizing: border-box; box-sizing: border-box;
background-size: cover; background-size: cover;
} }
.box_wrapper .bg{
.box_wrapper .bg {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.box_wrapper .info{
.box_wrapper .info {
position: relative; position: relative;
z-index: 2; z-index: 2;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.left_icon_box { .left_icon_box {
width: 156rpx; width: 156rpx;
height: 156rpx; height: 156rpx;
...@@ -296,20 +207,25 @@ ...@@ -296,20 +207,25 @@
color: #B1B1B3; color: #B1B1B3;
font-size: 24rpx; font-size: 24rpx;
} }
.brightColor { .brightColor {
color: var(--btnColor); color: var(--btnColor);
} }
.darkColor { .darkColor {
color: #6D6D6D; color: #6D6D6D;
} }
.describeColor { .describeColor {
color: #D83C14; color: #D83C14;
} }
.discount { .discount {
font-size: 20rpx; font-size: 20rpx;
font-weight: 500; font-weight: 500;
margin-bottom: 10rpx; margin-bottom: 10rpx;
} }
.leftMargin { .leftMargin {
padding-left: 32rpx; padding-left: 32rpx;
}
\ No newline at end of file \ No newline at end of file
}
...@@ -3,95 +3,21 @@ ...@@ -3,95 +3,21 @@
<BlockBox> <BlockBox>
<Status title="{{Status.title}}" image="{{Status.image}}" tips="{{Status.tips}}"></Status> <Status title="{{Status.title}}" image="{{Status.image}}" tips="{{Status.tips}}"></Status>
</BlockBox> </BlockBox>
<view class="box"> <BlockBox>
<!-- <view class="status-box text-center"> <DeliveryInfo orderInfo="{{orderInfo}}" deliveryStatus="{{deliveryStatus}}"></DeliveryInfo>
<view class="icon"> </BlockBox>
<glsx-image webp src="{{orderStatusImageMap[orderInfo.orderStatus] || 'mine/order-lose.png'}}"></glsx-image> <BlockBox>
</view> <OrderInfo orderInfo="{{orderInfo}}" orderObj="{{orderObj}}" statusEnum="{{statusEnum}}"></OrderInfo>
{{statusEnum[orderInfo.orderStatus]}} </BlockBox>
</view> --> <BlockBox>
<block wx:if="{{orderInfo.deliveryCompany}}"> <OrderInfo orderInfo="{{orderInfo}}" orderObj="{{orderObj}}" statusEnum="{{statusEnum}}"></OrderInfo>
<view class="title">发货信息</view> </BlockBox>
<view class="item"> <BlockBox>
<view class="label">物流信息:</view> <!-- <OrderGoods orderInfo="{{orderInfo}}"></OrderGoods> -->
<view class="value">{{orderInfo.deliveryCompany || ''}}{{orderInfo.deliveryNumber || ''}}</view> <content item="{{orderInfo}}" />
</view> </BlockBox>
<view class="item"> <BlockBox>
<view class="label">物流进度:</view> <OrderAmount orderInfo="{{orderInfo}}"></OrderAmount>
<view class="value"> </BlockBox>
{{deliveryStatus[orderInfo.deliveryStatus]}}
</view>
</view>
</block>
</view>
<view class="box">
<view class="title">订单信息</view>
<block wx:for="{{orderObj}}" wx:key="index">
<view class="item {{item.alignItems}}">
<view class="label">{{item.label}}:</view>
<view class="value">
<block wx:if="{{item.enum}}">
{{statusEnum[orderInfo[item.key]]|| ''}}
</block>
<block wx:else>{{orderInfo[item.key] || ''}}</block>
</view>
</view>
</block>
</view>
<TitleBox title="订单信息" >
<view class="box">
<block wx:for="{{orderObj}}" wx:key="index">
<view class="item {{item.alignItems}}">
<view class="label">{{item.label}}:</view>
<view class="value">
<block wx:if="{{item.enum}}">
{{statusEnum[orderInfo[item.key]]|| ''}}
</block>
<block wx:else>{{orderInfo[item.key] || ''}}</block>
</view>
</view>
</block>
</view>
</TitleBox>
<view class=" box">
<view class="title">订单商品</view>
<view class="merchantName text-hide">
{{orderInfo.merchantName}}
</view>
<block wx:key="index" wx:for="{{orderInfo.orderGoods}}">
<view class="goods">
<view class="icon">
<image webp src="{{orderInfo.orderSource == 5?orderInfo.activityBigImg:item.goodsImage}}"></image>
</view>
<view class="info">
<view>
<view class="name text-hide">{{orderInfo.orderSource == 5?orderInfo.activityName:item.goodsName}}</view>
<view class="specification">{{item.specificationData || ''}}</view>
</view>
<view class="price">
¥{{orderInfo.orderSource == 5?orderInfo.payPrice:(item.activityPrice || item.retailPrice)}}
<view class="count">x{{orderInfo.orderSource == 5? 1: item.goodsNumber}}</view>
</view>
</view>
</view>
</block>
</view>
<view class="box" wx:if="{{orderInfo.orderSource!=5}}">
<view class="title">订单金额</view>
<view class="price-item">
商品总价:
<view class="price"><text class="unit">¥</text>{{orderInfo.orderPrice}}</view>
</view>
<view class="price-item line">
运费:
<view class="price"><text class="unit">¥</text>{{orderInfo.expressFee}}</view>
</view>
<view class="price-item">
订单金额:
<view class="price sum"><text class="unit">¥</text>{{orderInfo.payPrice}}</view>
</view>
</view>
</view> </view>
</block> </block>
\ No newline at end of file \ No newline at end of file
// 整合所有组件的mock数据,用于页面整体调试
const { mockDeliveryInfoData } = require('./components/DeliveryInfo/mock.js');
const { mockOrderInfoData } = require('./components/OrderInfo/mock.js');
const { mockOrderGoodsData } = require('./components/OrderGoods/mock.js');
const { mockOrderAmountData } = require('./components/OrderAmount/mock.js');
const mockOrderDetailData = {
orderInfo: {
...mockDeliveryInfoData.orderInfo,
...mockOrderInfoData.orderInfo,
...mockOrderGoodsData.orderInfo,
...mockOrderAmountData.orderInfo,
merchantName: '官方旗舰店',
orderSource: 1
},
orderObj: mockOrderInfoData.orderObj,
statusEnum: mockOrderInfoData.statusEnum,
deliveryStatus: mockDeliveryInfoData.deliveryStatus
};
module.exports = {
mockOrderDetailData
};
\ No newline at end of file \ No newline at end of file
.content-top { .text-hide {
/* 样式将在使用时通过类名动态添加 */ overflow: hidden;
} text-overflow: ellipsis;
white-space: nowrap;
.content-bottom {
/* 样式将在使用时通过类名动态添加 */
} }
.goods { .goods {
...@@ -69,6 +67,7 @@ ...@@ -69,6 +67,7 @@
.info-top .number { .info-top .number {
color: #656566; color: #656566;
font-size: 24rpx; font-size: 24rpx;
display: flex;
} }
.info-bottom { .info-bottom {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!