| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- <template>
- <custom-nav-bar @leftClick="leftClick" :title="getTitle">
- <!-- <view @click="rightClick" class="more_container" :style="{'visibility': !checkVisible && !isTransfer ? 'visible' : 'hidden' }" slot="more">
- <u-icon class="more_dot" name="more-dot-fill" size="23" color="#0C1C33" />
- <u-transition :show="moreMenuVisible">
- <view class="more_menu">
- <view @click="inviteMember" class="menu_item">
- <text>邀请群员</text>
- </view>
- <view v-if="!isNomal" @click="removeMember" class="menu_item">
- <text>移除群员</text>
- </view>
- </view>
- </u-transition>
- </view> -->
- </custom-nav-bar>
- </template>
- <script>
- import CustomNavBar from "../../../../components/CustomNavBar/index.vue";
- import { ContactChooseTypes } from "../../../../constant";
- export default {
- name: "",
- components: {
- CustomNavBar,
- },
- props: {
- checkVisible: {
- type: Boolean,
- default: false,
- },
- isNomal: {
- type: Boolean,
- default: false,
- },
- isTransfer: {
- type: Boolean,
- default: false,
- },
- isAt: {
- type: Boolean,
- default: false,
- },
- isSetAdmin: {
- type: Boolean,
- default: false,
- },
- isMute: {
- type: Boolean,
- default: false,
- },
- isCall: {
- type: Boolean,
- default: false,
- },
- groupID: String,
- },
- data() {
- return {
- moreMenuVisible: false,
- };
- },
- computed: {
- getTitle() {
- if (this.isCall) {
- return "邀请成员";
- }
- if (this.isAt) {
- return "选择提醒的人";
- }
- if (this.isSetAdmin) {
- return "设置管理员";
- }
- if (this.isMute) {
- return "禁言成员";
- }
- if (this.checkVisible) {
- return "移除群成员";
- }
- return "群成员";
- },
- },
- methods: {
- leftClick() {
- if (this.checkVisible) {
- this.$emit("update:checkVisible", false);
- }
- },
- rightClick() {
- this.moreMenuVisible = true;
- },
- checkMenu() {
- if (this.moreMenuVisible) {
- this.moreMenuVisible = false;
- }
- },
- inviteMember() {
- uni.navigateTo({
- url: `/pages_im/pages/common/contactChoose/index?type=${ContactChooseTypes.Invite}&groupID=${this.groupID}`,
- });
- },
- removeMember() {
- this.$emit("removeMember");
- },
- },
- };
- </script>
- <style lang="scss">
- .more_container {
- position: relative;
- .more_dot {
- padding: 24rpx;
- margin-right: 20rpx;
- }
- .more_menu {
- position: absolute;
- bottom: 0;
- left: 50%;
- transform: translate(-100%, 100%);
- box-shadow: 0px 0px 6px 2px rgba(0, 0, 0, 0.16);
- width: max-content;
- border-radius: 8rpx;
- background-color: #fff;
- .menu_item {
- padding: 20rpx 48rpx;
- font-size: 28rpx;
- color: $uni-text-color;
- // &:nth-child(1) {
- // border-bottom: 1px solid #F0F0F0;
- // }
- }
- }
- }
- </style>
|