Commit 4fbb5896 by 刘海龙

1111

parent 8d32690e
...@@ -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: {
......
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
<a href="#" @click="returnBtn2">退出家族</a> <a href="#" @click="returnBtn2">退出家族</a>
</div> </div>
<else/> <else/>
<div class="tuicBtn"> <!-- <div class="tuicBtn">
<a href="/index.php?g=Appapi&m=family&a=member_search&uid={$uid}&token={$token}&familyid={$familyinfo['id']}" >添加</a> <a href="/index.php?g=Appapi&m=family&a=member_search&uid={$uid}&token={$token}&familyid={$familyinfo['id']}" >添加</a>
</div> </div> -->
</if> </if>
<!-- 查看成员信息 --> <!-- 查看成员信息 -->
......
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