新增首页修复,搜索框不匹配,分割线失效以及无背景颜色

feasure
lld 2026-02-20 13:28:44 +08:00
parent 4154ebe70e
commit 0847b9490e
3 changed files with 11 additions and 9 deletions

View File

@ -13,6 +13,7 @@
<!-- </view>--> <!-- </view>-->
</uni-section> </uni-section>
<uni-divider margin="10rpx 0"></uni-divider>
<uni-section title="实时温湿度" titleFontSize="16px" type="line" v-if="value!== 1"> <uni-section title="实时温湿度" titleFontSize="16px" type="line" v-if="value!== 1">
<template v-slot:right > <template v-slot:right >
{{ temp }} {{ temp }}
@ -896,12 +897,14 @@ export default {
}, },
}; };
</script> </script>
<style>
<style lang="scss" scoped>
@import "@/colorui/main.css"; @import "@/colorui/main.css";
// #ifdef mp-weixin // #ifdef mp-weixin
@import "colorui/main.css"; @import "/colorui/main.css";
// #endif // #endif
</style>
<style lang="scss" scoped>
/deep/ .z-paging-content-fixed { /deep/ .z-paging-content-fixed {
padding: 20rpx !important; padding: 20rpx !important;
/* 可选防止margin塌陷加overflow */ /* 可选防止margin塌陷加overflow */
@ -1110,9 +1113,9 @@ export default {
width: 340rpx; width: 340rpx;
} }
.card { .card {
border-radius: 20rpx; border-radius: 20rpx;
background: pink;
overflow: hidden; overflow: hidden;
} }
</style> </style>

View File

@ -14,8 +14,7 @@
<uni-col :span="17"> <uni-col :span="17">
<!-- confirm:confirm; input:change; cancel:点击取消 <!-- confirm:confirm; input:change; cancel:点击取消
clear点击清除focus:获取焦点blur失去焦点 --> clear点击清除focus:获取焦点blur失去焦点 -->
<uni-search-bar :focus="true" <uni-search-bar bgColor="#fbfdfe"
bgColor="#fbfdfe"
v-model="searchValue" v-model="searchValue"
cancelButton="always" cancelButton="always"
@input="input" @input="input"
@ -518,6 +517,7 @@ page {
box-shadow: 8rpx 5rpx 10rpx #999; box-shadow: 8rpx 5rpx 10rpx #999;
background: #fbfdfe; background: #fbfdfe;
border-radius: 0 !important; border-radius: 0 !important;
height: 70rpx !important;
} }
/deep/ .uni-searchbar__box { /deep/ .uni-searchbar__box {
border-radius: 0 10rpx 10rpx 0 !important; border-radius: 0 10rpx 10rpx 0 !important;
@ -527,7 +527,6 @@ page {
} }
/deep/ .uni-select { /deep/ .uni-select {
border: 0; border: 0;
height: 70rpx !important;
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
margin-top: 20rpx !important; margin-top: 20rpx !important;
// #endif // #endif

BIN
static/images/profile.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB