# wx.openPhotoTopicView(Object object)

基础库 3.17.1 开始支持,低版本需做兼容处理

Promise 风格 调用:不支持

小程序插件:不支持

# 功能描述

打开微信官方图片话题发布页。

# 参数

# Object object

属性 类型 默认值 必填 说明
queryString string 附加的查询字符串,必须是 key1=val1&key2=val2 的格式。
extraData Object 传递给目标业务小程序的业务参数。
envVersion string release 要打开的小程序版本。
合法值 说明
develop 开发版
trial 体验版
release 正式版
success function 接口调用成功的回调函数
fail function 接口调用失败的回调函数
complete function 接口调用结束的回调函数(调用成功、失败都会执行)

# object.success 回调函数

# 参数
# Object res
属性 类型 说明
extraData Object 图片话题发布页返回的业务数据(结构由微信官方业务约定)

# object.fail 回调函数

# 参数
# Object err
属性 类型 说明
errMsg string 错误信息

# 示例代码

wx.openPhotoTopicView({
  extraData: {
    // 由目标业务约定的字段
    foo: 'bar',
  },
  success(res) {
    console.log(res)
  },
  fail(err) {
    console.error(err)
  },
})