火鸟门户底部提示下载APP修改方法_火鸟修改底部提示APP的教程

///火鸟门户修改底部APP提示的方法

///零起步创业工作室旗下海码站提供撰写修改

///如有转发的请备注,来源海码站 谢谢

修改方法一

****找到目录 /static/js/core/touchScale.js

///没有修改过的代码

/修复底部回复框被遮挡****/

//2020-9-21 详情页底部增加下载app按钮

if(typeof JubaoConfig != “undefined” && typeof cfg_appinfo != “undefined”){

  //非app 非小程序
  if((device.indexOf('huoniao') < 0) && !(window.__wxjs_environment == 'miniprogram')){

	if(!$.cookie('downloadAppTips')){
        $('body').append('<div class="downLoadBottom fn-clear">\n' +
        '    <div class="downLeft fn-clear"> \n'  +
        '      <i class="closeDownload"></i> \n'  +
        '      <div class="downloadLogo"><img src="'+cfg_appinfo.logo+'" alt=""></div> \n' +
        '      <div class="downloadInfo">\n' +
        '          <h2 class="downloadTit">'+cfg_appinfo.name+'</h2>\n' +
        '          <p class="downloadTip">'+cfg_appinfo.subtitle+'</p>\n' +
        '      </div>\n' +
        '     </div>\n' +
        '     <a href="'+masterDomain+'/mobile.html" class="downLoadBtn">'+langData['siteConfig'][6][216]+'</a>\n' +  //立即打开
        '</div>');
	}
  }

  $('body').delegate('.closeDownload','click',function(){
    $('.downLoadBottom').fadeOut();
	$.cookie('downloadAppTips', 1, {expires: 1});
  })
}

///修改好的代码

/**********************修复底部回复框被遮挡**************************/ 

//2020-9-21 详情页底部增加下载app按钮

//if(typeof JubaoConfig != "undefined" && typeof cfg_appinfo != "undefined"){

  //非app 非小程序

//  if((device.indexOf('huoniao') < 0) && !(window.__wxjs_environment == 'miniprogram')){

//	if(!$.cookie('downloadAppTips')){

//        $('body').append('<div class="downLoadBottom fn-clear">\n' +

//        '    <div class="downLeft fn-clear"> \n'  +

//        '      <i class="closeDownload"></i> \n'  +

//        '      <div class="downloadLogo"><img src="'+cfg_appinfo.logo+'" alt=""></div> \n' +

//        '      <div class="downloadInfo">\n' +

//        '          <h2 class="downloadTit">'+cfg_appinfo.name+'</h2>\n' +

//        '          <p class="downloadTip">'+cfg_appinfo.subtitle+'</p>\n' +

//        '      </div>\n' +

//        '     </div>\n' +

//        '     <a href="'+masterDomain+'/mobile.html" class="downLoadBtn">'+langData['siteConfig'][6][216]+'</a>\n' +  //立即打开

 //       '</div>');

//	}

//  }

//  $('body').delegate('.closeDownload','click',function(){

 //   $('.downLoadBottom').fadeOut();

//	$.cookie('downloadAppTips', 1, {expires: 1});

//  })

//}

继续找到;/static/css/core/touchBase.css

///没有修改过的代码 一般情况是在419行左右

/底部下载app按钮/
.downLoadBottom{background: #fff;position: fixed;bottom: 0;left: 0;right: 0;
box-shadow: 0px -5px 23px 0px rgba(0, 0, 0, 0.09);z-index: 999;animation:bottomFadeIn .3s ease-out; padding-bottom:calc(-.3rem + constant(safe-area-inset-bottom));padding-bottom: calc(-.3rem + env(safe-area-inset-bottom));}
.downLoadBottom .downLeft{ float: left;}
.downLoadBottom i.closeDownload{width: .36rem;height: .36rem;background: url(/static/images/closeDownload.png) center center no-repeat; background-size: .36rem auto;margin: .32rem .18rem;float: left;}
.downLoadBottom .downloadLogo{width: .7rem;height: .7rem;box-shadow: 0px 5px 23px 0px rgba(0, 0, 0, 0.09);border-radius: .1rem;background: #fff;float: left;margin-top: .15rem;}
.downLoadBottom .downloadLogo img{width: 100%;height: 100%;object-fit: cover;border-radius: .1rem;}
.downLoadBottom .downloadInfo{float: left;margin-top: .15rem;margin-left: .15rem}
.downLoadBottom .downloadInfo h2.downloadTit{font-size: .3rem;font-weight: bold;color: #333;}
.downLoadBottom .downloadInfo p.downloadTip{font-size: .22rem;color: #999;margin-top: -.06rem}
.downLoadBottom .downLoadBtn{float: right;padding: 0 .38rem;line-height: 1rem;font-size: .32rem;color: #fff;font-weight: bold;background: linear-gradient(89deg, #F25819 0%, #EE2824 100%);}

///修改成以下代码

/*底部下载app按钮
.downLoadBottom{background: #fff;position: fixed;bottom: 0;left: 0;right: 0;
box-shadow: 0px -5px 23px 0px rgba(0, 0, 0, 0.09);z-index: 999;animation:bottomFadeIn .3s ease-out; padding-bottom:calc(-.3rem + constant(safe-area-inset-bottom));padding-bottom: calc(-.3rem + env(safe-area-inset-bottom));}
.downLoadBottom .downLeft{ float: left;}
.downLoadBottom i.closeDownload{width: .36rem;height: .36rem;background: url(/static/images/closeDownload.png) center center no-repeat; background-size: .36rem auto;margin: .32rem .18rem;float: left;}
.downLoadBottom .downloadLogo{width: .7rem;height: .7rem;box-shadow: 0px 5px 23px 0px rgba(0, 0, 0, 0.09);border-radius: .1rem;background: #fff;float: left;margin-top: .15rem;}
.downLoadBottom .downloadLogo img{width: 100%;height: 100%;object-fit: cover;border-radius: .1rem;}
.downLoadBottom .downloadInfo{float: left;margin-top: .15rem;margin-left: .15rem}
.downLoadBottom .downloadInfo h2.downloadTit{font-size: .3rem;font-weight: bold;color: #333;}
.downLoadBottom .downloadInfo p.downloadTip{font-size: .22rem;color: #999;margin-top: -.06rem}
.downLoadBottom .downLoadBtn{float: right;padding: 0 .38rem;line-height: 1rem;font-size: .32rem;color: #fff;font-weight: bold;background: linear-gradient(89deg, #F25819 0%, #EE2824 100%);}
*/

修改方法二

上传touchScale.js.tar 到/static/js/core/解压出来

继续上传touchBase.css.tar 到/static/css/core/解压出来

源码在海码站下载

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值