Эх сурвалжийг харах

Merge branch 'master' of https://jygit.jydev.jianyu360.cn/qmx/jy

lizhikun 1 жил өмнө
parent
commit
3fcc1b8c84
35 өөрчлөгдсөн 218 нэмэгдсэн , 66 устгасан
  1. 48 0
      src/jfw/modules/app/src/web/staticres/jyapp/js/common.js
  2. 14 10
      src/jfw/modules/app/src/web/staticres/jyapp/js/jypraise.js
  3. 5 1
      src/jfw/modules/app/src/web/staticres/jyapp/me/js/mine.js
  4. 5 1
      src/jfw/modules/app/src/web/templates/active/pullnew/index.html
  5. 6 2
      src/jfw/modules/app/src/web/templates/commonPay/transferAccounts.html
  6. 6 2
      src/jfw/modules/app/src/web/templates/course/optionPay.html
  7. 6 2
      src/jfw/modules/app/src/web/templates/course/publicToPublic.html
  8. 1 0
      src/jfw/modules/app/src/web/templates/frontRouter/fileRecord/sess/index.html
  9. 11 3
      src/jfw/modules/app/src/web/templates/frontRouter/share/sess/index.html
  10. 5 1
      src/jfw/modules/app/src/web/templates/me/set.html
  11. 3 1
      src/jfw/modules/app/src/web/templates/vipsubscribe/vip_index_new.html
  12. 6 1
      src/jfw/modules/app/src/web/templates/weixin/about.html
  13. 5 1
      src/jfw/modules/app/src/web/templates/weixin/messagedetail.html
  14. 6 2
      src/jfw/modules/app/src/web/templates/weixin/sharePic.html
  15. 10 6
      src/jfw/modules/app/src/web/templates/weixin/wxinfocontent.html
  16. 4 0
      src/jfw/modules/app/src/web/templates/weixin/wxpush.html
  17. 3 1
      src/web/staticres/common-module/active/20221212/task-20221212.js
  18. 6 2
      src/web/staticres/common-module/ad/js/index.js
  19. 8 3
      src/web/staticres/common-module/file-pack/js/index-wx.js
  20. 14 5
      src/web/staticres/common-module/file-pack/js/index.js
  21. 6 2
      src/web/staticres/common-module/message-tip/js/index.js
  22. 3 1
      src/web/staticres/common-module/public/js/app-share-sheet.js
  23. BIN
      src/web/staticres/common-module/share/img/explorer.png
  24. BIN
      src/web/staticres/common-module/share/img/learner.png
  25. BIN
      src/web/staticres/common-module/share/img/master.png
  26. 11 7
      src/web/staticres/common-module/share/js/invite-friends.js
  27. 9 3
      src/web/staticres/common-module/yearEndReport/js/result.js
  28. 1 2
      src/web/staticres/css/pc.css
  29. 7 1
      src/web/staticres/js/login.js
  30. BIN
      src/web/staticres/share/img/bi-report/explorer.png
  31. BIN
      src/web/staticres/share/img/bi-report/learner.png
  32. BIN
      src/web/staticres/share/img/bi-report/master.png
  33. 3 3
      src/web/staticres/share/js/invite-friends.js
  34. 3 2
      src/web/templates/common/pc-login-dialog.html
  35. 3 1
      src/web/templates/frontRouter/wx/share/sess/index.html

+ 48 - 0
src/jfw/modules/app/src/web/staticres/jyapp/js/common.js

@@ -934,6 +934,54 @@ function initIosAppJyObj () {
   }
 }
 
