|
@@ -138,6 +138,9 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view v-else-if="val.payload.type === -1" class="message-text" :class="{ active: val.from_uid === IM.uid}">
|
|
|
|
+ {{ val.payload?.content?.text }}
|
|
|
|
+ </view>
|
|
<view v-else class="message-text" :class="{ active: val.from_uid === IM.uid}">
|
|
<view v-else class="message-text" :class="{ active: val.from_uid === IM.uid}">
|
|
{{ val.payload?.content }}
|
|
{{ val.payload?.content }}
|
|
</view>
|
|
</view>
|
|
@@ -145,14 +148,14 @@
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
|
|
|
- <view class="box-bottom">
|
|
|
|
|
|
+ <view class="box-bottom" v-if="channelItem?.channelID !== 'system'">
|
|
<view class="box-bottom-tool" style="display: flex; justify-content: space-between;">
|
|
<view class="box-bottom-tool" style="display: flex; justify-content: space-between;">
|
|
<text class="toolBtn" :class="{ disabled: !isSendResume }" @tap="handleFindResume">{{ isSendResume ? '简历已投递' : '发送简历' }}</text>
|
|
<text class="toolBtn" :class="{ disabled: !isSendResume }" @tap="handleFindResume">{{ isSendResume ? '简历已投递' : '发送简历' }}</text>
|
|
<!-- <uni-tag :text="isSendResume ? '简历已投递' : '发送简历'" :disabled="isSendResume" type="success" @tap="handleFindResume"/> -->
|
|
<!-- <uni-tag :text="isSendResume ? '简历已投递' : '发送简历'" :disabled="isSendResume" type="success" @tap="handleFindResume"/> -->
|
|
<!-- <uni-tag text="发 送" type="success" @tap="handleSend"/> -->
|
|
<!-- <uni-tag text="发 送" type="success" @tap="handleSend"/> -->
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="d-flex align-end textBox">
|
|
|
|
|
|
+ <view class="d-flex align-end textBox" v-if="channelItem?.channelID !== 'system'">
|
|
<textarea
|
|
<textarea
|
|
v-model="inputValue"
|
|
v-model="inputValue"
|
|
:cursor-spacing="25"
|
|
:cursor-spacing="25"
|
|
@@ -210,7 +213,7 @@ import { ref, watch, onMounted } from 'vue'
|
|
import { onLoad } from '@dcloudio/uni-app'
|
|
import { onLoad } from '@dcloudio/uni-app'
|
|
import { useIMStore } from '@/store/im'
|
|
import { useIMStore } from '@/store/im'
|
|
import { userStore } from '@/store/user'
|
|
import { userStore } from '@/store/user'
|
|
-import { initConnect, send, initChart, getMoreMessages } from '@/hooks/useIM'
|
|
|
|
|
|
+import { initConnect, send, initChart, getMoreMessages, toChannel } from '@/hooks/useIM'
|
|
import { getDict } from '@/hooks/useDictionaries'
|
|
import { getDict } from '@/hooks/useDictionaries'
|
|
import { timesTampChange } from '@/utils/date'
|
|
import { timesTampChange } from '@/utils/date'
|
|
import { getUserAvatar } from '@/utils/avatar'
|
|
import { getUserAvatar } from '@/utils/avatar'
|
|
@@ -570,6 +573,19 @@ onLoad(async (options) => {
|
|
return r
|
|
return r
|
|
}, {})
|
|
}, {})
|
|
isEmployment.value = info.value.isEmployment
|
|
isEmployment.value = info.value.isEmployment
|
|
|
|
+ channelItem.value = toChannel(info.value.channelID, info.value.channelType)
|
|
|
|
+
|
|
|
|
+ if (channelItem.value.channelID === 'system') {
|
|
|
|
+ const { list, more } = await getMoreMessages(1, channelItem.value)
|
|
|
|
+ hasMore.value = more
|
|
|
|
+ items.value = list.value
|
|
|
|
+ setScrollBottom()
|
|
|
|
+ // 清除未读消息
|
|
|
|
+ resetUnread(channelItem.value)
|
|
|
|
+ // 更新未读消息
|
|
|
|
+ updateUnreadCount()
|
|
|
|
+ return
|
|
|
|
+ }
|
|
await init(info.value.id, info.value.enterpriseId)
|
|
await init(info.value.id, info.value.enterpriseId)
|
|
// 获取最新的职位信息
|
|
// 获取最新的职位信息
|
|
await getMessageTypeSync(info.value.id)
|
|
await getMessageTypeSync(info.value.id)
|