Authored by 梁志锋

Merge remote-tracking branch 'origin/develop/wap' into beta/wap

... ... @@ -220,7 +220,7 @@ $yohoPage.on('touchstart', '.tap-hightlight', function() {
});
$('.nav-home').on('touchstart', function() {
$('.homebuttom').toggleClass('none');
$('.homebuttom').toggleClass('hide');
});
(function() {
... ...
... ... @@ -28,9 +28,12 @@ $('.nav-btn').on('touchstart', function(event) {
$mobileWrap.addClass('menu-open');
$overlay.show().css('opacity', 0.3);
$sideNav.addClass('on');
event.preventDefault();
event.stopPropagation();
openSideNav = true;
//设置boy高宽,页面不能上下滑动
$('body').css({
overflow: 'hidden'
});
return false;
});
... ... @@ -41,6 +44,9 @@ function hideSideBar() {
$('.overlay').hide();
$('.sub-nav').removeClass('show');
$sideNav.removeClass('on');
$('body').css({
overflow: 'auto'
});
}
}
... ... @@ -62,10 +68,6 @@ $sideNav.on('touchstart', 'li', function(e) {
}
});
$sideNav.on('touchmove', function(e) {
return false;
});
//返回一级导航,收起二级导航
$subNav.each(function() {
$(this).find('li').eq(0).on('touchstart', function() {
... ...
... ... @@ -21,7 +21,7 @@ var appIconPosition = {
bank: '-4rem'
};
//隐藏微信分享选项
// 隐藏微信分享选项
if (window.wx) {
wx.hideOptionMenu();
}
... ... @@ -44,10 +44,10 @@ if (typeof WeixinJSBridge === undefined) {
onBridgeReady();
}
//调用微信JS api 支付
// 调用微信JS api 支付
function jsApiCall(orderCode, jsApiParameters) {
//防止重复操作弹框
// 防止重复操作弹框
window.WeixinJSBridge && window.WeixinJSBridge.invoke(
'getBrandWCPayRequest',
jsApiParameters,
... ... @@ -57,7 +57,7 @@ function jsApiCall(orderCode, jsApiParameters) {
);
}
//微信支付
// 微信支付
function callpay(orderCode) {
var jsApiParameters;
... ... @@ -92,11 +92,7 @@ function callpay(orderCode) {
function isWXOpen() {
var ua = window.navigator.userAgent.toLowerCase();
if (ua.indexOf('micromessenger') > 0) {
return true;
} else {
return false;
}
return ua.indexOf('micromessenger') > 0;
}
function hideWeChatPay() {
... ... @@ -138,9 +134,7 @@ function loadIcon() {
}
function showPage() {
var $pageList = $('.payapp-list');
$pageList.css('visibility', 'visible');
$('.payapp-list').css('visibility', 'visible');
}
if (wxHammer) {
... ...
... ... @@ -9,7 +9,7 @@ var $ = require('jquery');
var $resend = $('#resend');
var tip = require('../../plugin/tip'),
showErrTip = tip.show;
showTip = tip.show;
$resend.on('touchstart', function(e) {
e.preventDefault();
... ... @@ -18,11 +18,7 @@ $resend.on('touchstart', function(e) {
url: $resend.data('url'),
type: 'GET',
success: function(data) {
if (data.code === 200) {
showErrTip(data.message);
} else {
showErrTip(data.message);
}
showTip(data.message);
}
});
});
\ No newline at end of file
... ...
... ... @@ -46,7 +46,7 @@ function startBind(password) {
tip.show('登录失败,请重试!');
}
});
}
}
api.bindEyesEvt({
status: 'open' //默认眼睛打开
... ...
... ... @@ -152,18 +152,6 @@
}
}
// li.new {
// margin: (19rem / $pxConvertRem) 0 0;
// border-top: 1px solid #e0e0e0;
//
// a {}
//
// i {
// background: image-url("side-nav/new.png") no-repeat left center;
// background-size: 100% 100%;
// }
// }
li.guang, li.trendfinder {
.nav-icon {
background: image-url("side-nav/guang.png") no-repeat left center;
... ... @@ -208,15 +196,6 @@
z-index: 2;
}
/* img{
position: absolute;
max-width: 50rem / $pxConvertRem;
max-height: 50rem / $pxConvertRem;
left: 32rem / $pxConvertRem;
top: 50%;
margin-top: -25rem / $pxConvertRem;
border: none;
} */
.nav-point {
position: absolute;
left: 0rem / $pxConvertRem;
... ...
... ... @@ -122,12 +122,13 @@
}
.homebuttom{
display: block;
width: 100%;
height: 90rem / $pxConvertRem;
overflow: hidden;
border-top: 1px solid rgba(255,255,255,0.5);
color: #fff;
z-index: 2;
position: relative;
&.boys {
@include background-image(linear-gradient(#323232, #414141));
... ... @@ -173,6 +174,4 @@
}
}
}
.none{
display: none;
}
... ...
... ... @@ -20,7 +20,7 @@
{{/navTitle}}
</header>
{{#navBtn}}
<div class="homebuttom none {{#if boys}} boys{{/if}}{{#if girls}} girls{{/if}}{{#if kids}} kids{{/if}}{{#if lifeStyle}} life-style{{/if}}">
<div class="homebuttom hide {{#if boys}} boys{{/if}}{{#if girls}} girls{{/if}}{{#if kids}} kids{{/if}}{{#if lifeStyle}} life-style{{/if}}">
<ul>
<li>
<a href="{{ indexUrl }}">
... ...