me.js 283 B

123456789101112131415161718
  1. // pages/me/me.js
  2. import {
  3. getApi,
  4. postApi
  5. } from "../../apis/api"
  6. import cloudApi from "../../apis/cloudApi"
  7. Page({
  8. data: {
  9. },
  10. async getCargoOwnerInfo() {
  11. let res = await cloudApi('getOpenId')
  12. console.log(res)
  13. },
  14. onLoad() {
  15. this.getCargoOwnerInfo()
  16. }
  17. })