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

小程序无法使用,没有注入小圆点,无法切换环境 #15

Closed
obstrux opened this issue Jul 29, 2020 · 3 comments
Closed

小程序无法使用,没有注入小圆点,无法切换环境 #15

obstrux opened this issue Jul 29, 2020 · 3 comments

Comments

@obstrux
Copy link

obstrux commented Jul 29, 2020

No description provided.

@longyiyiyu
Copy link

官方暂时没出,要用可以自己写一个,也比较快,抓web的nohost相关的接口请求:

  • 查询接口
  • 设置接口

然后实现一个小程序组件,除了接口逻辑之外,ui可以参考的地方不多,自己写也不难
另外也可以直接参考 web 小圆点组件的源代码:
https://github.com/nohosts/nohost/blob/master/src/button/index.js

@obstrux
Copy link
Author

obstrux commented Jul 30, 2020

官方暂时没出,要用可以自己写一个,也比较快,抓web的nohost相关的接口请求:

  • 查询接口
  • 设置接口

然后实现一个小程序组件,除了接口逻辑之外,ui可以参考的地方不多,自己写也不难
另外也可以直接参考 web 小圆点组件的源代码:
https://github.com/nohosts/nohost/blob/master/src/button/index.js

但是小程序没有所谓的请求地址,怎么实现动态注入呢

@avwo
Copy link
Collaborator

avwo commented Jul 30, 2020

要构建的时候注入,并设置一些开关

@avwo avwo closed this as completed Jan 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants