好友申请流程优化,群创建简化

This commit is contained in:
2022-02-14 14:23:28 +08:00
parent d8c1ab7090
commit b61d90de4e
10 changed files with 113 additions and 114 deletions

View File

@@ -9,7 +9,7 @@
<view class="user">
<u-avatar @click="inviteUser" size="44" shape="square" icon="plus" bg-color="#eeeeee"
color="#999999"></u-avatar>
<view class="name">邀请用户</view>
<view class="name">邀请好友</view>
</view>
</view>
@@ -18,6 +18,7 @@
<u-cell-group class="cells">
<u-cell isLink title="群公告" :label="announcement" @click="toAnnouncement"></u-cell>
<u-cell isLink title="二维码" @click="showGroupQrCode"></u-cell>
<u-cell title="聊天置顶">
<u-switch slot="value" size="20" v-model="isTop" activeColor="#34CE98" @change="setTop"></u-switch>
</u-cell>
@@ -45,6 +46,12 @@
<u--input placeholder="群名称" border="surround" focus v-model="groupName"></u--input>
</view>
</u-modal>
<u-modal :show="qrCodeShow" :title="group.name" @confirm="qrCodeShow = false">
<view class="slot-content">
<uqrcode class="info-code-src" :size="198" :text="qrContent" />
</view>
</u-modal>
</view>
</template>
@@ -72,11 +79,14 @@
isTop: false,
loaded: false,
modalShow: false,
groupName: ''
groupName: '',
qrCodeShow: false,
qrContent: 'JOINGROUP|'
}
},
onLoad(e) {
this.targetId = e.targetId
this.qrContent += e.targetId
RongIMLib.getConversationNotificationStatus(this.conversationType, this.targetId, ({
status
}) => {
@@ -146,6 +156,9 @@
url: '/pages/im/group/announcement?targetId=' + this.targetId
})
},
showGroupQrCode() {
this.qrCodeShow = true
},
onGroupName() {
this.modalShow = true
console.log(this.$refs.groupNameRef);
@@ -226,10 +239,10 @@
})
},
// 修改群头像
onGroupAvatar() {
uni.showToast({
icon: 'none',
title: '正在打开相册'
onGroupAvatar() {
uni.showToast({
icon: 'none',
title: '正在打开相册'
})
uni.chooseImage({
count: 1,
@@ -266,9 +279,9 @@
icon: 'none'
})
})
},
fail: (err) => {
console.log(err);
},
fail: (err) => {
console.log(err);
}
})
}