+
+window.__checkAppVersionCanRunTips = function () {
+  var isAndroid = navigator.userAgent.toLowerCase().indexOf('android') !== -1
+  // 如果app版本号大于3.0.5则展示
+  var currentVersion = ''
+  var targetVersion = '3.0.7'
+  var canTips = false
+  function compareVersion(v1, v2) {
+    v1 = v1.toString().split(".");
+    v2 = v2.toString().split(".");
+    for (var i = 0; i < v1.length || i < v2.length; i++) {
+      var n1 = parseInt(v1[i], 10),
+        n2 = parseInt(v2[i], 10);
+      if (window.isNaN(n1)) {
+        n1 = 0
+      }
+      if (window.isNaN(n2)) {
+        n2 = 0
+      }
+      if (n1 < n2) {
+        return -1
+      } else {
+        if (n1 > n2) {
+          return 1
+        }
+      }
+    }
+    return 0
+  }
+  try {
+    currentVersion = JyObj.getVersion()
+    if (currentVersion) {
+      canTips = compareVersion(currentVersion, targetVersion) > 0
+    }
+  } catch (error) {
+    console.log(error)
+  }
+  return isAndroid && canTips
+}
+// 兼容 v3.0.8 权限提示客户端方法
+window.__compatibleAppFn = function (fn, arg) {
+  var params = Array.prototype.slice.call(arguments);
+  if (window.__checkAppVersionCanRunTips()) {
+    fn.bind(JyObj).apply(null, params.slice(1))
+  } else {
+    fn.bind(JyObj).apply(null, params.slice(1, -1))
+  }
+}
 $(function () {
   if (mySysIsIos()) {
     fixIOSInputBugs()

+ 14 - 10
src/jfw/modules/app/src/web/staticres/jyapp/js/jypraise.js

@@ -7,14 +7,14 @@ $(function() {
 		effect: "leftLoop",
 		autoPage: true //自动分页
 	});
-	
+
 	TouchSlide({
 		slideCell: "#slideBox-one",
 		titCell: ".hd ul",
 		mainCell: ".bd ul",
 		autoPage: true //自动分页
 	});
-	
+
 	$(".syz-Popup").on("tap", function() {
 		$(this).hide();
 	});
@@ -32,7 +32,7 @@ $(function() {
 		$(".syz-Popup").show();
 		$(".mustshare-mark").hide();
 		$.post("/jyapp/jylabShareTimeline",{reqType:"update"},function(r){
-			
+
 		});
 	});
 	var once = false;
@@ -125,7 +125,7 @@ var popup = function(thistype,flag){
         url:'/jyapp/jylab/operation',
         data:{type:thistype,tp:"popup"},
         cache:false,
-        dataType:'json', 
+        dataType:'json',
         success:function(data){
 			//console.log("data:"+JSON.stringify(data));
 			if(!flag){
@@ -154,7 +154,7 @@ var operatingswitch=function(thistype){
         url:'/jyapp/jylab/operation',
         data:{type:thistype,labswitch:labswitch,tp:"swt"},
         cache:false,
-        dataType:'json', 
+        dataType:'json',
         success:function(data){
 			if(data.flag=="T"&&(thistype=="cjss"||thistype=="zbqy"||thistype=="gzqy")){
 				if(labswitch == "O"){
@@ -173,7 +173,7 @@ var getpraise = function(thistype){
         url:'/jyapp/swordfish/getpraise',
         data:{type:thistype},
         cache:false,
-        dataType:'json', 
+        dataType:'json',
         success:function(data){
 			if(data.praiseno){
 				$("#dz").next().text(Number(data.praiseno));
@@ -216,7 +216,7 @@ var upordown = function(uod,thistype){
         url:'/jyapp/swordfish/praise',
         data:{type:thistype,uod:uod},
         cache:false,
-        dataType:'json', 
+        dataType:'json',
         success:function(data){
 			if(data.flag == "T"){
 				labflag=true
@@ -237,7 +237,7 @@ function canOpenSwitch(){
 function myCommonShare(shareType,flag){
 	var title =  "您的好友";
 	if(shareType !=2 && nickname != ""){
-		title += nickname;	
+		title += nickname;
 	}
 	title += "向您推荐了剑鱼标讯";
 	var content = "全国招标信息免费看,不遮挡";
@@ -251,5 +251,9 @@ function myCommonShare(shareType,flag){
 			url += "&qrcodeType=app_lab_timeline_z"
 		}
 	}
-	JyObj.share(shareType,title,content,url);
-}
+  if (window.__checkAppVersionCanRunTips && window.__checkAppVersionCanRunTips()) {
+    JyObj.share(shareType,title,content,url, '剑鱼标讯需申请存储权限、电话权限,以便您能顺利参与分享有礼活动,将招标信息、文库内容成功分享到社交平台。');
+  } else {
+    JyObj.share(shareType,title,content,url);
+  }
+}

+ 5 - 1
src/jfw/modules/app/src/web/staticres/jyapp/me/js/mine.js

@@ -297,7 +297,11 @@ var mine = {
             if (shareType == 3) {
                 title = getShareText();
             }
-            JyObj.share(shareType, title, content, pageUserInfo.share.domain + '/swordfish/about?source=app_setshare');
+            if (window.__checkAppVersionCanRunTips && window.__checkAppVersionCanRunTips()) {
+              JyObj.share(shareType, title, content, pageUserInfo.share.domain + '/swordfish/about?source=app_setshare', '剑鱼标讯需申请存储权限、电话权限,以便您能顺利参与分享有礼活动,将招标信息、文库内容成功分享到社交平台。');
+            } else {
+              JyObj.share(shareType, title, content, pageUserInfo.share.domain + '/swordfish/about?source=app_setshare');
+            }
         });
     },
     // 获取小红点状态

+ 5 - 1
src/jfw/modules/app/src/web/templates/active/pullnew/index.html

@@ -154,7 +154,11 @@
 					type = "pyq"
 				}
 				$.post("/jyapp/active/pullnew/share",{type:type,title:title});
-				JyObj.share(shareType,title,content,myDomain()+"/jyapp/free/active/pullnew/invite?t="+type+"&n={{.T.shareNickName}}&i={{.T.shareInviteCode}}");
+        if (window.__checkAppVersionCanRunTips && window.__checkAppVersionCanRunTips()) {
+          JyObj.share(shareType,title,content,myDomain()+"/jyapp/free/active/pullnew/invite?t="+type+"&n={{.T.shareNickName}}&i={{.T.shareInviteCode}}", '剑鱼标讯需申请存储权限、电话权限,以便您能顺利参与分享有礼活动,将招标信息、文库内容成功分享到社交平台。');
+        } else {
+          JyObj.share(shareType,title,content,myDomain()+"/jyapp/free/active/pullnew/invite?t="+type+"&n={{.T.shareNickName}}&i={{.T.shareInviteCode}}");
+        }
 			});
         });
 		function toShare(){

+ 6 - 2
src/jfw/modules/app/src/web/templates/commonPay/transferAccounts.html

@@ -204,7 +204,9 @@
                     label: '拍照',
                     onClick: function () {
                         try {
-                            JyObj.skipCameraWithParam('transferAccounts')
+                          if (typeof window.__compatibleAppFn === 'function') {
+                            window.__compatibleAppFn(JyObj.skipCameraWithParam, 'transferAccounts', '当您参与邀请领好礼活动、伙伴计划等活动,需要企业认证上传图片,保存图片/视频到相册时,需要用到相机权限、存储权限,以便您能顺利参与活动!')
+                          }
                         } catch (e) {
                         }
                         $("#uploaderInput").parent().hide();
@@ -215,7 +217,9 @@
                     label: '从相册选择',
                     onClick: function () {
                         try {
-                            JyObj.skipAlbumWithParam('transferAccounts')
+                          if (typeof window.__compatibleAppFn === 'function') {
+                            window.__compatibleAppFn(JyObj.skipAlbumWithParam, 'transferAccounts', '当您参与邀请领好礼活动、伙伴计划等活动,需要企业认证上传图片,保存图片/视频到相册时,需要用到相机权限、存储权限,以便您能顺利参与活动!')
+                          }
                         } catch (e) {}
                         $("#uploaderInput").parent().hide();
                         $("#uploaderFiles").html(loadingHtml);

+ 6 - 2
src/jfw/modules/app/src/web/templates/course/optionPay.html

@@ -356,7 +356,9 @@
                     label: '拍照',
                     onClick: function () {
                         try {
-                            JyObj.skipCamera()
+                          if (typeof window.__compatibleAppFn === 'function') {
+                            window.__compatibleAppFn(JyObj.skipCamera, '当您参与邀请领好礼活动、伙伴计划等活动,需要企业认证上传图片,保存图片/视频到相册时,需要用到相机权限、存储权限,以便您能顺利参与活动!')
+                          }
                         } catch (e) {
                         }
                         $("#uploaderInput").parent().hide();
@@ -367,7 +369,9 @@
                     label: '从相册选择',
                     onClick: function () {
                         try {
-                            JyObj.skipAlbum()
+                          if (typeof window.__compatibleAppFn === 'function') {
+                            window.__compatibleAppFn(JyObj.skipAlbum, '当您参与邀请领好礼活动、伙伴计划等活动,需要企业认证上传图片,保存图片/视频到相册时,需要用到相机权限、存储权限,以便您能顺利参与活动!')
+                          }
                         } catch (e) {
                         }
                         $("#uploaderInput").parent().hide();

+ 6 - 2
src/jfw/modules/app/src/web/templates/course/publicToPublic.html

@@ -278,7 +278,9 @@
 							label: '拍照',
 							onClick: function() {
 								try{
-									JyObj.skipCamera();
+                  if (typeof window.__compatibleAppFn === 'function') {
+                    window.__compatibleAppFn(JyObj.skipCamera, '当您参与邀请领好礼活动、伙伴计划等活动,需要企业认证上传图片,保存图片/视频到相册时,需要用到相机权限、存储权限,以便您能顺利参与活动!')
+                  }
 								}catch(e){}
                                 $("#uploaderInput").parent().hide();
                                 $("#uploaderFiles").html(loadingHtml);
@@ -288,7 +290,9 @@
 							label: '从相册选择',
 							onClick: function() {
 								try{
-									JyObj.skipAlbum();
+                  if (typeof window.__compatibleAppFn === 'function') {
+                    window.__compatibleAppFn(JyObj.skipAlbum, '当您参与邀请领好礼活动、伙伴计划等活动,需要企业认证上传图片,保存图片/视频到相册时,需要用到相机权限、存储权限,以便您能顺利参与活动!')
+                  }
 								}catch(e){}
                                 $("#uploaderInput").parent().hide();
                                 $("#uploaderFiles").html(loadingHtml);

+ 1 - 0
src/jfw/modules/app/src/web/templates/frontRouter/fileRecord/sess/index.html

@@ -420,6 +420,7 @@
   <script crossorigin src="//cdn-common.jianyu360.com/cdn/lib/html2canvas/1.3.3/dist/html2canvas.min.js"></script>
   <!--E-当前页面的资源-->
   {{include "/big-member/commonjs.html"}}
+  <script src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/js/common.js?v={{Msg "seo" "version"}}'></script>
   <script src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/public/js/china-map-data.js?v={{Msg "seo" "version"}}'></script>
   <script src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/file-pack/js/index.js?v={{Msg "seo" "version"}}'></script>
 <!--  <script src='{{Cdns .Host "seo" "cdn"|SafeUrl}}/common-module/file-pack/js/rights-box.js?v={{Msg "seo" "version"}}'></script>-->

+ 11 - 3
src/jfw/modules/app/src/web/templates/frontRouter/share/sess/index.html

@@ -477,7 +477,9 @@
             picImgUrl = imgUrl
             $('#clone-image').remove()
             try {
-              window.JyObj.savePic(imgUrl)
+              if (typeof window.__compatibleAppFn === 'function') {
+                window.__compatibleAppFn(JyObj.savePic, imgUrl, '当您参与邀请领好礼活动、伙伴计划等活动,需要企业认证上传图片,保存图片/视频到相册时,需要用到相机权限、存储权限,以便您能顺利参与活动!')
+              }
               showTip('图片已经保存,快去分享吧~')
               loading.hide()
               setTimeout(() => {
@@ -494,7 +496,9 @@
           })
         }else {
           try {
-            window.JyObj.savePic(picImgUrl)
+            if (typeof window.__compatibleAppFn === 'function') {
+              window.__compatibleAppFn(JyObj.savePic, picImgUrl, '当您参与邀请领好礼活动、伙伴计划等活动,需要企业认证上传图片,保存图片/视频到相册时,需要用到相机权限、存储权限,以便您能顺利参与活动!')
+            }
             loading.hide()
             showTip('图片已经保存,快去分享吧~')
           } catch (e) {
@@ -542,7 +546,11 @@
         content = '邀请好友领双重好礼'
         updateShareStatus();
       }
-      JyObj.share(shareType, shareTitle, content, link);
+      if (window.__checkAppVersionCanRunTips && window.__checkAppVersionCanRunTips()) {
+        JyObj.share(shareType, shareTitle, content, link, '当您参与邀请领好礼活动、伙伴计划等活动,需要企业认证上传图片,保存图片/视频到相册时,需要用到相机权限、存储权限,以便您能顺利参与活动!' );
+      } else {
+        JyObj.share(shareType, shareTitle, content, link);
+      }
     }
     function updateShareStatus() {
       var shareProperty = forceShareFlag ? 1 : 2;//1-被动分享 2-主动分享

+ 5 - 1
src/jfw/modules/app/src/web/templates/me/set.html

@@ -213,7 +213,11 @@
 			if(shareType == 3){
 				title = getShareText();
 			}
-			JyObj.share(shareType,title,content,"{{Msg "seo" "jyDomain"}}/swordfish/about?source=app_setshare");
+      if (window.__checkAppVersionCanRunTips && window.__checkAppVersionCanRunTips()) {
+        JyObj.share(shareType,title,content,"{{Msg "seo" "jyDomain"}}/swordfish/about?source=app_setshare", '剑鱼标讯需申请存储权限、电话权限,以便您能顺利参与分享有礼活动,将招标信息、文库内容成功分享到社交平台。');
+      } else {
+        JyObj.share(shareType,title,content,"{{Msg "seo" "jyDomain"}}/swordfish/about?source=app_setshare");
+      }
 		});
 		$(".quitd").click(function(){
 			setLiActive(this);

+ 3 - 1
src/jfw/modules/app/src/web/templates/vipsubscribe/vip_index_new.html

@@ -385,7 +385,9 @@
       try {
         var isAndroid = navigator.userAgent.toLowerCase().indexOf('android') !== -1
         if (isAndroid) {
-          JyObj.checkPermission()
+          if (typeof window.__compatibleAppFn === 'function') {
+            window.__compatibleAppFn(JyObj.checkPermission, '当您使用订阅管理服务,接收招投标项目信息推送时,需要用到电话权限,以便您能顺利接收到剑鱼给您推送的订阅信息!')
+          }
         }
       } catch (e) {}
 

+ 6 - 1
src/jfw/modules/app/src/web/templates/weixin/about.html

@@ -370,7 +370,12 @@ $(function(){
 		if(shareType == 3){
 			title = getShareText();
 		}
-		JyObj.share(shareType,title,content,"{{Msg "seo" "jyDomain"}}/swordfish/about?source=app_aboutshare");
+    if (window.__checkAppVersionCanRunTips && window.__checkAppVersionCanRunTips()) {
+
+      JyObj.share(shareType,title,content,"{{Msg "seo" "jyDomain"}}/swordfish/about?source=app_aboutshare", '剑鱼标讯需要您的存储权限,将用于帮助您将剑鱼标讯简介成功分享到社交平台。');
+    } else {
+      JyObj.share(shareType,title,content,"{{Msg "seo" "jyDomain"}}/swordfish/about?source=app_aboutshare");
+    }
 	});
 	////////柱状图自适应
 	var originalWidth = 320;

+ 5 - 1
src/jfw/modules/app/src/web/templates/weixin/messagedetail.html

@@ -187,7 +187,11 @@ function execShare(thisIndex){
 		}
 		link += "source=app_messagedetailshare";
 	//}
-	JyObj.share(shareType,{{.T.data.s_title}},content,link);
+  if (window.__checkAppVersionCanRunTips && window.__checkAppVersionCanRunTips()) {
+    JyObj.share(shareType,{{.T.data.s_title}},content,link, '剑鱼标讯需申请存储权限、电话权限,以便您能顺利参与分享有礼活动,将招标信息、文库内容成功分享到社交平台。');
+  } else {
+    JyObj.share(shareType,{{.T.data.s_title}},content,link);
+  }
 }
 ///////////////////////
 $(function(){

+ 6 - 2
src/jfw/modules/app/src/web/templates/weixin/sharePic.html

@@ -203,7 +203,9 @@
                         imgUrl = imgUrl.replace('data:image/png;base64,', '')
                         window.picImgUrl = imgUrl
                         try {
-                            window.JyObj.savePic(imgUrl)
+                          if (typeof window.__compatibleAppFn === 'function') {
+                            window.__compatibleAppFn(JyObj.savePic, imgUrl, '剑鱼标讯需申请存储权限、电话权限,以便您能顺利参与分享有礼活动,将招标信息、文库内容成功分享到社交平台。')
+                          }
                             $('.hint').text('图片已经保存,快去扫码吧~')
                             setTimeout(() => {
                                 $('.save-loading').hide()
@@ -228,7 +230,9 @@
                         }
                     })
                 }else {
-                    window.JyObj.savePic(window.picImgUrl)
+                  if (typeof window.__compatibleAppFn === 'function') {
+                    window.__compatibleAppFn(JyObj.savePic, picImgUrl, '剑鱼标讯需申请存储权限、电话权限,以便您能顺利参与分享有礼活动,将招标信息、文库内容成功分享到社交平台。')
+                  }
                     $('.hint').text('图片已经保存,快去扫码吧~')
                     setTimeout(() => {
                         $('.save-loading').hide()

+ 10 - 6
src/jfw/modules/app/src/web/templates/weixin/wxinfocontent.html

@@ -317,7 +317,7 @@
       }
       .abs{
         min-height: 0.3rem;
-      } 
+      }
       .Original-dialog .van-dialog__header{
         font-weight: 400;
       }
@@ -1368,13 +1368,17 @@
             shareTitle = getShareText();
             updateShareStatus();
         }
+      if (window.__checkAppVersionCanRunTips && window.__checkAppVersionCanRunTips()) {
+        JyObj.share(shareType,shareTitle,content,link, '剑鱼标讯需申请存储权限、电话权限,以便您能顺利参与分享有礼活动,将招标信息、文库内容成功分享到社交平台。');
+      } else {
         JyObj.share(shareType,shareTitle,content,link);
+      }
     }
-    
+
     function afterJyObjInit(){
         redSpotOnMenu();
     }
-   
+
     function fromwhere(text){
         var ad="app_articel_";
         if (getinfotype(subtype)=="拟建项目"){
@@ -1514,7 +1518,7 @@
             }
         }
     }
-    
+
     var lock_ = true
     // h5环境下点击阅读原文跳转到引导下载app页面
     function advDownApp (e) {
@@ -1544,7 +1548,7 @@
                       // 需要留资 留资提示即刻获得一次查看原文机会
                       let url_ = utils.$envs.inH5?'/jyapp/frontPage/bigmember/free/perfect_info?source=h5_article_original_one&signId=' + encodeURIComponent(id) + '&article='+ extractString_(location.href) :'/jyapp/frontPage/bigmember/free/perfect_info?source=app_article_original_one&signId=' + encodeURIComponent(id) + '&article='+ extractString_(location.href)
                       location.href = url_
-                      
+
                     } else if(res.data.status == '2'){
                       // 不需要留资  弹框提示用户确定消耗一次查看原网站的机会   用户如果选择确认,再次调用该接口 `use` 传true
                       jyOriginalbox.show = true
@@ -1593,7 +1597,7 @@
                     $(".original").attr("openurl",res.data.url)
                     let e = $('.original_name')[0]
                     adv_statistics(e) // 跳转原文原有逻辑
-                   } 
+                   }
                 },
                 error: function(){
                     EasyAlert.show("网络连接错误!");

+ 4 - 0
src/jfw/modules/app/src/web/templates/weixin/wxpush.html

@@ -383,7 +383,11 @@ function toShare(){
     },3000);
     var shareTitle = getShareText();
     var link = "{{Msg "seo" "jyDomain"}}/swordfish/about?source=app_pushshare&qrcodeType=app_push_timeline_b";
+  if (window.__checkAppVersionCanRunTips && window.__checkAppVersionCanRunTips()) {
+    JyObj.share(3,shareTitle,"",link, '剑鱼标讯需申请存储权限、电话权限,以便您能顺利参与分享有礼活动,将招标信息、文库内容成功分享到社交平台。');
+  } else {
     JyObj.share(3,shareTitle,"",link);
+  }
 }
 //
 function tablejump(eid,href){

+ 3 - 1
src/web/staticres/common-module/active/20221212/task-20221212.js

@@ -548,7 +548,9 @@ var task = new Vue({
         var base2Img = _this.getBase64Image(img)
         var imgUrl = base2Img.replace('data:image/png;base64,', '')
         try {
-          window.JyObj.savePic(imgUrl)
+          if (typeof window.__compatibleAppFn === 'function') {
+            window.__compatibleAppFn(JyObj.savePic, imgUrl, '剑鱼标讯需要您的存储权限、电话权限,将用于帮助您下载、保存图片到本地,将内容成功分享到社交平台。')
+          }
           _this.$toast('二维码已成功保存至相册')
         } catch (e) {
           _this.$toast('二维码保存失败')

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

@@ -114,7 +114,9 @@ var getActive = {
                     // console.log(imgUrl)
                     window.picImgUrl = imgUrl
                     try {
-                      window.JyObj.savePic(imgUrl)
+                      if (typeof window.__compatibleAppFn === 'function') {
+                        window.__compatibleAppFn(JyObj.savePic, window.picImgUrl, '剑鱼标讯需要您的存储权限、电话权限,将用于帮助您下载、保存图片到本地,将内容成功分享到社交平台。')
+                      }
 
                       setTimeout(function() {
                           weui.toast('图片已保存,快去扫码识别吧', {
@@ -133,7 +135,9 @@ var getActive = {
                     }
                 })
             }else {
-                window.JyObj.savePic(window.picImgUrl)
+              if (typeof window.__compatibleAppFn === 'function') {
+                window.__compatibleAppFn(JyObj.savePic, window.picImgUrl, '剑鱼标讯需要您的存储权限、电话权限,将用于帮助您下载、保存图片到本地,将内容成功分享到社交平台。')
+              }
                 setTimeout(function() {
                   weui.toast('图片已保存,快去扫码识别吧', {
                     duration: 800,

+ 8 - 3
src/web/staticres/common-module/file-pack/js/index-wx.js

@@ -158,13 +158,18 @@ var vm = new Vue({
             _this.userPower.power = resData.power
             // 客服二维码获取
             if(resData.customers && resData.customers.length > 0 ){
+              var qrImgs = {
+                vip: '',
+                default: ''
+              }
               resData.customers.forEach(function (ele) {
                 if (ele.vip) {
-                  _this.QRCode = ele.wxer
-                } else  {
-                  _this.QRCode = ele.wxer
+                  qrImgs.vip = ele.wxer
+                } else {
+                  qrImgs.default = ele.wxer
                 }
               })
+              _this.QRCode = _this.userPower.isFree ? qrImgs.default : qrImgs.vip
             }
           }
         }

+ 14 - 5
src/web/staticres/common-module/file-pack/js/index.js

@@ -135,13 +135,18 @@ var vm = new Vue({
             _this.userPower.power = resData.power
             // 客服二维码获取
             if(resData.customers && resData.customers.length > 0 ){
+              var qrImgs = {
+                vip: '',
+                default: ''
+              }
               resData.customers.forEach(function (ele) {
                 if (ele.vip) {
-                  _this.QRCode = ele.wxer
-                } else  {
-                  _this.QRCode = ele.wxer
+                  qrImgs.vip = ele.wxer
+                } else {
+                  qrImgs.default = ele.wxer
                 }
               })
+              _this.QRCode = _this.userPower.isFree ? qrImgs.default : qrImgs.vip
             }
           }
         }
@@ -178,7 +183,9 @@ var vm = new Vue({
           _this.picImgUrl = imgUrl
           $('#clone-image').remove()
           try {
-            window.JyObj.savePic(imgUrl)
+            if (typeof window.__compatibleAppFn === 'function') {
+              window.__compatibleAppFn(JyObj.savePic, _this.picImgUrl, '剑鱼标讯需要您的存储权限、电话权限,将用于帮助您下载、保存图片到本地,将内容成功分享到社交平台。')
+            }
             _this.$toast('图片已经保存~')
             loading.clear()
             setTimeout(() => {
@@ -195,7 +202,9 @@ var vm = new Vue({
         })
       }else {
         try {
-          window.JyObj.savePic(_this.picImgUrl)
+          if (typeof window.__compatibleAppFn === 'function') {
+            window.__compatibleAppFn(JyObj.savePic, _this.picImgUrl, '剑鱼标讯需要您的存储权限、电话权限,将用于帮助您下载、保存图片到本地,将内容成功分享到社交平台。')
+          }
           loading.clear()
           _this.$toast('图片已经保存,快去分享吧~')
         } catch (e) {

+ 6 - 2
src/web/staticres/common-module/message-tip/js/index.js

@@ -114,7 +114,9 @@ var getActive = {
                     // console.log(imgUrl)
                     window.picImgUrl = imgUrl
                     try {
-                      window.JyObj.savePic(imgUrl)
+                      if (typeof window.__compatibleAppFn === 'function') {
+                        window.__compatibleAppFn(JyObj.savePic, window.picImgUrl, '剑鱼标讯需要您的存储权限、电话权限,将用于帮助您下载、保存图片到本地,将内容成功分享到社交平台。')
+                      }
 
                       setTimeout(function() {
                           weui.toast('图片已保存,快去扫码识别吧', {
@@ -133,7 +135,9 @@ var getActive = {
                     }
                 })
             }else {
-                window.JyObj.savePic(window.picImgUrl)
+              if (typeof window.__compatibleAppFn === 'function') {
+                window.__compatibleAppFn(JyObj.savePic, window.picImgUrl, '剑鱼标讯需要您的存储权限、电话权限,将用于帮助您下载、保存图片到本地,将内容成功分享到社交平台。')
+              }
                 setTimeout(function() {
                   weui.toast('图片已保存,快去扫码识别吧', {
                     duration: 800,

+ 3 - 1
src/web/staticres/common-module/public/js/app-share-sheet.js

@@ -126,7 +126,9 @@ var appShareSheet = {
       var content = this.shareContent
       var link = this.shareLink
       try {
-        JyObj.share(shareType,shareTitle,content,link)
+        if (typeof window.__compatibleAppFn === 'function') {
+          window.__compatibleAppFn(JyObj.share, shareType, shareTitle, content, link, '剑鱼标讯需要您的存储权限、电话权限,将用于帮助您下载、保存图片到本地,将内容成功分享到社交平台。')
+        }
       } catch (error) {
         console.log(shareType,shareTitle,content,link)
         console.log(error)

BIN
src/web/staticres/common-module/share/img/explorer.png


BIN
src/web/staticres/common-module/share/img/learner.png


BIN
src/web/staticres/common-module/share/img/master.png


+ 11 - 7
src/web/staticres/common-module/share/js/invite-friends.js

@@ -4,15 +4,15 @@ var confMap = {
         swiperSlideList: [
             {
                 name: '开拓者',
-                url: '/common-module/share/img/explorer.png'
+                url: '/common-module/share/img/explorer.png?v=2024'
             },
             {
                 name: '学习达人',
-                url: '/common-module/share/img/learner.png'
+                url: '/common-module/share/img/learner.png?v=2024'
             },
             {
                 name: '投标达人',
-                url: '/common-module/share/img/master.png'
+                url: '/common-module/share/img/master.png?v=2024'
             },
         ],
     }
@@ -132,7 +132,7 @@ var shareContent = new Vue({
         initWxShare: function () {
           if (!utils.isWeiXinBrowser) { return }
           shareFn.init({
-            title: '「我的剑鱼标讯2022」年度总结已经生成,请查收',
+            title: '「我的剑鱼标讯2023」年度总结已经生成,请查收',
             desc: '点击领取你的年度总结',
             link: this.shareInfo.shareLink,
             imgUrl: 'https://cdn-ali.jianyu360.com/images/appext/share-icon.png'
@@ -203,7 +203,9 @@ var shareContent = new Vue({
             duration: 0
           })
           try {
-            JyObj.savePic(imgUrl)
+            if (typeof window.__compatibleAppFn === 'function') {
+              window.__compatibleAppFn(JyObj.savePic, imgUrl, '剑鱼标讯需要您的存储权限、电话权限,将用于帮助您下载、保存图片到本地,将年终报告内容成功分享到社交平台。')
+            }
             loading.clear()
             this.$toast('图片已经保存,快去分享吧~')
           } catch (e) {
@@ -231,14 +233,16 @@ var shareContent = new Vue({
             image.src = src
         },
         doAppShare (shareType) {
-          var shareTitle = '「我的剑鱼标讯2022」年度总结已经生成,请查收'
+          var shareTitle = '「我的剑鱼标讯2023」年度总结已经生成,请查收'
           var content = '点击领取你的年度总结'
           var link = this.shareInfo.shareLink + '?source=app_infocontentshare'
           if (shareType === 3) {
             link += '&qrcodeType=app_infocontent_timeline_b'
           }
           try {
-            JyObj.share(shareType, shareTitle, content, link)
+            if (typeof window.__compatibleAppFn === 'function') {
+              window.__compatibleAppFn(JyObj.share, shareType, shareTitle, content, link, '剑鱼标讯需要您的存储权限、电话权限,将用于帮助您下载、保存图片到本地,将年终报告内容成功分享到社交平台。')
+            }
           } catch (e) {
             console.warn(e)
           }

+ 9 - 3
src/web/staticres/common-module/yearEndReport/js/result.js

@@ -148,11 +148,15 @@ var result = new Vue({
       this.showAction = false
       if (e.name == '微信') {
         try {
-          JyObj.share(1, shareTitle, content, link);
+          if (typeof window.__compatibleAppFn === 'function') {
+            window.__compatibleAppFn(JyObj.share, 1, shareTitle, content, link, '剑鱼标讯需要您的存储权限、电话权限,将用于帮助您下载、保存图片到本地,将年终报告内容成功分享到社交平台。')
+          }
         } catch (error) { }
       } else if (e.name == '朋友圈') {
         try {
-          JyObj.share(3, shareTitle, content, link);
+          if (typeof window.__compatibleAppFn === 'function') {
+            window.__compatibleAppFn(JyObj.share, 3, shareTitle, content, link, '剑鱼标讯需要您的存储权限、电话权限,将用于帮助您下载、保存图片到本地,将年终报告内容成功分享到社交平台。')
+          }
         } catch (error) { }
       }
     },
@@ -184,7 +188,9 @@ var result = new Vue({
           // 调用客户端保存图片方法
           try {
             var tempUrl = url.replace('data:image/png;base64,', '')
-            window.JyObj.savePic(tempUrl)
+            if (typeof window.__compatibleAppFn === 'function') {
+              window.__compatibleAppFn(JyObj.savePic, tempUrl, '剑鱼标讯需要您的存储权限、电话权限,将用于帮助您下载、保存图片到本地,将年终报告内容成功分享到社交平台。')
+            }
             if (!mySysIsIos()) {
               _this.$toast('保存图片成功')
             }

+ 1 - 2
src/web/staticres/css/pc.css

@@ -2370,7 +2370,6 @@ form{
 .jyblog_cont,.jyb_detailouter{
 	background: #F0F0F0;
 	padding: 30px 0px;
-	padding-top:90px;
 }
 .jyblog_listall,.jyb_dcont{
 	width:1200px;
@@ -5448,7 +5447,7 @@ h6 {
 .friend-link-container.theme-light .jy_friendlink_title,
 .j-bottom.theme-light .jy_classify_l .jy_classify_column .jy_classify_column_header,
 .j-bottom.theme-light .jy_classify_l .jy_classify_column .jy_classify_column_header > a {
-	color: #1d1d1d;	
+	color: #1d1d1d;
 }
 .j-bottom.theme-light .jy_classify_r .jy_classify_kefu span {
 	color: #1d1d1d;

+ 7 - 1
src/web/staticres/js/login.js

@@ -844,7 +844,7 @@ var haslogin = function(num,kyorpn,url){
           // 页面专用回调
           loginCallback(data)
         } catch (e) {}
-  
+
         encryptId = data.encryptId
         if(data.s_nickname!=null&&data.s_nickname.length>11){
           data.s_nickname = data.s_nickname.substring(0,11);
@@ -912,6 +912,7 @@ function loginBtnType(){
 ///////////////////////////////
 
 // ajax部分匿名函数自执行,防止泄露全局变量
+window.__wait_listen_modal__ = false
 $(function(){
   function goBackOrigin (cb) {
     var backOrigin = $.cookie('article')
@@ -1288,6 +1289,7 @@ $(function(){
 		$(".login-dig-tabbar-navbar>[name='pass']").click();
 		openLoginDig();
 	}
+  window.__wait_listen_modal__ = true
 	$("#bidLogin").on("show.bs.modal", function () {
         if ($('#bidLogin').attr('data-name') === 'bind-phone') {
             getNewVerify()
@@ -2094,6 +2096,10 @@ function openLoginDig(type, redirectUrl,Logincallback) {
 	        console.log('未初始化百度统计', e);
 	    }
 	}
+  if (!window.__wait_listen_modal__) {
+    var verify_path = "/front/landpage/captcha?v="
+    $("#bidLogin .verify-img").attr("src", verify_path + new Date().getTime());
+  }
   $("#bidLogin").modal("show");
   try {
     var injectLogic = logic

BIN
src/web/staticres/share/img/bi-report/explorer.png


BIN
src/web/staticres/share/img/bi-report/learner.png


BIN
src/web/staticres/share/img/bi-report/master.png


+ 3 - 3
src/web/staticres/share/js/invite-friends.js

@@ -9,15 +9,15 @@ var confMap = {
         swiperSlideList: [
             {
                 name: '开拓者',
-                url: '/share/img/bi-report/explorer.png'
+                url: '/share/img/bi-report/explorer.png?v=2024'
             },
             {
                 name: '学习达人',
-                url: '/share/img/bi-report/learner.png'
+                url: '/share/img/bi-report/learner.png?v=2024'
             },
             {
                 name: '投标达人',
-                url: '/share/img/bi-report/master.png'
+                url: '/share/img/bi-report/master.png?v=2024'
             },
         ],
     }

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

@@ -2,6 +2,7 @@
 <!-- 依赖于pc公共头部样式以及 pc.css、bootstrap.css、bootstrap.js、jquery.js、login.js -->
 <div
   class="modal fade bidLogin"
+  data-name="pc-login-dialog"
   id="bidLogin"
   tabindex="-1"
   role="dialog"
@@ -43,7 +44,7 @@
           <i class="login-dig-icon-guard"></i>
           <input autocomplete="off" name="verify_code" type="text" placeholder="输入图形验证码" maxlength="4" />
           <div class="after-input-box">
-            <img data-name="verfiy-login" class="verify-img" src="/front/landpage/captcha" alt="verify" />
+            <img data-name="verfiy-login" class="verify-img" src="" alt="verify" />
           </div>
         </div>
         <div class="login-dig-input-box" data-error="短信验证码输入错误">
@@ -173,7 +174,7 @@
           <i class="login-dig-icon-guard"></i>
           <input autocomplete="off" name="register_code" type="text" placeholder="输入图形验证码" maxlength="4" />
           <div class="after-input-box">
-            <img data-name="verfiy-login" class="verify-img" src="/front/landpage/captcha" alt="verify" />
+            <img data-name="verfiy-login" class="verify-img" src="" alt="verify" />
           </div>
         </div>
         <div class="login-dig-input-box" data-error="短信验证码输入错误">

+ 3 - 1
src/web/templates/frontRouter/wx/share/sess/index.html

@@ -473,7 +473,9 @@
         content = '邀好友,免费获得超级订阅'
         updateShareStatus();
       }
-      JyObj.share(shareType, shareTitle, content, link);
+      if (typeof window.__compatibleAppFn === 'function') {
+        window.__compatibleAppFn(JyObj.share, shareType, shareTitle, content, link, '剑鱼标讯需要您的存储权限、电话权限,将用于帮助您下载、保存图片到本地,将内容成功分享到社交平台。')
+      }
     }
     function updateShareStatus() {
       var shareProperty = forceShareFlag ? 1 : 2;//1-被动分享 2-主动分享