feat: order revision, rial wage from variant, product tags; drop user-app-v2
Admin order edit with category chips and timeline; customer checkout charges variant rialWage; product tags; retire the unused user-app-v2 tree. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -26,6 +26,9 @@
|
||||
|
||||
<div class="pr__body">
|
||||
<h3 class="pr__title">{{ title }}</h3>
|
||||
<div v-if="tags.length" class="pr__tags">
|
||||
<span v-for="tag in tags" :key="tag" class="pr__tag">{{ tag }}</span>
|
||||
</div>
|
||||
<div class="pr__meta">
|
||||
<span class="pr__weight">{{ min_gram }} گرم</span>
|
||||
<span v-if="wage != null" class="pr__wage">اجرت {{ wageLabel }}٪</span>
|
||||
@@ -49,6 +52,7 @@ const props = defineProps<{ value: ProductSummary }>()
|
||||
|
||||
const favorites = useFavoritesStore()
|
||||
const { image, id, title, min_gram, wage, is_exist, qty, isPreOrder } = useProduct(props.value)
|
||||
const tags = computed(() => (props.value.tags ?? []).filter(Boolean))
|
||||
|
||||
const root = ref<HTMLElement | null>(null)
|
||||
function open() {
|
||||
@@ -173,6 +177,26 @@ html.theme-dark .pr__art img {
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.pr__tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.pr__tag {
|
||||
padding: 2px 7px;
|
||||
border-radius: 999px;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
color: @wine;
|
||||
background: alpha(@wine, 10%);
|
||||
line-height: 1.4;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.pr__meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user