Commit 7eaeb0c5 by 冷斌

update

parent be396162
......@@ -20,7 +20,7 @@
<img class="zbLevel" src="__PUBLIC__/appapi/img/zhubo/{$v['level2']['levelid']}.png">
</div>
</div>
<img @click="operation({$v['uid']}, '{$v['userinfo']['user_nicename']}')" class="listBd" src="__PUBLIC__/appapi/img/fanhui@2x.png"></img>
<img @click="operation({$v['uid']}, '{$v['userinfo']['user_nicename']}', {$v['role']})" class="listBd" src="__PUBLIC__/appapi/img/fanhui@2x.png"></img>
</div>
</volist>
<div style="width: 100%; height: 50px;"></div>
......@@ -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;">设为管理员</div>
<div @click="roleBtn" class="lookBtn" style="border-bottom: .05rem solid #f2f2f2;">{{roleBtn}}</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,14 +68,16 @@
alertBox: false,
touid: '',
uname: '',
role: 0,
uid: {$uid},
},
methods: {
//事件
operation: function (touid, name) {
operation: function (touid, name,role) {
this.alertBox = true;
this.touid = touid;
this.uname = name;
this.role = role;
},
roleBtn: function () {
var _this=this;
......@@ -158,6 +160,7 @@
this.alertBox = false;
this.touid = '';
this.uname = '';
this.role = 0;
},
returnBtn: function () {
layer.confirm('您确定要解散家族',{
......@@ -213,6 +216,15 @@
});
}
},
computed: {
'roleBtn': function() {
let name = '设为管理员';
if (this.role > 0) {
name = '取消管理员';
}
return name;
}
},
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