以下將展示微信小程序之開放能力open-data源碼官方組件能力,組件樣式僅供參考滨砍,開發(fā)者可根據(jù)自身需求定義組件樣式匆笤,具體屬性參數(shù)詳見小程序開發(fā)文檔。
功能描述:
用于展示微信開放的數(shù)據(jù)扫夜。
屬性說明:
Bug & Tip
1.tip:只有當(dāng)前用戶在此群內(nèi)才能拉取到群名稱
2.tip:關(guān)于 open-gid 的獲取請(qǐng)使用wx.getShareInfo
示例代碼
WXML
<open-data type="groupName" open-gid="xxxxxx"></open-data>
<open-data type="userAvatarUrl"></open-data>
<open-data type="userGender" lang="zh_CN"></open-data>
版權(quán)聲明:本站所有內(nèi)容均由互聯(lián)網(wǎng)收集整理楞泼、上傳,如涉及版權(quán)問題笤闯,請(qǐng)聯(lián)系我們第一時(shí)間處理堕阔。
原文鏈接地址:https://developers.weixin.qq.com/miniprogram/dev/component/open-data.html