|
|
@@ -28,16 +28,23 @@
|
|
|
</text>
|
|
|
|
|
|
<button
|
|
|
- class="forward-button"
|
|
|
- hover-class="forward-button--hover"
|
|
|
+ class="share-button"
|
|
|
+ hover-class="share-button--hover"
|
|
|
open-type="share"
|
|
|
- :data-title="albumTitle"
|
|
|
+ :data-title="item.title"
|
|
|
:data-id="item.id"
|
|
|
- :data-active-tab="activeTab"
|
|
|
- @click.stop
|
|
|
+ data-active-tab="academic"
|
|
|
+ @tap.stop
|
|
|
>
|
|
|
- <image class="forward-icon" :src="shareIconUrl" mode="aspectFit" />
|
|
|
- <text class="forward-text">转发</text>
|
|
|
+ <view class="share-button__content">
|
|
|
+ <wd-icon
|
|
|
+ name="share-internal"
|
|
|
+ size="24rpx"
|
|
|
+ color="#2f8be6"
|
|
|
+ custom-class="share-button__icon"
|
|
|
+ />
|
|
|
+ <text class="share-button__text">转发</text>
|
|
|
+ </view>
|
|
|
</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -51,7 +58,6 @@ import type { AlbumPageNewItem } from '@/services/modules/information/type'
|
|
|
|
|
|
const props = defineProps<{
|
|
|
item: AlbumPageNewItem
|
|
|
- shareIconUrl: string
|
|
|
activeTab: string
|
|
|
}>()
|
|
|
|
|
|
@@ -228,42 +234,53 @@ const stripHtml = (value: string): string => {
|
|
|
font-size: 25rpx;
|
|
|
line-height: 34rpx;
|
|
|
}
|
|
|
+.share-button {
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
|
-.forward-button {
|
|
|
display: flex;
|
|
|
- flex-shrink: 0;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- gap: 8rpx;
|
|
|
- min-width: 136rpx;
|
|
|
- height: 56rpx;
|
|
|
- padding: 0 20rpx;
|
|
|
+
|
|
|
+ min-width: 126rpx;
|
|
|
+ height: 52rpx;
|
|
|
+ padding: 0 22rpx;
|
|
|
margin: 0;
|
|
|
- color: #318fe8;
|
|
|
- line-height: 56rpx;
|
|
|
- background: #eef8ff;
|
|
|
- border: none;
|
|
|
+
|
|
|
+ border: 1rpx solid rgba(47, 139, 230, 0.12);
|
|
|
border-radius: 999rpx;
|
|
|
+ background: #f1f8ff;
|
|
|
+
|
|
|
+ line-height: 1;
|
|
|
+ box-shadow: 0 4rpx 12rpx rgba(47, 139, 230, 0.08);
|
|
|
}
|
|
|
|
|
|
-.forward-button::after {
|
|
|
+.share-button::after {
|
|
|
border: none;
|
|
|
}
|
|
|
|
|
|
-.forward-button--hover {
|
|
|
- opacity: 0.72;
|
|
|
+.share-button__content {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ gap: 6rpx;
|
|
|
+
|
|
|
+ height: 100%;
|
|
|
+ line-height: 1;
|
|
|
}
|
|
|
|
|
|
-.forward-icon {
|
|
|
+.share-button__icon {
|
|
|
flex-shrink: 0;
|
|
|
- width: 28rpx;
|
|
|
- height: 28rpx;
|
|
|
+ line-height: 1;
|
|
|
}
|
|
|
|
|
|
-.forward-text {
|
|
|
- color: #318fe8;
|
|
|
+.share-button__text {
|
|
|
font-size: 26rpx;
|
|
|
font-weight: 500;
|
|
|
- line-height: 56rpx;
|
|
|
+ color: #2f8be6;
|
|
|
+ line-height: 1;
|
|
|
+}
|
|
|
+
|
|
|
+.share-button--hover {
|
|
|
+ opacity: 0.82;
|
|
|
}
|
|
|
</style>
|