Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-h5-ailipay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4ef45888
authored
Dec 30, 2021
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
97070218
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
20 deletions
src/views/coupon/index.vue
src/views/coupon/index.vue
View file @
4ef4588
...
@@ -76,7 +76,8 @@
...
@@ -76,7 +76,8 @@
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
import
{
shareMixin
,
pageMixin
,
discountTypeMixin
}
from
'@/mixins'
import
{
shareMixin
,
pageMixin
,
discountTypeMixin
}
from
'@/mixins'
import
{
couponApi
,
boutiquecouponApi
}
from
'@/api'
import
{
couponApi
,
boutiquecouponApi
}
from
'@/api'
const
tabList
=
[
'新车精品礼券'
,
'商城优惠券'
]
const
tabList
=
[
'商城优惠券'
]
// const tabList = ['新车精品礼券', '商城优惠券']
export
default
{
export
default
{
name
:
'coupon'
,
name
:
'coupon'
,
mixins
:
[
shareMixin
,
pageMixin
,
discountTypeMixin
],
mixins
:
[
shareMixin
,
pageMixin
,
discountTypeMixin
],
...
@@ -88,27 +89,28 @@ export default {
...
@@ -88,27 +89,28 @@ export default {
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
// getList_0(pageNum) {
// let { list } = this
// boutiquecouponApi.getBoutiqueCouponList({ pageNum }).then(res => {
// this.hideLoading()
// console.log('精品礼券', res)
// if (res.total == 0) {
// this.showLoading()
// this.updata = new Date().getTime()
// this.tabList = ['商城优惠券']
// this.getList_1(pageNum)
// return
// } else {
// this.tabList = tabList
// }
// this.flag = true
// this.list = list.concat(res.list)
// this.total = res.total
// })
// },
// getList_1(pageNum) {
getList_0
(
pageNum
)
{
getList_0
(
pageNum
)
{
let
{
list
}
=
this
let
{
list
}
=
this
boutiquecouponApi
.
getBoutiqueCouponList
({
pageNum
}).
then
(
res
=>
{
this
.
hideLoading
()
console
.
log
(
'精品礼券'
,
res
)
if
(
res
.
total
==
0
)
{
this
.
showLoading
()
this
.
updata
=
new
Date
().
getTime
()
this
.
tabList
=
[
'商城优惠券'
]
this
.
getList_1
(
pageNum
)
return
}
else
{
this
.
tabList
=
tabList
}
this
.
flag
=
true
this
.
list
=
list
.
concat
(
res
.
list
)
this
.
total
=
res
.
total
})
},
getList_1
(
pageNum
)
{
let
{
list
}
=
this
couponApi
.
getMerchantCouponList
({
pageNum
}).
then
(
res
=>
{
couponApi
.
getMerchantCouponList
({
pageNum
}).
then
(
res
=>
{
console
.
log
(
'商城礼券'
,
res
)
console
.
log
(
'商城礼券'
,
res
)
this
.
flag
=
true
this
.
flag
=
true
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment