Commit 4fbb5896 by 刘海龙

1111

parent 8d32690e
......@@ -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: {
......
......@@ -34,9 +34,9 @@
<a href="#" @click="returnBtn2">退出家族</a>
</div>
<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>
</div>
</div> -->
</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