Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taro使用official-account,编译后,在微信小程序不显示该组件 #11522

Closed
wuyuancai4357 opened this issue Mar 28, 2022 · 10 comments
Labels
F-vue2 Framework - Vue 2 question Further information is requested T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@wuyuancai4357
Copy link

相关平台

微信小程序

小程序基础库: 2.21.2
使用框架: Vue 2

复现步骤

扫描二维码进入小程序,没有出现引导关注公众号组件

期望结果

扫码进入小程序出现该组件

实际结果

该组件没有任何反应

环境信息


  Taro CLI 3.3.0 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 16.13.0 - C:\Program Files\nodejs\node.EXE
      npm: 8.1.0 - C:\Program Files\nodejs\npm.CMD

补充信息

需要在用户扫小程序码后进入小程序引导用户关注公众号

@taro-bot2 taro-bot2 bot added F-vue2 Framework - Vue 2 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Mar 28, 2022
@Chen-jj
Copy link
Contributor

Chen-jj commented Mar 28, 2022

@wuyuancai4357 看 wxml 是成功渲染了的,可以用原生页面测试一下试试。

image

目测是没有命中展示的规则:

image

@Chen-jj Chen-jj added the question Further information is requested label Mar 28, 2022
@wuyuancai4357
Copy link
Author

这些情景值都试过,vue2+taro编译后结构里都没有这个标签,小程序和公众号都是同一主体 @ @Chen-jj

@Chen-jj
Copy link
Contributor

Chen-jj commented Mar 28, 2022

@wuyuancai4357 我截图是 taro3.4.3 + vue2 ,是有渲染这个组件的,升级下试试

@wuyuancai4357
Copy link
Author

好的,是命中什么值渲染出来的? @Chen-jj

@wuyuancai4357
Copy link
Author

代码能参考一下吗 @Chen-jj

@Chen-jj
Copy link
Contributor

Chen-jj commented Mar 28, 2022

只是在开发者工具有渲染出来,真机没有环境就没测试了。

@wuyuancai4357
Copy link
Author

用的是taro组件还是微信组件?

@Chen-jj
Copy link
Contributor

Chen-jj commented Mar 28, 2022

taro,就 vue template 里普通写一个 <official-account></official-account>

@wuyuancai4357
Copy link
Author

出来了,今天百度了一天,根本没有想过会是taro版本问题,非常感谢~ @Chen-jj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue2 Framework - Vue 2 question Further information is requested T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants