|
|
@@ -7,7 +7,7 @@
|
|
|
<view class="info-top adfac">
|
|
|
<image class="avatar" :src="userInfo?.avatarPath||'https://oss.familydaf.cn/sxsnfile/20251218/ad5a1a788b6944358b0bc93e2506bf17.png'"></image>
|
|
|
<view class="name">Hi~ {{userInfo?.realName||userInfo?.name||''}}</view>
|
|
|
- <view class="level adfac" @click="handleTurnPage('/pagesMy/levelDetail')"><text>Lv </text><text>{{userInfo?.userLevel||0}}</text></view>
|
|
|
+ <view class="level adfac" @click="handleTurnPage('/pagesMy/levelDetail')"><text>Lv </text><text>{{userLevel}}</text></view>
|
|
|
</view>
|
|
|
<view class="info-num">收获勋章:{{numInfo?.myMedals||0}} <text>枚</text></view>
|
|
|
<view class="info-memo">共参与<text>{{numInfo?.activityCount||0}}</text>次公益活动,累计义工时长<text>{{numInfo?.volunteerHours||0}}</text>小时</view>
|
|
|
@@ -80,7 +80,8 @@
|
|
|
import { onLoad } from '@dcloudio/uni-app'
|
|
|
import { ref, getCurrentInstance } from 'vue'
|
|
|
const { proxy } = getCurrentInstance()
|
|
|
-
|
|
|
+
|
|
|
+ const userLevel = ref(0)
|
|
|
const userInfo = ref(null)
|
|
|
const numInfo = ref(null)
|
|
|
const queryParams = ref({
|
|
|
@@ -381,6 +382,7 @@
|
|
|
try{
|
|
|
userInfo.value = uni.getStorageSync('isFamilyMember')?JSON.parse(uni.getStorageSync('familyMemberInfo')):JSON.parse(uni.getStorageSync('userInfo'));
|
|
|
numInfo.value = options.numInfo&&JSON.parse(options.numInfo);
|
|
|
+ userLevel.value = options.userLevel||0;
|
|
|
queryParams.value.userId = userInfo.value&&userInfo.value.id;
|
|
|
if(uni.getStorageSync('isFamilyMember')) queryParams.value.memberId = userInfo.value&&userInfo.value.id;
|
|
|
getList()
|