业务方法
Api域:
将商品添加到备忘录
注意这个操作并不是收藏商品,只是添加到线下门店的购物备忘录中。
参数名 | 类型 | 描述 |
options | AddToShoppingRequestInterface | 入参类型 |
参数名 | 类型 | 描述 |
name | string | 商品名称 |
返回值
无
native.fetchGroupShopCartList(options)
刷新团购购物车列表。
参数名 | 类型 | 描述 |
options | FetchGroupShopCartRequestInterface | 入参类型 |
FetchGroupShopCartRequestInterface类型:
参数名 | 类型 | 描述 |
storeId | string | 门店ID |
venderId | string | 商家ID |
groupBuyType | number | 团购类型 |
返回值
无
native.showGroupShopCartBar(options)
是否展示团购底部结算栏入口。
参数名 | 类型 | 描述 |
options | ShowGroupShopCartBarInterface | 入参类型 |
ShowGroupShopCartBarInterface类型:
参数名 | 类型 | 描述 |
isShowBar | boolean | 是否展示 |
返回值
无
native.notifyPayResult(options)
支付完成后通知App端更新订单状态。
参数名 | 类型 | 描述 |
options | NotifyPayResultRequestInterface | 入参类型 |
NotifyPayResultRequestInterface类型:
参数名 | 类型 | 描述 |
orderNo | string | 订单ID |
state | number | 支付状态 1处理中 2支付成功 |
返回值
无
native.getJdBaiTiaoCommonParams(options)
传参数给京东(京东白条使用)-多享付。
参数名 | 类型 | 描述 |
options | NativeApiBaseRequest | 入参类型 |
返回值:
GetJdBaiTiaoCommonParamsResponse 传至京东白条的字段
GetJdBaiTiaoCommonParamsResponse类型:
参数名 | 类型 | 描述 |
appVersion | string | app版本 |
platform | string | 端枚举 |
systemVersion | string | 系统版本 |
native.jdActivateBaiTiaoCallBack(options)
多享付 激活成功回传数据。
参数名 | 类型 | 描述 |
options | JdActivateBaiTiaoCallBackRequestInterface | 入参类型 |
JdActivateBaiTiaoCallBackRequestInterface类型:
参数名 | 类型 | 描述 |
platform | string | 端枚举 |
resultStr | string | 激活成功回调数值 |
native.addSpecificationWareToCart(options)
调用原生端多规格加购弹窗,加购多规格商品。
参数名 | 类型 | 描述 |
options | AddSpecificationWareToCart | 入参类型 |
AddSpecificationWareToCart类型:
参数名 | 类型 | 描述 |
skuId | string | 商品skuId |
wareStoreId | string | 商品所属门店ID |
wareVenderId | string | 商品所属商家ID |
refSource | string | 加购埋点来源枚举 |
refSubSource | string | 加购埋点来源标识 |
native.getCBDistributionStatusByParams(options)
获取重百协议确认状态,加购多规格商品。
参数名 | 类型 | 描述 |
options | NativeApiBaseRequest | 基础入参类型 |
返回值
number 1已确认 0未确认
native.getCBDistributionPosterByParams(options)
获取重百商详分享图片
参数名 | 类型 | 描述 |
options | GetCBDistributionPosterRequestInterface | 入参类型 |
GetCBDistributionPosterRequestInterface类型:
参数名 | 类型 | 描述 |
onlinePrice | string | 价格信息 |
lineationPrice | string | 价格信息 |
sharePictureTitle | string | 分享图片标题 |
wareName | string | 商品名称 |
posterImg | string | 海报图片 |
qrCodeBuffer | string | 海报二维码图片 |
返回值
string 图片链接