修改首页选择园区,,商户,,电表
This commit is contained in:
24
components/dot/index.js
Normal file
24
components/dot/index.js
Normal file
@@ -0,0 +1,24 @@
|
||||
// components/dot/index.js
|
||||
Component({
|
||||
|
||||
/**
|
||||
* 组件的属性列表
|
||||
*/
|
||||
properties: {
|
||||
number: Number,
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 组件的方法列表
|
||||
*/
|
||||
methods: {
|
||||
|
||||
}
|
||||
})
|
4
components/dot/index.json
Normal file
4
components/dot/index.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
3
components/dot/index.wxml
Normal file
3
components/dot/index.wxml
Normal 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
10
components/dot/index.wxss
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user