...
|
...
|
@@ -111,7 +111,7 @@ export default function() { |
|
|
title: '我的订单',
|
|
|
num: state.buyNum,
|
|
|
page: 'OrderList',
|
|
|
params: { owner: ownType.BUY },
|
|
|
params: { owner: ownType.BUY, status: 1 },
|
|
|
},
|
|
|
buy: {
|
|
|
name: 'buy',
|
...
|
...
|
@@ -139,7 +139,7 @@ export default function() { |
|
|
},
|
|
|
bindAccount: {
|
|
|
name: 'bindAccount',
|
|
|
page: 'bindAccount'
|
|
|
page: 'bindAccount',
|
|
|
},
|
|
|
resource2: { name: 'resource2', data: state.resource2 },
|
|
|
};
|
...
|
...
|
@@ -181,9 +181,9 @@ export default function() { |
|
|
return {
|
|
|
goodsIncome: state.assetData.goodsIncome,
|
|
|
totalIncome: state.assetData.totalIncome,
|
|
|
compensateIncome: state.assetData.compensateIncome
|
|
|
compensateIncome: state.assetData.compensateIncome,
|
|
|
};
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
mutations: {
|
|
|
addList(state, { list }) {
|
...
|
...
|
@@ -246,7 +246,9 @@ export default function() { |
|
|
},
|
|
|
addAssets(state, assetData) {
|
|
|
assetData.totalIncome = formatNumber(assetData.totalIncome || 0);
|
|
|
assetData.compensateIncome = formatNumber(assetData.compensateIncome || 0);
|
|
|
assetData.compensateIncome = formatNumber(
|
|
|
assetData.compensateIncome || 0,
|
|
|
);
|
|
|
assetData.goodsIncome = formatNumber(assetData.goodsIncome || 0);
|
|
|
state.assetData = Object.assign({}, state.assetData, assetData);
|
|
|
},
|
...
|
...
|
@@ -332,10 +334,9 @@ export default function() { |
|
|
|
|
|
set(result, 'data[0].data[0].src', src);
|
|
|
commit('addResource', {
|
|
|
resource1: result.data[0]
|
|
|
resource1: result.data[0],
|
|
|
});
|
|
|
}
|
|
|
|
|
|
}
|
|
|
if (result1.code === 200) {
|
|
|
if (result.data.length !== 0) {
|
...
|
...
|
@@ -398,7 +399,7 @@ export default function() { |
|
|
let page = isRefresh ? 1 : currentPage + 1;
|
|
|
const result = await this.$api.get('/api/ufo/mine/assets', {
|
|
|
page,
|
|
|
limit: pageSize
|
|
|
limit: pageSize,
|
|
|
});
|
|
|
|
|
|
// commit('assetFetching', {isFetching: false});
|
...
|
...
|
@@ -441,7 +442,7 @@ export default function() { |
|
|
limit: pageSize,
|
|
|
tradeType,
|
|
|
startTime,
|
|
|
endTime
|
|
|
endTime,
|
|
|
});
|
|
|
|
|
|
if (result.code === 200) {
|
...
|
...
|
|