Authored by ccbikai

WAP 微信登录refer问题修改

@@ -26,7 +26,7 @@ function doPassportCallback(openId, nickname, sourceType, req, res) { @@ -26,7 +26,7 @@ function doPassportCallback(openId, nickname, sourceType, req, res) {
26 refer = `${config.siteUrl}/home`; 26 refer = `${config.siteUrl}/home`;
27 } 27 }
28 28
29 - if (/sign|login/.test(refer)) { 29 + if (/signin|login/.test(refer)) {
30 refer = `${config.siteUrl}/home`; 30 refer = `${config.siteUrl}/home`;
31 } 31 }
32 if (openId && nickname) { 32 if (openId && nickname) {
@@ -55,7 +55,7 @@ const wechat = { @@ -55,7 +55,7 @@ const wechat = {
55 if (!refer) { 55 if (!refer) {
56 refer = req.get('Referer'); 56 refer = req.get('Referer');
57 } 57 }
58 - refer && res.cookie('refer', encodeURI(refer), { 58 + refer && !/signin|login/.test(refer) && res.cookie('refer', encodeURI(refer), {
59 domain: 'yohobuy.com' 59 domain: 'yohobuy.com'
60 }); 60 });
61 next(); 61 next();
@@ -41,13 +41,15 @@ class Auth { @@ -41,13 +41,15 @@ class Auth {
41 let uidCookie = `${data.profile_name}::${data.uid}::${data.vip_info.title}::${token}`; 41 let uidCookie = `${data.profile_name}::${data.uid}::${data.vip_info.title}::${token}`;
42 42
43 res.cookie('_UID', uidCookie, { 43 res.cookie('_UID', uidCookie, {
44 - domain: 'yohobuy.com' 44 + domain: 'yohobuy.com',
  45 + expires: new Date(Date.now() + 2592000000) // 有效期一年
45 }); 46 });
46 } 47 }
47 req.session._TOKEN = token; // esline-disable-line 48 req.session._TOKEN = token; // esline-disable-line
48 req.session._LOGIN_UID = uid; // esline-disable-line 49 req.session._LOGIN_UID = uid; // esline-disable-line
49 res.cookie('_TOKEN', token, { 50 res.cookie('_TOKEN', token, {
50 - domain: 'yohobuy.com' 51 + domain: 'yohobuy.com',
  52 + expires: new Date(Date.now() + 2592000000) // 有效期一年
51 }); // esline-disable-line 53 }); // esline-disable-line
52 }); 54 });
53 } 55 }
@@ -5557,6 +5557,7 @@ a{ @@ -5557,6 +5557,7 @@ a{
5557 } 5557 }
5558 .star-page{ 5558 .star-page{
5559 background: #333; 5559 background: #333;
  5560 + position: relative;
5560 } 5561 }
5561 .star-page a{ 5562 .star-page a{
5562 text-decoration: none; 5563 text-decoration: none;
@@ -5655,7 +5656,6 @@ a{ @@ -5655,7 +5656,6 @@ a{
5655 height: 4.5rem; 5656 height: 4.5rem;
5656 } 5657 }
5657 .star-page .star-main{ 5658 .star-page .star-main{
5658 - position: relative;  
5659 margin-top: 2.2rem; 5659 margin-top: 2.2rem;
5660 } 5660 }
5661 .star-page .avatar-swiper{ 5661 .star-page .avatar-swiper{
@@ -5671,10 +5671,8 @@ a{ @@ -5671,10 +5671,8 @@ a{
5671 margin-top: 0.9rem; 5671 margin-top: 0.9rem;
5672 background: #000; 5672 background: #000;
5673 } 5673 }
5674 -.star-page .avatar-swiper li span{  
5675 - display: block;  
5676 - width: 100%;  
5677 - height: 100%; 5674 +.star-page .avatar-swiper li a{
  5675 + border-radius: 0.125rem;
5678 } 5676 }
5679 .star-page .avatar-swiper .swiper-slide-active{ 5677 .star-page .avatar-swiper .swiper-slide-active{
5680 width: 4.5rem; 5678 width: 4.5rem;
@@ -5908,15 +5906,6 @@ a{ @@ -5908,15 +5906,6 @@ a{
5908 top: 0; 5906 top: 0;
5909 z-index: -1; 5907 z-index: -1;
5910 } 5908 }
5911 -.star-page .swiper-num1{  
5912 - width: 2.75rem;  
5913 -}  
5914 -.star-page .swiper-num2{  
5915 - width: 3.25rem;  
5916 -}  
5917 -.star-page .swiper-num3{  
5918 - width: 4.5rem;  
5919 -}  
5920 .star-index-bg{ 5909 .star-index-bg{
5921 background: #000; 5910 background: #000;
5922 overflow: hidden; 5911 overflow: hidden;
@@ -5924,6 +5913,25 @@ a{ @@ -5924,6 +5913,25 @@ a{
5924 .star-index-bg .star-page{ 5913 .star-index-bg .star-page{
5925 background: #000; 5914 background: #000;
5926 } 5915 }
  5916 +@media screen and (max-width: 375px) and (min-width: 375px){
  5917 + .star-page .avatar-wrap{
  5918 + height: 105PX;
  5919 + }
  5920 + .star-page .avatar-swiper li{
  5921 + width: 64PX;
  5922 + height: 64PX;
  5923 + margin-top: 20.5PX;
  5924 + }
  5925 + .star-page .avatar-swiper .swiper-slide-active{
  5926 + width: 105PX;
  5927 + height: 105PX;
  5928 + }
  5929 + .star-page .avatar-swiper .swiper-slide-prev, .star-page .avatar-swiper .swiper-slide-next{
  5930 + width: 76PX;
  5931 + height: 76PX;
  5932 + margin-top: 14.5PX;
  5933 + }
  5934 +}
5927 .star-page .special-list{ 5935 .star-page .special-list{
5928 width: 100%; 5936 width: 100%;
5929 height: auto; 5937 height: auto;
@@ -5937,7 +5945,7 @@ a{ @@ -5937,7 +5945,7 @@ a{
5937 } 5945 }
5938 .star-page .special-list li img{ 5946 .star-page .special-list li img{
5939 width: 100%; 5947 width: 100%;
5940 - min-height: 7.75rem; 5948 + height: 7.75rem;
5941 } 5949 }
5942 .star-page .special-list li p{ 5950 .star-page .special-list li p{
5943 width: 100%; 5951 width: 100%;
This diff could not be displayed because it is too large.