名称: address_info
功能: 根据【id】读取地址信息,可以通过HTTP参数或直接传参方式
调用示例:
# HTTP传参 【id=1】,这模板页面直接输出即可 {$address_info['xxx']} # 可以通过传参方式调用 <?php echo EsiteApp::app()->address_info(1)['xxx']; ?>
AJAX调用:
# <span style="color: rgb(34, 34, 34); font-family: Consolas, "Lucida Console", "Courier New", monospace; white-space: pre-wrap;">http://localhost/?act=address_info&id=3</span> { "status": "yes", "message": "", "data": { "id": 3, "user_id": 1, "username": "xx", "line1": "罗湖区水贝", "line2": "松泉公寓A栋", "city": "深圳市", "state": "广东省", "phone": "13888888888", "postalCode": "435411", "countryCode": "CN", "is_default": 0, "address": "CN 广东省 深圳市 罗湖区水贝 松泉公寓A栋" } }