Bläddra i källkod

Merge branch 'master' into feature/v4.9.76

yuelujie 8 månader sedan
förälder
incheckning
845fc1d758

+ 36 - 8
src/jfw/modules/app/src/web/staticres/jyapp/me/css/login.css

@@ -6,7 +6,7 @@
   border-radius: 8px;
 }
 .login {
-  margin-top: 20px;
+  margin-top: 8px;
   padding: 0px 25px;
   /*微信登陆*/
 }
@@ -68,24 +68,46 @@
   text-align: center;
 }
 
-.forget:not(.flex) .fast-login-open-link {
+.fast-login-open-link {
+  position: relative;
   font-size: 16px;
+  line-height: 26px;
+  color: #2ABED1;
+  margin-right: .48rem;
+}
+.fast-login-open-link::after {
+  content: '';
+  position: absolute;
+  top: 0;
+  right: -.24rem;
+  width: 1px;
+  height: 100%;
+  background-color: #2ABED1;
 }
 
+.fast-login-open-link.no-right-line {
+  margin-right: 0;
+}
+.fast-login-open-link.no-right-line::after {
+  content: unset;
+}
 
 .login .forget a {
   color: #2ABED1;
   font-size: 14px;
 }
 
-.login .forget .forget-password{
-    display: none;
-}
 
 /*.login .forget a.register {*/
 /*  float: right;*/
 /*}*/
 
+.third-and-fast-login-container {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+}
+
 .login .wx {
   text-align: center;
   margin-top:20px;
@@ -145,10 +167,9 @@
   display: flex;
   justify-content: center;
   align-items: center;
-  margin-top: .32rem;
   padding: .16rem;
-  width: .96rem;
-  height: .96rem;
+  width: .8rem;
+  height: .8rem;
   border-radius: 50%;
   background: rgba(15, 184, 103, 0.05);
   border: 1px solid rgba(15, 184, 103, 0.1);
@@ -252,6 +273,13 @@
 .jyapp-icon-zuojiantou-x:after{
 	top:38px;
 }
+.footer-container {
+  padding-top: .16rem;
+}
+.login-placeholder {
+  height: 30px;
+  transition: height 0.3s ease;
+}
 /*重置input默认样式*/
 /*input:-webkit-autofill{*/
 /*    -webkit-box-shadow: 0 0 0px 1000px transparent inset;*/

+ 2 - 2
src/jfw/modules/app/src/web/staticres/jyapp/me/js/login.js

@@ -45,9 +45,9 @@ var loginEvents = {
   },
   fastButtonShow: function (f) {
     if (f) {
-      $('.forget').removeClass('center').find('.fast-login-open-link').show()
+      $('.fast-login-open-link').show()
     } else {
-      $('.forget').addClass('center').find('.fast-login-open-link').hide()
+      $('.fast-login-open-link').hide()
     }
   },
   checkAutoFastLogin: function (auto) {

+ 67 - 33
src/jfw/modules/app/src/web/templates/me/login.html

@@ -25,8 +25,7 @@
 		bottom: 4%; */
 		display: flex;
 		justify-content: center;
-		/* padding-right: 44px; */
-		margin: .32rem 0;
+		margin: .16rem 0 0.56rem;
 		width: 100%;
 		height: 36px;
 	}
@@ -94,6 +93,9 @@
   .layou_top .info_box > div.active-tip-group::after {
     content: unset;
   }
+  #header {
+    height: unset;
+  }
   #header .cancle{
     position: absolute;
     top: .84rem;
@@ -107,11 +109,9 @@
     height: 100%;
   }
   .active-tip-group {
-    position: relative;
-
+    /* position: relative; */
     /* background: url('{{Msg "seo" "cdn"}}/common-module/active/2022.4.1/app.png?v={{Msg "seo" "version"}}') no-repeat; */
     margin: 0 auto;
-    margin-top: 0.4rem;
     width: 6.86rem;
     /* height: 2.56rem; */
     background-size: contain;
@@ -119,10 +119,9 @@
   .active-tip-group img {
       width: 100%;
   }
-
 </style>
 <body>
-  <div class="page-container">
+  <div class="page-container j-container">
     <div class="page-main">
       <div id="header" class="header-login">
         <!-- <a href="javascript:;" class="cancle"><span class="app-back jyapp-icon jyapp-icon-zuojiantou"></span></a>
@@ -177,34 +176,42 @@
               <span id="sendIdentCode">获取验证码</span>
             </div>
             <button type="button" id="btn" class="disabled btn" />登录</button>
-            <div class="forget center">
+            <div class="forget center form-bottom-actions">
               <a class="forget-password" href="javascript:void(0)">忘记密码?</a>
-      			<a href="javascript:void(0)" class="fast-login-open-link" style="display: none;">本机号码一键登录</a>
+              <a class="user-register" href="javascript:void(0)">新用户注册</a>
                 <!-- <span class="tip">未注册用户验证通过后自动注册</span> -->
             </div>
           </div>
         </div>
       </div>
-      <!--微信登录start-->
-      <div class="wx">
-        <div class="third_title">
-          <div class="third_line"></div>
-          <div style="padding: 0 12px;">第三方登录</div>
-          <div class="third_line"></div>
+    </div>
+    <!--微信登录start-->
+      <!-- <div class="third_title">
+        <div class="third_line"></div>
+        <div style="padding: 0 12px;">第三方登录</div>
+        <div class="third_line"></div>
+      </div> -->
+      <div class="login-placeholder"></div>
+	    <div class="footer-container">
+        <div class="third-and-fast-login-container">
+            <div class="fast-login-item">
+              <a href="javascript:void(0)" class="fast-login-open-link" style="display: none;">本机号码一键登录</a>
+            </div>
+            <div class="fast-login-item wx">
+              <div class=" third_wx">
+                <img src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/me/images/login_wx.png?v={{Msg "seo" "version"}}">
+              </div>
+            </div>
         </div>
-        <div class="third_wx">
-          <img src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/me/images/login_wx.png?v={{Msg "seo" "version"}}">
+        <!--微信登录end-->
+        <div class="rules">
+          <label for="ifagree" class="selectlabel">
+            <input type="checkbox" id="ifagree">
+            <span class="checkbox-custom selectcheck"></span>
+            <span class="agreeleft selectcheck">已阅读并同意</span><a id="permission">《使用协议》</a><a id="privacy">《隐私政策》</a>
+          </label>
         </div>
       </div>
-      <!--微信登录end-->
-      <div class="rules">
-        <label for="ifagree" class="selectlabel">
-          <input type="checkbox" id="ifagree">
-          <span class="checkbox-custom selectcheck"></span>
-          <span class="agreeleft selectcheck">已阅读并同意</span><a id="permission">《使用协议》</a><a id="privacy">《隐私政策》</a>
-        </label>
-      </div>
-    </div>
   </div>
   <div class="toast_readtips" style="display: none;">
     <div class="toast_content">
@@ -230,9 +237,19 @@
     * @param {Array|String} active_codes_map 广告id标识符--数组集合["jy-wx-course-pay-success"]
     * @parRam {String} isAppsion 请求环境、app、weixin、pc
     */
-    getActive.getActiveInfo(Activedata,'Applink')
+    getActive.getActiveInfo(Activedata,'Applink', undefined, () => {
+      calcPlaceholderHeight()
+    })
   </script>
     <script type="text/javascript">
+      function calcPlaceholderHeight() {
+        const containerH = $('.page-container').height()
+        const mainH = $('.page-main').height()
+        const footerH = $('.footer-container').height()
+        const yu = containerH - mainH - footerH - 80
+
+        $('.login-placeholder').css({ height: yu + 'px' })
+      }
       // var platform = utils.isWeiXinBrowser ? 'wx' : 'app'
       // 注册埋点
       function trackClick (c_type) {
@@ -266,9 +283,20 @@
     var hideNum = 0
     var timer = null
     var platform = utils.$envs
+
+    function showWxLoginIcon(f) {
+      if (f) {
+        $('.wx').show()
+        $('.fast-login-open-link').removeClass('no-right-line')
+      } else {
+        $('.wx').hide()
+        $('.fast-login-open-link').addClass('no-right-line')
+      }
+    }
+
     // s-- h5状态下隐藏微信登录 --s
     if (platform.inH5) {
-      $('.wx').hide()
+      showWxLoginIcon(false)
     }
     // e-- h5状态下隐藏微信登录 -- e
     // s-- 删除注册页缓存 -- s
@@ -330,6 +358,10 @@
 				}
 			});
 
