94 lines
3.2 KiB
PHP
94 lines
3.2 KiB
PHP
<!DOCTYPE html>
|
||
<html lang="zh-cn">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="renderer" content="webkit">
|
||
<title>福州东风EV4S:XXX - 狸车</title>
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||
<script type="text/javascript" src="https://qs.haodian.cn/web/javascript/jquery.3.4.1.min.js"></script>
|
||
<script type="text/javascript" src="https://qs.haodian.cn/web/javascript/vue.2.6.10.min.js"></script>
|
||
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
|
||
</head>
|
||
<body>
|
||
|
||
<div id="app">
|
||
<form onsubmit="return false;" data-time="1" data-auto="true" action="/login/post" method="post">
|
||
<input required pattern="^\S{1,}$" name="name" type="text" autofocus="autofocus" autocomplete="off" title="请输入姓名" placeholder="请输入姓名"><br>
|
||
<input name="mobile" type="text" autofocus="autofocus" autocomplete="off" title="请输入手机号码" placeholder="请输入手机号码" maxlength="11">
|
||
<button type="button" @click="getcode"/>获取验证码</button><br>
|
||
<input required pattern="^\S{6}$" name="code" type="text" autofocus="autofocus" autocomplete="off" title="请输入验证码" placeholder="请输入验证码" maxlength="6"><br>
|
||
<button type="button" @click='commit'>提交</button>
|
||
</form>
|
||
{{info.method}}
|
||
{{params.cityid}}
|
||
<div align="center" style="position:absolute; bottom:0;width: 98%;padding-bottom: 10px;">
|
||
<a href="https://beian.miit.gov.cn" target="_blank" style="color: black">闽ICP备12013448号-3</a>
|
||
</div>
|
||
</div>
|
||
|
||
<script>
|
||
var app = new Vue({
|
||
el: '#app',
|
||
data: {
|
||
params: [],
|
||
info: [],
|
||
},
|
||
created(){
|
||
},
|
||
computed: {
|
||
},
|
||
mounted() {
|
||
let vm = this;
|
||
vm.params = <?=json_encode($params)?>;
|
||
vm.info = <?=json_encode($info)?>;
|
||
},
|
||
methods: {
|
||
commit: function () {
|
||
let vm = this;
|
||
$.ajax({
|
||
url: './post',
|
||
type: 'post',
|
||
dataType: 'json',
|
||
data: {
|
||
info: vm.info
|
||
},
|
||
success: function (data) {
|
||
if (data.code) {
|
||
alert(data.msg);
|
||
}
|
||
else {
|
||
alert(data.msg);
|
||
}
|
||
},
|
||
});
|
||
},
|
||
getcode: function () {
|
||
let vm = this;
|
||
$.ajax({
|
||
url: './get_code',
|
||
type: 'post',
|
||
dataType: 'json',
|
||
data: {
|
||
info: vm.info
|
||
},
|
||
success: function (data) {
|
||
if (data.code) {
|
||
alert(data.msg);
|
||
}
|
||
else {
|
||
alert(data.msg);
|
||
}
|
||
},
|
||
});
|
||
}
|
||
}
|
||
})
|
||
</script>
|
||
|
||
<div style="display: none">
|
||
<script></script>
|
||
</div>
|
||
|
||
</body>
|
||
</html>
|