+18
-21
@@ -73,38 +73,35 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from 'vue'
|
// import { ref } from 'vue'
|
||||||
import InputText from 'primevue/inputtext'
|
|
||||||
import Textarea from 'primevue/textarea'
|
|
||||||
import Button from 'primevue/button'
|
|
||||||
|
|
||||||
// Локальные состояния
|
// Локальные состояния
|
||||||
const email = ref('')
|
// const email = ref('')
|
||||||
const message = ref('')
|
// const message = ref('')
|
||||||
const success = ref(false)
|
// const success = ref(false)
|
||||||
|
|
||||||
// Конфигурация для шаринга
|
// Конфигурация для шаринга
|
||||||
const siteUrl = encodeURIComponent('https://hereconnect.condev.ru')
|
const siteUrl = encodeURIComponent('https://hereconnect.condev.ru')
|
||||||
const shareText = encodeURIComponent('Попробуйте НаСвязи — удобный способ связаться через QR-код!')
|
const shareText = encodeURIComponent('Попробуйте НаСвязи — удобный способ связаться через QR-код!')
|
||||||
const shareImage = encodeURIComponent(
|
// const shareImage = encodeURIComponent(
|
||||||
'https://hereconnect.condev.ru/images/qr-code-logo-200x200.jpg',
|
// 'https://hereconnect.condev.ru/images/qr-code-logo-200x200.jpg',
|
||||||
)
|
// )
|
||||||
|
|
||||||
// Генерация URL для Telegram
|
// Генерация URL для Telegram
|
||||||
const telegramShareUrl = `https://t.me/share/url?url=${siteUrl}&text=${shareText}&photo=${shareImage}`
|
const telegramShareUrl = `https://t.me/share/url?url=${siteUrl}&text=${shareText}` // &photo=${shareImage}`
|
||||||
|
|
||||||
// Генерация URL для WhatsApp
|
// Генерация URL для WhatsApp
|
||||||
const whatsappShareUrl = `https://api.whatsapp.com/send?text=${shareText}%0A${siteUrl}%0A${shareImage}`
|
const whatsappShareUrl = `https://api.whatsapp.com/send?text=${shareText}%0A${siteUrl}`
|
||||||
|
|
||||||
// Обработка отправки отзыва
|
// // Обработка отправки отзыва
|
||||||
function sendFeedback() {
|
// function sendFeedback() {
|
||||||
console.log('Отзыв отправлен', { email: email.value, message: message.value })
|
// console.log('Отзыв отправлен', { email: email.value, message: message.value })
|
||||||
// Имитация отправки данных
|
// // Имитация отправки данных
|
||||||
email.value = ''
|
// email.value = ''
|
||||||
message.value = ''
|
// message.value = ''
|
||||||
success.value = true
|
// success.value = true
|
||||||
setTimeout(() => (success.value = false), 5000) // Убираем сообщение через 5 секунд
|
// setTimeout(() => (success.value = false), 5000) // Убираем сообщение через 5 секунд
|
||||||
}
|
// }
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
Reference in New Issue
Block a user