提交 fb3cc999 作者: 方治民

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

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