- taro+vue3 openaiwidget点击事件没响应
框架版本: vue 3.0 taro 3.4.4 引入openaiwidget插件,跳转小程序内部无响应。点击事件没响应。 <template> <container title="客服"> <div> <chat @queryCallback="getQueryCallback" @openWebview="openWebview" @openMiniProgram="openMiniProgram" /> </div> </container> </template> <script lang="ts"> import { defineComponent } from 'vue'; import Taro from '@tarojs/taro'; import config from '@/setting'; export default defineComponent({ name: 'CustomService', setup() { const getQueryCallback = () => {}; const openWebview = () => {}; const openMiniProgram = (e) => { console.log('点击无响应', e) const { appid: appId } = config; const { appid, pagepath } = e.detail; // 如果有appid是当前小程序,跳转内部页面 if (appid === appId) { Taro.navigateTo({ url: pagepath }); return; } Taro.navigateToMiniProgram({ appId: appid, path: pagepath, envVersion: 'release', extraData: { foo: 'bar' }, success: (res) => { console.log('成功', res); }, fail: (err) => { console.log('失败', err); } }); }; return { getQueryCallback, openWebview, openMiniProgram }; } }); </script>
2022-06-27 - 公众号 Scope 参数错误或没有 Scope 权限 (认证服务号,回调域名开启,参数顺序正确)
[图片] https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxe4fb905009ce1e28&redirect_uri=https%3A%2F%2Fuat-h5-djgame.carlsberg.asia%2FuctRedpack%2Flebao%3Ffrom%3Dtuborg%26token%3D3b3d93568ca34c169515eecdcdb526a0%26sku%3DHQSLLOla%3D31.6%26lo%3D110.3%26scanCode%3DLMKN36B%26subdomain%3DB%26openid%3DoYuNN5AMoaibijz0fAvhkV4ikIAA%26activityId%3Da3eiuhjnggvv&response_type=code&scope=snsapi_base&state=123#wechat_redirect 我尝试排查了这4项,找不到问题 1.使用的是订阅号,订阅号没有权限使用网页授权 2.使用的是商户号 3.网页授权回调域名填写错误 (正确) 4.scope参数顺序不对 (顺序是对的) appid: wxe4fb905009ce1e28
2022-05-30