adata-ui 0.1.74 → 0.1.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -65,14 +65,15 @@
65
65
  </div>
66
66
  <h2 class="mail__title">Интересует больше данных?</h2>
67
67
  <p class="mail__text">
68
- Оставьте комментарий мы обязательно ответим Вам в кратчайшие сроки
68
+ Мы обязательно ответим вам <br />
69
+ в кратчайшие сроки.
69
70
  </p>
70
71
  <form class="mail__form" novalidate>
71
72
  <a-text-field
72
73
  class="mail__form-input"
73
74
  label="Введите email"
74
75
  :error-text="emailError"
75
- :value="userEmail ? userEmail : email"
76
+ v-model="email"
76
77
  @input="setEmail"
77
78
  required
78
79
  />
@@ -112,7 +113,7 @@ export default {
112
113
  },
113
114
  data() {
114
115
  return {
115
- email: "",
116
+ email: this.userEmail || "",
116
117
  phoneNumber: "",
117
118
  message: "",
118
119
  emailError: "",
@@ -127,9 +128,9 @@ export default {
127
128
  onSubmitForm() {
128
129
  this.isLoading = true;
129
130
  const regex = new RegExp("^[\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4}$");
130
- this.email = this.userEmail
131
+
131
132
  if (!this.email.length || !regex.test(this.email)) {
132
- this.emailError = "Введите валидыный email";
133
+ this.emailError = "Введите валидный email";
133
134
  this.isLoading = false;
134
135
  return;
135
136
  } else {
@@ -156,7 +157,7 @@ export default {
156
157
 
157
158
  try {
158
159
  const response = await fetch(
159
- "https://users.adata.kz/api/v1/message/regards",
160
+ "https://users.adtdev.kz/api/v1/message/regards",
160
161
  {
161
162
  method: "POST",
162
163
  headers: {