style:修改个人设置页面和藏品详细页的样式
This commit is contained in:
parent
d992462b06
commit
7921d22b7d
@ -584,6 +584,23 @@ const hiddenBlockNumber = computed(() => {
|
|||||||
return `${str.substring(0, 6)}******`;
|
return `${str.substring(0, 6)}******`;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 隐藏交易哈希(保留前6位 + 6个*)
|
||||||
|
const hiddenTxHash = computed(() => {
|
||||||
|
const hash = assetData.value.tx_hash;
|
||||||
|
if (!hash) return '******';
|
||||||
|
if (hash.length <= 6) return hash + '******';
|
||||||
|
return `${hash.substring(0, 6)}******`;
|
||||||
|
});
|
||||||
|
|
||||||
|
// 隐藏区块链编号(保留前6位 + 6个*)
|
||||||
|
const hiddenBlockNumber = computed(() => {
|
||||||
|
const num = assetData.value.block_number;
|
||||||
|
if (!num) return '******';
|
||||||
|
const str = String(num);
|
||||||
|
if (str.length <= 6) return str + '******';
|
||||||
|
return `${str.substring(0, 6)}******`;
|
||||||
|
});
|
||||||
|
|
||||||
// 复制完整哈希
|
// 复制完整哈希
|
||||||
const copyHash = () => {
|
const copyHash = () => {
|
||||||
const hash = assetData.value.tx_hash;
|
const hash = assetData.value.tx_hash;
|
||||||
@ -627,7 +644,6 @@ const loadData = async () => {
|
|||||||
isLiked.value = res.data.asset.is_liked || res.data.is_liked || false;
|
isLiked.value = res.data.asset.is_liked || res.data.is_liked || false;
|
||||||
likeCount.value = asset.like_count || 0;
|
likeCount.value = asset.like_count || 0;
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
// 加载贴纸素材
|
// 加载贴纸素材
|
||||||
if (asset.material_relations || asset.materials) {
|
if (asset.material_relations || asset.materials) {
|
||||||
loadStickersForAsset(asset.material_relations || asset.materials)
|
loadStickersForAsset(asset.material_relations || asset.materials)
|
||||||
@ -635,9 +651,6 @@ const loadData = async () => {
|
|||||||
|
|
||||||
if (asset.remain_time > 0) {
|
if (asset.remain_time > 0) {
|
||||||
remainSeconds.value = asset.remain_time;
|
remainSeconds.value = asset.remain_time;
|
||||||
=======
|
|
||||||
if (asset.exhibition_expire_at) {
|
|
||||||
>>>>>>> ebe57bc078a35ed4c13ccf966c8f7b5af6327c61
|
|
||||||
startCountdown();
|
startCountdown();
|
||||||
}
|
}
|
||||||
console.log(res.data)
|
console.log(res.data)
|
||||||
@ -784,15 +797,11 @@ onLoad((options) => {
|
|||||||
assetIdParam.value = options?.asset_id || '';
|
assetIdParam.value = options?.asset_id || '';
|
||||||
orderIdParam.value = options?.order_id || '';
|
orderIdParam.value = options?.order_id || '';
|
||||||
fromParam.value = options?.from || '';
|
fromParam.value = options?.from || '';
|
||||||
<<<<<<< HEAD
|
|
||||||
studioKindParam.value = options?.studio_kind || '';
|
studioKindParam.value = options?.studio_kind || '';
|
||||||
craftConfirmMode.value = fromParam.value === 'craft_confirm';
|
craftConfirmMode.value = fromParam.value === 'craft_confirm';
|
||||||
if (craftConfirmMode.value) {
|
if (craftConfirmMode.value) {
|
||||||
loadCraftConfirm();
|
loadCraftConfirm();
|
||||||
}
|
}
|
||||||
=======
|
|
||||||
loadCurrentUser();
|
|
||||||
>>>>>>> ebe57bc078a35ed4c13ccf966c8f7b5af6327c61
|
|
||||||
});
|
});
|
||||||
|
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
@ -1172,6 +1181,30 @@ onUnmounted(() => {
|
|||||||
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
|
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 收益 */
|
||||||
|
.earnings-area {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10rpx;
|
||||||
|
background: linear-gradient(to bottom right,
|
||||||
|
#F0E4B1 0%,
|
||||||
|
#F08399 50%,
|
||||||
|
#B94E73 100%);
|
||||||
|
border-radius: 999rpx;
|
||||||
|
box-shadow:
|
||||||
|
0 4rpx 12rpx rgba(255, 143, 158, 0.2),
|
||||||
|
inset 0 2rpx 4rpx rgba(255, 255, 255, 0.4);
|
||||||
|
padding: 10rpx 28rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.earnings-text {
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #e6e6e6;
|
||||||
|
font-family: 'yt', sans-serif;
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
|
}
|
||||||
|
|
||||||
/* 倒计时 */
|
/* 倒计时 */
|
||||||
.countdown-area {
|
.countdown-area {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -1522,6 +1555,7 @@ onUnmounted(() => {
|
|||||||
margin-bottom: 8rpx;
|
margin-bottom: 8rpx;
|
||||||
/* transform: scale(1.2); */
|
/* transform: scale(1.2); */
|
||||||
}
|
}
|
||||||
|
<<<<<<< HEAD
|
||||||
|
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
.craft-confirm-scroll {
|
.craft-confirm-scroll {
|
||||||
@ -1597,4 +1631,11 @@ onUnmounted(() => {
|
|||||||
font-size: 16rpx;
|
font-size: 16rpx;
|
||||||
}
|
}
|
||||||
>>>>>>> ebe57bc078a35ed4c13ccf966c8f7b5af6327c61
|
>>>>>>> ebe57bc078a35ed4c13ccf966c8f7b5af6327c61
|
||||||
|
=======
|
||||||
|
.visit-text{
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-size:16rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
>>>>>>> af74dd5 (style:修改个人设置页面和藏品详细页的样式)
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
<view class="profile-container">
|
<view class="profile-container">
|
||||||
<!-- 背景图片 - 固定在容器上 -->
|
<!-- 背景图片 - 固定在容器上 -->
|
||||||
<image class="background-image" src="/static/square/squearbj.png" mode="aspectFill"></image>
|
<image class="background-image" src="/static/square/squearbj.png" mode="aspectFill"></image>
|
||||||
|
|
||||||
<scroll-view class="profile-scroll" scroll-y :show-scrollbar="false" :enable-back-to-top="true">
|
<scroll-view class="profile-scroll" scroll-y :show-scrollbar="false" :enable-back-to-top="true">
|
||||||
<!-- 上半部分:用户信息卡片 -->
|
<!-- 上半部分:用户信息卡片 -->
|
||||||
<view class="top-section">
|
<view class="top-section">
|
||||||
@ -1322,7 +1321,6 @@ onShow(() => {
|
|||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
/* gap: 30rpx; */
|
/* gap: 30rpx; */
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.avatar-container {
|
.avatar-container {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user