文档
测试

新增收货地址

GET
user/useraddress/setUserAddress

接口描述

新增收货地址

请求参数

参数名
类型
描述
必填
name
string
姓名不能为空
必填
phone
int
手机号码不能为空
必填
is_default
int
0不是默认 1默认选中
必填
detail
string
地址详情
可选
province_id
int
省份id
必填
province
string
省份名称
必填
city_id
int
城市id
必填
city
string
城市名称
必填
district_id
int
城市id
必填
district
string
县/区名称
必填

说明 / 示例

<script type="text/javascript"> ajax_demo(); function ajax_demo(){ $.ajax({ type: 'POST', url: '/api/index.php/user/policyholder/getuserpolicyholders', headers:{ "XX-Token":'<?php echo session('token');?>', "XX-Device-Type":'<?php echo session('token_type');?>', "Content-Type":"text/plain;charset=UTF-8" }, data:{ order:'-create_time', page:1 }, success: function(data, status, xhr){ console.log(xhr); }, error: function(xhr, type){ window.location.reload(); } }) } </script>