Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
邱骏
6 years ago
Commit
157210c72f4c958477c808b5446bcf7132fa771e
1 parent
18ec43a8
修改店铺链接为新店铺链接
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
5 deletions
apps/activity/controllers/individuation.js
apps/activity/router.js
public/js/activity/feature.page.js
apps/activity/controllers/individuation.js
View file @
157210c
...
...
@@ -148,9 +148,7 @@ exports.shop = function(req, res, next) {
};
exports
.
getShopByIds
=
function
(
req
,
res
,
next
)
{
console
.
log
(
'shopIds:'
,
req
.
query
.
shopIds
);
let
shopIds
=
req
.
query
.
shopIds
;
let
shopIds
=
req
.
query
.
shopIds
||
'0'
;
req
.
ctx
(
model
).
getShopByIds
(
shopIds
).
then
(
result
=>
{
res
.
jsonp
(
result
);
...
...
apps/activity/router.js
View file @
157210c
...
...
@@ -271,7 +271,7 @@ router.get('/redbag/2017', redbag.index);
router
.
get
(
'/individuation'
,
individuation
.
productLst
);
router
.
get
(
'/individuation/coupon'
,
individuation
.
coupon
);
router
.
get
(
'/individuation/shop'
,
individuation
.
shop
);
router
.
get
(
'/individuation/getShopByIds'
,
individuation
.
getShopByIds
);
router
.
get
(
'/individuation/getShopByIds'
,
individuation
.
getShopByIds
);
// 通过ID获取店铺基本信息
// 活动页模版
router
.
get
(
'/feature/:code.html'
,
feature
.
index
);
...
...
public/js/activity/feature.page.js
View file @
157210c
...
...
@@ -344,7 +344,6 @@ function getShopProductLinks() {
dataType
:
'jsonp'
}).
then
(
res
=>
{
if
(
res
.
data
&&
res
.
data
.
length
>
0
)
{
console
.
log
(
res
.
data
);
for
(
let
i
=
0
;
i
<
res
.
data
.
length
;
i
++
)
{
let
shopInfo
=
res
.
data
[
i
];
let
index
=
shopArr
.
shopIds
.
indexOf
(
shopInfo
.
shops_id
);
...
...
Please
register
or
login
to post a comment