init
This commit is contained in:
286
src/template/pc/lists_guestbook_project.htm
Normal file
286
src/template/pc/lists_guestbook_project.htm
Normal file
@@ -0,0 +1,286 @@
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=0.28,user-scalable=no" />
|
||||
<title>{$eyou.field.seo_title}</title>
|
||||
<meta name="description" content="{$eyou.field.seo_description}" />
|
||||
<meta name="keywords" content="{$eyou.field.seo_keywords}" />
|
||||
<link href="{eyou:global name='web_ico' /}" rel="shortcut icon" type="image/x-icon" />
|
||||
{eyou:static file="skin/css/base.css" /}
|
||||
{eyou:static file="skin/css/style.css" /}
|
||||
{eyou:static file="skin/js/jquery.tools.min.js" /}
|
||||
{eyou:static file="skin/js/jquery.kinMaxShow-1.0.min.js" /}
|
||||
|
||||
{eyou:static file="/public/static/common/js/jquery.min.js"/}
|
||||
{eyou:static file="/public/plugins/layer-v3.1.0/layer.js"/}
|
||||
{eyou:static file="users/skin/js/global.js" /}
|
||||
</head>
|
||||
<style>
|
||||
.header_title{
|
||||
margin-bottom: 50px;
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
color: #bd2a15;
|
||||
}
|
||||
.sys_header{
|
||||
margin-top: 60px;
|
||||
text-align: center;
|
||||
}
|
||||
.header_search{
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
margin-bottom: 30px;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.header_search span{
|
||||
display: block;
|
||||
margin-right: 20px;
|
||||
width: 100px;
|
||||
height: 50px;
|
||||
line-height: 50px;
|
||||
text-align: right;
|
||||
font-size: 17px;
|
||||
color: #bd2a15;
|
||||
font-weight: 600;
|
||||
}
|
||||
.header_search input{
|
||||
width: 400px;
|
||||
height: 50px;
|
||||
padding-left: 15px;
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
color: #bd2a15;
|
||||
}
|
||||
.searchContainer{
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
margin-top: 40px;
|
||||
margin-left: 120px;
|
||||
-webkit-box-pack: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.searchContainer .searchBtn{
|
||||
width: 400px;
|
||||
height: 50px;
|
||||
line-height: 50px;
|
||||
font-size: 17px;
|
||||
background: #bd2a15;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.sys_content{
|
||||
width: 100%;
|
||||
margin-top: 50px;
|
||||
margin-left: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
.sys_content .advertInfo{
|
||||
display: -webkit-box;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
margin: 0 auto;
|
||||
width: 710px;
|
||||
}
|
||||
.adTitle {
|
||||
margin-bottom: 12px;
|
||||
margin-right: 10px;
|
||||
width: 150px;
|
||||
text-align: right;
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.content{
|
||||
width: 100%;
|
||||
}
|
||||
.content-inner{
|
||||
background:url(../template/pc/skin/images/map.png) no-repeat center 20px;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<!--头部--star-->
|
||||
{eyou:include file="header.htm" /}
|
||||
<!--头部---end-->
|
||||
<!---layui--->
|
||||
{eyou:include file="layui.htm" /}
|
||||
<!---layui--->
|
||||
<div class="content-wrap">
|
||||
<div class="content-inner" style="height: 970px;">
|
||||
<div class="content">
|
||||
<form class="layui-form sys_header" action="" name='theForm' id="theForm" method="post" style="margin-left: -120px;padding-top: 80px;" >
|
||||
<div class="header_title" style="margin-left: 100px">项目查询</div>
|
||||
<div class="header_search"><span >关键词:</span>
|
||||
<input name="username" placeholder=""></div>
|
||||
<div class="header_search"><span >密码:</span>
|
||||
<input name="password" type="password" placeholder=""></div>
|
||||
<div class="searchContainer">
|
||||
<!-- <button class="searchBtn" lay-submit="" lay-filter="demo1">搜索</button> -->
|
||||
<input type="button" name="submit" class="searchBtn" value="登录"/>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="sys_content" style="display: none" id="show">
|
||||
<div class="advertInfo">
|
||||
<div class="adTitle">名称:</div>
|
||||
<div class="adItem" id="name"></div>
|
||||
</div>
|
||||
<!--<div class="advertInfo">
|
||||
<div class="adTitle">可用云顶通:</div>
|
||||
<div class="adItem">1个</div>
|
||||
</div>
|
||||
<div class="advertInfo">
|
||||
<div class="adTitle">已使用:</div>
|
||||
<div class="adItem">0个</div>
|
||||
</div>-->
|
||||
<div class="advertInfo">
|
||||
<div class="adTitle">申请状态:</div>
|
||||
<div class="adItem">可申请</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="width:100%;height:100%;display: none;" id="showqrcode">
|
||||
<div style="text-align: center;width: 100%;">
|
||||
<img src="" id="imgs" style="width: 1000px;">
|
||||
<div style="font-size: 50px;width: 100%;text-align: center;margin-top: 30px;">
|
||||
<span style="border-radius: 50px;border: solid 2px #fff;width: 60px;padding: 4px 20px;color:#fff" id="close">x</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- -->
|
||||
|
||||
<script>
|
||||
$('#close').click(function(){
|
||||
$('#showqrcode').hide();
|
||||
$('#theForm').show();
|
||||
})
|
||||
$(function(){
|
||||
$('input[name=submit]').on('click',function(){
|
||||
var username = $('input[name=username]');
|
||||
var password = $('input[name=password]');
|
||||
|
||||
if(username.val() == ''){
|
||||
layer.msg('关键词不能为空!', {time: 1500, icon: 5});
|
||||
username.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(password.val() == ''){
|
||||
layer.msg('密码不能为空!', {time: 1500, icon: 5});
|
||||
password.focus();
|
||||
return false;
|
||||
}
|
||||
var data = {
|
||||
username:username.val(),
|
||||
password:password.val(),
|
||||
type:0
|
||||
}
|
||||
var url = "{eyou:url link='api/Ajax/projectsearch' /}";
|
||||
// layer_loading('正在处理');
|
||||
$('#show').hide()
|
||||
$.ajax({
|
||||
// async:false,
|
||||
url : url,
|
||||
data:data,
|
||||
type:'post',
|
||||
dataType:'json',
|
||||
success:function(res){
|
||||
console.log(res)
|
||||
if( res.code<=0){
|
||||
if(res.code == -1){
|
||||
layer.msg(res.msg, {time: 1500, icon: 5});
|
||||
}else{
|
||||
$('#show').show()
|
||||
$('#name').html(res.name)
|
||||
}
|
||||
|
||||
|
||||
}else{
|
||||
//layer.msg('项目存在', {time: 1500, icon: 5});
|
||||
$('#imgs').attr('src',res.img)
|
||||
$('#showqrcode').show();
|
||||
$('#theForm').hide();
|
||||
}
|
||||
},
|
||||
error:function(e) {
|
||||
layer.closeAll();
|
||||
showErrorAlert(e.responseText);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
/* layui.use(['table','form','upload','util','laydate','laypage',], function() {
|
||||
var table = layui.table,form = layui.form,laydate = layui.laydate, $ = layui.jquery,upload = layui.upload,util = layui.util;
|
||||
var laypage = layui.laypage
|
||||
|
||||
//监听搜索
|
||||
form.on('submit(demo1)', function(data){
|
||||
|
||||
var field = data.field;
|
||||
layer.alert(JSON.stringify(data.field), {
|
||||
title: '最终的提交信息'
|
||||
})
|
||||
//return false;
|
||||
var url = "{eyou:url link='api/Ajax/projectsearch' /}";
|
||||
console.log(url)
|
||||
// return false;
|
||||
$.ajax({
|
||||
// async:false,
|
||||
url : url,
|
||||
data: {},
|
||||
type:'post',
|
||||
dataType:'json',
|
||||
success:function(res){
|
||||
if (1 == res.code) {
|
||||
if (5 == res.data.status) {
|
||||
layer.alert(res.msg, {icon: 5, title: false, closeBtn: false},function(){
|
||||
window.location.href = res.url;
|
||||
});
|
||||
}else{
|
||||
window.location.href = res.url;
|
||||
}
|
||||
} else {
|
||||
layer.closeAll();
|
||||
if ('vertify' == res.data.status) {
|
||||
fleshVerify();
|
||||
}
|
||||
|
||||
if (2 == res.data.status) {
|
||||
showErrorAlert(res.msg, 4);
|
||||
} else {
|
||||
layer.msg(res.msg, {icon: 5,time: 1500});
|
||||
}
|
||||
}
|
||||
},
|
||||
error:function(e) {
|
||||
layer.closeAll();
|
||||
showErrorAlert(e.responseText);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
});*/
|
||||
</script>
|
||||
|
||||
|
||||
<!--底部-star-->
|
||||
{eyou:include file="footer.htm" /}
|
||||
<!--底部--end-->
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user