請注意, 門店排序規則和優惠活動是固定的。 以下是對應的key=>value信息, app端程序員可自己構造函數自行保存
門店排序規則:
array(
'distance' => array(
'title' => '離我最近', //顯示信息
'key' => 'distance', //請求門店列表接口時, 如需排序, 可提交該值。
),
'sailed' => array(
'title' => '銷量最高',
'key' => 'sailed',
),
'score' => array(
'title' => '評分最高',
'key' => 'score',
),
'send_price' => array(
'title' => '起送價最低',
'key' => 'send_price',
),
'delivery_time' => array(
'title' => '送餐速度最快',
'key' => 'delivery_time',
),
);
門店優惠活動:
array(
'first_order_status' => array(
'title' => '新用戶立減', //顯示信息
'key' => 'first_order_status', //請求門店列表接口時, 如需獲取指定優惠活動的商家, 可提交該值。
),
'discount_status' => array(
'title' => '立減優惠',
'key' => 'discount_status',
),
'grant_status' => array(
'title' => '下單滿贈',
'key' => 'grant_status',,
),
'delivery_price' => array(
'title' => '免配送費',
'key' => 'delivery_price',
),
'collect_coupon_status' => array(
'title' => '進店領券',
'key' => 'collect_coupon_status',
),
'invoice_status' => array(
'title' => '支持開發票',
'key' => 'invoice_status',
'val' => 1,
'css' => 'icon-b invoice',
),
)