提交 fb3cc999 作者: 方治民

feat: 我的页面优化(35、36)

上级 d668536f
......@@ -146,7 +146,7 @@
"style": {
"navigationBarTitleText": "我的",
"app-plus": {
"titleNView": false,
"titleNView": true,
"bounce": false
}
}
......
......@@ -210,7 +210,7 @@
<template>
<view class="main page-bg">
<view class="w-full h-250 flex flex-row items-center avatar pt-44px pl-6">
<view class="w-full h-170 flex flex-row items-center avatar pl-6">
<CacheImage
:src="model.avatar"
width="150"
......@@ -232,14 +232,14 @@
</view>
</view>
</view>
<view class="px-6 pt-6">
<view class="px-6 pt-4">
<fui-list class="rd-3 overflow-hidden shadow" :top-border="false">
<fui-list-cell
arrow
v-for="(item, index) in items.slice(0, 2)"
:key="index"
:bottom-border="false"
:class="{ disabled: item.disabled }"
:class="{ disabled: item.disabled, '!hidden': index === 1 && pageData.farmsListTotal === 0 }"
v-show="item.show"
@tap="item.handle(item)"
>
......@@ -249,13 +249,11 @@
height="42"
background="transparent"
/>
<text class="ml-3.5 text-30 text-#67c17a font-bold">{{ item.title }}</text>
<text v-show="index === 0 && pageData.farmsListTotal === 0" class="text-red"
>({{ pageData.farmsListTotal || 0 }})</text
>
<view v-show="index === 0 && pageData.farmsListTotal === 0" class="text-red flex-1 text-right"
>去添加
</view>
<text class="ml-3.5 text-30">{{ item.title }}</text>
<text v-show="index === 0" class="text-#67c17a text-28 font-bold" style="letter-spacing: 4rpx">
{{ pageData.farmsListTotal || 0 }}
</text>
<view v-show="index === 0" class="text-#67c17a flex-1 text-right text-28">去添加 </view>
</fui-list-cell>
</fui-list>
<fui-list class="rd-3 overflow-hidden shadow !mt-20rpx" :top-border="false">
......@@ -309,7 +307,7 @@
width: 100%;
height: 100%;
// #ifdef H5
height: calc(100vh - 60px);
height: calc(100vh - 60px - 44px);
// #endif
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论