Commit 7eaeb0c5 by 冷斌

update

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