changes in home

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