++ Cassa - parte 1

This commit is contained in:
Surya Paolo
2024-01-02 15:24:57 +01:00
parent a2cab9ca60
commit 89d095d1c9
18 changed files with 441 additions and 376 deletions

View File

@@ -15,6 +15,7 @@ import { tools } from '@store/Modules/tools'
import { useProducts } from '@store/Products'
import { shared_consts } from '@src/common/shared_vuejs'
import { useRouter } from 'vue-router'
export default defineComponent({
name: 'CProductCard',
@@ -53,6 +54,8 @@ export default defineComponent({
const site = ref(globalStore.site)
const $router = useRouter()
const fullscreenImage = ref(<any>null)
let myorder = reactive(<IOrder>{
@@ -293,6 +296,7 @@ export default defineComponent({
function load() {
initproduct()
updateproduct()
// console.log('Load', myproduct.value.name)
// console.log('created Cproductcard', code)
@@ -406,6 +410,10 @@ export default defineComponent({
fullscreenImage.value.fullscreenImage.style.transform = 'scale(1)';
}
function naviga(path: string) {
$router.push(path)
}
onMounted(mounted)
onBeforeUnmount(beforeDestroy)
@@ -450,7 +458,8 @@ export default defineComponent({
onTouchStart,
onTouchMove,
onTouchEnd,
$router,
naviga,
}
}
})