Authored by zhangxiaoru

好友邀请页

... ... @@ -78,3 +78,20 @@ exports.rewardDetail = (req, res, next) => {
});
}).catch(next);
};
exports.friendInvite = (req, res) => {
let isApp = req.yoho.isApp;
// uid = req.user.uid;
res.render('expand-new/friend-invite', {
pageHeader: headerModel.setNav({
navTitle: '好友邀请'
}),
isApp: isApp,
width750: true,
localCss: true,
title: '好友邀请',
page: 'friend-invite'
});
};
... ...
... ... @@ -266,5 +266,6 @@ router.get('/my-promotion', auth, expand.promotion); // 拓展新客 我的邀
router.get('/my-reward', auth, expand.myReward); // 拓展新客 我的奖励页
router.get('/reward-list', expand.rewardList); // 拓展新客 我的奖励列表
router.get('/reward-detail', auth, expand.rewardDetail); // 拓展新客 我的奖励详情页
router.get('/friend-invite', expand.friendInvite); // 拓展新客 好友邀请页
module.exports = router;
... ...
<div class="friend-invite-page yoho-page">
<div class="banner"></div>
<div class="recommend-goods">
<div class="title">
</div>
<div class="good-list">
<a class="goods-info">
<div class="goods-image">
<img src="">
</div>
<div class="good-detail-text">
<div class="price">
<span class="sale-price">¥ 49</span>
<span class="market-price">¥ 89</span>
</div>
<div class="name">MADSDADDS</div>
</div>
<span class="good-shop">/SHOP NOW/</span>
</a>
<a class="goods-info">
<div class="goods-image">
<img src="">
</div>
<div class="good-detail-text">
<div class="price">
<span class="sale-price">¥ 49</span>
<span class="market-price">¥ 89</span>
</div>
<div class="name">WEDJWLE</div>
</div>
<span class="good-shop">/SHOP NOW/</span>
</a>
<a class="goods-info">
<div class="goods-image">
<img src="">
</div>
<div class="good-detail-text">
<div class="price">
<span class="sale-price">¥ 49</span>
<span class="market-price">¥ 89</span>
</div>
<div class="name">FWEFJ</div>
</div>
<span class="good-shop">/SHOP NOW/</span>
</a>
</div>
</div>
</div>
\ No newline at end of file
... ...
... ... @@ -14,8 +14,10 @@ const domains = {
// api: 'http://192.168.103.59:8080/gateway',
// service: 'http://192.168.103.59:8080/gateway',
api: 'http://api-test3.yohops.com:9999/',
service: 'http://service-test3.yohops.com:9999/',
// api: 'http://api-test3.yohops.com:9999/',
// service: 'http://service-test3.yohops.com:9999/',
api: 'http://api.yoho.cn/',
service: 'http://service.yoho.cn/',
singleApi: 'http://api-test2.yohops.com:9999/',
global: 'http://global-test-soa.yohops.com:9999',
liveApi: 'http://testapi.live.yohops.com:9999/',
... ...
'use strict';
require('activity/friend-invite.page.css');
... ...
.friend-invite-page {
background-image: resolve("activity/expand-new/back.png");
background-size: 100%;
width: 100%;
.banner {
width: 100%;
height: 490px;
border: 1px solid;
margin-bottom: 25px;
}
.recommend-goods {
.title {
width: 100%;
height: 156px;
background-image: resolve("activity/expand-new/recommed-title.png");
background-size: 100%;
background-repeat: no-repeat;
margin-bottom: 30px;
}
}
.good-list {
padding: 0 25px;
overflow: hidden;
}
.goods-info {
width: 340px;
display: block;
position: relative;
float: left;
margin: 0 5px 85px;
.goods-image {
width: 100%;
height: 370px;
border: 1px solid;
}
.good-detail-text {
.price {
height: 55px;
width: 100%;
background-color: #fff;
font-size: 36px;
line-height: 55px;
text-align: center;
.market-price {
text-decoration: line-through;
font-size: 24px;
}
}
.name {
width: 100%;
height: 90px;
color: #fff;
background-color: #000;
line-height: 64px;
font-size: 36px;
text-align: center;
}
}
.good-shop {
display: block;
width: 210px;
height: 60px;
background-color: #fff;
text-align: center;
line-height: 60px;
position: absolute;
left: 65px;
bottom: -25px;
font-size: 28px;
}
}
}
... ...