|
@@ -3,7 +3,7 @@
|
|
|
<div v-else-if="isShowContactList" :class="['tui-contact', !isPC && 'tui-contact-h5']">
|
|
|
<div :class="['tui-contact-left', !isPC && 'tui-contact-h5-left']">
|
|
|
<!-- <ContactSearch /> -->
|
|
|
- <ContactList
|
|
|
+ <ContactList v-if="contact"
|
|
|
:class="['tui-contact-left-list', !isPC && 'tui-contact-h5-left-list']"
|
|
|
/>
|
|
|
</div>
|
|
@@ -28,23 +28,7 @@ import ContactList from "./contact-list/index.vue";
|
|
|
import ContactInfo from "./contact-info/index.vue";
|
|
|
import { onLoad, onShow, onPullDownRefresh } from "@dcloudio/uni-app";
|
|
|
const emits = defineEmits(["switchConversation"]);
|
|
|
-const dataList = ref([
|
|
|
- {
|
|
|
- text: "测试一",
|
|
|
- iconSrc:
|
|
|
- "https://i-1.lanrentuku.com/2020/9/15/752b7419-0de1-4515-8d2c-63e7b7df007c.png?imageView2/2/w/500",
|
|
|
- },
|
|
|
- {
|
|
|
- text: "测试二",
|
|
|
- iconSrc: "https://bpic.51yuansu.com/pic2/cover/00/38/01/58122c53d1ca5_610.jpg",
|
|
|
- },
|
|
|
- {
|
|
|
- text: "测试三",
|
|
|
- iconSrc:
|
|
|
- "https://i-1.lanrentuku.com/2020/10/27/73be0f11-4027-4e5c-8f8f-be31fa4d2834.png?imageView2/2/w/500",
|
|
|
- },
|
|
|
-]);
|
|
|
-
|
|
|
+const contact=ref(true)
|
|
|
const props = defineProps({
|
|
|
// web/h5 single page application display format, uniapp please ignore
|
|
|
displayType: {
|
|
@@ -62,7 +46,15 @@ const isShowContactInfo = ref(true);
|
|
|
watchEffect(() => {
|
|
|
isShowContactList.value = props?.displayType !== "selectFriend";
|
|
|
});
|
|
|
+onPullDownRefresh(() => {
|
|
|
+ contact.value=false
|
|
|
+ setTimeout(() => {
|
|
|
+ contact.value=true
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
+ }, 200);
|
|
|
+
|
|
|
|
|
|
+});
|
|
|
TUIStore.watch(StoreName.CUSTOM, {
|
|
|
isShowSelectFriendComponent: (data: any) => {
|
|
|
if (!isUniFrameWork && props?.displayType === "selectFriend") {
|