Commit 48f79f42 by 冷斌

update

parent 7eaeb0c5
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<div class="lookbtnBox"> <div class="lookbtnBox">
<if condition="$familyinfo['role'] eq 1"> <if condition="$familyinfo['role'] eq 1">
<div @click="deleteBtn" class="lookBtn" style="border-bottom: .05rem solid #f2f2f2;">移除该成员</div> <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>
<if condition="$familyinfo['role'] eq 2"> <if condition="$familyinfo['role'] eq 2">
<div v-if="touid != uid" @click="deleteBtn" class="lookBtn" style="border-bottom: .05rem solid #f2f2f2;">删除成员</div> <div v-if="touid != uid" @click="deleteBtn" class="lookBtn" style="border-bottom: .05rem solid #f2f2f2;">删除成员</div>
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
alertBox: false, alertBox: false,
touid: '', touid: '',
uname: '', uname: '',
roleName: '',
role: 0, role: 0,
uid: {$uid}, uid: {$uid},
}, },
...@@ -161,6 +162,7 @@ ...@@ -161,6 +162,7 @@
this.touid = ''; this.touid = '';
this.uname = ''; this.uname = '';
this.role = 0; this.role = 0;
this.roleName = '';
}, },
returnBtn: function () { returnBtn: function () {
layer.confirm('您确定要解散家族',{ layer.confirm('您确定要解散家族',{
...@@ -218,11 +220,11 @@ ...@@ -218,11 +220,11 @@
}, },
computed: { computed: {
'roleBtn': function() { 'roleBtn': function() {
let name = '设为管理员'; this.roleName = '设为管理员';
if (this.role > 0) { if (this.role > 0) {
name = '取消管理员'; this.roleName = '取消管理员';
} }
return name; return this.roleName;
} }
}, },
watch: { 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