|
@ -2,21 +2,30 @@ |
|
|
<div |
|
|
<div |
|
|
class="rounded-[10px] bg-black-19191A rounded-b-[10px] px-[34px] pt-[12px] pb-[28px]" |
|
|
class="rounded-[10px] bg-black-19191A rounded-b-[10px] px-[34px] pt-[12px] pb-[28px]" |
|
|
> |
|
|
> |
|
|
<transact-details-row |
|
|
<div |
|
|
v-for="(item, index) in invariable.labels" |
|
|
v-for="(item, index) in invariable.labels" |
|
|
:key="index" |
|
|
:key="index" |
|
|
|
|
|
@click=" |
|
|
|
|
|
invariable.links[index] |
|
|
|
|
|
? handleClick(currentData?.[invariable.sequence[index]]) |
|
|
|
|
|
: '' |
|
|
|
|
|
" |
|
|
|
|
|
> |
|
|
|
|
|
<transact-details-row |
|
|
:title="item" |
|
|
:title="item" |
|
|
:value="currentData?.[invariable.sequence[index]]" |
|
|
:value="currentData?.[invariable.sequence[index]]" |
|
|
:value-color="invariable.colorSequence[index]" |
|
|
:value-color="invariable.colorSequence[index]" |
|
|
:is-copy="invariable.isCopys[index]" |
|
|
:is-copy="invariable.isCopys[index]" |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import { defineProps, ref, watchEffect } from 'vue' |
|
|
import { defineProps, ref, watchEffect } from 'vue' |
|
|
import transactDetailsRow from '../dBase/transactDetailsRow.vue' |
|
|
import transactDetailsRow from '../dBase/transactDetailsRow.vue' |
|
|
import { transactDetailsCollocate } from '../constant' |
|
|
import { transactDetailsCollocate } from '../constant' |
|
|
|
|
|
import { useRouter } from 'vue-router' |
|
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
const props = defineProps({ |
|
|
data: Object as any, |
|
|
data: Object as any, |
|
@ -25,6 +34,10 @@ const invariable = { |
|
|
...transactDetailsCollocate, |
|
|
...transactDetailsCollocate, |
|
|
} |
|
|
} |
|
|
const currentData = ref() |
|
|
const currentData = ref() |
|
|
|
|
|
const router = useRouter() |
|
|
|
|
|
const handleClick = (route: any) => { |
|
|
|
|
|
router.replace(`/tokens/${route}`) |
|
|
|
|
|
} |
|
|
watchEffect(() => { |
|
|
watchEffect(() => { |
|
|
currentData.value = props.data |
|
|
currentData.value = props.data |
|
|
if (props?.data && props.data?.receiptList.length === 0) { |
|
|
if (props?.data && props.data?.receiptList.length === 0) { |
|
|