• 查看作者
    • 移动端APP下载提示

      移动设置-sns首页-首页格子菜单下面的自定义内容区域,添加代码

      <!--app下载提示-->
      <style>
      .app_download{display:flex;position:relative;background:#fff;padding:2vw 5vw;border-top: 0px solid #eee;}
      .app_download .app_desc .logo{float:left;height:10vw;margin:.2vw;width:10vw;
      background-image:url( 链接);background-size:100% 100%}
      .app_download .app_desc .slogan{display:flex;display:flex;line-height:5.5vw;white-space:nowrap;color:#999;
      flex-direction:column;margin-left:13vw;font-size:4vw;height:100%;justify-content:center}
      .app_download .download_app{display:flex;align-items:center;top:3vw;right:5vw;position:absolute;white-space:nowrap}
      .app_download .download_app span{background-color:#fff;border:1px solid #67cde3;border-radius:2rem;
      color:#67cde3;display:flex;background-size:100% 100%;padding:.2rem .8rem}
      .app_download .download_app i {font-size: 18px;}
      </style>
      <script>
      function getCookie(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length}return unescape(document.cookie.substring(c_start,c_end))}}return""};
      function setCookie(name,value){var argv = setCookie.arguments;var argc = setCookie.arguments.length;var expires =(argc>2) ? argv[2]:null;if(expires!=null){var LargeExpDate = new Date();LargeExpDate.setTime(LargeExpDate.getTime()+(expires*1000*3600*24))}document.cookie = name+"="+escape(value)+((expires == null) ? "":("; expires="+LargeExpDate.toGMTString()))}
      function qzsnsappSetCookie(name,value,Days){var exp = new Date();exp.setTime(exp.getTime()+Days*24*60*60*1000*1);document.cookie = name+"="+escape(value)+";expires="+exp.toGMTString()}
      var userAgent = navigator.userAgent;if(getCookie('download-app-show') != 'no' && userAgent.indexOf("uni-app")<0){
      var download_content='<div class="app_download clear"><div class="app_desc"><div class="logo"></div><div class="slogan"><p style="font-weight: 600;    color: #333;    font-size: 4.1vw;">shfwpt.com</p><p>生活服务平台</p></div></div><div class="download_app"><span><a style="color:#67cde3;" href="https://www.shfwpt.cn" download="shfwpt.apk">下载App</a></span><div onclick="app_down_not_show()" style="margin-left: 8vw;"><i class="jinsom-icon jinsom-guanbi"></i><div></div></div></div></div>';
      $(".jinsom-mobile-home-sns-top .jinsom-sns-cell-menu").append(download_content);
      function app_down_not_show(){$(".app_download").hide();qzsnsappSetCookie('download-app-show','no',3);}}
      if(navigator.userAgent.toLowerCase().indexOf('miniprogram') != -1){$(".app_download").hide();}
      </script>

    • 0
    • 0
    • 0
    • 10
    • 请登录之后再进行评论

      登录
    • 做任务
    • 发表内容