首页接口(广告 首页内容)
商品分类
商品列表
商品详情页
登录
注销
收藏列表 、添加、删除
地址列表
订单列表
我的帐号信息(用户名 头像 积分 预存款)
购物车添加、删除、列表
地区列表
收货地址添加、编辑、删除、列表
发票信息添加、删除、列表
立即购买
购物车购买
促销(满即送 代金券)
支付
评价
订单管理(取消订单 确认收货 查看物流)
订单详细
我的代金券
意见反馈
版本更新
在线帮助
返回数据为json格式,code为200表示数据正常,datas为返回的数据
{code: 200, datas: {}}
//有内容直接返回数组,无内容返回空数组[]
//hasmore为是否有下一页
{"code":200,"hasmore":true,"datas":{"goods_list":[]}}
//操作成返回"1"
{"code":200,"datas":{"1"}}
//出现错误返回error,error内为错误信息
{"code":200,"datas":{"error":"参数错误"}}
//登录失败,login:0
{"code":200,"login":"0","datas":{"error":"\u8bf7\u767b\u9646"}}
adv_list
home1
home2
home3
home4
goods
image 图片地址
type 操作类型
keyword 搜索关键字
special 专题编号
goods 商品编号
url 地址
data 与操作类型对应的数据内容
index.php?act=index&op=special
adv_list
home1
home2
home3
home4
goods
image 图片地址
type 操作类型
keywork 搜索关键字
special 专题编号
goods 商品编号
url 地址
data 与操作类型对应的数据内容
index.php?act=goods_class
有下级分类返回分类列表,无分类返回'0'
index.php?act=goods_class&gc_id=2
index.php?act=goods&op=goods_list
goods_id 商品编号
goods_name 商品名称
goods_price 商品价格
goods_marketprice 商品市场价
goods_salenum 销量
evaluation_good_star 评价星级
evaluation_count 评价数
group_flag 是否抢购
xianshi_flag 是否限时折扣
goods_image 图片名称
goods_image_url 图片地址
is_fcode 是否为F码商品 1-是 0-否
is_appoint 是否是预约商品 1-是 0-否
is_presell 是否是预售商品 1-是 0-否
have_gift 是否拥有赠品 1-是 0-否
index.php?act=goods&op=goods_detail
index.php?act=goods&op=goods_body
index.php?act=login&op=register
index.php?act=member_index
username 用户名
avator 用户头像
point 积分
predepoit 预存款
index.php?act=member_favorites&op=favorites_list
goods_name 商品名称
goods_image_url 商品图片地址
goods_price 商品价格
fav_id 收藏编号
index.php?act=member_favorites&op=favorites_add
index.php?act=member_favorites&op=favorites_del
index.php?act=member_address&op=address_list
address_list
city_id 城市编号
area_id 地区编号
area_info 地址
address 详细地址
tel_phone 固定电话机
mob_phone 手机
index.php?act=member_address&op=address_info
key 当前登录令牌
address_id 地址编号
area_info 地址
address 详细地址
tel_phone 固定电话机
mob_phone 手机
index.php?act=member_address&op=address_del
key 当前登录令牌
address_id 地址编号
index.php?act=member_address&op=address_add
index.php?act=member_address&op=address_edit
index.php?act=member_address&op=area_list
area_id 地区编号
area_name 地区名称
index.php?act=member_order&op=order_list
0-已取消
10-未支付
20-已支付
30-已发货
40-交易成功
index.php?act=member_order&op=order_cancel
index.php?act=member_order&op=order_receive
index.php?act=member_order&op=search_deliver
express_name 物流公司名称
shipping_code 物流编号
deliver_info 物流信息
index.php?act=member_cart&op=cart_list
cart_list
cart_id 购物车编号
buyer_id 买家member_id
store_id 店铺编号
store_name 店铺名称
goods_id 商品编号
goods_name 商品名称
goods_price 商品价格
goods_num 购买数量
goods_image_url 图片地址
goods_sum 商品总价
sum 购物车总价
index.php?act=member_cart&op=cart_add
key 当前登录令牌
goods_id 商品编号
quantity 购买数量
index.php?act=member_cart&op=cart_del
index.php?act=member_cart&op=cart_edit_quantity
key 当前登录令牌
cart_id 购物车编号
quantity 新的购买数量
quantity 购买数量
goods_price 商品价格
total_price 商品总价
index.php?act=member_invoice&op=invoice_list
invoice_list
inv_id 发票编号
inv_title 发票抬头
inv_content 发票内容
index.php?act=member_invoice&op=invoice_add
key 当前登录令牌
inv_title_select 发票类型,可选值:person(个人) company(单位)
inv_title 发票抬头(inv_title_select为company时需要提交)
inv_content 发票内容,可通过invoice_content_list接口获取可选值列表
index.php?act=member_invoice&op=invoice_del
index.php?act=member_invoice&op=invoice_content_list
index.php?act=member_buy&op=buy_step1
key 当前登录令牌
cart_id 购买参数
ifcart 购物车购买标志 1
立即购买: 第一个数字为商品编号,第二个数字为购买数量,用竖线分割。例:232|1
购物车购买:第一个数字为购物车编号,第二个数字为购买数量,用竖线分割。多组用半角逗号分割,例:232|1,110|2 232商品购买1个,110商品购买2个
ifcart 购物车购买标志 1
store_cart_list 购物车列表 店铺编号为下标的数组
goods_list 商品列表
goods_num 购买数量
goods_id 商品编号
goods_commonid 商品通用编号
store_id 店铺编号
goods_name 商品名称
goods_price 商品价格
goods_image_url 商品图片
transport_id 运费模板编号
goods_freight 运费
goods_storage 库存
state 商品是否有效 true
storage_state
cart_id 购物车编号
bl_id 组合销售编号
promotions_id
ifxianshi
premiums 赠品标志 true
goods_total 总价
store_goods_total 店铺商品总价 店铺编号为下标的数组
store_mansong_rule_list 满送规则列表 店铺编号为下标的数组
store_vouche_list 店铺代金券列表 数组下标是voucher_t_id
freight 0-免运费 1-需要计算运费
freight_message 免运费时的说明
store_name 店铺名称
freight_hash 运费hash,选择地区时作为参数提交
address_info 收货地址信息
ifshow_offpay 支持货到付款时为true
vat_hash 发票信息hash
inv_info 发票信息
available_predeposit 可用预存款
index.php?act=member_buy&op=change_address
content 运费列表,以店铺编号为下标数组,值为运费
allow_offpay 是否允许货到付款 1-允许 0-不允许
offpay_hash 货到付款hash
offpay_hash_batch 店铺是否支持货到付款hash
index.php?act=member_buy&op=check_password
key 当前登录令牌
password 用户支付密码
index.php?act=member_buy&op=buy_step2
key 当前登录令牌
ifcart 购物车购买标志 1
cart_id 购买参数
address_id 收货地址编号
vat_hash 发票信息hash,第一步接口提供
offpay_hash 是否支持货到付款hash,通过更换收货地址接口获得
offpay_hash_batch 店铺是否支持货到付款hash
pay_name 付款方式,可选值 online(线上付款) offline(货到付款)
invoice_id 发票信息编号
voucher 代金券,内容以竖线分割 voucher_t_id|store_id|voucher_price,多个店铺用逗号分割,例:10|2|10,1|3|10
pd_pay 是否使用预存款支付 1-使用 0-不使用
password 用户支付密码,启动预存款支付时需要提交
fcode F码购买时需提交
立即购买: 第一个数字为商品编号,第二个数字为购买数量,用竖线分割。例:232|1
购物车购买:第一个数字为购物车编号,第二个数字为购买数量,用竖线分割。多组用半角逗号分割,例:232|1,110|2 232商品购买1个,110商品购买2个
index.php?act=member_payment&op=payment_list
index.php?act=member_payment&op=pay
index.php?act=index&op=apk_version
index.php?act=member_voucher&op=voucher_list
voucher_list 代金券列表
voucher_id 代金券编号
voucher_code 代金券编码
voucher_title 代金券标题
voucher_desc 代金券描述
voucher_start_date 代金券开始时间
voucher_end_date 代金券过期时间
voucher_price 代金券面额
voucher_limit 代金券使用限额
voucher_state 代金券状态编号
voucher_order_id 使用代金券的订单编号
voucher_store_id 店铺编号
store_name 店铺名称
store_id 店铺编号
store_domain 店铺域名
voucher_t_customimg 代金券图片
voucher_state_text 代金券状态文字
index.php?act=member_feedback&op=feedback_add
index.php?act=member_vr_buy&op=buy_step1
key当前登录令牌
cart_id 商品编号
quantity 购买数量
goods_info 商品信息
store_info 店铺信息
index.php?act=member_vr_buy&op=buy_step2
key当前登录令牌
goods_id 商品编号
quantity 购买数量
goods_info 商品信息
store_info 店铺信息
$member_info 会员信息
index.php?act=member_vr_buy&op=buy_step3
index.php?act=member_vr_order&op=order_list
index.php?act=member_vr_order&op=indate_code_list
code_list 支付码列表
vr_code 支付码
vr_indate 使用期限
index.php?act=member_vr_order&op=order_cancel
index.php?act=member_payment&op=vr_pay
emit('get_state', u_list);
emit('get_state', list);
list['u_state'] 状态列表
u_id 会员编号, 在线时是1,不在线是0
list['user'] 会员列表
u_id 会员编号
u_name 会员名
avatar 会员头像
s_id 店铺编号
s_name 店铺名
online 在线时是1,不在线是0
emit('update_user', user);
user 会员信息
u_id 会员编号
u_name 会员名
avatar 会员头像
s_id 店铺编号
s_name 店铺名
emit('get_msg', msg_list);
msg_list 消息列表
m_id 消息编号
f_id 发消息会员编号
f_name 发消息会员名
t_id 接收消息编号
t_name 接收消息会员名
t_msg 消息
add_time 发消息时间
user 发消息人的会员信息,可能为空
emit('get_msg', msg_list);
msg_list 消息列表
m_id 消息编号
f_id 发消息会员编号
f_name 发消息会员名
t_id 接收消息编号
t_name 接收消息会员名
t_msg 消息
add_time 发消息时间
user 发消息人的会员信息,可能为空
socket.emit('del_msg', {'max_id':max_id,'f_id':u_id});
max_id 已读的最大消息编号
f_id 消息发送人的会员编号
emit('del_msg', msg);
msg 消息
max_id 已读的最大消息编号
f_id 消息发送人的会员编号
index.php?act=member_chat&op=get_user_list
key 当前登录令牌
n 查询会员数量,可为空,默认为50个
index.php?act=member_chat&op=get_info
member_info 会员
member_id 会员编号
member_name 会员名
member_avatar 会员头像
store_name 店铺名
grade_id 店铺等级
store_id 店铺编号
seller_name 店铺登录名
index.php?act=member_chat&op=send_msg
key 当前登录令牌
t_id 接收消息会员编号
t_name 接收消息会员帐号
t_msg 消息
index.php?act=member_chat&op=get_goods_info
index.php?act=member_chat&op=get_chat_log
key 当前登录令牌
t_id 接收消息会员编号
t 查询天数('7','15','30')
page 每页显示数量,可为空,默认为5个
curpage 当前页码
index.php?act=member_snsfriend&op=member_list
member_list 会员列表
u_id 会员编号
u_name 会员名
truename 真实姓名
avatar 会员头像
index.php?act=member_snsfriend&op=friend_list
key 当前登录令牌
page 每页显示数量,可为空,默认为5个
curpage 当前页码
index.php?act=member_snsfriend&op=friend_add
index.php?act=member_snsfriend&op=friend_del