Authored by lijing

删除更改绑定账号

... ... @@ -71,5 +71,24 @@ exports.getOrders = (req, res, next) => {
}).then(result => {
res.json(result);
}).catch(next);
};
/**
* 非首次绑定
* @param req
* @param res
* @param next
*/
exports.tip = (req, res, next) => {
res.render('raffle/tip', {
module: 'activity',
page: 'raffle',
pageHeader: headerModel.setNav({
navTitle: '我的订单'
}),
title: 'Yoho!Buy 有货',
pageFooter: true
});
};
\ No newline at end of file
... ...
... ... @@ -79,6 +79,7 @@ router.get('/market/v2', market.v2); // 市场推广活动å‡çº§ç‰ˆï¼Œè‡ªå®šä¹‰ä
router.get('/raffle/activity', raffle.activity); // 微信免单抽奖活动
router.get('/raffle/orders', raffle.order); // 微信免单抽奖活动订单列表
router.get('/raffle/getOrders', raffle.getOrders); // 微信免单抽奖活动获取订单列表数据
router.get('/raffle/tip', raffle.tip); // 微信免单抽奖活动非首次绑定
router.get(/\/invite\/share_([\d]+)_([\d]+)_([\d]+).html/, invite.checkType, invite.share);
... ...
... ... @@ -13,9 +13,7 @@
<li>满减卷:满299~50元、满499~100元</li>
</ul>
<a class="btn" href="./orders"></a>
<div class="account">您已绑定账号:186****1234
<a>更换绑定账号</a>
</div>
<div class="account">您已绑定账号:186****1234</div>
<div class="rule-c">
<p class="rule-title">活动说明</p>
<div class="rule-list-c">
... ...
<div id="order-container" class="order-container">
<input type="hidden" class="dia-tip" />
</div>
\ No newline at end of file
... ...
... ... @@ -152,6 +152,13 @@
{{/if}}
{{/if}}
</div>
<div class="wx-footer">
<div class="iconfont">&#xe63c;</div>
<div class="tip">
<div class="copy">微信搜索 “<span id="wx-name">Yoho!Buy有货</span><a class="copy-wx hide">【点击复制】</a>关注</div>
<div class="intro">首次绑定账户可获得50个有货币,更有免单抽奖等着您</div>
</div>
</div>
</div>
<div class="reason-mask">
... ...
... ... @@ -280,6 +280,21 @@ $(window).scroll(function() {
getOrders();
$(function() {
if ($(".dia-tip").length > 0) {
// Order delete
dialog.showDialog({
dialogText: '您不是首次绑定,不能再领有货币啦,去参加免单抽奖吧',
hasFooter: {
leftBtnText: '我知道了'
}
}, function() {
});
$(".dialog-left-btn").css({"float":"none","color":"#444","display":"inline-block","border":"0"});
}
reasonSwiper = new Swiper('.box-main', {
direction: 'vertical',
slidesPerView: 5,
... ...
... ... @@ -374,4 +374,46 @@
float: right;
}
}
.wx-footer {
width: 100%;
height: 95px;
background-color: #fff;
border-top: solid 1px #e0e0e0;
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 1;
padding: 20px 25px;
.iconfont {
color: #e0e0e0;
font-size: 35px;
float: left;
width: 50px;
}
.tip {
margin-left: 20px;
float: left;
width: 520px;
.copy {
font-size: 24px;
color: #444;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.intro {
font-size: 18px;
color: #b0b0b0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
}
... ...