当前位置: 首页 > news >正文

做网站 图片是文本营销必备十大软件

做网站 图片是文本,营销必备十大软件,怎么给购物网站做推广,做名人故居的网站多少钱ty.getAccountInfo 获取小程序账号信息 需引入MiniKit,且在>3.1.0版本才可使用 参数 Object object 属性类型默认值必填说明completefunction否接口调用结束的回调函数(调用成功、失败都会执行)successfunction否接口调用成功的回调函数…

ty.getAccountInfo

获取小程序账号信息

需引入MiniKit,且在>=3.1.0版本才可使用

参数

Object object

属性类型默认值必填说明
completefunction接口调用结束的回调函数(调用成功、失败都会执行)
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数

object.success 回调参数

参数

Object res

属性类型说明
miniProgramMiniProgramAccountInfo小程序账号信息

MiniProgramAccountInfo

PropertyTypeDescription
appIdstring小程序 ID
envVersionstring小程序版本:
develop:开发版
trail:体验版
release:正式版
versionstring版本号

object.fail 回调参数

参数

Object res

属性类型说明
errorMsgstring插件错误信息
errorCodestring错误码
innerErrorobject插件外部依赖错误信息 {errorMsg: string, errorCode: string }

函数定义示例

export type MiniProgramAccountInfo = {/** 小程序 ID */appId: string;/*** 小程序版本* develop: 开发版* trail: 体验版* release: 正式版*/envVersion: string;/** 小程序版本号 */version: string;
};
/*** 获取小程序账号信息*/
export function getAccountInfo(params?: {/** 接口调用结束的回调函数(调用成功、失败都会执行) */complete?: () => void;/** 接口调用成功的回调函数 */success?: (params: {/** 小程序账号信息 */miniProgram: MiniProgramAccountInfo;}) => void;/** 接口调用失败的回调函数 */fail?: (params: {errorMsg: string;errorCode: string | number;innerError: {errorCode: string | number;errorMsg: string;};}) => void;
}): void;

 

ty.getAccountInfoSync

获取小程序账号信息同步方法

需引入MiniKit,且在 >=3.1.0 版本才可使用

getAccountInfo 的同步版本

返回值

属性类型说明
miniProgramMiniProgramAccountInfo小程序账号信息

MiniProgramAccountInfo

PropertyTypeDescription
appIdstring小程序 ID
envVersionstring小程序版本:
develop:开发版
trail:体验版
release:正式版
versionstring版本号

函数定义示例

export type MiniProgramAccountInfo = {/** 小程序 ID */appId: string;/*** 小程序版本* develop: 开发版* trail: 体验版* release: 正式版*/envVersion: string;/** 小程序版本号 */version: string;
};
/*** 获取小程序账号信息*/
export function getAccountInfoSync(): {/** 小程序账号信息 */miniProgram: MiniProgramAccountInfo;
};

 

ty.setBoardIcon

设置小程序看板的 icon

需引入MiniKit,且在>=3.0.3版本才可使用

参数

Object object

属性类型默认值必填说明
iconstring看板的 icon
completefunction接口调用结束的回调函数(调用成功、失败都会执行)
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数

函数定义示例

/*** 小程序看板的icon,小程序icon,面板icon等*/
export function setBoardIcon(params: {/** 看板的icon */icon: string;/** 接口调用结束的回调函数(调用成功、失败都会执行) */complete?: () => void;/** 接口调用成功的回调函数 */success?: (params: null) => void;/** 接口调用失败的回调函数 */fail?: (params: {errorMsg: string;errorCode: string | number;innerError: {errorCode: string | number;errorMsg: string;};}) => void;
}): void;

ty.setBoardIconSync

设置小程序看板的 icon

需引入MiniKit,且在>=3.0.3版本才可使用

ty.setBoardIcon 的同步版本

参数

Object object

属性类型默认值必填说明
iconstring看板的 icon

函数定义示例

/*** 设置小程序看板的 icon*/
export function setBoardIconSync(params: {/** 看板的icon */icon: string;
}): null;

ty.showBoardTitleIcon

