guhongwei hace 3 años
padre
commit
8cfe470180
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9 0
      pages/home/index.js

+ 9 - 0
pages/home/index.js

@@ -86,6 +86,15 @@ Page({
         })
       }
     })
+    wx.getWeRunData({
+      success(res) {
+        console.log(res);
+        // // 拿 encryptedData 到开发者后台解密开放数据
+        // const encryptedData = res.encryptedData
+        // // 或拿 cloudID 通过云调用直接获取开放数据
+        // const cloudID = res.cloudID
+      }
+    })
   },
 
   /**