修改首页选择园区,,商户,,电表

This commit is contained in:
2024-04-03 14:46:34 +08:00
parent db6d253898
commit f5ddb92449
17 changed files with 188 additions and 68 deletions

24
components/dot/index.js Normal file
View File

@@ -0,0 +1,24 @@
// components/dot/index.js
Component({
/**
* 组件的属性列表
*/
properties: {
number: Number,
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1,3 @@
<!--components/dot/index.wxml-->
<view class="dot" wx:if="{{number <= 99}}"> {{ number }} </view>
<view class="dot" wx:else> 99+ </view>

10
components/dot/index.wxss Normal file
View File

@@ -0,0 +1,10 @@
/* components/dot/index.wxss */
.dot {
background-color: #ee0a24;
width: 56rpx;
height: 56rpx;
border-radius: 50%;
text-align: center;
color: #fff;
font-size: 28rpx;
}