Skip to content

Commit 1d87aa7

Browse files
committed
update: 样式调整
1 parent 85e5396 commit 1d87aa7

2 files changed

Lines changed: 20 additions & 19 deletions

File tree

‎pages/API/get-node-info/get-node-info.vue‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@
4848
uni.createSelectorQuery().select('.target').boundingClientRect().exec((ret) => {
4949
const rect = ret[0]
5050
if (rect) {
51+
const sort = ['left','right','top','bottom','width','height']
5152
const info = []
52-
for (let key in rect) {
53-
if (key !== 'id' && key !== 'dataset') {
54-
info.push({
55-
'key': key,
56-
'val': rect[key]
57-
})
58-
}
53+
for (let i in sort) {
54+
let key = sort[i]
55+
info.push({
56+
'key': key,
57+
'val': rect[key]
58+
})
5959
}
6060
this.info = info
6161
}
@@ -72,29 +72,29 @@
7272
}
7373
7474
.block {
75-
height: 400upx;
76-
width: 400upx;
75+
height: 400rpx;
76+
width: 400rpx;
7777
background-color: #FFFFFF;
7878
border: 1px solid #ccc;
7979
position: relative;
8080
margin: 0 auto;
81-
margin-bottom: 30upx;
81+
margin-bottom: 30rpx;
8282
}
8383
8484
movable-area {
85-
height: 400upx;
86-
width: 400upx;
85+
height: 400rpx;
86+
width: 400rpx;
8787
position: relative;
8888
}
8989
9090
.target {
91-
height: 80upx;
92-
width: 80upx;
93-
line-height: 80upx;
91+
height: 80rpx;
92+
width: 80rpx;
93+
line-height: 80rpx;
9494
text-align: center;
9595
color: #FFFFFF;
9696
background-color: #4cd964;
97-
font-size: 28upx;
97+
font-size: 28rpx;
9898
position: absolute;
9999
}
100100
@@ -107,12 +107,12 @@
107107
108108
.b {
109109
font-weight: bold;
110-
width: 150upx;
110+
width: 150rpx;
111111
display: inline-block;
112112
}
113113
114114
.span {
115-
width: 100upx;
115+
width: 100rpx;
116116
display: inline-block;
117117
}
118118
</style>

‎pages/component/scroll-view/scroll-view.vue‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
<view id="demo2" class="scroll-view-item_H uni-bg-green">B</view>
2929
<view id="demo3" class="scroll-view-item_H uni-bg-blue">C</view>
3030
</scroll-view>
31-
</view>
31+
</view>
32+
<view class="uni-common-pb"></view>
3233
</view>
3334
</view>
3435
</template>

0 commit comments

Comments
 (0)