From b2bf21bd2160f80d526c92a2bd078f4a895454d5 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Fri, 03 Nov 2023 14:00:20 +0800
Subject: [PATCH] Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/jczz_app
---
pages/home/index.vue | 22 ++++++++++++++++------
1 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/pages/home/index.vue b/pages/home/index.vue
index d58065f..4dbf1dc 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -2,10 +2,12 @@
<view class="">
<u-navbar height="48" :autoBack="false" safeAreaInsetTop placeholder
@leftClick="selectBoxShow = !selectBoxShow">
- <view slot="left" class="flex">
- <text class="top">{{curSelectSite.name?curSelectSite.name:'暂无绑定' +roleTypeName+'信息'}}</text>
+
+ <view slot="left" class="top flex">
+ <view class="top-text f-30 fw">{{curSelectSite.name?curSelectSite.name:'暂无绑定' +roleTypeName+'信息'}}
+ </view>
<u-icon name="/static/icon/change-icon.png"></u-icon>
- </view>
+ </view>
</u-navbar>
<view class="content">
<view class="swiper">
@@ -371,7 +373,10 @@
this.curSelectSite = dataList[0].children[0];
this.getHouseDataList(dataList[0].children[0].id)
this.buildSiteColumn(dataList[0].children, index + 1)
+ } else {
+ this.curSelectSite = dataList[0];
}
+
}
},
@@ -570,9 +575,14 @@
<style lang="scss" scoped>
.top {
- margin-right: 20rpx;
- font-size: 32rpx;
- font-weight: bold;
+ width: 530rpx;
+ .top-text {
+ max-width: 85%;
+ margin-right: 20rpx;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
}
.swiper {
--
Gitblit v1.9.3