sdwer
This commit is contained in:
parent
0dbfaea026
commit
1258138ba9
@ -95,20 +95,21 @@ export default {
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
this.loadProfile();
|
||||
},
|
||||
methods: {
|
||||
loadProfile() {
|
||||
try {
|
||||
const is_personal_information_complete = uni.getStorageSync('is_personal_information_complete');
|
||||
if (is_personal_information_complete) {
|
||||
// const is_personal_information_complete = uni.getStorageSync('is_personal_information_complete');
|
||||
// if (is_personal_information_complete) {
|
||||
request('xcx/get_user_info', 'GET').then(res => {
|
||||
this.form = {
|
||||
...this.form,
|
||||
...res
|
||||
};
|
||||
});
|
||||
}
|
||||
// }
|
||||
} catch (error) {
|
||||
console.warn('加载个人信息失败', error);
|
||||
}
|
||||
|
||||
@ -11,18 +11,19 @@
|
||||
<view class="profile-info">
|
||||
<view class="title-row">
|
||||
<text class="name">{{ userInfo.username }}</text>
|
||||
|
||||
</view>
|
||||
<view class="meta-row">
|
||||
<text class="meta-item">加入于 2025-01-15</text>
|
||||
<view class="vip-badge">
|
||||
<text>品鉴会员</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="meta-row">
|
||||
<text class="meta-item">加入于 2025-01-15</text>
|
||||
</view>
|
||||
<view class="meta-row">
|
||||
<text class="meta-item">上海市浦东新区张江高科技园区</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="edit-btn" @click="navigateTo('/pages/my/editInfo/index')">编辑资料</view>
|
||||
<view class="edit-btn" @click="toEditInfoPage()">编辑资料</view>
|
||||
</view>
|
||||
<view class="stats-grid">
|
||||
<view class="stat-card" v-for="item in stats" :key="item.label"
|
||||
@ -700,6 +701,11 @@ export default {
|
||||
if (item.label === '当前积分') {
|
||||
this.navigateTo('/pages/pointsLog/index');
|
||||
}
|
||||
},
|
||||
toEditInfoPage() {
|
||||
uni.navigateTo({
|
||||
url: '/pages/my/editInfo/index'
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -879,7 +885,7 @@ export default {
|
||||
|
||||
.signin-btn {
|
||||
width: 100%;
|
||||
padding: 24rpx 0;
|
||||
// padding: 24rpx 0;
|
||||
border-radius: 999rpx;
|
||||
background: linear-gradient(135deg, #8b40ff 0%, #ff3c8d 100%);
|
||||
color: #ffffff;
|
||||
@ -1000,7 +1006,7 @@ export default {
|
||||
position: absolute;
|
||||
right: 32rpx;
|
||||
top: 40rpx;
|
||||
padding: 12rpx 28rpx;
|
||||
padding: 10rpx 24rpx;
|
||||
border-radius: 999rpx;
|
||||
background-color: rgba(255, 255, 255, 0.15);
|
||||
border: 2rpx solid rgba(255, 255, 255, 0.5);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user