You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
126 lines
4.1 KiB
126 lines
4.1 KiB
5 years ago
|
<template>
|
||
|
<v-flex :class="TileClass" style="padding:10px;" >
|
||
|
<div class="WM-Tile">
|
||
|
<img class="Image" :src="getPath('images/Business/Items/'+ImageURL)">
|
||
|
<div class="Content">
|
||
|
<div class="Info">
|
||
|
<div class="TitleFa"> {{ TitleFa }} </div>
|
||
|
<div class="TitleEn Context"> {{ TitleEn }} </div>
|
||
|
</div>
|
||
|
<div class="Price En LTR">
|
||
|
<div class="NewPrice">{{ Price }} <span class="Unit"> IRT </span></div>
|
||
|
<div class="OldPrice"> {{ OldPrice }} </div>
|
||
|
</div>
|
||
|
<hr>
|
||
|
<div class="Buttons">
|
||
|
<v-tooltip top color="black">
|
||
|
<v-btn small @click.native="$store.state.OrderDetails = true" slot="activator" fab color="cyan" dark><v-icon dark>fas fa-align-right</v-icon></v-btn>
|
||
|
<span> جزئیات آیتم </span>
|
||
|
</v-tooltip>
|
||
|
<v-tooltip top color="black">
|
||
|
<v-btn small @click.native="$store.state.OrderStatus = true" slot="activator" fab color="black" dark><v-icon dark>fas fa-pencil-alt</v-icon></v-btn>
|
||
|
<span> ویرایش آیتم </span>
|
||
|
</v-tooltip>
|
||
|
<v-tooltip top color="black">
|
||
|
<v-btn small slot="activator" fab color="orange" dark><v-icon dark>fas fa-star</v-icon></v-btn>
|
||
|
<span> حالت خاص </span>
|
||
|
</v-tooltip>
|
||
|
<v-tooltip top color="black">
|
||
|
<v-btn small slot="activator" fab color="red" dark><v-icon dark>fas fa-trash-alt</v-icon></v-btn>
|
||
|
<span> حذف آیتم </span>
|
||
|
</v-tooltip>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</v-flex>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
props: {
|
||
|
// Tile:TileData,
|
||
|
TileClass: { default: "xl2 lg3 xs12" },
|
||
|
TileHeight: { default: "230px" },
|
||
|
// --------------------------------------------
|
||
|
TitleFa: { default: " اپل آیفون ایکس - 64 گیگابایت" },
|
||
|
TitleEn: { default: " Apple iPhone X - 64GB" },
|
||
|
// --------------------------------------------
|
||
|
Price: { default: '11,000,000' },
|
||
|
OldPrice: { default: '12,300,000' },
|
||
|
GradientBegin: { default: "eeeeee" },
|
||
|
GradientEnd: { default: "dadada" },
|
||
|
// --------------------------------------------
|
||
|
ImageURL: { default: "iPhoneX.jpg" },
|
||
|
ImageHeight: { default: "180px" },
|
||
|
// --------------------------------------------
|
||
|
Quantity: { default: "" },
|
||
|
QuantitySize: { default: "100" },
|
||
|
QuantityColor: { default: "#000" },
|
||
|
},
|
||
|
};
|
||
|
</script>
|
||
|
|
||
|
<style scoped lang="scss">
|
||
|
.WM-Tile {
|
||
|
width:100%;
|
||
|
padding:10px;
|
||
|
border: 1px solid #eeeeee;
|
||
|
transition: 0.4s;
|
||
|
border-radius: 5px;
|
||
|
}
|
||
|
.WM-Tile:hover {
|
||
|
border: 1px solid #000;
|
||
|
}
|
||
|
.WM-Tile.Shadowed {
|
||
|
box-shadow: 0 10px 30px 0 rgba(0,0,0,.5);
|
||
|
border-radius:5px;
|
||
|
}
|
||
|
.WM-Tile .Content {
|
||
|
background-color:#fff;
|
||
|
height:100%;
|
||
|
}
|
||
|
.WM-Tile .Image {
|
||
|
width:100%;
|
||
|
}
|
||
|
.Content {
|
||
|
padding:10px;
|
||
|
}
|
||
|
.Content .Info {
|
||
|
text-align:right;
|
||
|
}
|
||
|
.Info .TitleEn {
|
||
|
font-size:13px;
|
||
|
}
|
||
|
//-----------------------------------Price
|
||
|
.Content .Price {
|
||
|
text-align:left;
|
||
|
}
|
||
|
.Content .Price .Unit {
|
||
|
font-size:12px;
|
||
|
}
|
||
|
.Price .NewPrice {
|
||
|
font-size:24px;
|
||
|
}
|
||
|
.Price .OldPrice {
|
||
|
font-size:14px;
|
||
|
margin-left: 20px;
|
||
|
text-decoration: line-through;
|
||
|
text-decoration-color: #ee3552;
|
||
|
color: #ee3552;
|
||
|
margin-top: -5px;
|
||
|
|
||
|
}
|
||
|
|
||
|
//---------------------------Buttons-------------------------------
|
||
|
.Content .Buttons {
|
||
|
text-align: center;
|
||
|
}
|
||
|
.v-btn {
|
||
|
margin: 6px 2px;
|
||
|
}
|
||
|
.v-btn--floating.v-btn--small .v-icon {
|
||
|
font-size: 16px;
|
||
|
}
|
||
|
|
||
|
</style>
|