fix
pyt
2025-03-17 1ce0d0aabab88cdbe688b10078ac2fa4f09ba8e0
fix
1个文件已修改
73 ■■■■■ 已修改文件
H5/pages/index/index.vue 73 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/pages/index/index.vue
@@ -238,36 +238,7 @@
        },
        onLoad(e) {
            getSignature().then(res => {
                wx.config({
                    debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来
                    appld: 'wx118de8a734d269f0',
                    timestamp: res.data.timestamp, // 必填,生成签名的 时间戳
                    noncestr: res.data.nonceStr, // 必填,生成签名的随机串
                    signature: res.data.signature, // 必填,签名
                    jsApiList: [
                        'miniProgram.navigateBack',
                        'miniProgram.navigateTo',
                        'miniProgram.postMessage',
                    ] // 必填,需要使用的JS接口列表
                })
                wx.ready(() => {
                    // 在这里调用任何你需要的JS-SDK功能
                    uni.showToast({
                        title: '配置成功!'
                    })
                });
                wx.error((err) => {
                    // 处理错误情况
                    uni.showToast({
                        title: '配置失败'
                    });
                    uni.setClipboardData({
                        data: JSON.stringify(err)
                    })
                })
            })
            if (e.token) {
                uni.setStorageSync('token', 'Bearer ' + e.token)
            }
@@ -286,9 +257,6 @@
            closeChangeRole() {
                this.getMessagelist()
                this.getappletcinfo()
            },
            closeH5() {
                wx.miniProgram.navigateBack()
            },
            changeRole(item) {
                this.activeRole = item - 1
@@ -342,15 +310,38 @@
                    //是上级则不返回小程序
                    return
                }
                wx.config({
                    debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来
                    appld: 'wx0cef797390444b75',
                    timestamp: 1742191791, // 必填,生成签名的 时间戳
                    noncestr: '312321412', // 必填,生成签名的随机串
                    signature: '614377884544e5d51a9f327e90160199ddae04e4', // 必填,签名
                    jsApiList: [] // 必填,需要使用的JS接口列表
                getSignature().then(res => {
                    wx.config({
                        debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来
                        appld: 'wx118de8a734d269f0',
                        timestamp: res.data.timestamp, // 必填,生成签名的 时间戳
                        noncestr: res.data.nonceStr, // 必填,生成签名的随机串
                        signature: res.data.signature, // 必填,签名
                        jsApiList: [
                            'miniProgram.navigateBack',
                            'miniProgram.navigateTo',
                            'miniProgram.postMessage',
                        ] // 必填,需要使用的JS接口列表
                    })
                    wx.ready(() => {
                        // 在这里调用任何你需要的JS-SDK功能
                        uni.showToast({
                            title: '配置成功!'
                        })
                        wx.miniProgram.navigateBack()
                    });
                    wx.error((err) => {
                        // 处理错误情况
                        uni.showToast({
                            title: '配置失败'
                        });
                        uni.setClipboardData({
                            data: JSON.stringify(err)
                        })
                    })
                })
                wx.miniProgram.navigateBack()
            },
            Allread() {
                getread().then(resp => {