# Interface: sendInteractivePropertyParams
• sendInteractivePropertyParams()
赠送互动道具接口
see
key 道具key值,目前只支持'1'
see
opNum 赠送道具数量,目前只支持1,倍率请在后台配置中设置
see
toUserOpenid 赠送好友的 openId
see
title 分享标题,如果设置了这个值,则在交互成功后自动询问用户是否分享给好友(需要配置模板规则)
see
imageUrl 分享图片地址,详见 wx.shareMessageToFriend 同名参数(需要配置模板规则)
see
imageUrlId 分享图片 ID,详见 wx.shareMessageToFriend 同名参数(需要配置模板规则)
see
quiet 是否静默修改(不弹框)。当进入场景是好友 定向分享 的卡片时有效,代表分享反馈操作,此时 toUser 默认为原分享者的 openId
# Properties
# Optional
complete
• complete? : Function
Returns: Function
# Optional
fail
• fail? : function
# Type declaration:
▸ (err
: sendInteractivePropertyErrResponse): void
# 参数:
属性 | 类型 |
---|---|
err | sendInteractivePropertyErrResponse |
sendInteractivePropertyErrResponse
属性 | 类型 | 描述 |
---|---|---|
errCode | number | - |
errMsg | string | - |
Returns: function
▸ (err
: sendInteractivePropertyErrResponse): void
# 参数:
属性 | 类型 |
---|---|
err | sendInteractivePropertyErrResponse |
sendInteractivePropertyErrResponse
属性 | 类型 | 描述 |
---|---|---|
errCode | number | - |
errMsg | string | - |
# Optional
imageUrl
• imageUrl? : string
Returns: string
# Optional
imageUrlId
• imageUrlId? : string
Returns: string
# key
• key: string
Returns: string
# opNum
• opNum: number
Returns: number
# Optional
quiet
• quiet? : boolean
Returns: boolean
# Optional
success
• success? : function
# Type declaration:
▸ (): void
Returns: function
▸ (): void
# Optional
title
• title? : string
Returns: string
# toUserOpenid
• toUserOpenid: string
Returns: string