Authored by 王水玲

Merge branch 'release/5.0.0' of git.yoho.cn:fe/yohobuywap-node into release/5.0.0

... ... @@ -41,7 +41,7 @@ exports.beforeIn = (req, res, next) => {
exports.index = (req, res, next) => {
res.locals.module = 'activity';
res.locals.page = 'vipday_entry';
res.locals.page = 'vipday-entry';
res.locals.width750 = true;
let cate = {
... ... @@ -50,7 +50,7 @@ exports.index = (req, res, next) => {
goods3: [51374524, 51338322, 51344316]
};
if (req.app.get('env') !== 'product') {
if (req.app.get('env') !== 'production') {
cate = {
goods1: [512581904, 512581902, 512581900],
goods2: [512581822, 512581816, 512581812],
... ... @@ -79,7 +79,7 @@ exports.index = (req, res, next) => {
exports.crazyWheel = (req, res, next) => {
res.locals.module = 'activity';
res.locals.page = 'vipday_wheel';
res.locals.page = 'vipday-wheel';
res.locals.width750 = true;
if (!req.session.playwheel) {
... ... @@ -103,7 +103,7 @@ exports.crazyLuck = (req, res, next) => {
const uid = req.user.uid;
res.locals.module = 'activity';
res.locals.page = 'vipday_luck';
res.locals.page = 'vipday-luck';
res.locals.width750 = true;
co(function* () {
... ...
<div class="invite-page invite-page-bg">
<div class="invite-content-list">
<div>
<!--<img src="//cdn.yoho.cn/m-yohobuy-node/assets/img/activity/invite/title_new.png" />-->
<!--<br />-->
<img class="banner" src="{{imgSrc 'img/activity/invite/title_new.png'}}" />
<img class="logo" src="{{imgSrc 'img/activity/invite/logo.png'}}" >
<br />
<p class="fz14 intro-title">
只需1位小伙伴领取,<br/>
即得<strong class="fz17">10元现金券</strong><br/>
... ... @@ -15,7 +16,7 @@
</p>
<a href="javascript:void(0)" class="weal-btn fz16" id="send_gift">立刻发福利</a>
<h2 class="rule-tit fz15">活动细则</h2>
<ol class="rule-con">
<ol class="rule-con hide">
<li>本次活动所获现金券仅限Yoho!Buy有货商城购买商品使用,不得转借他人,不可兑换现金;</li>
<li>一个订单只可使用一张优惠券,优惠券需在有效期内使用,过期则无法使用;</li>
<li>使用优惠券支付的订单,退款结算按照实际支付金额退款,优惠券返还账户,且有效期不变;</li>
... ...
... ... @@ -26,7 +26,7 @@
<i class="title-pic"></i>
</header>
<div class="content">
<a href='/home/mycurrency?openby:yohobuy={"action":"go.signin"}' class="d-chit-more"></a>
<a href='/home/mycurrency{{#if isApp}}?openby:yohobuy={"action":"go.signin"}{{/if}}' class="d-chit-more"></a>
<ul class="clearfix">
<li class="item item-1 pull-left" id="js-qiandao">
<!--<a href="http://m.yohobuy.com/home/mycurrency?openby:yohobuy={'action':'go.h5','params':{'islogin':'Y','url':'http://m.yohobuy.com/home/mycurrency'}}">-->
... ... @@ -83,7 +83,7 @@
{{/each}}
</ul>
<div class="text-center">
<a href='http://sale.yohobuy.com/?channel=&specialsale_id=7?openby:yohobuy={"action":"go.vippro"}' class="vip-goods-more">点击查看更多</a>
<a href='https://m.yohobuy.com/product/sale/vip?channel={{channel}}&openby:yohobuy={"action":"go.vippro"}' class="vip-goods-more">点击查看更多</a>
</div>
</div>
</div>
... ...
... ... @@ -181,9 +181,14 @@ const _searchSales = (params) => {
}
params = Object.assign({
limit: '50'
limit: '60'
}, params);
// 5.0.0 sale 按后台导入顺序排列
if (params.type === 'all') {
params.type = '';
}
if (typeCont[params.type]) {
params.order = typeCont[params.type][params.order];
}
... ...
... ... @@ -16,16 +16,9 @@ module.exports = {
siteUrl: '//m.yohobuy.com',
assetUrl: '//localhost:5001',
domains: {
api: 'http://dev-api.yohops.com:9999/',
// service: 'http://devservice.yoho.cn:58077/'
// api: 'http://api.yoho.cn/',
service: 'http://192.168.102.14:8090',
// service: 'http://service.yoho.cn/',
api: 'http://api-test3.yohops.com:9999/',
service: 'http://service-test3.yohops.com:9999/',
liveApi: 'http://testapi.live.yohops.com:9999/'
// api: 'http://api.yoho.cn/',
// service: 'http://service.yoho.cn/',
// liveApi: 'http://testapi.live.yohops.com:9999/'
},
subDomains: {
host: '.m.yohobuy.com',
... ...
... ... @@ -2,7 +2,15 @@
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>
var _hmt = _hmt || [];
function async_load(){
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?e5b83a487a4458aa5abca43f5779b764";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
... ...
{
"name": "m-yohobuy-node",
"version": "4.9.27",
"version": "4.9.28",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ... @@ -38,7 +38,7 @@
"cookie-parser": "^1.4.3",
"express": "^4.14.0",
"express-handlebars": "^3.0.0",
"express-session": "^1.14.0",
"express-session": "^1.14.1",
"influxdb-winston": "^1.0.1",
"lodash": "^4.16.1",
"md5": "^2.1.0",
... ...

145 KB | W: | H:

46.1 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

123 KB | W: | H:

79.7 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -83,7 +83,7 @@ Game.prototype._anim = function(stopLocation, coin) {
newLocation = newLocation > 8 ? newLocation - 8 : newLocation;
console.log(newLocation);
// console.log(newLocation);
setActive(newLocation);
... ...
... ... @@ -41,8 +41,8 @@ var page = {
share({
title: '有货【会员日】开启啦!9月28日潮集狂欢趴等你来HI!限时6大福利,快参与起来喽~',
link: location.href,
desc: 'YOHO!BUY',
imgUrl: 'http://static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png'
desc: 'm.yohobuy.com',
imgUrl: 'http://img10.static.yhbimg.com/taobaocms/2016/09/23/18/010ccac2955e7e50ffb66b75110e73e3e1.png'
});
},
... ... @@ -209,7 +209,7 @@ var page = {
oneMsgH = $msgRoll[0].getBoundingClientRect().height - 6;
onePageH = $fragClone[0].offsetTop;
console.log(oneMsgH);
// console.log(oneMsgH);
function rolling() {
... ...
... ... @@ -4,7 +4,7 @@ require('plugin/modal.alert');
require('../common');
var yoho = require('js/yoho-app');
var tip = require('plugin/tip');
var Game = require('./vip_day/game');
var Game = require('./vip-day/game');
window.$ = $;
... ... @@ -25,7 +25,7 @@ function getAwards($container) {
var $frag = $(document.createDocumentFragment());
if (!res.data.length) {
if (!res.data) {
$frag.append('<li><div class="text-center">快试试手气吧~</div></li>');
} else {
$.each(res.data, function(i, li) {
... ...
... ... @@ -3,7 +3,7 @@
require('plugin/modal.alert');
require('../common');
var yoho = require('js/yoho-app');
var Game = require('./vip_day/game');
var Game = require('./vip-day/game');
window.$ = $;
... ... @@ -35,7 +35,7 @@ $(function() {
}, 5000);
game.onsuccess = function(score) {
console.log(score);
// console.log(score);
upPlayers(1);
$.yAlert({
class: 'vipday-game-alert',
... ...
... ... @@ -10,8 +10,21 @@
font-family: "Microsoft YaHei";
color: #fff;
.banner {
width: 445px;
height: 359px;
margin-top: 50px;
}
.logo {
width: 328px;
height: 66px;
margin-top: 70px;
margin-bottom: 10px;
}
.intro-title {
margin-top: 90px;
// margin-top: 90px;
}
/* 手机号 领福利 */
.invite-content-page {
... ... @@ -19,18 +32,7 @@
text-align: center;
color: #fff;
.banner {
width: 445px;
height: 359px;
margin-top: 50px;
}
.logo {
width: 328px;
height: 66px;
margin-top: 70px;
margin-bottom: 10px;
}
.bold {
font-weight: bold;
... ...
... ... @@ -3,7 +3,7 @@
}
.vip-day-header {
background: resolve("activity/vip_day/activity.png");
background: resolve("activity/vip_day/activity.jpg");
background-size: 100% 100%;
height: 466px;
/*box-shadow: inset -6px -6px 7px rgba(15, 5, 10, 0.32);*/
... ... @@ -161,8 +161,8 @@
}
.content {
height: 224px;
background: no-repeat center center resolve('activity/vip_day/vip-boot-pic.png');
height: 263px;
background: no-repeat center center resolve('activity/vip_day/vip-boot-pic.jpg');
background-size: 100% 100%;
}
... ... @@ -247,7 +247,7 @@
.vip-good-show {
width: 220px;
height: 155px;
height: calc(220 * 4 / 3px);
}
.vip-good-price {
... ... @@ -298,8 +298,10 @@
.vip-good-name {
font-size: 20px;
color: #fff;
height: 2em;
height: calc(2*20*1.4px);
margin-bottom: 10px;
margin-left: 5px;
margin-right: 5px;
}
.vip-good-fav {
... ... @@ -315,7 +317,7 @@
margin-bottom: 56px;
color: transparent;
height: 297px;
background-image: resolve('activity/vip_day/invite.png');
background-image: resolve('activity/vip_day/invite.jpg');
background-size: 100% 100%;
}
}
... ... @@ -438,7 +440,7 @@
z-index: 1;
background-color: #131313;
color: #345abc;
text-shadow: 0px 0px 5px #0919f5;
text-shadow: 0 0 5px #0919f5;
li {
position: relative;
... ...