会员字段为“user”的验证嵌套demo:
if{!!user}(
//验证会员是否处于登录状态
ajax({
ajax({
url:'
https://api.jiuyf.com/form.php?action=add&name=张三&mobile=15888888888&weight=5-10kg&province=浙江省&city=杭州市&district=江干区&address=学林街1158号&date=2018-01-01&appkey= hjkfeqwerpiermxvdkfd',
https://api.jiuyf.com/form.php?action=add&name=张三&mobile=15888888888&weight=5-10kg&province=浙江省&city=杭州市&district=江干区&address=学林街1158号&date=2018-01-01&appkey= hjkfeqwerpiermxvdkfd',
method:'get',,
timeout:20,
dataTpye:'json',
});
){else}
(
//执行登录或者注册函数
);