catalogo, avanti, grafica
This commit is contained in:
5
src/views/ecommerce/catalogoInfo/catalogoInfo.scss
Executable file
5
src/views/ecommerce/catalogoInfo/catalogoInfo.scss
Executable file
@@ -0,0 +1,5 @@
|
||||
$heightBtn: 100%;
|
||||
|
||||
.card .product-image {
|
||||
height: 300px;
|
||||
}
|
||||
59
src/views/ecommerce/catalogoInfo/catalogoInfo.ts
Executable file
59
src/views/ecommerce/catalogoInfo/catalogoInfo.ts
Executable file
@@ -0,0 +1,59 @@
|
||||
import { defineComponent, onMounted, ref } from 'vue'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { useRoute } from 'vue-router'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { useProducts } from '@store/Products'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import { toolsext } from '@store/Modules/toolsext'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { costanti } from '@costanti'
|
||||
import { shared_consts } from '@src/common/shared_vuejs'
|
||||
// import MixinBase from '@src/mixins/mixin-base'
|
||||
import { CCatalogoCard } from '@src/components/CCatalogoCard'
|
||||
|
||||
|
||||
export default defineComponent({
|
||||
name: 'catalogoInfo',
|
||||
components: { CCatalogoCard },
|
||||
props: {},
|
||||
setup() {
|
||||
const userStore = useUserStore()
|
||||
const globalStore = useGlobalStore()
|
||||
const productStore = useProducts()
|
||||
const $router = useRouter()
|
||||
const $route = useRoute()
|
||||
const $q = useQuasar()
|
||||
const { t } = useI18n();
|
||||
const id = ref('')
|
||||
const cosa = ref(0)
|
||||
|
||||
// const { setValDb, getValDb } = MixinBase()
|
||||
|
||||
function mounted() {
|
||||
// Inizializza
|
||||
console.log('created productInfo')
|
||||
console.log($route)
|
||||
if (!!$route.params.idprod) {
|
||||
id.value = $route.params.idprod.toString()
|
||||
}
|
||||
if (!!$route.params.idprod) {
|
||||
cosa.value = tools.strToVal($route.params.cosa.toString())
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
userStore,
|
||||
costanti,
|
||||
tools,
|
||||
toolsext,
|
||||
shared_consts,
|
||||
id,
|
||||
cosa,
|
||||
}
|
||||
}
|
||||
})
|
||||
19
src/views/ecommerce/catalogoInfo/catalogoInfo.vue
Executable file
19
src/views/ecommerce/catalogoInfo/catalogoInfo.vue
Executable file
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<q-page class="q-pa-md">
|
||||
<div class="panel">
|
||||
<div class="container">
|
||||
<div class="row justify-center">
|
||||
<CCatalogoCard :id="id" :cosa="cosa" :complete="true"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</q-page>
|
||||
</template>
|
||||
|
||||
<script lang="ts" src="./catalogoInfo.ts">
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import './catalogoInfo';
|
||||
</style>
|
||||
1
src/views/ecommerce/catalogoInfo/index.ts
Executable file
1
src/views/ecommerce/catalogoInfo/index.ts
Executable file
@@ -0,0 +1 @@
|
||||
export {default as catalogoInfo} from './catalogoInfo.vue'
|
||||
Reference in New Issue
Block a user