refactor: 修改样式
This commit is contained in:
@@ -3,11 +3,13 @@
|
|||||||
style: {
|
style: {
|
||||||
navigationBarTitleText: '资金明细',
|
navigationBarTitleText: '资金明细',
|
||||||
navigationBarBackgroundColor: '#fff',
|
navigationBarBackgroundColor: '#fff',
|
||||||
|
navigationStyle: 'custom',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import { getMyAssetAPI } from '@/service'
|
import { getMyAssetAPI } from '@/service'
|
||||||
import { useUserStore } from '@/store'
|
import { useUserStore } from '@/store'
|
||||||
|
|
||||||
@@ -35,9 +37,6 @@ const { list: assetList, onReload } = useListPageRequest(
|
|||||||
|
|
||||||
onLoad((options) => {
|
onLoad((options) => {
|
||||||
tabIndex.value = Number(options.tabIndex ?? 0)
|
tabIndex.value = Number(options.tabIndex ?? 0)
|
||||||
uni.setNavigationBarTitle({
|
|
||||||
title: tabList.value[tabIndex.value].label,
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
watch(
|
watch(
|
||||||
() => tabIndex.value,
|
() => tabIndex.value,
|
||||||
@@ -54,7 +53,7 @@ watch(
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<view class="asset-page pt-15 relative">
|
<view class="asset-page pt-15 relative">
|
||||||
<view class="absolute top-130 -left-55 btn-gradient text-white rounded-full w-172 h-172"></view>
|
<NavBar :title="tabList[tabIndex].label" />
|
||||||
<!-- <view class="flex justify-around">
|
<!-- <view class="flex justify-around">
|
||||||
<view
|
<view
|
||||||
v-for="(tabItem, index) in tabList"
|
v-for="(tabItem, index) in tabList"
|
||||||
@@ -66,11 +65,11 @@ watch(
|
|||||||
<view class="text-14">{{ tabItem.label }}</view>
|
<view class="text-14">{{ tabItem.label }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
<view class="p-15">
|
<view class="mt-30 p-15 text-white">
|
||||||
<view class="text-17">{{ tabList[tabIndex].label }}</view>
|
<view class="text-17">{{ tabList[tabIndex].label }}</view>
|
||||||
<view class="text-30">¥{{ tabList[tabIndex].money }}</view>
|
<view class="text-30">¥{{ tabList[tabIndex].money }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="relative z-1 main-content pt-40 pb-30 rounded-t-15">
|
<view class="relative z-1 mt-10 main-content pt-30 pb-30 rounded-t-15">
|
||||||
<view class="mb-15 px-25">【{{ tabList[tabIndex].label }}】明细</view>
|
<view class="mb-15 px-25">【{{ tabList[tabIndex].label }}】明细</view>
|
||||||
<template v-if="assetList.length">
|
<template v-if="assetList.length">
|
||||||
<view
|
<view
|
||||||
@@ -107,11 +106,13 @@ watch(
|
|||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.asset-page {
|
.asset-page {
|
||||||
|
background-image: url('@/static/images/assets-bg.jpg');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center;
|
background-position: top center;
|
||||||
background-size: 172px 172px;
|
background-size: 100%;
|
||||||
}
|
}
|
||||||
.main-content {
|
.main-content {
|
||||||
|
background-color: #ffffff99;
|
||||||
backdrop-filter: blur(60px);
|
backdrop-filter: blur(60px);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -3,11 +3,13 @@
|
|||||||
style: {
|
style: {
|
||||||
navigationBarTitleText: '投资记录',
|
navigationBarTitleText: '投资记录',
|
||||||
navigationBarBackgroundColor: '#fff',
|
navigationBarBackgroundColor: '#fff',
|
||||||
|
navigationStyle: 'custom',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</route>
|
</route>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import { getInvestmentRecordAPI } from '@/service'
|
import { getInvestmentRecordAPI } from '@/service'
|
||||||
|
|
||||||
const { list: investmentRecordList } = useListPageRequest(getInvestmentRecordAPI)
|
const { list: investmentRecordList } = useListPageRequest(getInvestmentRecordAPI)
|
||||||
@@ -16,10 +18,14 @@ function getType(item) {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<view class="min-h-screen pb-100">
|
<view
|
||||||
<template v-if="investmentRecordList.length">
|
class="min-h-screen pb-100"
|
||||||
|
style="background: linear-gradient(180deg, #3a90f2 0%, #f7f7f7 100%)"
|
||||||
|
>
|
||||||
|
<NavBar />
|
||||||
|
<view class="mt-15" v-if="investmentRecordList.length">
|
||||||
<view
|
<view
|
||||||
class="flex px-15 py-8 border-b border-#E5E5E5 border-b-solid"
|
class="flex px-15 py-8 mb-1 bg-#ffffffe5"
|
||||||
v-for="item in investmentRecordList"
|
v-for="item in investmentRecordList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
>
|
>
|
||||||
@@ -40,7 +46,7 @@ function getType(item) {
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</view>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<wd-status-tip image="content" tip="暂无内容" />
|
<wd-status-tip image="content" tip="暂无内容" />
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
+4
-2
@@ -120,7 +120,8 @@
|
|||||||
"type": "page",
|
"type": "page",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "资金明细",
|
"navigationBarTitleText": "资金明细",
|
||||||
"navigationBarBackgroundColor": "#fff"
|
"navigationBarBackgroundColor": "#fff",
|
||||||
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -158,7 +159,8 @@
|
|||||||
"type": "page",
|
"type": "page",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "投资记录",
|
"navigationBarTitleText": "投资记录",
|
||||||
"navigationBarBackgroundColor": "#fff"
|
"navigationBarBackgroundColor": "#fff",
|
||||||
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -84,9 +84,14 @@ onLoad(async (options) => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<view class="login-container relative">
|
<view class="login-container relative">
|
||||||
<NavBar title-color="#333" />
|
<NavBar />
|
||||||
|
<image
|
||||||
|
class="mt-30 w-86 rounded-full mx-auto block h-86"
|
||||||
|
src="@/static/images/login/logo.png"
|
||||||
|
mode="aspectFit"
|
||||||
|
/>
|
||||||
<view class="pt-45">
|
<view class="pt-45">
|
||||||
<view class="mx-15 px-15 shadow-[0_0_10px_rgba(10,68,245,0.1)] rounded-10">
|
<view class="mx-15 bg-white px-15 shadow-[0_0_10px_rgba(10,68,245,0.1)] rounded-10">
|
||||||
<view class="flex items-center py-15">
|
<view class="flex items-center py-15">
|
||||||
<view class="text-gradient">手机号</view>
|
<view class="text-gradient">手机号</view>
|
||||||
<input
|
<input
|
||||||
@@ -154,7 +159,7 @@ onLoad(async (options) => {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
padding-bottom: 200rpx;
|
padding-bottom: 200rpx;
|
||||||
background-image: url('@/static/images/login-bg.png');
|
background-image: url('@/static/images/register-bg.jpg');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
Reference in New Issue
Block a user