|
@@ -11,23 +11,26 @@
|
|
|
></image>
|
|
|
<view class="card_suffix" @click.stop="">
|
|
|
<view class="card-num-view">
|
|
|
- <image class="icon_view" src="/static/browse.svg"></image>
|
|
|
+ <image class="icon_view" src="/static/icons/browse.svg"></image>
|
|
|
<text>{{ item.views }} </text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="card-bottm flex items-center">
|
|
|
- <view class="card-bottm-main">
|
|
|
+ <view class="card-bottom flex items-center">
|
|
|
+ <view class="card-bottom-main">
|
|
|
<view class="flex-1">
|
|
|
<text class="card-title">{{ item.title }}</text>
|
|
|
</view>
|
|
|
<text class="card_time">{{ formatTime(item.updateTime) }}</text>
|
|
|
</view>
|
|
|
- <view class="card_data_text" @click="goDataPage(item)">
|
|
|
- <image class="icon_data" src="/static/data-view.svg"></image>
|
|
|
+ <view class="card-bottom-icon" @click="goDataPage(item)">
|
|
|
+ <image class="icon" src="/static/icons/data-view.svg"></image>
|
|
|
</view>
|
|
|
- <view>
|
|
|
+ <view class="card-bottom-icon" @click="copyLink(item)">
|
|
|
+ <image class="icon" src="/static/icons/link.svg"></image>
|
|
|
+ </view>
|
|
|
+ <view class="card-bottom-icon">
|
|
|
<button
|
|
|
:data-record="item"
|
|
|
open-type="share"
|
|
@@ -135,6 +138,18 @@ export default {
|
|
|
url: "/pages/index/data?id=" + data._id,
|
|
|
});
|
|
|
},
|
|
|
+ copyLink(record) {
|
|
|
+ const url = `https://show.3dqueen.cloud/share.html?id=${record._id}`;
|
|
|
+ uni.setClipboardData({
|
|
|
+ data: url,
|
|
|
+ success: function () {
|
|
|
+ uni.showToast({
|
|
|
+ title: "链接已复制",
|
|
|
+ icon: "success",
|
|
|
+ });
|
|
|
+ },
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -167,18 +182,7 @@ export default {
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
-.card_data_text {
|
|
|
- display: inline-block;
|
|
|
- margin-right: 30rpx;
|
|
|
- border-radius: 4rpx;
|
|
|
- padding: 2rpx 10rpx;
|
|
|
-}
|
|
|
-.icon_data {
|
|
|
- width: 36rpx;
|
|
|
- height: 36rpx;
|
|
|
- padding: 10rpx;
|
|
|
- line-height: 1;
|
|
|
-}
|
|
|
+
|
|
|
.card-num-view {
|
|
|
display: inline-flex;
|
|
|
align-items: center;
|
|
@@ -197,13 +201,13 @@ export default {
|
|
|
color: #fff;
|
|
|
margin-right: 6rpx;
|
|
|
}
|
|
|
-.card-bottm {
|
|
|
+.card-bottom {
|
|
|
padding: 14rpx 20rpx;
|
|
|
}
|
|
|
-.card-bottm-main {
|
|
|
+.card-bottom-main {
|
|
|
flex: 1;
|
|
|
overflow: hidden;
|
|
|
- margin-right: 50rpx;
|
|
|
+ margin-right: 20rpx;
|
|
|
}
|
|
|
|
|
|
.card-title {
|
|
@@ -221,11 +225,19 @@ export default {
|
|
|
font-size: 24rpx;
|
|
|
color: #999;
|
|
|
}
|
|
|
+.card-bottom-icon {
|
|
|
+ margin-left: 20rpx;
|
|
|
+}
|
|
|
+.icon {
|
|
|
+ width: 36rpx;
|
|
|
+ height: 36rpx;
|
|
|
+ padding: 10rpx;
|
|
|
+ line-height: 1;
|
|
|
+}
|
|
|
.card-share-view {
|
|
|
- /* margin-right: 20rpx; */
|
|
|
padding: 10rpx;
|
|
|
color: #41969c !important;
|
|
|
- font-size: 36upx !important;
|
|
|
+ font-size: 36rpx !important;
|
|
|
font-family: texticons;
|
|
|
line-height: 1 !important;
|
|
|
}
|