修复部分客服聊天

dev
26947 2024-09-29 19:42:46 +08:00
parent d7e8e896fe
commit f85a850e11
2 changed files with 17 additions and 20 deletions

View File

@ -113,7 +113,7 @@ background: #ffffff; ">
const myuserid = ref(0);
onMounted(() => {
// console.log(route.query.uid)
console.log(route.query.uid)
uid.value = route.query.uid;
GetMyContent();

View File

@ -24,7 +24,7 @@
</view>
</view>
<view class="contentmessage">
<view @click="toPerson">
<view @click="toPerson(item.id)">
<image class="contentmessageimage"
:src="youavatar ? bindIcon(youavatar) : '../../static/images/icon/tu3-9.jpg'">
</image>
@ -80,7 +80,7 @@
</view>
</view>
<view @click="toPersonz">
<image class="mycontentmessageimage" :src="avatar"></image>
<image class="mycontentmessageimage" :src="myavatar"></image>
</view>
</view>
<view class="funcBox funcBoxT" v-if="visibleFuncBoxId === item.id"
@ -225,21 +225,16 @@
const title = ref("");
const uid = ref(0);
const myavatar = ref();
const myavatar = ref(proxy.$store.state.user.avatar);
const youavatar = ref();
var att = ref('hh')
//
var bottombox = ref('100');
var scrollto = ref()
var ifdisab = ref(false)
var avatar = ref('')
onShow(() => {
//$("#")
//
var loginUserInfo = uni.getStorageSync('loginUserInfo')
loginUserInfo = JSON.parse(loginUserInfo)
avatar.value =QNDomain + loginUserInfo.avatarInfo
console.log('头像',avatar.value)
const getuser = GetListid().then(res => {
myuserid.value = res;
console.log("党情登录用户" + myuserid.value)
@ -259,9 +254,9 @@
const storedUserInfo = res.data;
uid.value = storedUserInfo.friendid;
title.value = storedUserInfo.title;
myavatar.value = storedUserInfo.myavatar;
// myavatar.value = storedUserInfo.myavatar;
youavatar.value = storedUserInfo.youavatar;
console.log('User info retrieved successfully:', storedUserInfo.myavatar);
console.log('User info retrieved successfully:', res.data);
},
fail: function(err) {
console.error('Failed to retrieve user info:', err);
@ -272,15 +267,14 @@
})
//
const toPerson = () => {
uni.navigateTo({
url: "/pages/Friend/addfruebd?id=" + uid.value
})
// uni.navigateTo({
// url: "/pages/Friend/addfruebd?id=" + uid.value
// })
};
const toPersonz = () => {
uni.
navigateTo({
url: "/pages/Friend/addfruebd?id=" + myuserid.value
})
// uni.navigateTo({
// url: "/pages/Friend/addfruebd?id=" + myuserid.value
// })
};
//
const previewImage = (url) => {
@ -600,9 +594,12 @@
const QNDomain = store.state.user.QNDomain;
function bindIcon(icon) {
return QNDomain + icon;
}
//
var loginUserInfo = uni.getStorageSync('loginUserInfo')
const avatar =QNDomain + loginUserInfo.avatarInfo