changes in home
This commit is contained in:
@@ -16,7 +16,6 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
const items = reactive([
|
const items = reactive([
|
||||||
{ icon: "call", title: "aboutUsPhone" },
|
{ icon: "call", title: "aboutUsPhone" },
|
||||||
{ icon: "sms", title: "aboutUsPostalCode" },
|
|
||||||
{ icon: "location", title: "aboutUsAddress" },
|
{ icon: "location", title: "aboutUsAddress" },
|
||||||
]);
|
]);
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -12,7 +12,9 @@
|
|||||||
{{ data.title }}
|
{{ data.title }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</h1>
|
</h1>
|
||||||
<p v-html="data.content"></p>
|
<p>
|
||||||
|
{{ removeTags(data.content) }}
|
||||||
|
</p>
|
||||||
<div>
|
<div>
|
||||||
<span>{{ new Date(data.createdAt).toLocaleDateString('fa') }}</span>
|
<span>{{ new Date(data.createdAt).toLocaleDateString('fa') }}</span>
|
||||||
<router-link :to="'/blog/' + data.link">
|
<router-link :to="'/blog/' + data.link">
|
||||||
@@ -25,6 +27,12 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
defineProps({ data: { type: Object, default: {} } })
|
defineProps({ data: { type: Object, default: {} } })
|
||||||
|
|
||||||
|
const removeTags = (str) => {
|
||||||
|
if (str === null || str === '') return false
|
||||||
|
else str = str.toString()
|
||||||
|
return str.replace(/(<([^>]+)>| )+/gi, '')
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ const store = useCategoriesStore();
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
img {
|
img {
|
||||||
@apply w-[4.4rem] h-[4.4rem] rounded-full lg:w-[9.1rem] lg:h-32;
|
@apply w-[4.4rem] h-[4.4rem] rounded-full lg:w-[9.1rem] lg:h-[9.1rem];
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<Swiper v-bind="swipers.topSlider">
|
<Swiper v-bind="swipers.topSlider">
|
||||||
<SwiperSlide v-for="{ link, images, title, id } in sliders" :key="id">
|
<SwiperSlide v-for="{ link, images, title, id } in sliders" :key="id">
|
||||||
<router-link :to="link">
|
<router-link :to="link">
|
||||||
<img :title="title" :src="images[device]" />
|
<img :title="title" :src="images[device] + '?w=1980'" />
|
||||||
</router-link>
|
</router-link>
|
||||||
</SwiperSlide>
|
</SwiperSlide>
|
||||||
</Swiper>
|
</Swiper>
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"platform": "node",
|
"platform": "node",
|
||||||
"app": "asanmarket-front",
|
"app": "anahita-front",
|
||||||
"port": "3000",
|
"port": "3000",
|
||||||
"node": {
|
"node": {
|
||||||
"version": "18"
|
"version": "18"
|
||||||
|
|||||||
+3
-2
@@ -49,9 +49,9 @@
|
|||||||
"discount": "تخفیف",
|
"discount": "تخفیف",
|
||||||
"totalFactor": "جمع فاکتور",
|
"totalFactor": "جمع فاکتور",
|
||||||
"aboutUsDesc": "آناهیتا یک بستر ارتباطی بین تولید کنندگان ، واردکنندگان و توزیع کنندگان انواع محصولات است. به کمک این سامانه به سادگی میتوانید بهترین تامین کنندگان حیطه کسب و کار خود را بیابید و یا به عنوان تامین کننده با خرده فروشان صنف خود ارتباط بگیرید.",
|
"aboutUsDesc": "آناهیتا یک بستر ارتباطی بین تولید کنندگان ، واردکنندگان و توزیع کنندگان انواع محصولات است. به کمک این سامانه به سادگی میتوانید بهترین تامین کنندگان حیطه کسب و کار خود را بیابید و یا به عنوان تامین کننده با خرده فروشان صنف خود ارتباط بگیرید.",
|
||||||
"aboutUsAddress": "تهران، میدان امام خمینی، خیابان فردوسی، خیابان سرهنگ سخائی نبش کوچه بهنیا، پلاک40، طبقه چهارم، واحد12",
|
"aboutUsAddress": "اراك، شهرك صنعتی، داروسازي آناهیتا",
|
||||||
"aboutUsPostalCode": "کدپستی: 1136834843",
|
"aboutUsPostalCode": "کدپستی: 1136834843",
|
||||||
"aboutUsPhone": "تلفن: 67341",
|
"aboutUsPhone": "تلفن: 086 33 54 22 37",
|
||||||
"computer": "کامپیوتر",
|
"computer": "کامپیوتر",
|
||||||
"customer-services": "خدمات مشتریان",
|
"customer-services": "خدمات مشتریان",
|
||||||
"contactUs": "تماس با ما",
|
"contactUs": "تماس با ما",
|
||||||
@@ -412,4 +412,5 @@
|
|||||||
"updatePasswordSuccessfull": "رمزعبور با موفقیت بروزرسانی شد.",
|
"updatePasswordSuccessfull": "رمزعبور با موفقیت بروزرسانی شد.",
|
||||||
"sellerPanel": "پنل فروشنده",
|
"sellerPanel": "پنل فروشنده",
|
||||||
"loading": "درحال بارگذاری ..."
|
"loading": "درحال بارگذاری ..."
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -4,10 +4,10 @@ export default defineNuxtConfig({
|
|||||||
ssr: true,
|
ssr: true,
|
||||||
routeRules: {
|
routeRules: {
|
||||||
"/api/**": {
|
"/api/**": {
|
||||||
proxy: 'https://api-asanmarket.iran.liara.run/**'
|
proxy: 'https://api-anahita.liara.run/**'
|
||||||
},
|
},
|
||||||
"/uploads/**": {
|
"/uploads/**": {
|
||||||
proxy: 'https://api-asanmarket.iran.liara.run/uploads/**'
|
proxy: 'https://api-anahita.liara.run/uploads/**'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
modules: [
|
modules: [
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
<HomePopularCategories />
|
<HomePopularCategories />
|
||||||
<HomeLatestPosts />
|
<HomeLatestPosts />
|
||||||
<HomeProducers :title="$t('producers')" />
|
<HomeProducers :title="$t('producers')" />
|
||||||
<HomeAsanService />
|
|
||||||
</main>
|
</main>
|
||||||
</NuxtLayout>
|
</NuxtLayout>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user