Authored by huangyCode

优惠券参数修改

... ... @@ -5,10 +5,10 @@
@click="onChangeList('unused')">未使用{{unused.total && '('+ unused.total + ')'}}
</div>
<div class="item right-line" :class="type ==='used' ? 'item-selected' : 'item-default'"
@click="onChangeList('used')">已使用{{used.total && '('+ used.total + ')'}}
@click="onChangeList('used')">已使用{{used.total && '('+ used.total + ')' || null}}
</div>
<div class="item" :class="type ==='overtime' ? 'item-selected' : 'item-default'"
@click="onChangeList('overtime')">已失效{{overtime.total && '('+ overtime.total + ')'}}
@click="onChangeList('overtime')">已失效{{overtime.total && '('+ overtime.total + ')' || null}}
</div>
</div>
<Scroll class="coupon-list"
... ... @@ -60,13 +60,13 @@
import {Scroll} from 'cube-ui';
import {createNamespacedHelpers} from 'vuex';
import EmptyList from "../../../components/ufo-no-item";
import EmptyList from '../../../components/ufo-no-item';
const {mapState, mapActions} = createNamespacedHelpers('home/coupon');
export default {
name: 'Coupon',
components: {Scroll,EmptyList},
components: {Scroll, EmptyList},
activated: function() {
this.type = 'unused';
this.fetchCouponList({type: 'unused', isReset: true}).then(r=>{
... ...
... ... @@ -63,6 +63,7 @@ export default function() {
} else {
params.page += 1;
}
params.filter = 0;
let result = await this.$api.get('/api/ufo/coupon/list', {...params});
if (result.code === 200) {
... ...