Commit 48f79f42 by 冷斌

update

parent 7eaeb0c5
......@@ -45,7 +45,7 @@
<div class="lookbtnBox">
<if condition="$familyinfo['role'] eq 1">
<div @click="deleteBtn" class="lookBtn" style="border-bottom: .05rem solid #f2f2f2;">移除该成员</div>
<div @click="roleBtn" class="lookBtn" style="border-bottom: .05rem solid #f2f2f2;">{{roleBtn}}</div>
<div @click="roleBtn" class="lookBtn" style="border-bottom: .05rem solid #f2f2f2;">{{roleName}}</div>
</if>
<if condition="$familyinfo['role'] eq 2">
<div v-if="touid != uid" @click="deleteBtn" class="lookBtn" style="border-bottom: .05rem solid #f2f2f2;">删除成员</div>
......@@ -68,6 +68,7 @@
alertBox: false,
touid: '',
uname: '',
roleName: '',
role: 0,
uid: {$uid},
},
......@@ -161,6 +162,7 @@
this.touid = '';
this.uname = '';
this.role = 0;
this.roleName = '';
},
returnBtn: function () {
layer.confirm('您确定要解散家族',{
......@@ -218,11 +220,11 @@
},
computed: {
'roleBtn': function() {
let name = '设为管理员';
this.roleName = '设为管理员';
if (this.role > 0) {
name = '取消管理员';
this.roleName = '取消管理员';
}
return name;
return this.roleName;
}
},
watch: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment