From 6be4f9014fe75ef32b3b4cdc539bfea3d1e9dae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Fri, 8 Nov 2019 12:57:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp_web/index.html | 6 +++++- erp_web/js/modules/sys/sysIndex.js | 19 +++++++++++++++---- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/erp_web/index.html b/erp_web/index.html index 34adc65e..7f6fa750 100644 --- a/erp_web/index.html +++ b/erp_web/index.html @@ -50,7 +50,11 @@
  • - + 阿里云促销中 + + diff --git a/erp_web/js/modules/sys/sysIndex.js b/erp_web/js/modules/sys/sysIndex.js index 90c91324..d04dce1c 100644 --- a/erp_web/js/modules/sys/sysIndex.js +++ b/erp_web/js/modules/sys/sysIndex.js @@ -418,8 +418,19 @@ $(function () { }); }) - - - - + //根据时间戳决定展示aliyun还是tencent + function autoChangeTip() { + var timestamp=new Date().getTime(); + var checkShow = timestamp%2; + if(checkShow) { + $(".aliyun").show(); + $(".tencent").hide(); + } else { + $(".aliyun").hide(); + $(".tencent").show(); + } + } + setInterval(function () { + autoChangeTip(); + },10*1000); }); \ No newline at end of file