修改首页内容

This commit is contained in:
季圣华
2019-11-08 12:57:21 +08:00
parent e07c3d1790
commit 6be4f9014f
2 changed files with 20 additions and 5 deletions

View File

@@ -50,7 +50,11 @@
</a>
</li>
<li class="treeview">
<a target="_blank" style="color:yellow;font-weight: bold"
<a target="_blank" class="aliyun" style="color:yellow;font-weight: bold;display: none;"
href="https://www.aliyun.com/acts/hotsale?userCode=axva2vlr">
<i class="fa fa-cloud"></i> 阿里云促销中
</a>
<a target="_blank" class="tencent" style="color:yellow;font-weight: bold;display: none;"
href="https://cloud.tencent.com/act/cps/redirect?fromSource=gwzcw.3018172.3018172.3018172&redirect=10140&cps_key=4fb6482d716575dcb7b8fe600d93766a&from=activity">
<i class="fa fa-cloud"></i> 腾讯云促销中
</a>

View File

@@ -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);
});