|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<view class="profile-container"> |
|
|
|
<BackButton /> |
|
|
|
<BackButton /> |
|
|
|
<view |
|
|
|
class="user-top" |
|
|
|
:style="{ |
|
|
@ -10,7 +10,10 @@ |
|
|
|
}" |
|
|
|
> |
|
|
|
<!-- 状态栏占位 --> |
|
|
|
<view class="status-bar-placeholder" :style="{ paddingTop: statusBarHeight + 'px' }"></view> |
|
|
|
<view |
|
|
|
class="status-bar-placeholder" |
|
|
|
:style="{ paddingTop: statusBarHeight + 'px' }" |
|
|
|
></view> |
|
|
|
<!-- 顶部导航 --> |
|
|
|
<view class="header"> |
|
|
|
<!-- <view class="back-btn" @click="goBack"> |
|
|
@ -62,11 +65,11 @@ |
|
|
|
<view class="stat-label">关注</view> |
|
|
|
</view> |
|
|
|
<view class="stat-item"> |
|
|
|
<view class="stat-number">{{ userStats.followers || "0" }}</view> |
|
|
|
<view class="stat-number">{{ userInfo.followers || "0" }}</view> |
|
|
|
<view class="stat-label">粉丝</view> |
|
|
|
</view> |
|
|
|
<view class="stat-item"> |
|
|
|
<view class="stat-number">{{ userStats.likes || "0" }}</view> |
|
|
|
<view class="stat-number">{{ userInfo.likeCount || "0" }}</view> |
|
|
|
<view class="stat-label">点赞</view> |
|
|
|
</view> |
|
|
|
<view class="stat-item"> |
|
|
@ -81,33 +84,39 @@ |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 数字资产权益 --> |
|
|
|
<view class="digital-assets"> |
|
|
|
<view class="memorial-divider" style="margin-bottom: 0;padding-top: 60rpx;"> |
|
|
|
<view |
|
|
|
class="memorial-divider" |
|
|
|
style="margin-bottom: 0; padding-top: 60rpx" |
|
|
|
> |
|
|
|
<view class="divider-line"></view> |
|
|
|
<view class="divider-text">我的数字资产权益</view> |
|
|
|
<view class="divider-line"></view> |
|
|
|
</view> |
|
|
|
<view class="action-box"> |
|
|
|
<image |
|
|
|
@click="showExchangePopup" |
|
|
|
src="https://des.dayunyuanjian.cn/data/2025/09/01/3ebc09d5-f526-40ab-b698-d45de81034b7.png" |
|
|
|
style="width: 233rpx; height: 40rpx" |
|
|
|
></image> |
|
|
|
<view class="column-divider"></view> |
|
|
|
<image |
|
|
|
@click="showActivateAgentPopup" |
|
|
|
src="https://des.dayunyuanjian.cn/data/2025/09/01/6215d940-a57d-4a4f-a69b-df6770132d12.png" |
|
|
|
style="width: 200rpx; height: 43.6rpx" |
|
|
|
></image> |
|
|
|
</view> |
|
|
|
<view class="action-box"> |
|
|
|
<image |
|
|
|
@click="showExchangePopup" |
|
|
|
src="https://des.dayunyuanjian.cn/data/2025/09/01/3ebc09d5-f526-40ab-b698-d45de81034b7.png" |
|
|
|
style="width: 233rpx; height: 40rpx" |
|
|
|
></image> |
|
|
|
<view class="column-divider"></view> |
|
|
|
<image |
|
|
|
@click="showActivateAgentPopup" |
|
|
|
src="https://des.dayunyuanjian.cn/data/2025/09/01/6215d940-a57d-4a4f-a69b-df6770132d12.png" |
|
|
|
style="width: 200rpx; height: 43.6rpx" |
|
|
|
></image> |
|
|
|
</view> |
|
|
|
<!-- 有数据时显示 --> |
|
|
|
<view v-if="assetList.length > 0" class="asset-content"> |
|
|
|
<!-- 单个数据时铺满显示 --> |
|
|
|
<template v-if="assetList.length === 1"> |
|
|
|
<view style="margin-bottom: 20rpx;" class="asset-card-single" @click="handleAction(assetList[0])"> |
|
|
|
<view |
|
|
|
style="margin-bottom: 20rpx" |
|
|
|
class="asset-card-single" |
|
|
|
@click="handleAction(assetList[0])" |
|
|
|
> |
|
|
|
<view class="single-card-wrapper"> |
|
|
|
<image |
|
|
|
:src="showImgJdsz(assetList[0].image)" |
|
|
@ -227,14 +236,17 @@ |
|
|
|
|
|
|
|
<!-- 有感商品 --> |
|
|
|
<view class="feeling-goods"> |
|
|
|
<view class="memorial-divider" style="margin-bottom: 0;padding-top: 10rpx;"> |
|
|
|
<view class="divider-line"></view> |
|
|
|
<view class="divider-text">我的有感商品</view> |
|
|
|
<view class="divider-line"></view> |
|
|
|
</view> |
|
|
|
<view |
|
|
|
class="memorial-divider" |
|
|
|
style="margin-bottom: 0; padding-top: 10rpx" |
|
|
|
> |
|
|
|
<view class="divider-line"></view> |
|
|
|
<view class="divider-text">我的有感商品</view> |
|
|
|
<view class="divider-line"></view> |
|
|
|
</view> |
|
|
|
<view class="goods-card"> |
|
|
|
<image |
|
|
|
@click="gotoPath('/subPackages/haveFeeling/list')" |
|
|
|
@click="gotoPath('/subPackages/haveFeeling/list')" |
|
|
|
:src=" |
|
|
|
showImg('/uploads/20250729/a010feb51e3f195563fb440f9235cc8b.png') |
|
|
|
" |
|
|
@ -259,7 +271,7 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 数字资产纪念册 --> |
|
|
|
<view class="memorial-section" style="padding-top: 10rpx;"> |
|
|
|
<view class="memorial-section" style="padding-top: 10rpx"> |
|
|
|
<view class="memorial-divider"> |
|
|
|
<view class="divider-line"></view> |
|
|
|
<view class="divider-text">数字资产收藏夹</view> |
|
|
@ -395,7 +407,7 @@ export default { |
|
|
|
CustomTabBar, |
|
|
|
MusicControl, |
|
|
|
ActivateAgentPopup, |
|
|
|
BackButton |
|
|
|
BackButton, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -416,15 +428,15 @@ export default { |
|
|
|
title: "购物车", |
|
|
|
icon: "", |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
title: "我的收藏", |
|
|
|
icon: "", |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: "我的积分", |
|
|
|
icon: "", |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: "我的积分", |
|
|
|
icon: "", |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: "地址管理", |
|
|
|
icon: "", |
|
|
@ -443,14 +455,14 @@ export default { |
|
|
|
assetList: [], |
|
|
|
agentList: [], |
|
|
|
orderStatus: [], |
|
|
|
statusBarHeight:0 |
|
|
|
statusBarHeight: 0, |
|
|
|
}; |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
// 页面加载时的初始化逻辑 |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.setStatusBarHeight() |
|
|
|
this.setStatusBarHeight(); |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
console.log(uni.getStorageSync("userInfo")); |
|
|
@ -468,15 +480,15 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
setStatusBarHeight() { |
|
|
|
try { |
|
|
|
const systemInfo = uni.getSystemInfoSync(); |
|
|
|
this.statusBarHeight = systemInfo.statusBarHeight || 0; |
|
|
|
} catch (e) { |
|
|
|
// 开发工具或获取失败时使用默认值 |
|
|
|
this.statusBarHeight = 0; |
|
|
|
} |
|
|
|
}, |
|
|
|
setStatusBarHeight() { |
|
|
|
try { |
|
|
|
const systemInfo = uni.getSystemInfoSync(); |
|
|
|
this.statusBarHeight = systemInfo.statusBarHeight || 0; |
|
|
|
} catch (e) { |
|
|
|
// 开发工具或获取失败时使用默认值 |
|
|
|
this.statusBarHeight = 0; |
|
|
|
} |
|
|
|
}, |
|
|
|
getOrderStatus() { |
|
|
|
this.Post({}, "/framework/order/orderCountByStatus", "DES").then( |
|
|
|
(res) => { |
|
|
@ -606,13 +618,12 @@ export default { |
|
|
|
url: "/subPackages/user/collection", |
|
|
|
}); |
|
|
|
break; |
|
|
|
case "我的积分": |
|
|
|
uni.navigateTo({ |
|
|
|
url: "/subPackages/points/index", |
|
|
|
}); |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
case "我的积分": |
|
|
|
uni.navigateTo({ |
|
|
|
url: "/subPackages/points/index", |
|
|
|
}); |
|
|
|
break; |
|
|
|
|
|
|
|
case "帮助与客服": |
|
|
|
uni.showModal({ |
|
|
|
title: "客服电话", |
|
|
@ -649,21 +660,21 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
handleAction(item) { |
|
|
|
console.log(item) |
|
|
|
console.log(item); |
|
|
|
if (item.type == 1) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: "/subPackages/memorialAlbum/detail?id=" + item.childId, |
|
|
|
}); |
|
|
|
} else if (item.type == 2) { |
|
|
|
if (item.isVerify == 0) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/subPackages/orderQy/confrim?goodsId=${item.goodsId}&orderChildId=${item.childId}`, |
|
|
|
}); |
|
|
|
} else { |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/subPackages/orderQy/confrimWriteOff?goodsId=${item.goodsId}&orderChildId=${item.childId}`, |
|
|
|
}); |
|
|
|
} |
|
|
|
if (item.isVerify == 0) { |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/subPackages/orderQy/confrim?goodsId=${item.goodsId}&orderChildId=${item.childId}`, |
|
|
|
}); |
|
|
|
} else { |
|
|
|
uni.navigateTo({ |
|
|
|
url: `/subPackages/orderQy/confrimWriteOff?goodsId=${item.goodsId}&orderChildId=${item.childId}`, |
|
|
|
}); |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.toJdszWx( |
|
|
|
"pages/user/order/sceneOrderInfo/index?id=" + item.thirdOrderId |
|
|
@ -733,10 +744,10 @@ export default { |
|
|
|
}); |
|
|
|
break; |
|
|
|
default: |
|
|
|
uni.showToast({ |
|
|
|
title:'功能暂未开放', |
|
|
|
icon:'none' |
|
|
|
}) |
|
|
|
uni.showToast({ |
|
|
|
title: "功能暂未开放", |
|
|
|
icon: "none", |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 纪念册卡片点击 |
|
|
@ -807,8 +818,8 @@ export default { |
|
|
|
::v-deep .uni-popup { |
|
|
|
z-index: 999 !important; |
|
|
|
} |
|
|
|
::v-deep .back-btn{ |
|
|
|
background-color: transparent !important; |
|
|
|
::v-deep .back-btn { |
|
|
|
background-color: transparent !important; |
|
|
|
} |
|
|
|
view { |
|
|
|
box-sizing: border-box; |
|
|
@ -1296,9 +1307,9 @@ view { |
|
|
|
margin-bottom: 16rpx; |
|
|
|
font-weight: bold; |
|
|
|
line-height: 1.4; |
|
|
|
text-overflow: ellipsis; |
|
|
|
overflow: hidden; |
|
|
|
white-space: nowrap; |
|
|
|
text-overflow: ellipsis; |
|
|
|
overflow: hidden; |
|
|
|
white-space: nowrap; |
|
|
|
} |
|
|
|
|
|
|
|
.asset-action { |
|
|
|