cloudid.wxml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!--index.wxml-->
  2. <view class="container">
  3. <view class="guide">
  4. <text class="headline">开放数据调用</text>
  5. <text class="p">通过 cloudID 获取敏感开放数据有以下两种方式</text>
  6. <text class="p">1. 小程序端 callFunction 自动获取</text>
  7. <text class="p">2. 通过 wx-server-sdk 获取</text>
  8. <text class="p">以下分别先后展示这两种获取方式</text>
  9. </view>
  10. <view class="uploader">
  11. <button class="uploader-text" bindtap="onGetWeRunData">getWeRunData 敏感数据获取</button>
  12. </view>
  13. <view class="guide">
  14. <text class="headline">测试须知</text>
  15. <text class="p">1. 公共库版本需大于 2.7.0</text>
  16. <text class="p">2. 请确保 echo 函数已上传</text>
  17. </view>
  18. <view class="guide" style="word-break: break-all">
  19. {{weRunResult}}
  20. </view>
  21. <view class="uploader">
  22. <button class="uploader-text" open-type="getUserInfo" bindgetuserinfo="onGetUserInfo">getUserInfo 敏感数据获取</button>
  23. </view>
  24. <view class="guide">
  25. <text class="headline">测试须知</text>
  26. <text class="p">1. 公共库版本需大于 2.7.0</text>
  27. <text class="p">2. 请确保 openapi 函数已上传</text>
  28. </view>
  29. <view class="guide" style="word-break: break-all">
  30. {{userInfoResult}}
  31. </view>
  32. </view>