...
|
...
|
@@ -44,14 +44,14 @@ export default { |
|
|
}
|
|
|
},
|
|
|
|
|
|
async fetchUfoList({commit}, {limit, page}) {
|
|
|
async fetchUfoList({commit}) {
|
|
|
commit(Types.FETCH_YOHO_COUPON_REQUEST);
|
|
|
|
|
|
const result = await this.$api.get('/api/coupon/ufo/list', {limit: 20, page: 1});
|
|
|
const result = await this.$api.get('/api/coupon/ufo/list');
|
|
|
|
|
|
if (result && result.code === 200) {
|
|
|
commit(Types.FETCH_UFO_COUPON_SUCCESS, {
|
|
|
list: result.data.couponList.map(_handleCoupon),
|
|
|
list: []
|
|
|
});
|
|
|
} else {
|
|
|
commit(Types.FETCH_YOHO_COUPON_FAILED);
|
...
|
...
|
|