联系我们fix
This commit is contained in:
BIN
template/.DS_Store
vendored
BIN
template/.DS_Store
vendored
Binary file not shown.
BIN
template/default/.DS_Store
vendored
BIN
template/default/.DS_Store
vendored
Binary file not shown.
@@ -7,7 +7,8 @@
|
||||
<div>
|
||||
<div class="bannerSwiper">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-slide itemBanner"><img src="{pboot:sitetplpath}/img/contact.png" alt="">
|
||||
<div class="swiper-slide itemBanner"><img src="{pboot:sitetplpath}/img/contact.png" alt=""
|
||||
style="width: 100%;height: auto;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -44,7 +45,7 @@
|
||||
|
||||
<div class="service servicebg">
|
||||
<div class="con_map">
|
||||
<div style="width: 1200px;margin-bottom: 1rem;">
|
||||
<div style="width: 800px;margin-bottom: 1rem;">
|
||||
<div id="baidu-map" style="width: 100%;height:600px"></div>
|
||||
</div>
|
||||
<div class="inputs">
|
||||
@@ -118,14 +119,14 @@
|
||||
const that = this;
|
||||
if (that.name == '') {
|
||||
that.$message({
|
||||
message: '请输入您的称呼',
|
||||
message: '请输入您的称呼!',
|
||||
type: 'warning'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (that.tel == '') {
|
||||
that.$message({
|
||||
message: '请输入您的电话',
|
||||
message: '请输入您的电话!',
|
||||
type: 'warning'
|
||||
});
|
||||
return;
|
||||
@@ -133,21 +134,21 @@
|
||||
var reg = /^(1|0)[\d\-]+$/;
|
||||
if (!reg.test(that.tel)) {
|
||||
that.$message({
|
||||
message: '请输入正确的电话',
|
||||
message: '请输入正确的电话!',
|
||||
type: 'warning'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (that.other == '') {
|
||||
that.$message({
|
||||
message: '请输入留言',
|
||||
message: '请输入留言!',
|
||||
type: 'warning'
|
||||
});
|
||||
return;
|
||||
}
|
||||
var host = window.location.hostname;
|
||||
// 正式环境
|
||||
var currentHost = 'www.gaohaotech.com';
|
||||
var currentHost = 'www.geneagro.com';
|
||||
var backHost = '49.234.64.111';
|
||||
var url = 'https://www.aiotagro.com/?a=contact'
|
||||
// 测试环境
|
||||
@@ -167,11 +168,19 @@
|
||||
},
|
||||
success: function (response, status) {
|
||||
if (response.status == 1) {
|
||||
alert("提交成功!");
|
||||
// alert("提交成功!");
|
||||
that.$message({
|
||||
message: '提交成功!',
|
||||
type: 'success'
|
||||
});
|
||||
window.location.reload(true);
|
||||
} else {
|
||||
let messge = response.message || '提交失败!';
|
||||
alert(messge);
|
||||
// that.$message({
|
||||
// message: messge,
|
||||
// type: 'warning'
|
||||
// });
|
||||
}
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
|
||||
BIN
template/default/img/.DS_Store
vendored
BIN
template/default/img/.DS_Store
vendored
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 4.2 KiB |
Reference in New Issue
Block a user