|
@@ -38,7 +38,7 @@
|
|
<uni-notice-bar v-if="hasWaitingProcessingInterview" show-get-more single text="您有待处理的面试邀请,点击查看详情" @click="handleToCenter"/>
|
|
<uni-notice-bar v-if="hasWaitingProcessingInterview" show-get-more single text="您有待处理的面试邀请,点击查看详情" @click="handleToCenter"/>
|
|
</view>
|
|
</view>
|
|
<!-- newsId 需要和聊天列表里面的id对应 永远取最后列表中的最后一个就可以做到发送消息即时滚动到底部 -->
|
|
<!-- newsId 需要和聊天列表里面的id对应 永远取最后列表中的最后一个就可以做到发送消息即时滚动到底部 -->
|
|
- <scroll-view ref="chatRef" scroll-with-animation :scroll-into-view="newsId" class="box-main" scroll-y="true">
|
|
|
|
|
|
+ <scroll-view ref="chatRef" :scroll-with-animation="scrollAnimation" :scroll-into-view="newsId" class="box-main" scroll-y="true">
|
|
<view class="box-main-more" v-if="hasMore">
|
|
<view class="box-main-more" v-if="hasMore">
|
|
<text @click="handleMore">查看更多</text>
|
|
<text @click="handleMore">查看更多</text>
|
|
</view>
|
|
</view>
|
|
@@ -201,7 +201,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
-import { ref, watch } from 'vue'
|
|
|
|
|
|
+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'
|
|
@@ -245,12 +245,18 @@ const inputValue = ref('')
|
|
// const chooseInvite = ref(null)
|
|
// const chooseInvite = ref(null)
|
|
|
|
|
|
const newsId = ref('') // newsId 需要和聊天列表里面的id对应 永远取最后列表中的最后一个就可以做到发送消息即时滚动到底部
|
|
const newsId = ref('') // newsId 需要和聊天列表里面的id对应 永远取最后列表中的最后一个就可以做到发送消息即时滚动到底部
|
|
-const scrollInto = ref(0)
|
|
|
|
|
|
+const scrollAnimation = ref(false)
|
|
|
|
|
|
const isSendResume = ref(false)
|
|
const isSendResume = ref(false)
|
|
const positionInfo = ref({})
|
|
const positionInfo = ref({})
|
|
const isEmployment = ref('-1')
|
|
const isEmployment = ref('-1')
|
|
|
|
|
|
|
|
+onMounted(() => {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ scrollAnimation.value = true
|
|
|
|
+ }, 1500)
|
|
|
|
+})
|
|
|
|
+
|
|
const {
|
|
const {
|
|
conversationList,
|
|
conversationList,
|
|
// updateConversation,
|
|
// updateConversation,
|