Commit 5f571ba7 authored by Zheng Shang Jun's avatar Zheng Shang Jun

安全距离和样式修改

parent 3239cf03
...@@ -178,10 +178,11 @@ export default { ...@@ -178,10 +178,11 @@ export default {
overflow-x: auto; overflow-x: auto;
white-space: nowrap; white-space: nowrap;
image { image {
border: 1px solid #c7c6c7;
width: 240rpx; width: 240rpx;
height: 160rpx; height: 160rpx;
border-radius: 10rpx; border-radius: 10rpx;
padding-left: 20.3rpx; margin-left: 20rpx;
} }
} }
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
list传过去的数据 Array list传过去的数据 Array
options 右边滑动出现删除的东西 Array options 右边滑动出现删除的东西 Array
--> -->
<view class="collect"> <view class="collect" :style="`margin-top: ${safeDiced}px`">
<view class="head"> <view class="head">
<text class="text1">我的收藏</text> <text class="text1">我的收藏</text>
<text class="text2">My collection</text> <text class="text2">My collection</text>
...@@ -52,6 +52,8 @@ export default { ...@@ -52,6 +52,8 @@ export default {
], ],
// 编辑点击 // 编辑点击
edit: false, edit: false,
//顶部安全距离
safeDiced: "",
}; };
}, },
computed: { computed: {
...@@ -105,6 +107,11 @@ export default { ...@@ -105,6 +107,11 @@ export default {
}, },
mounted() { mounted() {
this.collectionFn(); this.collectionFn();
uni.getSystemInfo({
success: (res) => {
this.safeDiced = res.safeArea.top;
},
});
}, },
}; };
</script> </script>
......
...@@ -123,6 +123,13 @@ export default { ...@@ -123,6 +123,13 @@ export default {
font-weight: 400; font-weight: 400;
color: rgba(0, 0, 0, 0.8); color: rgba(0, 0, 0, 0.8);
margin: 24rpx 28rpx 0 20rpx; margin: 24rpx 28rpx 0 20rpx;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
} }
.hotText2 { .hotText2 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment