...
|
...
|
@@ -5,7 +5,7 @@ import moment from 'moment'; |
|
|
import { sellerOrderStatus, ownType } from '../../../constants/order-constants';
|
|
|
|
|
|
// const uid = '600046428';
|
|
|
const uid = '500031424';
|
|
|
// const uid = '500031424';
|
|
|
const MINE_RESOURCE_CODE1 = '11a73219a63b50067d88e75c0fe04d10';
|
|
|
const MINE_RESOURCE_CODE2 = 'dc2731fbbebcba6329c74a379e9c41ec';
|
|
|
|
...
|
...
|
@@ -296,11 +296,9 @@ export default function() { |
|
|
async fetchResource({ commit }) {
|
|
|
const result = await this.$api.get('/api/ufo/mine/resource', {
|
|
|
content_code: MINE_RESOURCE_CODE1,
|
|
|
uid,
|
|
|
});
|
|
|
const result1 = await this.$api.get('/api/ufo/mine/resource', {
|
|
|
content_code: MINE_RESOURCE_CODE2,
|
|
|
uid,
|
|
|
});
|
|
|
|
|
|
if (result.code === 200) {
|
...
|
...
|
@@ -327,7 +325,6 @@ export default function() { |
|
|
async fetchSellerOrder({ commit }) {
|
|
|
const result = await this.$api.get(
|
|
|
'/api/ufo/mine/seller/orderSummary',
|
|
|
{ uid },
|
|
|
);
|
|
|
|
|
|
if (result.code === 200) {
|
...
|
...
|
@@ -335,9 +332,7 @@ export default function() { |
|
|
}
|
|
|
},
|
|
|
async fetchFavoriteNum({ commit }) {
|
|
|
const result = await this.$api.get('/api/ufo/mine/favoriteNum', {
|
|
|
uid,
|
|
|
});
|
|
|
const result = await this.$api.get('/api/ufo/mine/favoriteNum');
|
|
|
|
|
|
if (result.code === 200) {
|
|
|
commit('addFavoriteNum', {
|
...
|
...
|
@@ -346,16 +341,14 @@ export default function() { |
|
|
}
|
|
|
},
|
|
|
async fetchOrderSummary({ commit }) {
|
|
|
const result = await this.$api.get('/api/ufo/mine/order/summary', {
|
|
|
uid,
|
|
|
});
|
|
|
const result = await this.$api.get('/api/ufo/mine/order/summary');
|
|
|
|
|
|
if (result.code === 200) {
|
|
|
commit('addOrderSummary', { data: result.data });
|
|
|
}
|
|
|
},
|
|
|
async fetchCoupon({commit}) {
|
|
|
const result = await this.$api.get('/api/ufo/mine/coupon', {uid});
|
|
|
const result = await this.$api.get('/api/ufo/mine/coupon');
|
|
|
|
|
|
if (result.code === 200) {
|
|
|
commit('addCouponSummary', { count: result.data});
|
...
|
...
|
@@ -380,7 +373,6 @@ export default function() { |
|
|
const result = await this.$api.get('/api/ufo/mine/assets', {
|
|
|
page,
|
|
|
limit: pageSize,
|
|
|
uid,
|
|
|
});
|
|
|
|
|
|
// commit('assetFetching', {isFetching: false});
|
...
|
...
|
@@ -421,7 +413,6 @@ export default function() { |
|
|
const result = await this.$api.get('/api/ufo/mine/wallet', {
|
|
|
page,
|
|
|
limit: pageSize,
|
|
|
uid,
|
|
|
tradeType,
|
|
|
startTime,
|
|
|
endTime,
|
...
|
...
|
@@ -441,18 +432,14 @@ export default function() { |
|
|
},
|
|
|
|
|
|
async fetchUserWalletInfo({ commit }) {
|
|
|
const result = await this.$api.get('/api/ufo/mine/userWalletInfo', {
|
|
|
uid,
|
|
|
});
|
|
|
const result = await this.$api.get('/api/ufo/mine/userWalletInfo');
|
|
|
|
|
|
if (result.code === 200) {
|
|
|
commit('addUserWalletInfo', result.data);
|
|
|
}
|
|
|
},
|
|
|
async fetchWalletFilter({ commit }) {
|
|
|
const result = await this.$api.get('/api/ufo/mine/walletFilter', {
|
|
|
uid,
|
|
|
});
|
|
|
const result = await this.$api.get('/api/ufo/mine/walletFilter');
|
|
|
|
|
|
if (result.code === 200) {
|
|
|
commit('addfilterData', result.data);
|
...
|
...
|
|