<?php
$id = Dever::input('id');
$info = Dever::db('source', 'place_order')->find($id);
$address = Dever::db('address', 'place_user')->find($info['address_id']);
$config = array
(
    'source' => 'place_order/source',
    'update' => array
    (
        'start' => 'place_order/source/address.update',
        'field'    => array
        (
            'address_id' => array
            (
                'value' => $address['id'],
                'type' => 'hidden',
            ),
            'address_name' => array
            (
                'name' => '联系人',
                'value' => $address['name'],
            ),
            'address_phone' => array
            (
                'name' => '联系电话',
                'value' => $address['phone'],
            ),
            'address_area' => array
            (
                'name' => '城市地区',
                'type' => 'cascader',
                'remote'    => Dever::url('area/data.get&total=3'),
                'value'     => $address['area'],
            ),
            'address_address' => array
            (
                'name' => '详细地址',
                'type' => 'textarea',
                'autosize' => array('minRows' => 2),
                'value' => $address['address'],
            ),
        ),
    ),
);

return $config;