++ Cassa - parte 1
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user