8edf6267 by 任超

style:样式

1 parent f2251464
......@@ -57,4 +57,4 @@ function getCookie(){
var arr = str.replace(/(\s)+/g,'').split('=');
return JSON.parse(arr[1]);
}
};
\ No newline at end of file
};
......
......@@ -65,5 +65,15 @@ function clicklogin(data){
});
}
// 点击判断是否登录
function isLogin() {
let login1;
if(getCookie().username) {
login1 = true;
}else {
login();
login1 = false;
}
return login1;
}
\ No newline at end of file
......
......@@ -99,13 +99,13 @@ function setArticleSteps() {
case 1:
ArticleContent.append('<li class="item_proress"><p class="activeing"></p><h5 class="activeingtext">' + item.stepname + '</h5></li>');
if ((index + 1) < business.stepList.length) {
ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="50%"></div></li>');
ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" style="width: 50%;" lay-percent="50%"></div></li>');
}
break;
case 2:
ArticleContent.append('<li class="item_proress"><p class="active"></p><h5>' + item.stepname + '</h5></li>');
if ((index + 1) < business.stepList.length) {
ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" lay-percent="100%"></div></li>');
ArticleContent.append('<li class="layui-progress"><div class="layui-progress-bar" style="width:100%" lay-percent="100%"></div></li>');
}
break;
}
......
......@@ -33,7 +33,9 @@ $(function () {
_initData()
// 网上申请
$(document).on("click", ".handleBus", function (e) {
getInitiateFLow($(this).attr("ywid"),$(this).attr("businessNo"));
if (isLogin()) {
getInitiateFLow($(this).attr("ywid"),$(this).attr("businessNo"));
}
})
})
......