diff --git a/src/components/Avatar.vue b/src/components/Avatar.vue index eda5b81..d4987b7 100644 --- a/src/components/Avatar.vue +++ b/src/components/Avatar.vue @@ -23,7 +23,7 @@ defineProps({ bg-gray-100 class="h-full w-full" mode="aspectFill" - :src="src ?? DefaultAavatar" + :src="src ? src : DefaultAavatar" /> diff --git a/src/pages-sub/asset/index.vue b/src/pages-sub/asset/index.vue index 88eb0dd..38acc9c 100644 --- a/src/pages-sub/asset/index.vue +++ b/src/pages-sub/asset/index.vue @@ -16,7 +16,7 @@ const userStore = useUserStore() const tabList = computed(() => { return [ { label: '我的余额', value: 1, money: userStore.userInfo?.money }, - { label: '救济金余额', value: 2, money: userStore.userInfo?.moneyjiu }, + { label: '社保金余额', value: 2, money: userStore.userInfo?.moneyjiu }, { label: '养老金余额', value: 3, money: userStore.userInfo?.moneyold }, { label: '团队佣金余额', value: 4, money: userStore.userInfo?.moneyyong }, ] @@ -35,6 +35,9 @@ const { list: assetList, onReload } = useListPageRequest( onLoad((options) => { tabIndex.value = Number(options.tabIndex ?? 0) + uni.setNavigationBarTitle({ + title: tabList.value[tabIndex.value].label, + }) }) watch( () => tabIndex.value, @@ -52,7 +55,7 @@ watch(