|
45 | 45 | <template>
|
46 | 46 | <v-row v-for="(item, index) in articulosArray" :key="index">
|
47 | 47 |
|
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="[ |
53 | 57 | cambio(item) === '#272727' || cambio(item) === 'success'
|
54 | 58 | ? 'wt'
|
55 | 59 | : 'blt',
|
56 | 60 | ]">
|
57 |
| - {{ item.name }} <v-spacer></v-spacer> |
| 61 | + {{ item.name |
| 62 | + }} |
| 63 | + <v-spacer></v-spacer> |
58 | 64 | <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> |
60 | 71 | </v-btn>
|
61 | 72 | </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> |
71 | 73 | <v-card-actions :key="refresher">
|
72 |
| - |
73 | 74 | <v-btn
|
74 | 75 | :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> |
80 | 107 | </v-card-actions>
|
81 | 108 | </v-card>
|
82 | 109 | </v-row>
|
|
0 commit comments