组件合并,群公告指向修复
This commit is contained in:
@@ -34,7 +34,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 * 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,7 +8,7 @@
|
|||||||
<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: [
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
<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: [
|
||||||
@@ -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: {
|
||||||
|
|||||||
@@ -15,7 +15,9 @@
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'showText',
|
name: 'showText',
|
||||||
mixins:[imBase],
|
mixins: [
|
||||||
|
imBase,
|
||||||
|
],
|
||||||
props: {
|
props: {
|
||||||
message: {
|
message: {
|
||||||
type: Object,
|
type: Object,
|
||||||
@@ -50,13 +52,12 @@
|
|||||||
.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;
|
||||||
padding:10rpx 24rpx;
|
padding: 20rpx 24rpx;
|
||||||
line-height: 46rpx;
|
line-height: 46rpx;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
color: $text-color;
|
color: $text-color;
|
||||||
|
|||||||
@@ -72,7 +72,7 @@
|
|||||||
toAnnounce(targetId) {
|
toAnnounce(targetId) {
|
||||||
if (targetId) {
|
if (targetId) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/im/group/announceCreate?type=check&targetId=' + this.targetId
|
url: '/pages/im/group/announceCreate?type=check&targetId=' + this.message.targetId + '&aId=' + targetId
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
@@ -1,13 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="create">
|
<view class="create">
|
||||||
<view class="create-title">公告内容</view>
|
<view class="create-title">公告内容</view>
|
||||||
<block v-if="type !== 'check'">
|
|
||||||
|
<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--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 === 'check'">
|
|
||||||
<view class="content-a"> {{content}} </view>
|
|
||||||
</block>
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -31,14 +33,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
|
console.log('E', e);
|
||||||
this.targetId = e.targetId
|
this.targetId = e.targetId
|
||||||
if (e.type) {
|
if (e.type) {
|
||||||
this.type = e.type
|
this.type = e.type
|
||||||
}
|
}
|
||||||
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({
|
||||||
@@ -99,7 +104,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;
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
onNavigationBarButtonTap() {
|
onNavigationBarButtonTap() {
|
||||||
if (this.isAdmin) {
|
if (this.isAdmin) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/im/group/announceCreate?type=check&targetId=' + this.targetId
|
url: '/pages/im/group/announceCreate?targetId=' + this.targetId
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
@@ -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