Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
huangyCode
5 years ago
Commit
7f3d56f2e78b2df207995e25fb8d25c4073d936e
1 parent
4fbb447d
优惠券参数修改
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
apps/pages/home/coupon/list.vue
apps/store/home/coupon.js
apps/pages/home/coupon/list.vue
View file @
7f3d56f
...
...
@@ -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=>{
...
...
apps/store/home/coupon.js
View file @
7f3d56f
...
...
@@ -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
)
{
...
...
Please
register
or
login
to post a comment