+      $('.user-register').on('tap', function() {
+        toggleLoginTypeClass('login-code')
+      })
+
       function toggleLoginTypeClass (type) {
         $(".header-tab>a").removeClass("header-tab-active");
         $(".header-tab>a[name=" + type + "]").addClass("header-tab-active");
@@ -337,14 +369,16 @@
           $(".login .onePass").show();
           $(".login .code").css("display","none");
           $(".header-tab>i").css("left",left_2);
-          $('.forget-password').show()
+          // $('.forget-password').show()
+          $('.form-bottom-actions.forget').show()
           $('.login .forget').addClass('flex')
           $('#btn').text('登录')
         } else {
           $(".login .onePass").hide();
           $(".login .code").css("display","table");
           $(".header-tab>i").css("left",left_1);
-          $('.forget-password').hide()
+          // $('.forget-password').hide()
+          $('.form-bottom-actions.forget').hide()
           $('.login .forget').removeClass('flex')
           $('#btn').text('登录')
         }
@@ -663,11 +697,11 @@
 			if(kbTimeout != null){
 				clearTimeout(kbTimeout);
 			}
-			$(".wx").hide();
+			showWxLoginIcon(false)
 		}
 		function afterKeyboardHide(){
 			kbTimeout = setTimeout(function(){
-				$(".wx").show();
+				showWxLoginIcon(true)
 			},300);
 		}
 		var kicked = {{.T.kicked}};
