...
|
...
|
@@ -37,24 +37,24 @@ export default function() { |
|
|
getters: {
|
|
|
getOrderNums(state) {
|
|
|
let orderSum = {
|
|
|
ready: {name: '待发货', num: state.readyNum},
|
|
|
sent: {name: '已发货', num: state.sentNum},
|
|
|
finish: {name: '交易成功', num: state.finishNum},
|
|
|
fail: {name: '交易失败', num: state.failNum}
|
|
|
ready: {name: '待发货', num: state.readyNum, page: {name: 'OrderList', status: 0} },
|
|
|
sent: {name: '已发货', num: state.sentNum, page: {name: 'OrderList', status: 1}},
|
|
|
finish: {name: '交易成功', num: state.finishNum, page: {name: 'OrderList', status: 2}},
|
|
|
fail: {name: '交易失败', num: state.failNum, page: {name: 'OrderList', status: 3}}
|
|
|
};
|
|
|
|
|
|
return orderSum;
|
|
|
},
|
|
|
getMineList(state) {
|
|
|
let tabList = {
|
|
|
board: { title: '公告栏'},
|
|
|
sale: { title: '出售中', num: state.sellerNum},
|
|
|
board: { title: '公告栏', page: 'noticeList'},
|
|
|
sale: { title: '出售中', num: state.sellerNum, page: ''},
|
|
|
order: {name: 'order'},
|
|
|
resource1: {name: 'resource1', data: state.resource1},
|
|
|
income: {title: '交易收入', num: state.assetData.totalIncome},
|
|
|
buyOrder: {title: '我购买的订单', num: state.buyNum},
|
|
|
buy: {name: 'buy', title: '我的求购', num: state.askBuyNum},
|
|
|
collect: {name: 'collect', title: '我的收藏', num: state.favoriteNum},
|
|
|
income: {title: '交易收入', num: state.assetData.totalIncome, page: 'tradeIncome'},
|
|
|
buyOrder: {title: '我购买的订单', num: state.buyNum, page: ''},
|
|
|
buy: {name: 'buy', title: '我的求购', num: state.askBuyNum, page: ''},
|
|
|
collect: {name: 'collect', title: '我的收藏', num: state.favoriteNum, page: 'favorite'},
|
|
|
resource2: {name: 'resource2', data: state.resource2}
|
|
|
};
|
|
|
|
...
|
...
|
|