Commit 59f2918a by 刘海龙

111

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