update
This commit is contained in:
@@ -10,11 +10,14 @@
|
||||
<div class="w-full">
|
||||
<tab :name="tab1">
|
||||
<ul class="space-y-[0.5vw] mt-[6vw] md:mt-[0.5vw]">
|
||||
<li
|
||||
<!-- <p v-if="payments.data = null" class="p-[1vw] text-[0.8vw] underline">تراکنشی وجود ندارد !!!</p>
|
||||
-->
|
||||
<li
|
||||
v-for="(item, index) in payments.data.value"
|
||||
:key="index"
|
||||
class="flex justify-between items-center"
|
||||
>
|
||||
|
||||
<p class="text-[3.59vw] md:text-[0.938vw] text-[#383E43]">
|
||||
{{ item.reason }}
|
||||
</p>
|
||||
@@ -184,14 +187,14 @@ import { Tabs, Tab } from "vue3-tabs-component";
|
||||
const { data, refresh } = await useFetch("/api/user/balance");
|
||||
const payments = await useFetch("/api/user/payments");
|
||||
|
||||
|
||||
const payNum = Math.random()
|
||||
const price = ref(null);
|
||||
const charge = async () => {
|
||||
const toPay = await useFetch("/api/user/add", {
|
||||
method: "POST",
|
||||
body: {
|
||||
amount: price.value,
|
||||
paymentNumber: "411",
|
||||
paymentNumber: payNum * Math.random(),
|
||||
reason: "deposit",
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user