处理无引导页的情况
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
<script type="text/javascript" src="js/light7-swiper.min.js" ></script>
|
||||
|
||||
<script>
|
||||
//localStorage.removeItem("yf_guide_page_status")
|
||||
localStorage.removeItem("yf_guide_page_status")
|
||||
/* 引导页隐藏并进入首页 */
|
||||
$(document).on("click",".swiper-container .button", function () {
|
||||
$(".swiper-container").hide();
|
||||
@@ -76,7 +76,7 @@ new Vue({
|
||||
methods: {
|
||||
skip: function() {
|
||||
isRun = true;
|
||||
if (localStorage.getItem("yf_guide_page_status") == null) {
|
||||
if (localStorage.getItem("yf_guide_page_status") == null && JSON.parse(localStorage.getItem("guidePageUrls")).length > 0) {
|
||||
$(".swiper-container").removeClass("dn");
|
||||
$(".swiper-container").swiper();
|
||||
localStorage.setItem("yf_guide_page_status", 1)
|
||||
@@ -115,7 +115,7 @@ function run(){
|
||||
var time = document.getElementById("time");
|
||||
if(time.innerHTML == 0 && isShow == false) {
|
||||
isShow = true;
|
||||
if (localStorage.getItem("yf_guide_page_status") == null) {
|
||||
if (localStorage.getItem("yf_guide_page_status") == null && JSON.parse(localStorage.getItem("guidePageUrls")).length > 0) {
|
||||
$(".swiper-container").removeClass("dn");
|
||||
$(".swiper-container").swiper();
|
||||
localStorage.setItem("yf_guide_page_status", 1)
|
||||
|
||||
Reference in New Issue
Block a user