|
@@ -30,7 +30,10 @@
|
|
|
<!-- 对方为用户显示预约看房按钮 -->
|
|
|
<div
|
|
|
@tap="sendMsgHandle('预约看房')"
|
|
|
- v-if="(!infoData.flag && (userType === 0 || loginType == 1)) || (infoData.flag && infoData.isShowSeeHouseBtn == 'true')"
|
|
|
+ v-if="
|
|
|
+ (!infoData.flag && (userType === 0 || loginType == 1)) ||
|
|
|
+ (infoData.flag && infoData.isShowSeeHouseBtn == 'true')
|
|
|
+ "
|
|
|
>
|
|
|
<!-- 电话沟通按钮状态根据是否聊过天判断 -->
|
|
|
<template v-if="messageList && messageList.length > 0">
|
|
@@ -343,7 +346,7 @@ import { isPC, isH5, isMobile } from "../../../utils/env";
|
|
|
import { IAudioContext } from "../../../interface";
|
|
|
import config from "@/request/config";
|
|
|
import value from "../../../../uni_modules/uview-ui/components/u-text/value";
|
|
|
-
|
|
|
+import { onLoad } from "@dcloudio/uni-app"; // 该方法只能用在父组件内,子组件内不生效
|
|
|
interface IEmits {
|
|
|
(e: "closeInputToolBar"): void;
|
|
|
(e: "handleEditor", message: IMessageModel, type: string): void;
|
|
@@ -392,7 +395,6 @@ const scrollButtonInstanceRef = ref<InstanceType<typeof ScrollButton>>();
|
|
|
const historyFirstMessageID = ref<string>("");
|
|
|
let selfAddValue = 0;
|
|
|
const userType = Number(uni.getStorageSync("userType"));
|
|
|
-console.log("userType:" + userType)
|
|
|
|
|
|
// audio control
|
|
|
const broadcastNewAudioSrc = ref<string>("");
|
|
@@ -415,7 +417,6 @@ const scrollToBottom = () => {
|
|
|
clearTimeout(timer);
|
|
|
}, 300);
|
|
|
};
|
|
|
-
|
|
|
// 监听回调函数
|
|
|
const onCurrentConversationIDUpdated = (conversationID: string) => {
|
|
|
currentConversationID.value = conversationID;
|
|
@@ -431,7 +432,7 @@ const ShowDialogClose = () => {
|
|
|
showDialog.value = false;
|
|
|
};
|
|
|
const loginType = ref(uni.getStorageSync("loginType"));
|
|
|
-console.log("loginType:" + loginType)
|
|
|
+console.log("loginType:" + loginType);
|
|
|
onMounted(() => {
|
|
|
// 消息列表监听
|
|
|
TUIStore.watch(StoreName.CHAT, {
|
|
@@ -471,6 +472,15 @@ const handelScrollListScroll = throttle(
|
|
|
500,
|
|
|
{ leading: true }
|
|
|
);
|
|
|
+function getParamValue(paramName) {
|
|
|
+ const regExp = new RegExp("[?&]" + paramName + "=([^&#]*)");
|
|
|
+ const results = regExp.exec(window.location.href);
|
|
|
+ if (results) {
|
|
|
+ return decodeURIComponent(results[1]);
|
|
|
+ } else {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
// 各种消息处理
|
|
|
const sendMsgHandle = (title) => {
|
|
@@ -490,7 +500,7 @@ const sendMsgHandle = (title) => {
|
|
|
webUni.webView.navigateTo({
|
|
|
url:
|
|
|
"/packageHouse/user/house-manage/subscribe-house?inviteeId=" +
|
|
|
- props.infoData.shopUserId,
|
|
|
+ getParamValue("recruitUserId"),
|
|
|
});
|
|
|
}
|
|
|
};
|
|
@@ -528,7 +538,6 @@ function getGlobalAudioContext(
|
|
|
|
|
|
async function onMessageListUpdated(list: IMessageModel[]) {
|
|
|
observer?.disconnect();
|
|
|
- console.log(1111123123213);
|
|
|
messageList.value = list
|
|
|
.filter((message) => !message.isDeleted)
|
|
|
.map((message) => {
|