hwb0 3 роки тому
батько
коміт
bf2f65fa53
1 змінених файлів з 5 додано та 5 видалено
  1. 5 5
      public/jump.html

+ 5 - 5
public/jump.html

@@ -59,7 +59,7 @@
 
         wx.config({
           // debug: true, // 调试时可开启
-          appId: '小程序 AppID', // <!-- replace -->
+          appId: 'wx8533800e393dbd6b', // <!-- replace -->
           timestamp: 0, // 必填,填任意数字即可
           nonceStr: 'nonceStr', // 必填,填任意非空字符串即可
           signature: 'signature', // 必填,填任意非空字符串即可
@@ -75,16 +75,16 @@
         var containerEl = document.getElementById('public-web-container')
         containerEl.classList.remove('hidden')
         containerEl.classList.add('full', 'public-web-container')
-        /* var c = new cloud.Cloud({
+        var c = new cloud.Cloud({
           // 必填,表示是未登录模式
           identityless: true,
           // 资源方 AppID
           resourceAppid: '小程序 AppID', // <!-- replace -->
           // 资源方环境 ID
           resourceEnv: '云开发环境 ID', // <!-- replace -->
-        }) */
-        // await c.init()
-        // window.c = c
+        })
+        await c.init()
+        window.c = c
 
         var buttonEl = document.getElementById('public-web-jump-button')
         var buttonLoadingEl = document.getElementById('public-web-jump-button-loading')