feat: 基本信息
This commit is contained in:
270
mock/order.ts
270
mock/order.ts
@@ -14,7 +14,7 @@ const getOrderPage = (_req: Request, res: Response) => {
|
||||
userNickName: "张宁清", // 用户昵称
|
||||
userAvatar: "", // 用户头像
|
||||
userMobile: "18634556151", // 用户手机号
|
||||
orderStatus: 2, // 订单状态
|
||||
orderStatus: 10, // 订单状态
|
||||
picUrl: "", // 商品图片
|
||||
spuName:
|
||||
"商品主标题商品主标题商品主标题商品主标题商品主题商品主标题商品主标题商品主", // 商品名称
|
||||
@@ -24,7 +24,7 @@ const getOrderPage = (_req: Request, res: Response) => {
|
||||
handedPrice: 80, // 到手价
|
||||
payPrice: "500", // 应付金额
|
||||
unit: "", // 单位
|
||||
subTime: "", // 预约时间
|
||||
subTime: 1760585499000, // 预约时间
|
||||
serveAddress: "张宁清,18659156151,福州 台江区 鳌峰路 万达中心甲",
|
||||
userRemark: "你好呀你好元", // 用户备注
|
||||
payType: "wx", // 微信
|
||||
@@ -34,14 +34,150 @@ const getOrderPage = (_req: Request, res: Response) => {
|
||||
id: 2,
|
||||
orderNum: "3214421412",
|
||||
createTime: "",
|
||||
orderCategoryName: "",
|
||||
orderCategoryName: "宠物殡葬",
|
||||
orderTerminal: 0,
|
||||
userId: 0,
|
||||
userName: "",
|
||||
userNickName: "",
|
||||
userAvatar: "",
|
||||
userMobile: "",
|
||||
orderStatus: 0,
|
||||
orderStatus: 20,
|
||||
picUrl: "",
|
||||
spuName: "",
|
||||
skuName: "",
|
||||
subTime: 1760585499000, // 预约时间
|
||||
count: 0,
|
||||
price: 0,
|
||||
handedPrice: 0,
|
||||
payPrice: 0,
|
||||
unit: "",
|
||||
orderTime: "",
|
||||
serveAddress: "",
|
||||
userRemark: "",
|
||||
payType: "",
|
||||
financeStatus: "",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
orderNum: "3214421412",
|
||||
createTime: "",
|
||||
orderCategoryName: "宠物殡葬",
|
||||
orderTerminal: 0,
|
||||
userId: 0,
|
||||
userName: "",
|
||||
subTime: 1760585499000, // 预约时间
|
||||
userNickName: "",
|
||||
userAvatar: "",
|
||||
userMobile: "",
|
||||
orderStatus: 30,
|
||||
picUrl: "",
|
||||
spuName: "",
|
||||
skuName: "",
|
||||
count: 0,
|
||||
price: 0,
|
||||
handedPrice: 0,
|
||||
payPrice: 0,
|
||||
unit: "",
|
||||
orderTime: "",
|
||||
serveAddress: "",
|
||||
userRemark: "",
|
||||
payType: "",
|
||||
financeStatus: "",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
orderNum: "3214421412",
|
||||
createTime: "",
|
||||
orderCategoryName: "宠物殡葬",
|
||||
orderTerminal: 0,
|
||||
userId: 0,
|
||||
userName: "",
|
||||
subTime: 1760585499000, // 预约时间
|
||||
userNickName: "",
|
||||
userAvatar: "",
|
||||
userMobile: "",
|
||||
orderStatus: 40,
|
||||
picUrl: "",
|
||||
spuName: "",
|
||||
skuName: "",
|
||||
count: 0,
|
||||
price: 0,
|
||||
handedPrice: 0,
|
||||
payPrice: 0,
|
||||
unit: "",
|
||||
orderTime: "",
|
||||
serveAddress: "",
|
||||
userRemark: "",
|
||||
payType: "",
|
||||
financeStatus: "",
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
orderNum: "3214421412",
|
||||
createTime: "",
|
||||
orderCategoryName: "宠物殡葬",
|
||||
orderTerminal: 0,
|
||||
userId: 0,
|
||||
userName: "",
|
||||
subTime: 1760585499000, // 预约时间
|
||||
userNickName: "",
|
||||
userAvatar: "",
|
||||
userMobile: "",
|
||||
orderStatus: 50,
|
||||
picUrl: "",
|
||||
spuName: "",
|
||||
skuName: "",
|
||||
count: 0,
|
||||
price: 0,
|
||||
handedPrice: 0,
|
||||
payPrice: 0,
|
||||
unit: "",
|
||||
orderTime: "",
|
||||
serveAddress: "",
|
||||
userRemark: "",
|
||||
payType: "",
|
||||
financeStatus: "",
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
orderNum: "3214421412",
|
||||
createTime: "",
|
||||
orderCategoryName: "宠物殡葬",
|
||||
orderTerminal: 0,
|
||||
userId: 0,
|
||||
userName: "",
|
||||
subTime: 1760585499000, // 预约时间
|
||||
userNickName: "",
|
||||
userAvatar: "",
|
||||
userMobile: "",
|
||||
orderStatus: 60,
|
||||
picUrl: "",
|
||||
spuName: "",
|
||||
skuName: "",
|
||||
count: 0,
|
||||
price: 0,
|
||||
handedPrice: 0,
|
||||
payPrice: 0,
|
||||
unit: "",
|
||||
orderTime: "",
|
||||
serveAddress: "",
|
||||
userRemark: "",
|
||||
payType: "",
|
||||
financeStatus: "",
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
orderNum: "3214421412",
|
||||
createTime: "",
|
||||
orderCategoryName: "宠物殡葬",
|
||||
orderTerminal: 0,
|
||||
userId: 0,
|
||||
userName: "",
|
||||
subTime: 1760585499000, // 预约时间
|
||||
userNickName: "",
|
||||
userAvatar: "",
|
||||
userMobile: "",
|
||||
orderStatus: 70,
|
||||
picUrl: "",
|
||||
spuName: "",
|
||||
skuName: "",
|
||||
@@ -66,72 +202,70 @@ const getOrderPage = (_req: Request, res: Response) => {
|
||||
const getOrderDetail = (_req: Request, res: Response) => {
|
||||
res.json({
|
||||
data: {
|
||||
code: 0,
|
||||
data: {
|
||||
tradeOrderInfoBase: {
|
||||
id: "",
|
||||
orderNo: "",
|
||||
orderStatus: "",
|
||||
orderType: "",
|
||||
orderCategoryNameAndId: "",
|
||||
orderTerminal: "",
|
||||
userInfo: "",
|
||||
cancelTime: "",
|
||||
cancelReason: "",
|
||||
merchantRemark: "",
|
||||
refundTime: "",
|
||||
propertyTime: "",
|
||||
propertyStatus: "",
|
||||
price: "",
|
||||
discountPrice: "",
|
||||
payPrice: 0,
|
||||
refundPrice: "",
|
||||
livePrice: "",
|
||||
payType: "",
|
||||
payChannelCode: "",
|
||||
payOrderId: "",
|
||||
payTime: "",
|
||||
createTime: "",
|
||||
finishTime: "",
|
||||
},
|
||||
tradeProductInfo: {
|
||||
shopLogoUrl: "",
|
||||
shopName: "",
|
||||
spuId: 0,
|
||||
skuId: 0,
|
||||
skuPicUrl: "",
|
||||
spuName: "",
|
||||
skuName: "",
|
||||
count: 0,
|
||||
price: 0,
|
||||
unit: "",
|
||||
handedPrice: 0,
|
||||
expensePrice: 0,
|
||||
properties: [""],
|
||||
serveContent: "",
|
||||
totalPrice: 0,
|
||||
discountPrice: 0,
|
||||
payPrice: 0,
|
||||
refundPrice: 0,
|
||||
refundCount: 0,
|
||||
},
|
||||
tradeServeInfo: {
|
||||
properties: {
|
||||
"": {},
|
||||
},
|
||||
},
|
||||
tradeExtendServeInfo: {
|
||||
properties: {
|
||||
"": {},
|
||||
},
|
||||
},
|
||||
tradeExtendCostInfo: {
|
||||
properties: {
|
||||
"": {},
|
||||
},
|
||||
tradeOrderInfoBase: {
|
||||
id: "7655265",
|
||||
orderNo: "BZ000548787",
|
||||
orderStatus: "50",
|
||||
orderType: "1",
|
||||
orderCategoryName: "宠物殡葬", // 订单类目
|
||||
orderCategoryId: "3232321",
|
||||
orderTerminal: "微信小程序",
|
||||
userInfo: null,
|
||||
userAvatar: null,
|
||||
cancelTime: "2025-10-16T11:28:57",
|
||||
cancelReason: "非常",
|
||||
merchantRemark: "测试商家备注",
|
||||
refundTime: null,
|
||||
propertyTime: null,
|
||||
propertyStatus: null,
|
||||
price: null,
|
||||
discountPrice: null,
|
||||
payPrice: null,
|
||||
refundPrice: null,
|
||||
livePrice: null,
|
||||
payType: "1",
|
||||
payChannelCode: "1",
|
||||
payOrderId: "12323123123",
|
||||
payTime: 1760585391000,
|
||||
createTime: 1760585499000,
|
||||
finishTime: 1760585335000,
|
||||
},
|
||||
tradeProductInfo: {
|
||||
shopLogoUrl: "",
|
||||
shopName: "",
|
||||
spuId: 0,
|
||||
skuId: 0,
|
||||
skuPicUrl: "",
|
||||
spuName: "",
|
||||
skuName: "",
|
||||
count: 0,
|
||||
price: 0,
|
||||
unit: "",
|
||||
handedPrice: 0,
|
||||
expensePrice: 0,
|
||||
properties: [""],
|
||||
serveContent: "",
|
||||
totalPrice: 0,
|
||||
discountPrice: 0,
|
||||
payPrice: 0,
|
||||
refundPrice: 0,
|
||||
refundCount: 0,
|
||||
},
|
||||
tradeServeInfo: {
|
||||
properties: {
|
||||
"": {},
|
||||
},
|
||||
},
|
||||
tradeExtendServeInfo: {
|
||||
properties: {
|
||||
"": {},
|
||||
},
|
||||
},
|
||||
tradeExtendCostInfo: {
|
||||
properties: {
|
||||
"": {},
|
||||
},
|
||||
},
|
||||
msg: "",
|
||||
},
|
||||
code: 0,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user