137 lines
4.0 KiB
HTML
137 lines
4.0 KiB
HTML
|
|
<!DOCTYPE html>
|
|||
|
|
<html lang="en">
|
|||
|
|
<head>
|
|||
|
|
<meta charset="UTF-8">
|
|||
|
|
<meta name="viewport"
|
|||
|
|
content="width=device-width, initial-scale=1,minimum-scale=1, maximum-scale=1,user-scalable=no">
|
|||
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|||
|
|
<meta http-equiv="Access-Control-Allow-Origin" content="*">
|
|||
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|||
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|||
|
|
<meta name="format-detection" content="telephone=no, email=no">
|
|||
|
|
<meta name="full-screen" content="true">
|
|||
|
|
<meta name="screen-orientation" content="portrait">
|
|||
|
|
<meta name="x5-fullscreen" content="true">
|
|||
|
|
<meta name="360-fullscreen" content="true">
|
|||
|
|
<title>联系我们</title>
|
|||
|
|
<script src="/x_admin/js/jq.js"></script>
|
|||
|
|
<script src="/x_admin/js/jq.js"></script>
|
|||
|
|
<style>
|
|||
|
|
*{
|
|||
|
|
padding: 0 0;
|
|||
|
|
margin: 0 0;
|
|||
|
|
}
|
|||
|
|
.big_box{
|
|||
|
|
width: 100vw;
|
|||
|
|
height: 100vh;
|
|||
|
|
position: absolute;
|
|||
|
|
top: 0;
|
|||
|
|
left: 0;
|
|||
|
|
display: flex;
|
|||
|
|
flex-direction: column;
|
|||
|
|
flex-wrap: nowrap;
|
|||
|
|
justify-content: space-evenly;
|
|||
|
|
align-items: center;
|
|||
|
|
}
|
|||
|
|
.title{
|
|||
|
|
width: 80vw;
|
|||
|
|
height: 12vw;
|
|||
|
|
font-size: 4vw;
|
|||
|
|
font-weight: bold;
|
|||
|
|
text-align: center;
|
|||
|
|
/* border: 1px solid red; */
|
|||
|
|
}
|
|||
|
|
.content{
|
|||
|
|
width: 70vw;
|
|||
|
|
height: 30vw;
|
|||
|
|
/* border: 1px solid red; */
|
|||
|
|
}
|
|||
|
|
.content textarea{
|
|||
|
|
width: 100%;
|
|||
|
|
height: 100%;
|
|||
|
|
resize: none;
|
|||
|
|
font-size: 4vw;
|
|||
|
|
}
|
|||
|
|
.tel{
|
|||
|
|
width: 70vw;
|
|||
|
|
height: 7vw;
|
|||
|
|
}
|
|||
|
|
.tel input{
|
|||
|
|
width: 100%;
|
|||
|
|
height: 100%;
|
|||
|
|
resize: none;
|
|||
|
|
font-size: 4vw;
|
|||
|
|
}
|
|||
|
|
.confirm_b{
|
|||
|
|
width: 34vw;
|
|||
|
|
height: 10vw;
|
|||
|
|
border-radius: 10vw;
|
|||
|
|
font-size: 5vw;
|
|||
|
|
font-weight: bold;
|
|||
|
|
line-height: 10vw;
|
|||
|
|
text-align: center;
|
|||
|
|
color: #fff;
|
|||
|
|
background-color: gray;
|
|||
|
|
/* border: 1px solid red; */
|
|||
|
|
}
|
|||
|
|
.zg{
|
|||
|
|
width: 100vw;
|
|||
|
|
height: 100vh;
|
|||
|
|
position: absolute;
|
|||
|
|
top: 0;
|
|||
|
|
left: 0;
|
|||
|
|
color: #fff;
|
|||
|
|
font-size: 8vw;
|
|||
|
|
line-height: 100vh;
|
|||
|
|
text-align: center;
|
|||
|
|
background-color: rgba(0,0,0,0.8);
|
|||
|
|
z-index: 999;
|
|||
|
|
display: none;
|
|||
|
|
}
|
|||
|
|
</style>
|
|||
|
|
</head>
|
|||
|
|
|
|||
|
|
<body id="box_k">
|
|||
|
|
<div class="zg">提交中...</div>
|
|||
|
|
<div class="big_box">
|
|||
|
|
<div class="title">请简单描述您遇到的问题,并留下您的联系方式,我们的工作人员会尽快与您取得联系。</div>
|
|||
|
|
<div class="content">
|
|||
|
|
<textarea id="content" placeholder="请输入您的问题"></textarea>
|
|||
|
|
</div>
|
|||
|
|
<div class="tel"><input id="tel" type="text" placeholder="请留下您的联系电话/邮箱"></div>
|
|||
|
|
<div class="confirm_b" onclick="confirm_b()">提交</div>
|
|||
|
|
</div>
|
|||
|
|
</body>
|
|||
|
|
</html>
|
|||
|
|
<script>
|
|||
|
|
var pd = true
|
|||
|
|
function confirm_b(){
|
|||
|
|
console.log(123)
|
|||
|
|
if(pd == false){
|
|||
|
|
return
|
|||
|
|
}
|
|||
|
|
pd = false
|
|||
|
|
$('.zg').show()
|
|||
|
|
$.ajax({
|
|||
|
|
url:"/technology/set_user_opinion", //请求的url地址
|
|||
|
|
dataType:"json", //返回格式为json
|
|||
|
|
async:true,//请求是否异步,默认为异步,这也是ajax重要特性
|
|||
|
|
data:{"content":$('#content').val(),'tel':$('#tel').val()}, //参数值
|
|||
|
|
type:"POST", //请求方式
|
|||
|
|
success:function(req){
|
|||
|
|
//请求成功时处理
|
|||
|
|
$('.zg').hide()
|
|||
|
|
pd = true
|
|||
|
|
if(req.code == 0){
|
|||
|
|
alert('提交成功')
|
|||
|
|
}else{
|
|||
|
|
alert(req.msg)
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
error:function(){
|
|||
|
|
//请求出错处理
|
|||
|
|
}});
|
|||
|
|
}
|
|||
|
|
</script>
|
|||
|
|
|