Skip to content

Commit 343b7e6

Browse files
author
Francisco.salazar
committed
white and dark mode on crear orden
1 parent e88acf1 commit 343b7e6

File tree

1 file changed

+49
-22
lines changed

1 file changed

+49
-22
lines changed

pocket-bar-front/src/pwa-components/forms/crear-orden.vue

+49-22
Original file line numberDiff line numberDiff line change
@@ -45,38 +45,65 @@
4545
<template>
4646
<v-row v-for="(item, index) in articulosArray" :key="index">
4747

48-
<v-card :color="cambio(item)" class="card-p ml-4 mr-4 mb-1"
49-
:disabled="item.quantity == 0">
50-
<v-img v-bind:lazy-src="item.image" max-height="500" max-width="600"
51-
v-bind:src="item.image"></v-img>
52-
<v-card-title class="subheading font-weight-bold card-prod" :class="[
48+
<v-card :class="[
49+
cambio(item) === '#272727' || cambio(item) === 'success'
50+
? 'wt'
51+
: 'blt',
52+
]" :color="cambio(item)" class="card-p ml-4 mr-4 mb-1" :disabled="item.quantity == 0">
53+
<v-img v-bind:lazy-src="item.image" max-height="500" max-width="500"
54+
v-bind:src="item.image">
55+
</v-img>
56+
<v-card-title style="flex-wrap: nowrap;" :class="[
5357
cambio(item) === '#272727' || cambio(item) === 'success'
5458
? 'wt'
5559
: 'blt',
5660
]">
57-
{{ item.name }} <v-spacer></v-spacer>
61+
{{ item.name
62+
}}
63+
<v-spacer></v-spacer>
5864
<v-btn icon @click.prevent="cajaProductos(item)">
59-
<v-icon>mdi-plus-circle</v-icon>
65+
<span :class="[
66+
cambio(item) === '#272727' ||
67+
cambio(item) === 'success'
68+
? 'wt'
69+
: 'blt',
70+
]"><v-icon>mdi-plus-circle</v-icon></span>
6071
</v-btn>
6172
</v-card-title>
62-
<v-card-text class="text font-weight-regular" style="text-align: end">
63-
<span :class="[
64-
cambio(item) === '#272727' ||
65-
cambio(item) === 'success'
66-
? 'wt'
67-
: 'blt',
68-
]">
69-
${{ item.price }}</span>
70-
</v-card-text>
7173
<v-card-actions :key="refresher">
72-
7374
<v-btn
7475
:disabled="item.units > 1 && pedidoArray.includes(item) === true ? false : true"
75-
icon
76-
@click.prevent="sumaresta('resta', item, index)"><v-icon>mdi-chevron-left-circle</v-icon></v-btn><span
77-
class="ma-2">{{ item.units }} </span><v-btn icon
78-
:disabled="pedidoArray.includes(item) === true ? false : true"
79-
@click.prevent="sumaresta('suma', item, index)"><v-icon>mdi-chevron-right-circle</v-icon></v-btn>
76+
icon @click.prevent="sumaresta('resta', item, index)">
77+
<span :class="[
78+
cambio(item) === '#272727' ||
79+
cambio(item) === 'success'
80+
? 'wt'
81+
: 'blt',
82+
]">
83+
<v-icon>
84+
mdi-chevron-left-circle
85+
</v-icon>
86+
</span>
87+
</v-btn>
88+
<span class="ma-2">{{ item.units }}
89+
</span>
90+
<v-btn icon :disabled="pedidoArray.includes(item) === true ? false : true"
91+
@click.prevent="sumaresta('suma', item, index)">
92+
<span :class="[
93+
cambio(item) === '#272727' ||
94+
cambio(item) === 'success'
95+
? 'wt'
96+
: 'blt',
97+
]">
98+
<v-icon>
99+
mdi-chevron-right-circle
100+
</v-icon>
101+
</span>
102+
</v-btn>
103+
<v-spacer></v-spacer>
104+
<span class="text font-weight-regular">
105+
${{ item.price }}
106+
</span>
80107
</v-card-actions>
81108
</v-card>
82109
</v-row>

0 commit comments

Comments
 (0)