|
@@ -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')
|