Merge remote-tracking branch 'origin/develop/wap' into beta/wap
Showing
8 changed files
with
22 additions
and
52 deletions
@@ -220,7 +220,7 @@ $yohoPage.on('touchstart', '.tap-hightlight', function() { | @@ -220,7 +220,7 @@ $yohoPage.on('touchstart', '.tap-hightlight', function() { | ||
220 | }); | 220 | }); |
221 | 221 | ||
222 | $('.nav-home').on('touchstart', function() { | 222 | $('.nav-home').on('touchstart', function() { |
223 | - $('.homebuttom').toggleClass('none'); | 223 | + $('.homebuttom').toggleClass('hide'); |
224 | }); | 224 | }); |
225 | 225 | ||
226 | (function() { | 226 | (function() { |
@@ -28,9 +28,12 @@ $('.nav-btn').on('touchstart', function(event) { | @@ -28,9 +28,12 @@ $('.nav-btn').on('touchstart', function(event) { | ||
28 | $mobileWrap.addClass('menu-open'); | 28 | $mobileWrap.addClass('menu-open'); |
29 | $overlay.show().css('opacity', 0.3); | 29 | $overlay.show().css('opacity', 0.3); |
30 | $sideNav.addClass('on'); | 30 | $sideNav.addClass('on'); |
31 | - event.preventDefault(); | ||
32 | - event.stopPropagation(); | ||
33 | openSideNav = true; | 31 | openSideNav = true; |
32 | + | ||
33 | + //设置boy高宽,页面不能上下滑动 | ||
34 | + $('body').css({ | ||
35 | + overflow: 'hidden' | ||
36 | + }); | ||
34 | return false; | 37 | return false; |
35 | }); | 38 | }); |
36 | 39 | ||
@@ -41,6 +44,9 @@ function hideSideBar() { | @@ -41,6 +44,9 @@ function hideSideBar() { | ||
41 | $('.overlay').hide(); | 44 | $('.overlay').hide(); |
42 | $('.sub-nav').removeClass('show'); | 45 | $('.sub-nav').removeClass('show'); |
43 | $sideNav.removeClass('on'); | 46 | $sideNav.removeClass('on'); |
47 | + $('body').css({ | ||
48 | + overflow: 'auto' | ||
49 | + }); | ||
44 | } | 50 | } |
45 | } | 51 | } |
46 | 52 | ||
@@ -62,10 +68,6 @@ $sideNav.on('touchstart', 'li', function(e) { | @@ -62,10 +68,6 @@ $sideNav.on('touchstart', 'li', function(e) { | ||
62 | } | 68 | } |
63 | }); | 69 | }); |
64 | 70 | ||
65 | -$sideNav.on('touchmove', function(e) { | ||
66 | - return false; | ||
67 | -}); | ||
68 | - | ||
69 | //返回一级导航,收起二级导航 | 71 | //返回一级导航,收起二级导航 |
70 | $subNav.each(function() { | 72 | $subNav.each(function() { |
71 | $(this).find('li').eq(0).on('touchstart', function() { | 73 | $(this).find('li').eq(0).on('touchstart', function() { |
@@ -21,7 +21,7 @@ var appIconPosition = { | @@ -21,7 +21,7 @@ var appIconPosition = { | ||
21 | bank: '-4rem' | 21 | bank: '-4rem' |
22 | }; | 22 | }; |
23 | 23 | ||
24 | -//隐藏微信分享选项 | 24 | +// 隐藏微信分享选项 |
25 | if (window.wx) { | 25 | if (window.wx) { |
26 | wx.hideOptionMenu(); | 26 | wx.hideOptionMenu(); |
27 | } | 27 | } |
@@ -44,10 +44,10 @@ if (typeof WeixinJSBridge === undefined) { | @@ -44,10 +44,10 @@ if (typeof WeixinJSBridge === undefined) { | ||
44 | onBridgeReady(); | 44 | onBridgeReady(); |
45 | } | 45 | } |
46 | 46 | ||
47 | -//调用微信JS api 支付 | 47 | +// 调用微信JS api 支付 |
48 | function jsApiCall(orderCode, jsApiParameters) { | 48 | function jsApiCall(orderCode, jsApiParameters) { |
49 | 49 | ||
50 | - //防止重复操作弹框 | 50 | + // 防止重复操作弹框 |
51 | window.WeixinJSBridge && window.WeixinJSBridge.invoke( | 51 | window.WeixinJSBridge && window.WeixinJSBridge.invoke( |
52 | 'getBrandWCPayRequest', | 52 | 'getBrandWCPayRequest', |
53 | jsApiParameters, | 53 | jsApiParameters, |
@@ -57,7 +57,7 @@ function jsApiCall(orderCode, jsApiParameters) { | @@ -57,7 +57,7 @@ function jsApiCall(orderCode, jsApiParameters) { | ||
57 | ); | 57 | ); |
58 | } | 58 | } |
59 | 59 | ||
60 | -//微信支付 | 60 | +// 微信支付 |
61 | function callpay(orderCode) { | 61 | function callpay(orderCode) { |
62 | var jsApiParameters; | 62 | var jsApiParameters; |
63 | 63 | ||
@@ -92,11 +92,7 @@ function callpay(orderCode) { | @@ -92,11 +92,7 @@ function callpay(orderCode) { | ||
92 | function isWXOpen() { | 92 | function isWXOpen() { |
93 | var ua = window.navigator.userAgent.toLowerCase(); | 93 | var ua = window.navigator.userAgent.toLowerCase(); |
94 | 94 | ||
95 | - if (ua.indexOf('micromessenger') > 0) { | ||
96 | - return true; | ||
97 | - } else { | ||
98 | - return false; | ||
99 | - } | 95 | + return ua.indexOf('micromessenger') > 0; |
100 | } | 96 | } |
101 | 97 | ||
102 | function hideWeChatPay() { | 98 | function hideWeChatPay() { |
@@ -138,9 +134,7 @@ function loadIcon() { | @@ -138,9 +134,7 @@ function loadIcon() { | ||
138 | } | 134 | } |
139 | 135 | ||
140 | function showPage() { | 136 | function showPage() { |
141 | - var $pageList = $('.payapp-list'); | ||
142 | - | ||
143 | - $pageList.css('visibility', 'visible'); | 137 | + $('.payapp-list').css('visibility', 'visible'); |
144 | } | 138 | } |
145 | 139 | ||
146 | if (wxHammer) { | 140 | if (wxHammer) { |
@@ -9,7 +9,7 @@ var $ = require('jquery'); | @@ -9,7 +9,7 @@ var $ = require('jquery'); | ||
9 | var $resend = $('#resend'); | 9 | var $resend = $('#resend'); |
10 | 10 | ||
11 | var tip = require('../../plugin/tip'), | 11 | var tip = require('../../plugin/tip'), |
12 | - showErrTip = tip.show; | 12 | + showTip = tip.show; |
13 | 13 | ||
14 | $resend.on('touchstart', function(e) { | 14 | $resend.on('touchstart', function(e) { |
15 | e.preventDefault(); | 15 | e.preventDefault(); |
@@ -18,11 +18,7 @@ $resend.on('touchstart', function(e) { | @@ -18,11 +18,7 @@ $resend.on('touchstart', function(e) { | ||
18 | url: $resend.data('url'), | 18 | url: $resend.data('url'), |
19 | type: 'GET', | 19 | type: 'GET', |
20 | success: function(data) { | 20 | success: function(data) { |
21 | - if (data.code === 200) { | ||
22 | - showErrTip(data.message); | ||
23 | - } else { | ||
24 | - showErrTip(data.message); | ||
25 | - } | 21 | + showTip(data.message); |
26 | } | 22 | } |
27 | }); | 23 | }); |
28 | }); | 24 | }); |
@@ -152,18 +152,6 @@ | @@ -152,18 +152,6 @@ | ||
152 | } | 152 | } |
153 | } | 153 | } |
154 | 154 | ||
155 | - // li.new { | ||
156 | - // margin: (19rem / $pxConvertRem) 0 0; | ||
157 | - // border-top: 1px solid #e0e0e0; | ||
158 | - // | ||
159 | - // a {} | ||
160 | - // | ||
161 | - // i { | ||
162 | - // background: image-url("side-nav/new.png") no-repeat left center; | ||
163 | - // background-size: 100% 100%; | ||
164 | - // } | ||
165 | - // } | ||
166 | - | ||
167 | li.guang, li.trendfinder { | 155 | li.guang, li.trendfinder { |
168 | .nav-icon { | 156 | .nav-icon { |
169 | background: image-url("side-nav/guang.png") no-repeat left center; | 157 | background: image-url("side-nav/guang.png") no-repeat left center; |
@@ -208,15 +196,6 @@ | @@ -208,15 +196,6 @@ | ||
208 | z-index: 2; | 196 | z-index: 2; |
209 | } | 197 | } |
210 | 198 | ||
211 | - /* img{ | ||
212 | - position: absolute; | ||
213 | - max-width: 50rem / $pxConvertRem; | ||
214 | - max-height: 50rem / $pxConvertRem; | ||
215 | - left: 32rem / $pxConvertRem; | ||
216 | - top: 50%; | ||
217 | - margin-top: -25rem / $pxConvertRem; | ||
218 | - border: none; | ||
219 | - } */ | ||
220 | .nav-point { | 199 | .nav-point { |
221 | position: absolute; | 200 | position: absolute; |
222 | left: 0rem / $pxConvertRem; | 201 | left: 0rem / $pxConvertRem; |
@@ -122,12 +122,13 @@ | @@ -122,12 +122,13 @@ | ||
122 | } | 122 | } |
123 | 123 | ||
124 | .homebuttom{ | 124 | .homebuttom{ |
125 | - display: block; | ||
126 | width: 100%; | 125 | width: 100%; |
127 | height: 90rem / $pxConvertRem; | 126 | height: 90rem / $pxConvertRem; |
128 | overflow: hidden; | 127 | overflow: hidden; |
129 | border-top: 1px solid rgba(255,255,255,0.5); | 128 | border-top: 1px solid rgba(255,255,255,0.5); |
130 | color: #fff; | 129 | color: #fff; |
130 | + z-index: 2; | ||
131 | + position: relative; | ||
131 | 132 | ||
132 | &.boys { | 133 | &.boys { |
133 | @include background-image(linear-gradient(#323232, #414141)); | 134 | @include background-image(linear-gradient(#323232, #414141)); |
@@ -173,6 +174,4 @@ | @@ -173,6 +174,4 @@ | ||
173 | } | 174 | } |
174 | } | 175 | } |
175 | } | 176 | } |
176 | -.none{ | ||
177 | - display: none; | ||
178 | -} | 177 | + |
@@ -20,7 +20,7 @@ | @@ -20,7 +20,7 @@ | ||
20 | {{/navTitle}} | 20 | {{/navTitle}} |
21 | </header> | 21 | </header> |
22 | {{#navBtn}} | 22 | {{#navBtn}} |
23 | -<div class="homebuttom none {{#if boys}} boys{{/if}}{{#if girls}} girls{{/if}}{{#if kids}} kids{{/if}}{{#if lifeStyle}} life-style{{/if}}"> | 23 | +<div class="homebuttom hide {{#if boys}} boys{{/if}}{{#if girls}} girls{{/if}}{{#if kids}} kids{{/if}}{{#if lifeStyle}} life-style{{/if}}"> |
24 | <ul> | 24 | <ul> |
25 | <li> | 25 | <li> |
26 | <a href="{{ indexUrl }}"> | 26 | <a href="{{ indexUrl }}"> |
-
Please register or login to post a comment