merge
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import messagePreview from './messagePreview'
|
import messagePreview from './messagePreview'
|
||||||
import utils from '@/utils/index.js'
|
import utils from '@/utils/index.js'
|
||||||
import imBase from '../mixins/imBase.js'
|
import imBase from '../../mixins/imBase.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [
|
mixins: [
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import * as RongIMLib from '@/uni_modules/RongCloud-IMWrapper/js_sdk/index'
|
import * as RongIMLib from '@/uni_modules/RongCloud-IMWrapper/js_sdk/index'
|
||||||
import im from '@/utils/im/index.js'
|
import im from '@/utils/im/index.js'
|
||||||
import messageCell from './messageCell'
|
import messageCell from './conversation/messageCell'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
@@ -33,8 +33,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import im from '@/utils/im/index.js'
|
import im from '@/utils/im/index.js'
|
||||||
import * as CallLib from '@/uni_modules/RongCloud-CallWrapper/lib/index'
|
import imBase from '../../mixins/imBase.js'
|
||||||
import imBase from '../mixins/imBase.js'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [
|
mixins: [
|
||||||
@@ -8,11 +8,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import im from '@/utils/im/index.js'
|
import im from '@/utils/im/index.js'
|
||||||
import * as RongIMLib from '@/uni_modules/RongCloud-IMWrapper/js_sdk/index'
|
import * as RongIMLib from '@/uni_modules/RongCloud-IMWrapper/js_sdk/index'
|
||||||
import imBase from '../mixins/imBase.js'
|
import imBase from '../../mixins/imBase.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [
|
mixins: [
|
||||||
imBase
|
imBase
|
||||||
],
|
],
|
||||||
props: {
|
props: {
|
||||||
conversationType: {
|
conversationType: {
|
||||||
@@ -42,17 +42,17 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
focusState: false,
|
focusState: false,
|
||||||
inputTxt: ''
|
inputTxt: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
sent() {
|
sent() {
|
||||||
if (!this.disabled) {
|
if (!this.disabled) {
|
||||||
im.sentText(this.conversationType, this.targetId, this.inputTxt, this.sender, () => {
|
im.sentText(this.conversationType, this.targetId, this.inputTxt, this.sender, () => {
|
||||||
RongIMLib.clearTextMessageDraft(this.conversationType, this.targetId)
|
RongIMLib.clearTextMessageDraft(this.conversationType, this.targetId)
|
||||||
this.$emit('success')
|
this.$emit('success')
|
||||||
this.inputTxt = ''
|
this.inputTxt = ''
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
<script>
|
<script>
|
||||||
import im from '@/utils/im/index.js'
|
import im from '@/utils/im/index.js'
|
||||||
import permision from '@/utils/permission.js'
|
import permision from '@/utils/permission.js'
|
||||||
import imBase from '../mixins/imBase.js'
|
import imBase from '../../mixins/imBase.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [
|
mixins: [
|
||||||
imBase
|
imBase
|
||||||
@@ -16,9 +16,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import sentText from './sentText'
|
import sentText from './sent/sentText'
|
||||||
import sentVoice from './sentVoice'
|
import sentVoice from './sent/sentVoice'
|
||||||
import sentPopups from './sentPopups'
|
import sentPopups from './sent/sentPopups'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="msg--text">
|
<view class="msg--text">
|
||||||
<message-state :message="message" :isGroup="isGroup" :isRemote="isRemote" />
|
<message-state :message="message" :isGroup="isGroup" :isRemote="isRemote" />
|
||||||
|
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="name" v-if="isGroup && isRemote">{{ contact(message.senderUserId).name }}</view>
|
<view class="name" v-if="isGroup && isRemote">{{ contact(message.senderUserId).name }}</view>
|
||||||
<view :class="['text', isRemote ? 'left': 'right']">{{ content }}</view>
|
<view :class="['text', isRemote ? 'left': 'right']">{{ content }}</view>
|
||||||
@@ -11,11 +11,13 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import messageState from './messageState'
|
import messageState from './messageState'
|
||||||
import imBase from '../../mixins/imBase.js'
|
import imBase from '../../mixins/imBase.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'showText',
|
name: 'showText',
|
||||||
mixins:[imBase],
|
mixins: [
|
||||||
|
imBase,
|
||||||
|
],
|
||||||
props: {
|
props: {
|
||||||
message: {
|
message: {
|
||||||
type: Object,
|
type: Object,
|
||||||
@@ -49,14 +51,17 @@
|
|||||||
|
|
||||||
.name {
|
.name {
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: $text-gray-m;
|
color: $text-gray-m;
|
||||||
margin-bottom: 10rpx;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.text {
|
.text {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
max-width: 502rpx;
|
max-width: 502rpx;
|
||||||
|
<<<<<<< HEAD
|
||||||
padding:10rpx 30rpx;
|
padding:10rpx 30rpx;
|
||||||
|
=======
|
||||||
|
padding: 20rpx 24rpx;
|
||||||
|
>>>>>>> 32e3e0ef3040a5320c18aa4803fc5bf1476deb06
|
||||||
line-height: 46rpx;
|
line-height: 46rpx;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
color: $text-color;
|
color: $text-color;
|
||||||
|
|||||||
@@ -68,10 +68,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 跳转群公告
|
// 跳转群公告
|
||||||
|
<<<<<<< HEAD
|
||||||
toAnnounce(message) {
|
toAnnounce(message) {
|
||||||
if (message.content.extra) {
|
if (message.content.extra) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/im/group/announceCreate?type=cheack&targetId=' + message.targetId + '&aId=' + message.content.extra
|
url: '/pages/im/group/announceCreate?type=cheack&targetId=' + message.targetId + '&aId=' + message.content.extra
|
||||||
|
=======
|
||||||
|
toAnnounce(targetId) {
|
||||||
|
if (targetId) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/im/group/announceCreate?type=check&targetId=' + this.message.targetId + '&aId=' + targetId
|
||||||
|
>>>>>>> 32e3e0ef3040a5320c18aa4803fc5bf1476deb06
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
@@ -1,12 +1,23 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="create">
|
<view class="create">
|
||||||
<view class="create-title">公告内容</view>
|
<view class="create-title">公告内容</view>
|
||||||
|
<<<<<<< HEAD
|
||||||
<block v-if="type !== 'cheack'">
|
<block v-if="type !== 'cheack'">
|
||||||
<u--textarea v-model="content" count height="240" maxlength="240" placeholder="请输入公告内容" />
|
<u--textarea v-model="content" count height="240" maxlength="240" placeholder="请输入公告内容" />
|
||||||
<u-button type="primary" text="发布" :disabled="disabled" @click="onCreate" color="#34CE98" />
|
<u-button type="primary" text="发布" :disabled="disabled" @click="onCreate" color="#34CE98" />
|
||||||
</block>
|
</block>
|
||||||
<block v-if="type === 'cheack'">
|
<block v-if="type === 'cheack'">
|
||||||
<view class="content-a"> {{content}} </view>
|
<view class="content-a"> {{content}} </view>
|
||||||
|
=======
|
||||||
|
|
||||||
|
<block v-if="type === 'check'">
|
||||||
|
<view class="content"> {{content}} </view>
|
||||||
|
</block>
|
||||||
|
|
||||||
|
<block v-else>
|
||||||
|
<u--textarea v-model="content" count height="240" maxlength="240" placeholder="请输入公告内容" />
|
||||||
|
<u-button type="primary" text="发布" :disabled="disabled" @click="onCreate" color="#34CE98" />
|
||||||
|
>>>>>>> 32e3e0ef3040a5320c18aa4803fc5bf1476deb06
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -31,7 +42,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
|
<<<<<<< HEAD
|
||||||
console.log(e,'e,,,,,')
|
console.log(e,'e,,,,,')
|
||||||
|
=======
|
||||||
|
console.log('E', e);
|
||||||
|
>>>>>>> 32e3e0ef3040a5320c18aa4803fc5bf1476deb06
|
||||||
this.targetId = e.targetId
|
this.targetId = e.targetId
|
||||||
if (e.type) {
|
if (e.type) {
|
||||||
this.type = e.type
|
this.type = e.type
|
||||||
@@ -41,8 +56,10 @@
|
|||||||
}
|
}
|
||||||
if (e.aId) {
|
if (e.aId) {
|
||||||
this.aId = e.aId
|
this.aId = e.aId
|
||||||
|
uni.setNavigationBarTitle({
|
||||||
|
title: '群公告'
|
||||||
|
})
|
||||||
getGroupAnnouncement(this.targetId, this.aId).then(res => {
|
getGroupAnnouncement(this.targetId, this.aId).then(res => {
|
||||||
console.log(res.content)
|
|
||||||
this.content = res.content
|
this.content = res.content
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -103,7 +120,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-a {
|
.content {
|
||||||
color: $text-color;
|
color: $text-color;
|
||||||
font-size: $title-size;
|
font-size: $title-size;
|
||||||
line-height: 1.7;
|
line-height: 1.7;
|
||||||
|
|||||||
@@ -1,10 +1,6 @@
|
|||||||
import utils from '@/utils/index.js'
|
import utils from '@/utils/index.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
onLoad() {},
|
|
||||||
data() {
|
|
||||||
return {}
|
|
||||||
},
|
|
||||||
computed: {
|
computed: {
|
||||||
contact() {
|
contact() {
|
||||||
return function(targetId) {
|
return function(targetId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user