卖家端多语言
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
</div>
|
||||
<div class="filter-box">
|
||||
<div class="left">
|
||||
<div class="title">All Invoice</div>
|
||||
<div class="tip">A summary of all completed transactions.</div>
|
||||
<div class="title">{{ t("Seller.allInvoice") }}</div>
|
||||
<div class="tip">{{ t("Seller.myOrdersTip") }}</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="input">
|
||||
@@ -22,7 +22,7 @@
|
||||
<input
|
||||
type="text"
|
||||
v-model="nameOrId"
|
||||
placeholder="Search by item name or order ID"
|
||||
:placeholder="t('Seller.myOrdersSearchPlaceholder')"
|
||||
@keydown.enter.prevent="getList(true)"
|
||||
/>
|
||||
</div>
|
||||
@@ -30,11 +30,11 @@
|
||||
</div>
|
||||
<div class="table">
|
||||
<div class="header">
|
||||
<div class="order-id">Order ID</div>
|
||||
<div class="item">Item</div>
|
||||
<div class="price">Price</div>
|
||||
<div class="buyer-username">Buyer Username</div>
|
||||
<div class="date">Date</div>
|
||||
<div class="order-id">{{ t("Seller.orderId") }}</div>
|
||||
<div class="item">{{ t("Seller.item") }}</div>
|
||||
<div class="price">{{ t("Seller.price") }}</div>
|
||||
<div class="buyer-username">{{ t("Seller.buyerUsername") }}</div>
|
||||
<div class="date">{{ t("Seller.date") }}</div>
|
||||
</div>
|
||||
<div class="body">
|
||||
<div class="item" v-for="v in list" :key="v.orderId">
|
||||
@@ -79,6 +79,8 @@
|
||||
<script setup>
|
||||
import { ref, onMounted, onBeforeUnmount, computed } from "vue"
|
||||
import { Https } from "@/tool/https"
|
||||
import { useI18n } from "vue-i18n"
|
||||
const { t } = useI18n()
|
||||
const totals_obj = ref({
|
||||
totalRevenue: "--",
|
||||
totalPurchases: "--",
|
||||
@@ -87,17 +89,17 @@
|
||||
const totals = computed(() => [
|
||||
{
|
||||
icon: "seller-qiandaizi",
|
||||
title: "Total Revenue",
|
||||
title: t("Seller.totalRevenue"),
|
||||
value: `HK$ ${totals_obj.value.totalRevenue}`
|
||||
},
|
||||
{
|
||||
icon: "seller-gouwudai",
|
||||
title: "Total Purchases",
|
||||
title: t("Seller.totalPurchases"),
|
||||
value: totals_obj.value.totalPurchases
|
||||
},
|
||||
{
|
||||
icon: "seller-eye",
|
||||
title: "Total Views",
|
||||
title: t("Seller.totalViews"),
|
||||
value: totals_obj.value.totalViews
|
||||
}
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user