diff --git a/template/.DS_Store b/template/.DS_Store index 1d8fb23..6e1ebed 100644 Binary files a/template/.DS_Store and b/template/.DS_Store differ diff --git a/template/default/.DS_Store b/template/default/.DS_Store index b8b166e..95e4000 100644 Binary files a/template/default/.DS_Store and b/template/default/.DS_Store differ diff --git a/template/default/html/contact.html b/template/default/html/contact.html index e1eabb9..8f26ad2 100644 --- a/template/default/html/contact.html +++ b/template/default/html/contact.html @@ -7,7 +7,8 @@
-
+
@@ -44,7 +45,7 @@
-
+
@@ -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) { diff --git a/template/default/img/.DS_Store b/template/default/img/.DS_Store index 2272c9d..f99f16b 100644 Binary files a/template/default/img/.DS_Store and b/template/default/img/.DS_Store differ diff --git a/template/default/img/title.ico b/template/default/img/title.ico index 824999e..be7684d 100644 Binary files a/template/default/img/title.ico and b/template/default/img/title.ico differ