Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
hmd
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 e2856ed0
authored
Aug 29, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
附近优惠更换接口和参数
1 parent
f166c481
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
17 deletions
api/module/equity.js
pages/tab/equity/index.js
api/module/equity.js
View file @
e2856ed
...
...
@@ -56,6 +56,13 @@ module.exports = {
...
data
,
});
},
// 首页--附近优惠 新接口
getLasteCommodity
(
data
)
{
return
api
.
post
({
method
:
`scrm.api.equity.main.page.carefully.chosen.page`
,
...
data
,
});
},
// 首页--门店套餐
storePackage
(
data
)
{
return
api
.
post
({
...
...
pages/tab/equity/index.js
View file @
e2856ed
...
...
@@ -180,25 +180,22 @@ Page({
})
return
}
wx
.
p
.
api
.
equityApi
.
lasteCommodity
(
para
).
then
(
res
=>
{
if
(
!
res
?.
length
)
{
app
.
globalData
.
goodsLoaded
=
true
return
}
app
.
globalData
.
goodsPageParam
.
pageSize
+=
1
let
tempArr
=
[]
if
(
res
)
{
res
.
forEach
(
item
=>
{
if
(
item
.
couponsGoodsList
)
{
para
.
pageOffset
=
para
.
pageSize
wx
.
p
.
api
.
equityApi
.
getLasteCommodity
(
para
).
then
(
res
=>
{
if
(
!
res
?.
data
?.
length
)
{
app
.
globalData
.
goodsLoaded
=
true
return
}
app
.
globalData
.
goodsPageParam
.
pageSize
=
res
.
pageOffset
let
tempArr
=
[]
res
.
data
.
forEach
(
item
=>
{
tempArr
.
push
(
item
)
}
})
}
app
.
globalData
.
goodsCommodityList
=
app
.
globalData
.
goodsCommodityList
.
concat
(
tempArr
)
app
.
globalData
.
goodsLoaded
=
false
this
.
setData
({
commodityList
:
app
.
globalData
.
goodsCommodityList
,
})
app
.
globalData
.
goodsCommodityList
=
app
.
globalData
.
goodsCommodityList
.
concat
(
tempArr
)
app
.
globalData
.
goodsLoaded
=
false
this
.
setData
({
commodityList
:
app
.
globalData
.
goodsCommodityList
,
})
})
},
...
...
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