## 地址页面
创建组件，写路由
## 遍历地址信息
api接口
返回地址信息
```
router.get('/addressList', function(req, res, next) {
    var userId = req.cookies.userId;
    User.findOne({ userId: userId }, function(err, doc) {
        if (err) {
            res.json({ status: 1, msg: err.message, result: '' })
        } else {
            res.json({ status: 0, msg: '', result: doc.addressList })
        }
    })
})
```

## vue前台遍历
```
   methods:{
        getAddressList(){
            this.$http.get('/users/addressList').then(res=>{
                this.addressList = res.data.result;
            })
        }
    }
```