@@ -681,7 +715,7 @@
 			try{
 				//是否安装了微信
 				if(JyObj.isInstallWeixin()==0){
-					$(".wx").hide();
+					showWxLoginIcon(false)
 				}
 			}catch(e){}
 			if(getUrlParam("flag")=="kicked" || getUrlParam("flag")=="quit"){

+ 2 - 1
src/jfw/modules/publicapply/src/detail/config.json

@@ -160,5 +160,6 @@
   "purchaseInfo": {
     "name": "阳光直采",
     "code": "zc_cgxx"
-  }
+  },
+  "originalTime": 1733241600
 }

+ 10 - 2
src/jfw/modules/publicapply/src/detail/dao/bidding.go

@@ -423,8 +423,16 @@ func (bi *BidInfo) BiddingDataFormat(obj map[string]interface{}, id string) {
 	//href="#"为竞品
 	href := common.ObjToString(obj["href"])
 	//竞品及剑鱼信息发布的招标信息,不显示查看原文
-	if href != "" && href != "#" && common.ObjToString(obj["site"]) != consts.JyTxt {
-		bi.Detail.OriginalShow = true
+	if time.Now().Unix() < dc.Config.OriginalTime { // 12.3 号 数据处理之前
+		if href != "" && href != "#" && common.ObjToString(obj["site"]) != consts.JyTxt {
+			bi.Detail.OriginalShow = true
+		}
+	} else {
+		//1、不展示是剑鱼链接逻辑:href为剑鱼链接的;(包含 需要登录的源网站)
+		//2、数据生效时间:2024.12.3号;(2024.12.3号前完成脚本及数据更新)--- 张金坤
+		if href != "" && !strings.Contains(href, "jianyu360.cn") {
+			bi.Detail.OriginalShow = true
+		}
 	}
 	//附件  且  附件可用
 	if isValidFile, _ := obj["isValidFile"].(bool); isValidFile && obj["projectinfo"] != nil {

+ 1 - 0
src/jfw/modules/publicapply/src/detail/entity/config.go

@@ -19,6 +19,7 @@ type Config struct {
 		Name string `json:"name"`
 		Code string `json:"code"`
 	} `json:"purchaseInfo"`
+	OriginalTime int64 `json:"originalTime"`
 }
 
 type reqLimit struct {

+ 2 - 1
src/web/staticres/common-module/ad/js/index.js

@@ -60,7 +60,7 @@ var getActive = {
    * @param {String} orderCode 订单编号(应用场景:支付成功将订单编号塞到请求头里给后端,后端根据订单编号返回特定身份的广告位)
    * @returns {Object|Array}
    */
-  getActiveInfo: function (active_codes_map,isAppsion, orderCode) {
+  getActiveInfo: function (active_codes_map,isAppsion, orderCode, callback) {
     // 如果执行环境是app
     var isAppsionApp = isAppsion === 'App'
     $.ajax({
@@ -190,6 +190,7 @@ var getActive = {
         $('.ad_space').hide()
         $('.login-dig-box').css('left', 'calc(50vw - 181px)')
       }
+      callback && callback(res)
     })
   }
 }

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
src/web/staticres/common-module/login-js/jy-login-mini.mjs


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
src/web/staticres/common-module/login-js/jy-login-mini.umd.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
src/web/staticres/common-module/login-js/jy-login.mjs


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
src/web/staticres/common-module/login-js/jy-login.umd.js


+ 6 - 0
src/web/staticres/js/login.js

@@ -2283,6 +2283,7 @@ var loginDialog = {
   initEvnets: function () {
     this.bindAutoLoginCheckboxEvent()
     this.enterLoginAction()
+    this.bindButtonEvents()
   },
   bindKeepLoginQr: function () {
     var payload = {
@@ -2305,6 +2306,11 @@ var loginDialog = {
       this.bindKeepLoginQr()
     }
   },
+  bindButtonEvents: function() {
+    $('.password-login .user-register .user-register-link').on('click', function() {
+      $('.login-dig-tabbar-navbar > span[name=code]').trigger('click')
+    })
+  },
   bindAutoLoginCheckboxEvent: function () {
     var _this = this
     $('.auto-login-container').on('click', 'label, .auto-login-checkbox',function () {

+ 5 - 2
src/web/templates/common/pc-login-dialog.html

@@ -90,10 +90,13 @@
             <i class="login-dig-icon-biyan" onclick="switchPassShow(event, '.pass-login')"></i>
           </div>
           <button class="login-dig-submit-button" name="pass_submit" disabled="true">登 录</button>
-          <div class="footer-action-container f-box right-box" style="justify-content: center;margin-bottom: 6px;">
-            <div class="login-right-actions">
+          <div class="footer-action-container f-box right-box" style="justify-content: space-between;margin-bottom: 6px;">
+            <div class="login-right-actions forget-password">
               <a class="forget-pass-link" href="/phone/forgetPwd">忘记密码?</a>
             </div>
+            <div class="login-right-actions user-register">
+              <a class="forget-pass-link user-register-link" href="javascript:;">新用户注册</a>
+            </div>
           </div>
         </div>
         <!-- 设置密码 -->

Vissa filer visades inte eftersom för många filer har ändrats