|
@@ -53,25 +53,11 @@
|
|
ref="messageInputView"
|
|
ref="messageInputView"
|
|
/>
|
|
/>
|
|
<MultiSelectActionView v-show="sharedConversationState.enableMessageMultiSelection"/>
|
|
<MultiSelectActionView v-show="sharedConversationState.enableMessageMultiSelection"/>
|
|
- <!-- <SingleConversationInfoView-->
|
|
|
|
- <!-- v-if="showConversationInfo && sharedConversationState.currentConversationInfo.conversation.type === 0"-->
|
|
|
|
- <!-- :conversation-info="sharedConversationState.currentConversationInfo"-->
|
|
|
|
- <!-- v-bind:class="{ active: showConversationInfo }"-->
|
|
|
|
- <!-- class="conversation-info-container"-->
|
|
|
|
- <!-- />-->
|
|
|
|
- <!-- <GroupConversationInfoView-->
|
|
|
|
- <!-- v-if="showConversationInfo && sharedConversationState.currentConversationInfo.conversation.type === 1"-->
|
|
|
|
- <!-- :conversation-info="sharedConversationState.currentConversationInfo"-->
|
|
|
|
- <!-- v-bind:class="{ active: showConversationInfo }"-->
|
|
|
|
- <!-- class="conversation-info-container"-->
|
|
|
|
- <!-- />-->
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import SingleConversationInfoView from "@/pages/conversation/SingleConversationInfoView";
|
|
|
|
-import GroupConversationInfoView from "@/pages/conversation/GroupConversationInfoView";
|
|
|
|
import MessageInputView from "@/pages/conversation/MessageInputView";
|
|
import MessageInputView from "@/pages/conversation/MessageInputView";
|
|
import NormalOutMessageContentView from "@/pages/conversation/message/NormalOutMessageContentContainerView";
|
|
import NormalOutMessageContentView from "@/pages/conversation/message/NormalOutMessageContentContainerView";
|
|
import NormalInMessageContentView from "@/pages/conversation/message/NormalInMessageContentContainerView";
|
|
import NormalInMessageContentView from "@/pages/conversation/message/NormalInMessageContentContainerView";
|
|
@@ -102,6 +88,7 @@ import {getItem, setItem} from "../util/storageHelper";
|
|
|
|
|
|
var amr;
|
|
var amr;
|
|
export default {
|
|
export default {
|
|
|
|
+ name: 'ConversationPage',
|
|
components: {
|
|
components: {
|
|
MultiSelectActionView,
|
|
MultiSelectActionView,
|
|
NotificationMessageContentView,
|
|
NotificationMessageContentView,
|
|
@@ -109,8 +96,6 @@ export default {
|
|
NormalInMessageContentView,
|
|
NormalInMessageContentView,
|
|
NormalOutMessageContentView,
|
|
NormalOutMessageContentView,
|
|
MessageInputView,
|
|
MessageInputView,
|
|
- GroupConversationInfoView,
|
|
|
|
- SingleConversationInfoView,
|
|
|
|
},
|
|
},
|
|
// props: ["conversation"],
|
|
// props: ["conversation"],
|
|
data() {
|
|
data() {
|
|
@@ -172,27 +157,27 @@ export default {
|
|
onNavigationBarButtonTap(e) {
|
|
onNavigationBarButtonTap(e) {
|
|
if (this.conversationInfo.conversation.type === ConversationType.Single) {
|
|
if (this.conversationInfo.conversation.type === ConversationType.Single) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: '/pages/conversation/SingleConversationInfoView',
|
|
|
|
|
|
+ url: '/pages/conversation/SingleConversationInfoPage',
|
|
success: (res) => {
|
|
success: (res) => {
|
|
res.eventChannel.emit('conversationInfo', {
|
|
res.eventChannel.emit('conversationInfo', {
|
|
conversationInfo: this.conversationInfo
|
|
conversationInfo: this.conversationInfo
|
|
});
|
|
});
|
|
},
|
|
},
|
|
fail: (err) => {
|
|
fail: (err) => {
|
|
- console.log('nav to SingleConversationInfoView err', err);
|
|
|
|
|
|
+ console.log('nav to SingleConversationInfoPage err', err);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
} else if (this.conversationInfo.conversation.type === ConversationType.Group) {
|
|
} else if (this.conversationInfo.conversation.type === ConversationType.Group) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: '/pages/conversation/GroupConversationInfoView',
|
|
|
|
|
|
+ url: '/pages/conversation/GroupConversationInfoPage',
|
|
success: (res) => {
|
|
success: (res) => {
|
|
res.eventChannel.emit('conversationInfo', {
|
|
res.eventChannel.emit('conversationInfo', {
|
|
conversationInfo: this.conversationInfo
|
|
conversationInfo: this.conversationInfo
|
|
});
|
|
});
|
|
},
|
|
},
|
|
fail: (err) => {
|
|
fail: (err) => {
|
|
- console.log('nav to GroupConversationInfoView err', err);
|
|
|
|
|
|
+ console.log('nav to GroupConversationInfoPage err', err);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|