admin revoke
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<u-avatar @longpress="longpress" @click="click" @onError="errorHandle" :src="cachesrc" :text="avatarText"
|
||||
bg-color="#cdcdcd" :defaultUrl="getDdefaultUrl" :shape="shape" :size="size" mode="aspectFill" font-size="14">
|
||||
bg-color="#cdcdcd" :defaultUrl="getDefaultUrl" :shape="shape" :size="size" mode="aspectFill" font-size="14">
|
||||
</u-avatar>
|
||||
</template>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
getDdefaultUrl() {
|
||||
getDefaultUrl() {
|
||||
return this.isGroup ? defaultGroupIcon : defaultUserIcon;
|
||||
},
|
||||
},
|
||||
@@ -58,12 +58,10 @@
|
||||
methods: {
|
||||
init(nv){
|
||||
const _this = this;
|
||||
//console.log(nv);
|
||||
if (nv) {
|
||||
util.cacheFile(util.cdn(nv),'avatar').then(res=>{
|
||||
_this.avatarText=""
|
||||
_this.cachesrc = res;
|
||||
//_this.cachesrc = plus.io.convertAbsoluteFileSystem(res);
|
||||
//console.log(_this.cachesrc);
|
||||
});
|
||||
return ;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<view v-if="item.roleLevel === 100" class="user_role">群主</view>
|
||||
<view v-else-if="item.roleLevel === 60" class="user_role admin_role">管理员<u-icon v-if="item.muteEndTime>0" size="24" name="volume-off"></u-icon></view>
|
||||
<view v-else class="user_role"><u-icon v-if="item.muteEndTime>0" size="24" name="volume-off"></u-icon></view>
|
||||
<!-- <view class="bottom_line" /> -->
|
||||
<view class="bottom_line" />
|
||||
</view>
|
||||
|
||||
<slot name="action"></slot>
|
||||
@@ -57,6 +57,9 @@
|
||||
}
|
||||
},
|
||||
longtap(){
|
||||
if(this.checkVisible){
|
||||
return ;
|
||||
}
|
||||
this.$emit("longtapEvent", this.item);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user