ucenter.md
13.6 KB
个人中心数据结构
通用<路径导航&左侧菜单&分页&底部帮助我们改善>
//路径导航
{
//区分链接和文字
path: [
{
href: '',
name: ''
},
{
name: ''
},
...
]
}
//右侧菜单
{
userThumb: '',
homeNav: [
{
title: '交易管理',
subNav: [
{
name: '',
href: '',
active: true
},
...
]
},
...
]
}
//分页
{
pager: {
hasCheckAll: true,
count: 10,
curPage: 10,
totalPage: 20,
pagerHtml: ''
}
}
//帮助我们改善
{
helpUsUrl: ''
}
首页
{
me: {
content: [
{
messages: [
{
href: '',
name: '',
count: ''
},
...
]
},
{
latestOrders: {
more: '',
//1.空
orders: {
empty: '您没有订单!'
}
//2【PS:订单页共用结构】
orders: [
{
orderNum: '',
orderTime: '',
goods: [
{
href: '',
thumb: '',
freebie: true, //赠品
advanceBuy: true, //加价购
virtualGood: true, //虚拟商品
refundStatus: '商品入库', //退换货状态
name: '',
color: '',
size: '',
price: '',
count: 12
},
...
],
pay: 234,
fregit: 12, //快递费
noPay: true, //等待付款
paid: true, //已付款,备货中
shipped: true, //已发货
logistics: [
//物流
...
],
complete: true, //订单完成
cancel: true, //订单取消
reback: true, //退换:交易成功
operation: [
{
cancelOrder: true //取消订单
},
{
confirmReceived: true //确认收货
},
{
name: '查看订单',
href: ''
},
{
payNow: true,
href: ''
},
...
]
}
]
}
},
{
favBrand: {
more: '',
brands: [
{
href: '',
logo: '',
name: ''
},
...
]
}
},
{
newArrival: [
{
href: '',
thumb: '',
name: '',
price: ''
},
...
]
}.
{
banner: {
href: '',
img: ''
}
}
]
}
}
我的订单
{
meOrders: {
tabs: [
{
active: true,
url: '',
name: ''
},
...
],
//情况1:正常订单
orders: [
//同上首页的订单数据结构
],
//情况2: 历史订单
historyOrders: [
{
orderNum: '',
orderTime: '',
goods: [
... //商品名称即可
],
orderSum: 111,
payMode: '支付宝'
}
]
}
}
订单详情页
{
orderDetail: {
orderNum: '',
curStatus: '',
complete: true,
virtualGoods:true,//虚拟商品进度条样式
progress: {
percent: '20%',
middleStatus: [
{
cur: true,
name: '1. 提交订单',
date: '...'
},
...
]
},
traceOrder: {
orderDate: '',
logisticsCompany: '',
courierNumbe: '', //物流单号
logistics: [
[
'处理时间',
'接收地点',
'物流信息'
],
...
]
},
orderInfo: {
reciver: '',
address: '',
phone: '',
},
remark: '',
//常规商品支付方式
noramlPayMode: {
payMode: '', //支付类型
payWay: '', //支付方式
deliverTime: '', //送货上门时间
},
//虚拟商品支付方式
virtualPayMode: {
payMode: '',
phone: ''
},
yohoCoinUrl: '', //YOHO币介绍
goods: [
{
url: '',
img: '',
name: '',
color: '',
size: '',
price: '',
coin: 0,
num: 10,
sum: '149.00'
},
...
],
sumPrice: '149.00',
freight: 0, //虚拟商品不传
yohoCoin: 0,
payment: '149.00',
coupons: ,//抵用券
//操订单操作,无对应操作则不传
operation: {
paid: true, //已支付
//下单未付款
goPay: '',
cancelOrder: '',
//已发货
shipped: true
//取消
cancel: true
//查看二维码
checkQrCode: ''
}
}
}
虚拟商品二维码订单
{
meOrderTicket: {
name: '',
num: 1,
orderNum: 'x456',
myOrdersUrl: '',
tickets: [
{
img: '',
desc: ''
},
...
]
}
}
我的收藏
{
meFavorite: {
tabs: [
{
active: true,
url: '',
name: ''
},
...
],
//商品收藏
favProducts: {
sort: {
default: [
{
name: '',
count: '',
url: '',
focus: ture
},
...
],
all: [
{
name: '',
count: '',
url: '',
focus: true
},
...
]
},
//我订阅的降价通知
reduction: {
count: 0,
url: ''
},
//筛选
filter: {
reductionUrl: '',
reductionChecked: true,
activityUrl: '',
activityChecked: true
},
goods: [
{
skn: '',
img: '',
name: '',
url: '',
activites: {
count: 1,
list: [
{
type: '满送礼品',
name: '全场59元加价购',
desc: ''
},
...
]
},
price: '',
priceDown: '',
//情况1
soldOut: true,
//情况2
buyNow: '/url/to/item',
//情况3
buyAgain: '/url/to/item',
hadNoticed: true, //已订阅通知
delUrl: ''
},
...
]
}
//品牌收藏
favBrands: {
brands: [
{
img: '',
url: '',
name: '',
naCount: 10,
colCount: 20,
delUrl: ''
},
...
]
}
//文章收藏
favArticles: {
articles: [
{
img: '',
url: '',
name: '',
desc: '',
delUrl: ''
},
...
]
}
}
}
//品牌收藏新品到着数据结构
{
naGoods: {
pre: '/url/to/ajax/pre',
goods: [
{
img: '',
url: '',
name: '',
salePrice: '',
marketPrice: ''
},
...
],
next: '/url/to/ajax/next'
}
}
我的红包
{
meRedEnvelopes: {
redEnvelopes: [
{
money: '',
termOfValidity: '',
useRemark: ''
},
...
]
}
}
我的优惠券
{
meCoupons: {
//1.未使用
unUseCoupons: [
{
img: '',
value: '',
beginTime: '',
endTime: '',
endSoon: '', //即将过期
useRemark: '',
status: ''
},
...
]
//2.已使用
usedCoupons: [
{
img: '',
value: '',
orderNum: '',
orderSum: '',
payment: '',
useTime: ''
},
...
]
//已失效
noValidCoupons: [
{
img: '',
value: '',
beginTime: '',
endTime: '',
endSoon: '',
useRemark: '',
}
]
}
}
我的YOHO币
{
meCurrency: {
myCurrency: '0',
tabs: [],
options: [
{
url: '',
name: ''
},
...
],
coinHelperUrl: '',
currency: [
{
date: '',
isIncome: true, //是否收入
value: '',
desc: '',
detailUrl: ''
}
]
}
}