hookehuyr

refactor(ShareButton): 将内联样式提取为CSS类并移除注释代码

style(ActivitiesCover): 移除位置获取失败的重试按钮和注释代码
......@@ -13,7 +13,7 @@
<view class="popover-arrow"></view>
<view class="popover-content">
<view class="popover-item" style="padding: 0; padding-top: 8rpx;">
<button id="share" data-name="shareBtn" open-type="share" style="font-size: 28rpx;padding: 0; background-color: white; line-height: 2;">活动</button>
<button id="share" data-name="shareBtn" open-type="share" class="share-native-button">活动</button>
</view>
<view class="popover-divider"></view>
<view @tap="handleSharePoster" class="popover-item">
......@@ -164,6 +164,31 @@ const handleSharePoster = () => {
z-index: 9998;
}
// 原生button样式重置
.share-native-button {
border: none !important;
outline: none !important;
background: transparent !important;
padding: 0 !important;
margin: 0 !important;
font-size: 28rpx !important;
line-height: 2 !important;
color: #333 !important;
width: 100% !important;
height: auto !important;
text-align: center !important;
// 去除微信小程序button的默认样式
&::after {
border: none !important;
}
// 去除点击态样式
&:active {
background: transparent !important;
}
}
// 动画
@keyframes popoverFadeIn {
from {
......
This diff is collapsed. Click to expand it.