...
|
...
|
@@ -102,6 +102,7 @@ export default function() { |
|
|
resource1: { name: 'resource1', data: state.resource1 },
|
|
|
income: {
|
|
|
title: '我的收入',
|
|
|
|
|
|
// num: state.userWalletInfo.walletAmount, // 钱包余额
|
|
|
num: state.assetData.totalIncome,
|
|
|
page: 'tradeIncome',
|
...
|
...
|
@@ -135,6 +136,10 @@ export default function() { |
|
|
title: '我的客服',
|
|
|
page: 'service'
|
|
|
},
|
|
|
bindAccount: {
|
|
|
name: 'bindAccount',
|
|
|
page: 'bindAccount'
|
|
|
},
|
|
|
resource2: { name: 'resource2', data: state.resource2 },
|
|
|
|
|
|
};
|
...
|
...
|
@@ -312,24 +317,31 @@ export default function() { |
|
|
});
|
|
|
|
|
|
if (result.code === 200) {
|
|
|
let src = getImgUrl(
|
|
|
get(result, 'data[0].data[0].src') || '',
|
|
|
1000,
|
|
|
240,
|
|
|
);
|
|
|
|
|
|
set(result, 'data[0].data[0].src', src);
|
|
|
commit('addResource', { resource1: result.data[0] });
|
|
|
if (result.data.length !== 0) {
|
|
|
let src = getImgUrl(
|
|
|
get(result, 'data[0].data[0].src') || '',
|
|
|
1000,
|
|
|
240,
|
|
|
);
|
|
|
|
|
|
set(result, 'data[0].data[0].src', src);
|
|
|
commit('addResource', {
|
|
|
resource1: result.data[0]
|
|
|
});
|
|
|
}
|
|
|
|
|
|
}
|
|
|
if (result1.code === 200) {
|
|
|
let src = getImgUrl(
|
|
|
get(result1, 'data[0].data[0].src') || '',
|
|
|
1000,
|
|
|
240,
|
|
|
);
|
|
|
|
|
|
set(result1, 'data[0].data[0].src', src);
|
|
|
commit('addResource', { resource2: result1.data[0] });
|
|
|
if (result.data.length !== 0) {
|
|
|
let src = getImgUrl(
|
|
|
get(result1, 'data[0].data[0].src') || '',
|
|
|
1000,
|
|
|
240,
|
|
|
);
|
|
|
|
|
|
set(result1, 'data[0].data[0].src', src);
|
|
|
commit('addResource', { resource2: result1.data[0] });
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
async fetchSellerOrder({ commit }) {
|
...
|
...
|
@@ -382,7 +394,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});
|
...
|
...
|
|