显示小程序看板中的标题和 icon

需引入MiniKit,且在>=3.0.3版本才可使用

参数

Object object

属性类型默认值必填说明
completefunction接口调用结束的回调函数(调用成功、失败都会执行)
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数

函数定义示例

/*** 显示小程序看板中的标题和icon*/
export function showBoardTitleIcon(params?: {/** 接口调用结束的回调函数(调用成功、失败都会执行) */complete?: () => void;/** 接口调用成功的回调函数 */success?: (params: null) => void;/** 接口调用失败的回调函数 */fail?: (params: {errorMsg: string;errorCode: string | number;innerError: {errorCode: string | number;errorMsg: string;};}) => void;
}): void;

ty.showBoardTitleIconSync

The synchronous method used to display the title and icon of the miniapp dashboard.

Be sure to import MiniKit 3.0.3 or later.

The synchronous method of ty.showBoardTitleIcon.

Examples of function definitions

/*** Display the title and icon of the miniapp dashboard.*/
export function showBoardTitleIconSync(): null;

ty.hideBoardTitleIcon

隐藏小程序看板中的标题和 icon

需引入MiniKit,且在>=3.0.3版本才可使用

参数

Object object

属性类型默认值必填说明
completefunction接口调用结束的回调函数(调用成功、失败都会执行)
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数

函数定义示例

/*** 隐藏小程序看板中的标题和icon*/
export function hideBoardTitleIcon(params?: {/** 接口调用结束的回调函数(调用成功、失败都会执行) */complete?: () => void;/** 接口调用成功的回调函数 */success?: (params: null) => void;/** 接口调用失败的回调函数 */fail?: (params: {errorMsg: string;errorCode: string | number;innerError: {errorCode: string | number;errorMsg: string;};}) => void;
}): void;

 

ty.hideBoardTitleIconSync

隐藏小程序看板中的标题和 icon 同步方法

需引入MiniKit,且在>=3.0.3版本才可使用

ty.hideBoardTitleIcon 的同步版本

函数定义示例

/*** 隐藏小程序看板中的标题和icon*/
export function hideBoardTitleIconSync(): null;

👉 立即开发。 

http://www.sczhlp.com/news/36660/

相关文章:

  • 临沂市网站建设公司韶关seo
  • 用cms做网站怎么样东莞做网站哪里好
  • 网站建设优秀网专业推广引流团队
  • 怎么做网站识图验证码前端性能优化
  • 成都最近的流行病毒沈阳专业seo
  • 酒店电子商务网站建设网站搜索引擎拓客
  • 江门做公司网站网站建设及网络推广
  • VTK开发笔记(二):Qt5.9.3+VS2017x64+VTK8.2创建兼容dll和嵌入源码窗口两种方式的Qt嵌入VTK8.2模板Demo
  • 网站设计建设公司教程google搜索网址
  • 厦门做网站公司有哪些沈阳疫情最新消息
  • wordpress淘宝客主题山东网络优化公司排名
  • AtCoder Beginner Contest 420记录
  • 擅自给公司做网站有什么责任广州白云区疫情实时动态
  • 建设自己的网站企点下载
  • 专业分类目录成都seo排名
  • 为网站做外链的方式torrentkitty磁力猫引擎
  • 我做推广找不到我的网站电脑培训网
  • html5网站模板怎么修改seo关键词排名如何
  • asp怎么做网站适配百度热线电话
  • 成都企业做网站seo技术分享
  • 免费wap自助建站网站新闻网最新消息
  • 一站式抗体定制:从抗原设计到抗体纯化
  • 重组蛋白表达纯化|蛋白表达定制|蛋白修饰|原核表达蛋白
  • 河北品牌网站建设百度推广的四种收费形式
  • 怎么样做网站代理商国外网站加速
  • 做网站投入陕西网络营销优化公司
  • 自己建网站能赚钱吗新闻 近期大事件
  • 国外自助建站免费建站平台百度权重批量查询
  • 如何把自己做的网站谷歌推广开户多少费用
  • 百度短链接在线生成石家庄关键词优化平台