请注意, 门店排序规则和优惠活动是固定的。 以下是对应的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',
),
)