Pārlūkot izejas kodu

修改: 把通知和动态的搜索先隐藏

littleblue55 5 dienas atpakaļ
vecāks
revīzija
c53d1bf481

+ 8 - 8
pages/dynamic/dynamic/dynamic.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="container">
-		<u-sticky>
+		<!-- <u-sticky>
 			<view class="search-box">
 				<u-search
 					v-model="searchForm.keyword"
@@ -13,7 +13,7 @@
 					@clear="onSearchClear"
 				></u-search>
 			</view>
-		</u-sticky>
+		</u-sticky> -->
 		<view class="list-box">
 			<view class="list-item-box" v-for="item in list" :key="item.id" @click="onDynamicClick(item)">
 				<view class="main-box">
@@ -110,13 +110,13 @@
 		width: 100vw;
 		background-color: #FFFFFF;
 		padding: 0 20rpx env(safe-area-inset-bottom, 0);
-		
+
 		.search-box {
 			margin-bottom: 20rpx;
 			::v-deep(.u-search) {
 				background-color: #e5e5e5;
 				border-radius: 50rpx;
-				
+
 				.u-action {
 					width: 18%;
 					background-color: $uni-color-primary;
@@ -130,7 +130,7 @@
 				}
 			}
 		}
-	
+
 		.list-box {
 			padding: 0 20rpx;
 			.list-item-box {
@@ -139,7 +139,7 @@
 					justify-content: space-between;
 					align-items: center;
 					padding: 30rpx 0;
-					
+
 					&:active {
 						background-color: $uni-bg-color-hover;
 					}
@@ -205,6 +205,6 @@
 			}
 		}
 	}
-		
-	
+
+
 </style>

+ 9 - 9
pages/notice/notice/notice.vue

@@ -1,6 +1,6 @@
 <template>
 	<view class="container">
-		<u-sticky>
+		<!-- <u-sticky>
 			<view class="search-box">
 				<u-search
 					v-model="searchForm.keyword"
@@ -13,7 +13,7 @@
 					@clear="onSearchClear"
 				></u-search>
 			</view>
-		</u-sticky>
+		</u-sticky> -->
 		<view class="list-box">
 			<view class="list-item-box" v-for="item in list" :key="item.id" @click="onNoticeClick(item)">
 				<view class="main-box">
@@ -48,7 +48,7 @@
 	import configService from '@/utils/baseurl.js'
 	const FILE_URL = configService.FILE_URL;
 	const uToast = ref()
-	
+
 	const searchInputStyle = {
 		backgroundColor: '#E5E5E5'
 	}
@@ -110,13 +110,13 @@
 		width: 100vw;
 		background-color: #FFFFFF;
 		padding: 0 20rpx env(safe-area-inset-bottom, 0);
-		
+
 		.search-box {
 			margin-bottom: 20rpx;
 			::v-deep(.u-search) {
 				background-color: #e5e5e5;
 				border-radius: 50rpx;
-				
+
 				.u-action {
 					width: 18%;
 					background-color: $uni-color-primary;
@@ -130,7 +130,7 @@
 				}
 			}
 		}
-	
+
 		.list-box {
 			padding: 0 20rpx;
 			.list-item-box {
@@ -139,7 +139,7 @@
 					justify-content: space-between;
 					align-items: center;
 					padding: 30rpx 0;
-					
+
 					&:active {
 						background-color: $uni-bg-color-hover;
 					}
@@ -205,6 +205,6 @@
 			}
 		}
 	}
-		
-	
+
+
 </style>

+ 29 - 29
pages/personalCenter/personalCenter.vue

@@ -3,8 +3,8 @@
 		<view class="user-box">
 			<view class="icon-name-box">
 				<view class="icon-box">
-					<image class="icon" 
-					:src="user.userIcon ?? '/static/images/avatar-img/1.png'" 
+					<image class="icon"
+					:src="user.userIcon ?? '/static/images/avatar-img/1.png'"
 					@click="onIconOpen"
 					></image>
 				</view>
@@ -161,7 +161,7 @@
 				<u-row gutter="20">
 					<u-col span="3" v-for="icon in iconList" :key="icon.name" @click="currentIcon = icon">
 						<view class="icon-item" :class="{'icon-active': icon.name === currentIcon.name}">
-							<image class="icon" :src="icon.url"></image>
+							<image class="icon" :src="icon.url" mode="aspectFill"></image>
 						</view>
 					</u-col>
 				</u-row>
@@ -182,15 +182,15 @@
 
 <script setup>
 	import CreditCard from '@/components/creditCard.vue'
-	
+
 	import { ref, computed } from 'vue'
 	import { onLoad, onShow } from '@dcloudio/uni-app'
 	import { getToken, removeToken } from '@/utils/auth.js'
 	import { useAuthStore } from '@/store/authStore'
