cyl/master-0822
wangxia 3 months ago
parent 204ff32e8c
commit f8ca3098f9

@ -561,7 +561,7 @@
"backgroundColor": "#ededed", "backgroundColor": "#ededed",
"backgroundColorTop": "#ededed", "backgroundColorTop": "#ededed",
"backgroundColorBottom": "#ededed", "backgroundColorBottom": "#ededed",
"navigationBarTitleText": "聊天" "navigationBarTitleText": " "
} }
}, },
// { // {

@ -4,7 +4,7 @@
:style="{ color: color, fontSize: fontSize + 'px' }" :style="{ color: color, fontSize: fontSize + 'px' }"
> >
{{ appellation }} {{ appellation }}
<span v-if="subtitle" style="color: orange;font-size:14px">{{ subtitle }}</span> <span v-if="subtitle" style="color: orange;font-size:13px">{{ subtitle }}</span>
</span </span
> >
</template> </template>

@ -293,7 +293,6 @@ $cellHeight: 72px;
position: relative; position: relative;
transition: transform 0.3s; transition: transform 0.3s;
background-color: #fff; background-color: #fff;
padding: 0 10px;
&.show-action-list { &.show-action-list {
transform: translateX(-200px); transform: translateX(-200px);
} }

@ -426,6 +426,9 @@ const setNavTitle = () => {
const subTitle = `(${team?.memberCount || 0})` const subTitle = `(${team?.memberCount || 0})`
title.value = (team?.name || '') + subTitle title.value = (team?.name || '') + subTitle
} }
uni.setNavigationBarTitle({
title: title.value,
});
} }
onShow(function () { onShow(function () {

@ -115,7 +115,7 @@
" :goto-user-card="true" /> " :goto-user-card="true" />
<div class="msg-content"> <div class="msg-content">
<div class="msg-name 2" v-if="!props.msg.isSelf"> <div class="msg-name 2" v-if="!props.msg.isSelf">
{{ appellation }} <span v-if="subtitle" style="color: orange;font-size:14px">{{ subtitle }}</span> {{ appellation }} <span v-if="subtitle" style="color: orange;">{{ subtitle }}</span>
</div> </div>
<MessageBubble :msg="props.msg" :tooltip-visible="true" :bg-visible="true"> <MessageBubble :msg="props.msg" :tooltip-visible="true" :bg-visible="true">
<ReplyMessage v-if="!!replyMsg" :replyMsg="replyMsg"></ReplyMessage> <ReplyMessage v-if="!!replyMsg" :replyMsg="replyMsg"></ReplyMessage>

@ -8,11 +8,17 @@
<div class="item-left">{{ t("addBlacklist") }}</div> <div class="item-left">{{ t("addBlacklist") }}</div>
<switch :checked="isInBlacklist" @change="(checked) => handleSwitchChange(checked)" /> <switch :checked="isInBlacklist" @change="(checked) => handleSwitchChange(checked)" />
</div> </div>
<div class="userInfo-item">
<div class="item-left">{{ "客服手机号" }}</div>
<div class="g_flex_row_end" @click="takeTel">
<div class="">{{ userInfo.tel || '-' }}</div>
</div>
</div>
</div> </div>
<div class="button" :style="{ marginTop: '10px' }" @click="addFriend"> <!-- <div class="button" :style="{ marginTop: '10px' }" @click="addFriend">
{{ t("addFriendText") }} {{ t("addFriendText") }}
</div> </div> -->
</template> </template>
<template v-else> <template v-else>
<div class="userInfo-item-wrapper"> <div class="userInfo-item-wrapper">
@ -84,6 +90,7 @@ import type { Relation } from "@xkit-yx/im-store-v2";
import { V2NIMUser } from "nim-web-sdk-ng/dist/v2/NIM_UNIAPP_SDK/V2NIMUserService"; import { V2NIMUser } from "nim-web-sdk-ng/dist/v2/NIM_UNIAPP_SDK/V2NIMUserService";
import { V2NIMConst } from "nim-web-sdk-ng/dist/v2/NIM_UNIAPP_SDK"; import { V2NIMConst } from "nim-web-sdk-ng/dist/v2/NIM_UNIAPP_SDK";
import Icon from "../../../components/Icon.vue"; import Icon from "../../../components/Icon.vue";
import G from "../../../../../utils/ajax.js";
const userInfo = ref<V2NIMUser>(); const userInfo = ref<V2NIMUser>();
const relation = ref<Relation>("stranger"); const relation = ref<Relation>("stranger");
@ -111,8 +118,18 @@ onLoad((props) => {
relation.value = _relation; relation.value = _relation;
isInBlacklist.value = _isInBlacklist; isInBlacklist.value = _isInBlacklist;
}); });
console.log("userInfo.valueuserInfo.valueuserInfo.valueuserInfo.value", userInfo.value);
console.log(G, "123131231231232");
G.Post("/wyyx/user/findUser", { accid: userInfo.value.accountId }, (res) => {
console.log("resresresresresres", res);
userInfo.value.tel = res.data.tel;
});
}); });
function takeTel() {
uni.makePhoneCall({
phoneNumber: userInfo.value.tel,
});
}
const handleSwitchChange = async (e: any) => { const handleSwitchChange = async (e: any) => {
const isAdd = e.detail.value; const isAdd = e.detail.value;
try { try {

Loading…
Cancel
Save