|
|
@@ -2,7 +2,7 @@
|
|
|
<template>
|
|
|
<app-view>
|
|
|
<template #header>
|
|
|
- <app-navbar :title="$t('mine.myposition')">
|
|
|
+ <app-navbar :title="$t('mine.myposition')" :show-back-button="showBackButton" >
|
|
|
<!-- <template #footer>
|
|
|
<Tabs>
|
|
|
<Tab title="全款订单" :name="1" />
|
|
|
@@ -84,7 +84,7 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef, defineAsyncComponent } from 'vue'
|
|
|
-import { Tabs, Tab, Button, Image } from 'vant'
|
|
|
+import { Button, Image } from 'vant'
|
|
|
import { getFileUrl } from '@/filters'
|
|
|
import { useComponent } from '@/hooks/component'
|
|
|
import { getBuyOrSellName, BuyOrSell, PriceMode } from '@/constants/order'
|
|
|
@@ -97,6 +97,14 @@ import { EBuildType, EDelistingType, EListingSelectType, EValidType } from '@/co
|
|
|
import AppPullRefresh from '@mobile/components/base/pull-refresh/index.vue'
|
|
|
import eventBus from '@/services/bus'
|
|
|
|
|
|
+defineProps({
|
|
|
+ showBackButton: {
|
|
|
+ type: Boolean,
|
|
|
+ default: false
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
+
|
|
|
const { global: { t } } = i18n
|
|
|
|
|
|
const { getSBYJMyOrders, $toRefs } = useSBYJOrderStore()
|
|
|
@@ -128,7 +136,9 @@ const enableqty = (item: Model.SBYJMyOrderRsp) => {
|
|
|
}
|
|
|
|
|
|
const getImageUrl = (url: string) => {
|
|
|
- const [firstImg] = url.split(',')
|
|
|
+ // debugger
|
|
|
+ const [firstImg] = url ? url.split(',') : ''
|
|
|
+
|
|
|
return firstImg ? getFileUrl(firstImg) : ''
|
|
|
}
|
|
|
|