Commit 59f2918a by 刘海龙

111

parent ad1164b5
......@@ -39,8 +39,8 @@
</div>
<img @click="operation(<?php echo ($v['uid']); ?>, '<?php echo ($v['userinfo']['user_nicename']); ?>')" class="listBd" src="/public/appapi/img/fanhui@2x.png"></img>
</div><?php endforeach; endif; else: echo "" ;endif; ?>
<div style="width: 100%; height: 50px;"></div>
</div>
<div style="width: 100%; height: 50px;"></div>
<!-- 退出按钮 nan@2x nv -->
<?php if($familyinfo['role'] != 1): ?><!-- <div @click="returnBtn" class="tuicBtn">-->
<!-- 解散家族-->
......
......@@ -101,29 +101,33 @@
},
submit: function () {
let data = this.form;
$.ajax({
url: '/index.php?g=Appapi&m=Family&a=add',
dataType: "json",
data: data,
type: "POST",
success: function (data) {
// console.log(data);
if (data.state == 0) {
layer.msg(data['msg']);
} else {
layer.alert('申请成功',
{
skin: 'layui-layer-molv' //样式类名
, closeBtn: 0
}, function () {
window.location.href = "/index.php?g=Appapi&m=Family&a=home&uid=" + data['uid'] + "&token=" + data['token'];
});
}
},
error: function (e) {
layer.msg("审核信息提交错误!");
}
})
if(data.name&&data.wx&&data.mobile){
$.ajax({
url: '/index.php?g=Appapi&m=Family&a=add',
dataType: "json",
data: data,
type: "POST",
success: function (data) {
// console.log(data);
if (data.state == 0) {
layer.msg(data['msg']);
} else {
layer.alert('申请成功',
{
skin: 'layui-layer-molv' //样式类名
, closeBtn: 0
}, function () {
window.location.href = "/index.php?g=Appapi&m=Family&a=home&uid=" + data['uid'] + "&token=" + data['token'];
});
}
},
error: function (e) {
layer.msg("审核信息提交错误!");
}
})
}else{
layer.msg("请完善信息");
}
}
},
watch: {
......
......@@ -23,8 +23,8 @@
<img @click="operation({$v['uid']}, '{$v['userinfo']['user_nicename']}')" class="listBd" src="__PUBLIC__/appapi/img/fanhui@2x.png"></img>
</div>
</volist>
<div style="width: 100%; height: 50px;"></div>
</div>
<div style="width: 100%; height: 50px;"></div>
<!-- 退出按钮 nan@2x nv -->
<if condition="$familyinfo['role'] neq 1">
<!-- <div @click="returnBtn" class="tuicBtn">-->
......
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