|
|
@@ -89,7 +89,7 @@
|
|
|
<image
|
|
|
v-for="(photo, pIdx) in userDetail.photos"
|
|
|
:key="pIdx"
|
|
|
- :src="photo || '/static/close.png'"
|
|
|
+ :src="photo || 'http://115.190.125.125:9001/static-images/close.png'"
|
|
|
class="photo-item"
|
|
|
mode="aspectFill"
|
|
|
@click="previewPhoto(pIdx)"
|
|
|
@@ -194,7 +194,7 @@
|
|
|
<view v-if="loading" class="skeleton">加载中...</view>
|
|
|
<view v-else>
|
|
|
<view v-for="(u, idx) in filteredList" :key="u.userId || idx" class="card">
|
|
|
- <image :src="u.avatarUrl || '/static/close.png'" class="avatar" mode="aspectFill" @error="onImgErr(idx)"/>
|
|
|
+ <image :src="u.avatarUrl || 'http://115.190.125.125:9001/static-images/close.png'" class="avatar" mode="aspectFill" @error="onImgErr(idx)"/>
|
|
|
<view class="main" @click="showUserDetailByIndex(idx)">
|
|
|
<view class="row">
|
|
|
<text class="name">{{ u.nickname || '-' }}</text>
|
|
|
@@ -715,9 +715,9 @@ export default {
|
|
|
this.areaDisplayText = parts.length > 0 ? parts.join(' ') : '选择省市区'
|
|
|
},
|
|
|
getSafeAvatar(url){
|
|
|
- if(!url) return '/static/close.png'
|
|
|
+ if(!url) return 'http://115.190.125.125:9001/static-images/close.png'
|
|
|
const u = String(url)
|
|
|
- if(u.includes('example.com')) return '/static/close.png'
|
|
|
+ if(u.includes('example.com')) return 'http://115.190.125.125:9001/static-images/close.png'
|
|
|
return u
|
|
|
},
|
|
|
fmtScore(s){ return s ? Number(s).toFixed(1) : '0.0' },
|
|
|
@@ -770,7 +770,7 @@ export default {
|
|
|
|
|
|
const targetUserId = parseInt(user.userId);
|
|
|
const targetUserName = user.nickname || '用户';
|
|
|
- const targetUserAvatar = user.avatarUrl || '/static/close.png';
|
|
|
+ const targetUserAvatar = user.avatarUrl || 'http://115.190.125.125:9001/static-images/close.png';
|
|
|
|
|
|
console.log('准备打开聊天,参数:', {
|
|
|
targetUserId,
|
|
|
@@ -848,7 +848,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onImgErr(idx){
|
|
|
- this.$set(this.list[idx], 'avatarUrl', '/static/close.png')
|
|
|
+ this.$set(this.list[idx], 'avatarUrl', 'http://115.190.125.125:9001/static-images/close.png')
|
|
|
},
|
|
|
// 通过索引显示用户详情(跳转到新页面)
|
|
|
showUserDetailByIndex(index) {
|