-	
+
 	import { getCreditCard, getZhongjie, getAnjie, getIconList, updateIcon } from '@/api/user.js'
 	import { msgError, msgSuccess, showConfirm } from '@/utils/common'
-	
+
 	import { useTabbarStore } from '@/store/tabbarStore.js'
 	const tabbarStore = useTabbarStore()
 	// 底部导航栏数据
@@ -206,9 +206,9 @@
 		return tabbarStore.inactiveColor
 	})
 	const tabbarCurrentIndex = 0
-	
+
 	const authStore = useAuthStore()
-	
+
 	// 用户信息
 	const user = ref({
 		userIcon: null,
@@ -216,7 +216,7 @@
 		corpName: '广州市xx地产有限公司',
 		corpRegNo: '123xxxx'
 	})
-	
+
 	const iconVisible = ref(false)
 	const iconList = ref([
 		{
@@ -249,7 +249,7 @@
 	function onIconCancel() {
 		iconVisible.value = false
 	}
-	
+
 	// 是否预览信用信息卡
 	const showCreditCard = ref(false)
 	// 信用信息卡
@@ -345,7 +345,7 @@
 			}
 		})
 	}
-	
+
 	// 点击-会费缴交
 	function onHuiFeiJiaoJiao() {
 		if (!isLogin.value) {
@@ -408,9 +408,9 @@
 				url: '/pages/initial/initial'
 			})
 		})
-		
+
 	}
-	
+
 	function toLogin() {
 		uni.navigateTo({
 			url: '/pages/initial/initial'
@@ -421,18 +421,18 @@
 			url: '/pages/register/register'
 		})
 	}
-	
+
 	const isLogin = computed(() => {
 		return authStore.token ? true : false
 	})
-	
+
 	onShow(() => {
 		user.value = authStore.userInfo
 		getCreditCard().then(res => {
 			if (res && res.message === 'success') {
 				creditCard.value = res.data
 				authStore.setCreditCard(res.data)
-				
+
 				getZhongjie().then(res => {
 					if (res && res.message === 'success') {
 						zhongjie.value = res.data ?? {zsbh: null}
@@ -466,8 +466,8 @@
 		background: -o-linear-gradient(     90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
 		background: -ms-linear-gradient(    90deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
 		background: linear-gradient(       180deg, rgb(141, 204, 255) 10%, rgb(247, 247, 247) 30%);
-		
-		.user-box { 
+
+		.user-box {
 			padding: 0 40rpx;
 			.icon-name-box {
 				display: flex;
@@ -492,7 +492,7 @@
 				.name-box {
 					font-size: $uni-title-font-size-1;
 					letter-spacing: 5rpx;
-					
+
 					.name {
 						display: flex;
 						gap: 5rpx;
@@ -518,7 +518,7 @@
 				}
 			}
 		}
-		
+
 		.certificate-box {
 			padding: 0 20rpx;
 			margin-top: 20rpx;
@@ -531,22 +531,22 @@
 				width: 100%;
 				display: flex;
 				gap: 130rpx;
-				
+
 				overflow-x: scroll;
 				overflow-y: hidden;
 				white-space:nowrap;
-				
+
 				.list-item-box {
 					flex-shrink: 0;
 					height: $certificate-height;
 					width: $certificate-width;
 					background-color: #fff;
-					
+
 					&:nth-child(1) {
 						background-color: #fff;
 					}
 				}
-				
+
 				.zhongjie-back {
 					z-index: 999;
 					@include backgroundImg('http://www.gzrea.org.cn:8543/icon/wxmp/zhengshu/zhongjie-back.png')
@@ -569,23 +569,23 @@
 				}
 			}
 		}
-		
+
 		.certificate-preview-box {
 			height: 65vh;
 			width: 75vw;
 		}
-		
+
 		.menu-box {
 			padding: 20rpx 20rpx;
 			margin: 10rpx 0;
 			background-color: #fff;
 			width: 100%;
 			border-radius: $uni-card-border-radius;
-			
+
 			-webkit-box-shadow: 0px 0px 12rpx 0px rgba(50, 50, 50, 0.25);
 			-moz-box-shadow:    0px 0px 12rpx 0px rgba(50, 50, 50, 0.25);
 			box-shadow:         0px 0px 12rpx 0px rgba(50, 50, 50, 0.25);
-			
+
 			.menu-item-box {
 				height: 100rpx;
 				font-size: $uni-font-size-1;
@@ -611,7 +611,7 @@
 				}
 			}
 		}
-	
+
 		.icon-list-box {
 			padding: 30rpx;
 			width: 90vw;