Authored by huangyi

guochao

@@ -84,15 +84,7 @@ export default class guochaoHome extends PureComponent { @@ -84,15 +84,7 @@ export default class guochaoHome extends PureComponent {
84 }; 84 };
85 85
86 scrollTop= ()=> { 86 scrollTop= ()=> {
87 - let timer = setInterval(function() {  
88 - window.scrollBy(0, -50);  
89 - let scrollHeight = window.pageYOffset ||  
90 - document.documentElement.scrollTop ||  
91 - document.body.scrollTop;  
92 - if (scrollHeight === 0) {  
93 - clearInterval(timer);  
94 - };  
95 - }, 2); 87 + window.scrollTo({top:0,left:0,behavior:"smooth"})
96 }; 88 };
97 89
98 render (){ 90 render (){
@@ -261,8 +253,8 @@ export default class guochaoHome extends PureComponent { @@ -261,8 +253,8 @@ export default class guochaoHome extends PureComponent {
261 <a className="bottom_4" onClick={linkToMiniApp} data-type="miniApp" data-url="/pages/goodsList/productPool?productPool=26496&title=未来感" 253 <a className="bottom_4" onClick={linkToMiniApp} data-type="miniApp" data-url="/pages/goodsList/productPool?productPool=26496&title=未来感"
262 href={env === "miniprogram" ? "javascript:void(0)" : 'http://search.m.yohobuy.com/?filter_poolId=26496&title=未来感&openby:yohobuy={"action":"go.poollist","params":{"title":"未来感","productPool":"26496"}}'}></a> 254 href={env === "miniprogram" ? "javascript:void(0)" : 'http://search.m.yohobuy.com/?filter_poolId=26496&title=未来感&openby:yohobuy={"action":"go.poollist","params":{"title":"未来感","productPool":"26496"}}'}></a>
263 </div> 255 </div>
264 - <a onClick={linkToMiniApp} data-type="h5" data-url='https://activity.yoho.cn/feature/2969.html?openby:yohobuy={"action":"go.h5","params":{"title":"新品节主会场/BOY","url":"https://activity.yoho.cn/feature/2969.html","share":"/operations/api/v5/webshare/getShare","shareparam":{"share_id":"5601"},"param":{"share_id":"5601"}}}'  
265 - href={env === "miniprogram" ? "javascript:void(0)" : 'https://activity.yoho.cn/feature/2969.html?openby:yohobuy={"action":"go.h5","params":{"title":"新品节主会场/BOY","url":"https://activity.yoho.cn/feature/2969.html","share":"/operations/api/v5/webshare/getShare","shareparam":{"share_id":"5601"},"param":{"share_id":"5601"}}}'} 256 + <a onClick={linkToMiniApp} data-type="h5" data-url='https://activity.yoho.cn/feature/2969.html'
  257 + href={env === "miniprogram" ? "javascript:void(0)" : 'https://activity.yoho.cn/feature/2969.html?openby:yohobuy={"action":"go.h5","params":{"title":"新品节主会场/BOY","url":"https://activity.yoho.cn/feature/2969.html","share":"\\/operations\\/api\\/v5\\/webshare\\/getShare","shareparam":{"share_id":"5601"},"param":{"share_id":"5601"}}}'}
266 className='bottom'></a> 258 className='bottom'></a>
267 <div className='footer'></div> 259 <div className='footer'></div>
268 </div> 260 </div>
@@ -38,15 +38,7 @@ export default class top40 extends PureComponent { @@ -38,15 +38,7 @@ export default class top40 extends PureComponent {
38 }; 38 };
39 39
40 scrollTop= ()=> { 40 scrollTop= ()=> {
41 - let timer = setInterval(function() {  
42 - window.scrollBy(0, -50);  
43 - let scrollHeight = window.pageYOffset ||  
44 - document.documentElement.scrollTop ||  
45 - document.body.scrollTop;  
46 - if (scrollHeight === 0) {  
47 - clearInterval(timer);  
48 - };  
49 - }, 2); 41 + window.scrollTo({top:0,left:0,behavior:"smooth"})
50 }; 42 };
51 43
52 handleScroll=()=> { 44 handleScroll=()=> {